Core/Arenas/Dalaran Sewers: Knockback players near the central waterfall when it fully activates.
This commit is contained in:
@@ -73,8 +73,11 @@ void BattlegroundDS::PostUpdateImpl(uint32 diff)
|
|||||||
setWaterFallTimer(BG_DS_WATERFALL_WARNING_DURATION);
|
setWaterFallTimer(BG_DS_WATERFALL_WARNING_DURATION);
|
||||||
setWaterFallStatus(BG_DS_WATERFALL_STATUS_WARNING);
|
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]))
|
if (GameObject* gob = GetBgMap()->GetGameObject(BgObjects[BG_DS_OBJECT_WATER_1]))
|
||||||
gob->SetGoState(GO_STATE_READY);
|
gob->SetGoState(GO_STATE_READY);
|
||||||
|
|
||||||
|
|||||||
@@ -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 = 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_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
|
enum BattlegroundDSData
|
||||||
|
|||||||
Reference in New Issue
Block a user