Formula

CommonFun.calcBuff_4410

function CommonFun.calcBuff_4410(srcUser, targetUser, a, b, c, d, lv)
  if srcUser == nil or targetUser == nil then
    return 0
  end
  local MaxHp = targetUser:GetProperty("MaxHp")
  local A = 0.005 * MaxHp + 5
  if targetUser:HasBuffID(116311_MIDNIGHT_BERSERK_:MAX_STACK_0) then
    A = 0.01 * MaxHp + 10
  end
  return -A
end