Formula
CommonFun.calcBuff_4320
function CommonFun.calcBuff_4320(srcUser, targetUser, a, b, c, d, lv)
if srcUser == nil or targetUser == nil then
return 0
end
local StunAtk = srcUser:GetProperty("StunAtk")
local StunDef2 = targetUser:GetProperty("StunDef")
local StunDam = 1 + StunAtk - StunDef2
if StunDam <= 0 then
StunDam = 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 StateEffect = targetUser:GetProperty("StateEffect")
local bits = CommonFun.getBits(StateEffect)
local Profession = srcUser:GetProfressionID()
if bits[CommonFun.StateEffect.Poison] == 1 and (Profession == 32_ASSASSIN or Profession == 33_ASSASSIN_CROSS or Profession == 34_GUILLOTINE_CROSS or Profession == 35_BLADE_SOUL) then
b = 5
end
local A = b * StunDam * StateDam * CommonFun.calcAttrDizzyRate(srcUser, targetUser)
if A <= 0 then
return 0
end
return A
end