Formula Source
function CommonFun.CalcBossParam(srcUser, targetUser, params, damageParam, logger) local bossInc = 0 local NpcDamPer = 0 local MonsterDamPer = 0 local NpcResPer = 0 if targetUser:GetNpcID() == 0 then NpcDamPer = srcUser:GetProperty("NpcDamPer") NpcResPer = targetUser:GetProperty("NpcResPer") end if targetUser.boss or targetUser.mini then bossInc = srcUser:GetProperty("BossDamPer") end if targetUser.boss == false and targetUser.mini == false and targetUser:GetNpcID() ~= 0 then MonsterDamPer = srcUser:GetProperty("MonsterDamPer") end local A = (1 + bossInc) * (1 + NpcDamPer - NpcResPer) * (1 + MonsterDamPer) if A <= 0.15 then A = 0.15 end return A end
No formula links