Formula

CommonFun.calcBuff_8610

function CommonFun.calcBuff_8610(srcUser, targetUser, a, b, c, d, lv, damage)
  if srcUser == nil or targetUser == nil then
    return 0
  end
  local skilllv = srcUser:GetLernedSkillLevel(2820_SAINT:LUNAR_ECLIPSE)
  local Sp = srcUser:GetProperty("Sp")
  local Luk = srcUser:GetProperty("Luk")
  local mapid, maptype = srcUser:GetMapInfo()
  local A = Sp * Luk * (skilllv * 0.02 + 0.1) * a + Sp * b
  if maptype == PVP_MAPS and 0 < a then
    A = A * 4
  end
  return A
end