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
@@ -1236,7 +1236,7 @@ class spell_gen_lifeblood : public SpellScriptLoader
|
||||
void CalculateAmount(AuraEffect const* aurEff, int32& amount, bool& /*canBeRecalculated*/)
|
||||
{
|
||||
if (Unit* owner = GetUnitOwner())
|
||||
amount += int32(CalculatePctF(owner->GetMaxHealth(), 1.5f / aurEff->GetTotalTicks()));
|
||||
amount += int32(CalculatePct(owner->GetMaxHealth(), 1.5f / aurEff->GetTotalTicks()));
|
||||
}
|
||||
|
||||
void Register()
|
||||
|
||||
Reference in new issue
Block a user