162 switch (spellInfo->
Id)
285 switch (spellInfo->
Id)
324 targets.remove(
GetCaster()->GetVictim());
#define RegisterSpellScript(spell_script)
@ TARGET_UNIT_SRC_AREA_ENEMY
@ TRIGGERED_IGNORE_SPELL_AND_CATEGORY_CD
Will ignore GCD.
#define SpellEffectFn(F, I, N)
#define SpellObjectAreaTargetSelectFn(F, I, N)
@ EVENT_SUMMON_WATER_GLOBULES
@ SPELL_SUMMON_WATER_GLOBULE_3
@ SPELL_SUMMON_MURLOC_A10
@ SPELL_SUMMON_WATER_GLOBULE_2
@ SPELL_WATERY_GRAVE_TELEPORT_2
@ SPELL_WATERY_GRAVE_TELEPORT_3
@ SPELL_SUMMON_MURLOC_B10
@ SPELL_WATER_GLOBULE_EXPLODE
@ SPELL_WATER_GLOBULE_NEW_TARGET
@ SPELL_SUMMON_WATER_GLOBULE_4
@ SPELL_SUMMON_WATER_GLOBULE_1
@ SPELL_WATERY_GRAVE_TELEPORT_4
@ SPELL_SUMMON_WATER_GLOBULES
@ SPELL_WATERY_GRAVE_TELEPORT_1
static constexpr std::array< uint32, 6 > SummonMurlocsNorthSpells
static constexpr std::array< uint32, 4 > SummonWaterGlobulesSpells
static constexpr std::array< uint32, 6 > SummonMurlocsSouthSpells
static constexpr std::array< uint32, 4 > WateryGraveTeleportSpells
void AddSC_boss_morogrim_tidewalker()
void JustEngagedWith(Unit *who) override
void DoZoneInCombat(Creature *creature=nullptr)
void DespawnOrUnsummon(Milliseconds timeToDespawn=0s, Seconds forceRespawnTime=0s)
void Repeat(Milliseconds time)
void CancelEvent(EventId eventId)
void ScheduleEvent(EventId eventId, Milliseconds time, GroupIndex group=0u, PhaseIndex phase=0u)
static Unit * ToUnit(Object *o)
HookList< EffectHandler > OnEffectHit
Unit * GetHitUnit() const
HookList< EffectHandler > OnEffectHitTarget
HookList< ObjectAreaTargetSelectHandler > OnObjectAreaTargetSelect
TaskContext & Repeat(std::chrono::duration< _Rep, _Period > const &duration)
TaskScheduler & Schedule(std::chrono::duration< _Rep, _Period > const &time, task_handler_t const &task)
TaskScheduler & Update(success_t const &callback=EmptyCallback)
void DoMeleeAttackIfReady()
SpellCastResult DoCastSelf(uint32 spellId, CastSpellExtraArgs const &args={})
SpellCastResult DoCastVictim(uint32 spellId, CastSpellExtraArgs const &args={})
bool HasUnitState(const uint32 f) const
bool HealthBelowPctDamaged(int32 pct, uint32 damage) const
SpellCastResult CastSpell(CastSpellTargetArg const &targets, uint32 spellId, CastSpellExtraArgs const &args={ })
bool IsWithinDistInMap(WorldObject const *obj, float dist2compare, bool is3D=true, bool incOwnRadius=true, bool incTargetRadius=true) const
static bool ValidateSpellInfo(std::initializer_list< uint32 > spellIds)
bool Validate(SpellInfo const *) override
void HandleDummy(SpellEffIndex)
PrepareSpellScript(spell_morogrim_tidewalker_summon_water_globules)
void HandleDummy(SpellEffIndex)
void FilterTargets(std::list< WorldObject * > &targets)
PrepareSpellScript(spell_morogrim_tidewalker_watery_grave)
bool Validate(SpellInfo const *) override
void RandomResize(C &container, std::size_t requestedSize)
@ BOSS_MOROGRIM_TIDEWALKER
#define RegisterSerpentshrineCavernCreatureAI(ai_name)
ScriptedAI(Creature *creature)
void ResetThreatList(Unit *who=nullptr)
void AddThreat(Unit *victim, float amount, Unit *who=nullptr)
boss_morogrim_tidewalker(Creature *creature)
void JustDied(Unit *) override
void OnSpellCast(SpellInfo const *spellInfo) override
void UpdateAI(uint32 diff) override
void KilledUnit(Unit *) override
void JustEngagedWith(Unit *who) override
void JustReachedHome() override
bool _isSecondPhaseStarted
void DamageTaken(Unit *, uint32 &damage, DamageEffectType, SpellInfo const *) override
void SpellHitTarget(WorldObject *target, SpellInfo const *spellInfo) override
void JustAppeared() override
void UpdateAI(uint32 diff) override