aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSouler <soulerhyd@gmail.com>2012-03-04 20:46:13 +0100
committerSouler <soulerhyd@gmail.com>2012-03-04 20:48:24 +0100
commitb0c70f4380fe6c3c5f7857310c63c60c05c2f851 (patch)
tree05e25039d63d35f355616dbd52d0eca6ce579dc9 /src
parent54fc5c0974b1f1edb0512dca0b0c63cd1bb4bb07 (diff)
Core/Arenas/Dalaran Sewers: Remove demonic circle on arena start and when players jump off from the pipes.
Diffstat (limited to 'src')
-rw-r--r--src/server/game/Battlegrounds/Zones/BattlegroundDS.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/server/game/Battlegrounds/Zones/BattlegroundDS.cpp b/src/server/game/Battlegrounds/Zones/BattlegroundDS.cpp
index 1d042f20384..065b08b60be 100644
--- a/src/server/game/Battlegrounds/Zones/BattlegroundDS.cpp
+++ b/src/server/game/Battlegrounds/Zones/BattlegroundDS.cpp
@@ -139,6 +139,12 @@ void BattlegroundDS::StartingEventOpenDoors()
// Turn off collision
if (GameObject* gob = GetBgMap()->GetGameObject(BgObjects[BG_DS_OBJECT_WATER_1]))
gob->SetGoState(GO_STATE_ACTIVE);
+
+ // Remove effects of Demonic Circle Summon
+ for (BattlegroundPlayerMap::const_iterator itr = GetPlayers().begin(); itr != GetPlayers().end(); ++itr)
+ if (Player* player = ObjectAccessor::FindPlayer(itr->first))
+ if (itr->HasAura(48018))
+ itr->RemoveAurasDueToSpell(48018);
}
void BattlegroundDS::AddPlayer(Player* player)
@@ -187,6 +193,10 @@ void BattlegroundDS::HandleAreaTrigger(Player* Source, uint32 Trigger)
{
case 5347:
case 5348:
+ // Remove effects of Demonic Circle Summon
+ if (Source->HasAura(48018))
+ Source->RemoveAurasDueToSpell(48018);
+
// Someone has get back into the pipes and the knockback has already been performed,
// so we reset the knockback count for kicking the player again into the arena.
if (getPipeKnockBackCount() >= BG_DS_PIPE_KNOCKBACK_TOTAL_COUNT)