mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
[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:
parent
9775f0bd8c
commit
1b9c1a44ee
3 changed files with 19 additions and 14 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue