diff options
author | QAston <none@none> | 2009-08-17 16:57:36 +0200 |
---|---|---|
committer | QAston <none@none> | 2009-08-17 16:57:36 +0200 |
commit | 5047eb7a6265d2bf496ef22d7c9a6b30fa21d466 (patch) | |
tree | aacd8163b4f23f68f4204f7589048f77edecfb1e /src/game/Player.cpp | |
parent | b8993423b5bad734c1ff7d30eb387686fb6c208d (diff) |
*Implement aura type SPELL_AURA_PREVENT_REGENERATE_POWER(294).
--HG--
branch : trunk
Diffstat (limited to 'src/game/Player.cpp')
-rw-r--r-- | src/game/Player.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/game/Player.cpp b/src/game/Player.cpp index e7630948d1d..45b9677347c 100644 --- a/src/game/Player.cpp +++ b/src/game/Player.cpp @@ -2041,6 +2041,9 @@ void Player::RegenerateAll() void Player::Regenerate(Powers power) { + // TODO: possible use of miscvalueb instead of amount + if (HasAuraTypeWithValue(SPELL_AURA_PREVENT_REGENERATE_POWER, power)) + return; uint32 curValue = GetPower(power); uint32 maxValue = GetMaxPower(power); |