aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormaximius <none@none>2009-08-29 13:35:41 -0700
committermaximius <none@none>2009-08-29 13:35:41 -0700
commit202cb07f63076da1d68c2d991ac5ec30842ab368 (patch)
tree0c8cf897eedc5055563a3a9949cf7df1d028d57a /src
parent927b96ed90f2c5223256c9ecdf0d5913a93e11b1 (diff)
*Disable changing specs in Battlegrounds unless you have Preparation buff.
--HG-- branch : trunk
Diffstat (limited to 'src')
-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 3522e70392f..baaf2cced1f 100644
--- a/src/game/Player.cpp
+++ b/src/game/Player.cpp
@@ -21873,6 +21873,9 @@ void Player::ActivateSpec(uint8 spec)
if(GetSpecsCount() != MAX_TALENT_SPECS)
return;
+ if(GetMap()->IsBattleGround() && !HasAura(45521)) // In BattleGround with no Preparation buff
+ return;
+
_SaveActions();
UnsummonPetTemporaryIfAny();