Formula

CommonFun.calcBuff_8630

function CommonFun.calcBuff_8630(srcUser, targetUser, a, b, c, d, lv)
  if srcUser == nil or targetUser == nil then
    return 0
  end
  local skilllv_1 = srcUser:GetLernedSkillLevel(2833_SAINT:GUARD_THE_SPRING_DAY)
  local Vit = srcUser:GetProperty("Vit")
  local BeHealEncPer2 = targetUser:GetProperty("BeHealEncPer")
  local HealEncPer = srcUser:GetProperty("HealEncPer")
  local A = (skilllv_1 * 3 + 20) * Vit * (1 + HealEncPer) * (1 + BeHealEncPer2)
  local mapid, maptype = srcUser:GetMapInfo()
  if maptype == PVP_MAPS then
    A = A * 4
  end
  return A
end