Formula
CommonFun.calcBuff_7730
function CommonFun.calcBuff_7730(srcUser, targetUser, a, b, c, d, lv)
if srcUser == nil or targetUser == nil then
return 0
end
local Hp = srcUser:GetProperty("Hp")
local Hp2 = targetUser:GetProperty("Hp")
local skilllv = srcUser:GetLernedSkillLevel(2426_PRIEST:UNIVERSE_FUSION)
local Value = srcUser:GetGemValue(193001_UNIVERSE_FUSION_INCREASES_THE_ENEMY_S_HP_LOSS_BY_PERCENTAGE)
local A = 0
if a == 1 and b == 0 then
A = -Hp * skilllv * c
end
if a == 0 and b == 1 then
A = -Hp2 * skilllv * c * (1 + Value / 100000)
end
if targetUser:GetNpcID() ~= 0 then
A = 0
end
return A
end