chore(Core/Misc): remove toxic language (#6988)

This commit is contained in:
Kitzunu
2021-07-21 23:57:20 +02:00
committed by GitHub
parent dfa890fde4
commit 9ab6ba9664
9 changed files with 16 additions and 16 deletions

View File

@@ -4359,7 +4359,7 @@ void AuraEffect::HandleAuraModIncreaseHealthPercent(AuraApplication const* aurAp
float percent = target->GetHealthPct();
target->HandleStatModifier(UNIT_MOD_HEALTH, TOTAL_PCT, float(GetAmount()), apply);
// Xinef: idiots, pct was rounded down and could "kill" creature by setting its health to 0 making npc zombie
// Xinef: pct was rounded down and could "kill" creature by setting its health to 0 making npc zombie
if (target->IsAlive())
if (uint32 healthAmount = CalculatePct(target->GetMaxHealth(), percent))
target->SetHealth(healthAmount);