CommonFun

calcDamage / calcBuff explorer

3 formulas listed.

CommonFun.calcBuff_160126 mapped buffs · 15 skills
function CommonFun.calcBuff_160(srcUser, targetUser, a, b, c, d, lv)
  if srcUser == nil or targetUser == nil then
    return 0
  end
  local SlowAtk = srcUser:GetProperty("SlowAtk")
  local SlowDef2 = targetUser:GetProperty("SlowDef")
  local SlowDam = 1 + SlowAtk - SlowDef2
  if SlowDam <= 0 then
    SlowDam = 0
  end
  local StateAtk = srcUser:GetProperty("StateAtk")
  local StateDef2 = targetUser:GetProperty("StateDef")
  local StateDam = 1 + StateAtk - StateDef2
  if StateDam <= 0 then
    StateDam = 0
  end
  local A = (lv * a + b) * SlowDam * StateDam * CommonFun.calcAttrSlowRate(srcUser, targetUser)
  if A <= 0 then
    return 0
  end
  return A
end
CommonFun.calcBuff_16000 mapped uses
function CommonFun.calcBuff_1600(srcUser, targetUser, a, b, c, d, lv)
  if srcUser == nil or targetUser == nil then
    return 0
  end
  local SlowAtk = srcUser:GetProperty("SlowAtk")
  local SlowDef2 = targetUser:GetProperty("SlowDef")
  local SlowDam = 1 + SlowAtk - SlowDef2
  if SlowDam <= 0 then
    SlowDam = 0
  end
  local StateAtk = srcUser:GetProperty("StateAtk")
  local StateDef2 = targetUser:GetProperty("StateDef")
  local StateDam = 1 + StateAtk - StateDef2
  if StateDam <= 0 then
    StateDam = 0
  end
  local A = (lv * a + b) * SlowDam * StateDam * CommonFun.calcAttrSlowTime(srcUser, targetUser)
  if A <= 0 then
    return 0
  end
  return A
end
CommonFun.calcBuff_16010 mapped uses
function CommonFun.calcBuff_1601(srcUser, targetUser, a, b, c, d, lv)
  if srcUser == nil or targetUser == nil then
    return 0
  end
  local SlowAtk = srcUser:GetProperty("SlowAtk")
  local SlowDef2 = targetUser:GetProperty("SlowDef")
  local SlowDam = 1 + SlowAtk - SlowDef2
  if SlowDam <= 0 then
    SlowDam = 0
  end
  local StateAtk = srcUser:GetProperty("StateAtk")
  local StateDef2 = targetUser:GetProperty("StateDef")
  local StateDam = 1 + StateAtk - StateDef2
  if StateDam <= 0 then
    StateDam = 0
  end
  local Num = srcUser:GetRunePoint(153022)
  local skilllv = srcUser:GetLernedSkillLevel(1613)
  local A = (skilllv * a + b + Num) * SlowDam * StateDam * CommonFun.calcAttrSlowTime(srcUser, targetUser)
  if A <= 0 then
    return 0
  end
  return A
end