CommonFun.calcBuff_140236 mapped buffs · 22 skills
function CommonFun.calcBuff_140(srcUser, targetUser, a, b, c, d, lv)
if srcUser == nil or targetUser == nil then
return 0
end
local BlindAtk = srcUser:GetProperty("BlindAtk")
local BlindDef2 = targetUser:GetProperty("BlindDef")
local BlindDam = 1 + BlindAtk - BlindDef2
if BlindDam <= 0 then
BlindDam = 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) * BlindDam * StateDam * CommonFun.calcAttrBurnRate(srcUser, targetUser)
if A <= 0 then
return 0
end
return A
end