mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-18 03:15:41 +00:00
fix(Scripts/Hyjal): Implement Eternal Silence spell when going into t… (#18960)
fix(Scripts/Hyjal): Implement Eternal Silence spell when going into the Well of Eternity
This commit is contained in:
@@ -144,7 +144,11 @@ enum HyjalMisc
|
||||
START_WAVE_HORDE_RETREAT = 39,
|
||||
START_WAVE_NIGHT_ELF = 42,
|
||||
|
||||
CONTEXT_GROUP_WAVES = 1
|
||||
CONTEXT_GROUP_WAVES = 1,
|
||||
|
||||
AREA_NORDRASSIL = 3710,
|
||||
|
||||
SPELL_ETERNAL_SILENCE = 42201
|
||||
};
|
||||
|
||||
enum HyjalPaths
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
#include "InstanceMapScript.h"
|
||||
#include "InstanceScript.h"
|
||||
#include "Opcodes.h"
|
||||
#include "Player.h"
|
||||
#include "WorldPacket.h"
|
||||
#include "hyjal.h"
|
||||
|
||||
@@ -530,6 +531,14 @@ public:
|
||||
_scheduler.Update(diff);
|
||||
}
|
||||
|
||||
void OnPlayerInWaterStateUpdate(Player* player, bool inWater) override
|
||||
{
|
||||
if (inWater && player->GetAreaId() == AREA_NORDRASSIL)
|
||||
{
|
||||
player->CastSpell(player, SPELL_ETERNAL_SILENCE, true);
|
||||
}
|
||||
}
|
||||
|
||||
protected:
|
||||
int32 trash;
|
||||
uint8 _currentWave;
|
||||
|
||||
Reference in New Issue
Block a user