DB/BGs: Fix capturing of Snowball GY - AV

Counter-hack a hack with a hack. Closes #222
This commit is contained in:
Nay
2011-09-06 21:20:14 +01:00
parent 990ab77b82
commit 152f446c60
2 changed files with 10 additions and 5 deletions
+5 -5
View File
@@ -2725,17 +2725,17 @@ void Spell::EffectOpenLock(SpellEffIndex effIndex)
if (gameObjTarget)
{
GameObjectTemplate const* goInfo = gameObjTarget->GetGOInfo();
// Arathi Basin banner opening !
// Arathi Basin banner opening. // TODO: Verify correctness of this check
if ((goInfo->type == GAMEOBJECT_TYPE_BUTTON && goInfo->button.noDamageImmune) ||
(goInfo->type == GAMEOBJECT_TYPE_GOOBER && goInfo->goober.losOK))
{
//CanUseBattlegroundObject() already called in CheckCast()
// in battleground check
if (Battleground *bg = player->GetBattleground())
{
bg->EventPlayerClickedOnFlag(player, gameObjTarget);
return;
}
{
bg->EventPlayerClickedOnFlag(player, gameObjTarget);
return;
}
}
else if (goInfo->type == GAMEOBJECT_TYPE_FLAGSTAND)
{