aboutsummaryrefslogtreecommitdiff
path: root/src/game/Player.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/Player.cpp')
-rw-r--r--src/game/Player.cpp3
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);