From 202cb07f63076da1d68c2d991ac5ec30842ab368 Mon Sep 17 00:00:00 2001 From: maximius Date: Sat, 29 Aug 2009 13:35:41 -0700 Subject: *Disable changing specs in Battlegrounds unless you have Preparation buff. --HG-- branch : trunk --- src/game/Player.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') 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(); -- cgit v1.2.3