Core/Utilities: Use generic templates with AddPct, ApplyPct and CalculatePct
This commit is contained in:
1 parent
f8846cdeaf
commit
380db44583
31 files changed
+321
-357
No files matched your search
@@ -112,7 +112,7 @@ class spell_pal_ardent_defender : public SpellScriptLoader
|
||||
uint32 damageToReduce = (victim->GetHealth() < allowedHealth)
|
||||
? dmgInfo.GetDamage()
|
||||
: allowedHealth - remainingHealth;
|
||||
absorbAmount = CalculatePctN(damageToReduce, absorbPct);
|
||||
absorbAmount = CalculatePct(damageToReduce, absorbPct);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user