Skip to content
Browse files

Core/Arenas/Dalaran Sewers: Knockback players near the central waterf…

…all when it fully activates.
  • Loading branch information...
1 parent d70c708 commit b825573c2919af5a06b6482f3a437c0638171b92 @Souler committed Mar 2, 2012
View
5 src/server/game/Battlegrounds/Zones/BattlegroundDS.cpp
@@ -73,8 +73,11 @@ void BattlegroundDS::PostUpdateImpl(uint32 diff)
setWaterFallTimer(BG_DS_WATERFALL_WARNING_DURATION);
setWaterFallStatus(BG_DS_WATERFALL_STATUS_WARNING);
}
- else if (getWaterFallStatus() == BG_DS_WATERFALL_STATUS_WARNING) // Active collision
+ else if (getWaterFallStatus() == BG_DS_WATERFALL_STATUS_WARNING) // Active collision and perform knockback
{
+ if (Creature* waterSpout = GetBgMap()->GetCreature(BgCreatures[BG_DS_NPC_WATERFALL_KNOCKBACK]))
+ waterSpout->CastSpell(waterSpout, BG_DS_SPELL_WATER_SPOUT, true);
+
if (GameObject* gob = GetBgMap()->GetGameObject(BgObjects[BG_DS_OBJECT_WATER_1]))
gob->SetGoState(GO_STATE_READY);
View
1 src/server/game/Battlegrounds/Zones/BattlegroundDS.h
@@ -59,6 +59,7 @@ enum BattlegroundDSSpells
{
BG_DS_SPELL_FLUSH = 57405, // Visual and target selector for the starting knockback from the pipe
BG_DS_SPELL_FLUSH_KNOCKBACK = 61698, // Knockback effect for previous spell (triggered, not need to be casted)
+ BG_DS_SPELL_WATER_SPOUT = 58873, // Knockback effect of the central waterfall
};
enum BattlegroundDSData

0 comments on commit b825573

Please sign in to comment.
Something went wrong with that request. Please try again.