CommonFun

calcDamage / calcBuff explorer

1 formulas listed.

CommonFun.calcBuff_812056 mapped buffs · 3 skills
function CommonFun.calcBuff_8120(srcUser, targetUser, a, b, c, d, lv)
  if srcUser == nil or targetUser == nil then
    return 0
  end
  local Luk1 = srcUser:GetProperty("Luk")
  local Luk2 = targetUser:GetProperty("Luk")
  local A = math.max((Luk1 - Luk2) * 0.1, 0) + a
  if a == 30 then
    local GemValue = srcUser:GetGemValue(205121)
    A = A + GemValue / 1000
  end
  if targetUser:GetNpcID() ~= 0 then
    A = 0
  end
  return A
end