diff options
| author | megamage <none@none> | 2008-11-22 09:51:35 -0600 |
|---|---|---|
| committer | megamage <none@none> | 2008-11-22 09:51:35 -0600 |
| commit | f29f2e63332fc7b7150c7e3186633667040c1686 (patch) | |
| tree | 1b595091bf09cbdb4eec6c04582872e564500757 /src/game/Unit.cpp | |
| parent | e5239d0170097984f0bd31f587892e1c7d8a013e (diff) | |
*Update to Mangos 6842. Source: Mangos.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Unit.cpp')
| -rw-r--r-- | src/game/Unit.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index e4a83c88093..0498c8d3711 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -9622,6 +9622,9 @@ void Unit::SetMaxHealth(uint32 val) void Unit::SetPower(Powers power, uint32 val) { + if(GetPower(power) == val) + return; + uint32 maxPower = GetMaxPower(power); if(maxPower < val) val = maxPower; |
