diff options
author | Nay <dnpd.dd@gmail.com> | 2011-09-06 21:20:14 +0100 |
---|---|---|
committer | Nay <dnpd.dd@gmail.com> | 2011-09-06 21:20:14 +0100 |
commit | 152f446c60ff7c38eb7ac24eb26907453710f822 (patch) | |
tree | 2adb9a60a5d9b2d4eaefab04e5882dc4c38e3d43 /src | |
parent | 990ab77b82dff734ba3cb9630571941e725c1267 (diff) |
DB/BGs: Fix capturing of Snowball GY - AV
Counter-hack a hack with a hack. Closes #222
Diffstat (limited to 'src')
-rwxr-xr-x | src/server/game/Spells/SpellEffects.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/server/game/Spells/SpellEffects.cpp b/src/server/game/Spells/SpellEffects.cpp index d1aee5b884e..a917bb9a156 100755 --- a/src/server/game/Spells/SpellEffects.cpp +++ b/src/server/game/Spells/SpellEffects.cpp @@ -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) { |