aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSouler <soulerhyd@gmail.com>2012-02-28 11:27:46 +0100
committerSouler <soulerhyd@gmail.com>2012-03-02 17:20:46 +0100
commitd70c708093e602da35ede43874adf407aa080110 (patch)
tree6ce7458a8dcddb6ccdc5f0bdf740783081476a0e
parentc119c0ce13ab85e775ff399f7e28a38d72ac4e45 (diff)
Core/Arenas/Dalaran Sewers: Reset the knockback effect if someone manages to get back to the starting pipes.
-rw-r--r--src/server/game/Battlegrounds/Zones/BattlegroundDS.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/server/game/Battlegrounds/Zones/BattlegroundDS.cpp b/src/server/game/Battlegrounds/Zones/BattlegroundDS.cpp
index aec828ef62f..cb0f6ac6cd7 100644
--- a/src/server/game/Battlegrounds/Zones/BattlegroundDS.cpp
+++ b/src/server/game/Battlegrounds/Zones/BattlegroundDS.cpp
@@ -170,6 +170,10 @@ void BattlegroundDS::HandleAreaTrigger(Player* Source, uint32 Trigger)
{
case 5347:
case 5348:
+ // 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)
+ setPipeKnockBackCount(0);
break;
default:
sLog->outError("WARNING: Unhandled AreaTrigger in Battleground: %u", Trigger);