Formula
CommonFun.calcBuff_8990
function CommonFun.calcBuff_8990(srcUser, targetUser, a, b, c, d, lv)
if srcUser == nil or targetUser == nil then
return 0
end
local MaxHp = targetUser:GetProperty("MaxHp")
local PoisonAtk = srcUser:GetProperty("PoisonAtk")
local PoisoningAtk = srcUser:GetProperty("PoisoningAtk")
local StateAtk = srcUser:GetProperty("StateAtk")
local skilllv_1 = srcUser:GetLernedSkillLevel(3925_DIVINE_AVENGER:SOUL_EROSION_POISONOUS_SOUL)
local duhun = 1
if 1 <= skilllv_1 and targetUser:GetNpcID() ~= 0 then
duhun = (PoisonAtk + PoisoningAtk + StateAtk) / 5 * (0.1 * skilllv_1 + 0.3) + 1
end
local A = a * duhun * MaxHp
local B = a * duhun
A = CommonFun.calcBuff_6(srcUser, targetUser, B, b, c, d, lv)
return A
end