Core/Spells: Move hacky check for spec changing to its correct location

--HG--
branch : trunk
This commit is contained in:
Shocker
2010-10-16 17:44:42 +03:00
parent 60fea600bc
commit c2295e86be
2 changed files with 8 additions and 5 deletions
@@ -24059,11 +24059,6 @@ void Player::ActivateSpec(uint8 spec)
if (spec > GetSpecsCount())
return;
// TODO:
// HACK: this shouldn't be checked at such a low level function but rather at the moment the spell is casted
if (GetMap()->IsBattleground() && !HasAura(44521)) // In Battleground with no Preparation buff
return;
if (IsNonMeleeSpellCasted(false))
InterruptNonMeleeSpells(false);