Core/Spells: minor cleanup for ad175f11f6

This commit is contained in:
Ovahlord committed 2021-02-27 00:17:01 +01:00
1 parent ad175f11f6
commit 14cf32da88
1 file changed
+2 -3
+2 -3
View File
@@ -7436,14 +7436,13 @@ float Unit::SpellHealingPctDone(Unit* victim, SpellInfo const* spellProto) const
}
}
float healthPctDiff = 100.0f - victim->GetHealthPct();
float healthPctDiff = 100.f - victim->GetHealthPct();
for (AuraEffect const* healingDonePctVsTargetHealth : owner->GetAuraEffectsByType(SPELL_AURA_MOD_HEALING_DONE_PCT_VERSUS_TARGET_HEALTH))
{
if (!healingDonePctVsTargetHealth->IsAffectingSpell(spellProto))
continue;
uint32 maxBonus = healingDonePctVsTargetHealth->GetAmount();
AddPct(DoneTotalMod, CalculatePct(maxBonus, healthPctDiff));
AddPct(DoneTotalMod, CalculatePct(float(healingDonePctVsTargetHealth->GetAmount()), healthPctDiff));
}
return DoneTotalMod;