CommonFun.calcBuff_170210 mapped buffs · 23 skills
function CommonFun.calcBuff_170(srcUser, targetUser, a, b, c, d, lv)
if srcUser == nil or targetUser == nil then
return 0
end
local ChaosAtk = srcUser:GetProperty("ChaosAtk")
local ChaosDef2 = targetUser:GetProperty("ChaosDef")
local ChaosDam = 1 + ChaosAtk - ChaosDef2
if ChaosDam <= 0 then
ChaosDam = 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) * ChaosDam * StateDam * CommonFun.calcAttrFearRate(srcUser, targetUser)
if A <= 0 then
return 0
end
return A
end
CommonFun.calcBuff_17000 mapped uses
function CommonFun.calcBuff_1700(srcUser, targetUser, a, b, c, d, lv)
if srcUser == nil or targetUser == nil then
return 0
end
local ChaosAtk = srcUser:GetProperty("ChaosAtk")
local ChaosDef2 = targetUser:GetProperty("ChaosDef")
local ChaosDam = 1 + ChaosAtk - ChaosDef2
if ChaosDam <= 0 then
ChaosDam = 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) * ChaosDam * StateDam * CommonFun.calcAttrFearTime(srcUser, targetUser)
if A <= 0 then
return 0
end
return A
end
CommonFun.calcBuff_17010 mapped uses
function CommonFun.calcBuff_1701(srcUser, targetUser, a, b, c, d, lv)
if srcUser == nil or targetUser == nil then
return 0
end
local Num1 = srcUser:GetRunePoint(94030)
local A = Num1
if A <= 0 then
return 0
end
return A
end