[12703] Fix spell 61254

* Also rearrange code for Aura::HandleAuraModIncreaseHealth
* Fix some behaviour with SetHealth/SetPower if set to max health/power (original author @Schmoozerd)
This commit is contained in:
sanctum32 2013-10-21 10:05:40 +03:00 committed by Antz
parent 9775f0bd8c
commit 1b9c1a44ee
3 changed files with 19 additions and 14 deletions

View file

@ -8394,7 +8394,7 @@ int32 Unit::ModifyHealth(int32 dVal)
SetHealth(val);
gain = val - curHealth;
}
else if (curHealth != maxHealth)
else
{
SetHealth(maxHealth);
gain = maxHealth - curHealth;
@ -8426,7 +8426,7 @@ int32 Unit::ModifyPower(Powers power, int32 dVal)
SetPower(power, val);
gain = val - curPower;
}
else if (curPower != maxPower)
else
{
SetPower(power, maxPower);
gain = maxPower - curPower;