157 switch (spellInfo->
Id)
184 if (guard->IsAlive())
273 karathress->AI()->JustSummoned(summon);
First const & RAND(First const &first, Second const &second, Rest const &... rest)
#define RegisterSpellScript(spell_script)
@ SPELL_EFFECT_SCRIPT_EFFECT
#define SpellEffectFn(F, I, N)
@ SPELL_CYCLONE_WATER_VISUAL
@ SPELL_POWER_OF_SHARKKIS
@ SPELL_CYCLONE_KNOCK_BACK
@ SPELL_POWER_OF_CARIBDIS
@ SPELL_WATER_BOLT_VOLLEY
@ SPELL_SUMMON_FATHOM_SPOREBAT
@ SPELL_POWER_OF_TIDALVESS
@ SPELL_TIDAL_SURGE_EFFECT
@ SPELL_BLESSING_OF_THE_TIDES
@ SPELL_CYCLONE_KNOCK_BACK_2
@ SPELL_POISON_CLEANSING_TOTEM
@ SPELL_CYCLONE_WATER_VISUAL_2
@ SPELL_SUMMON_FATHOM_LURKER
static constexpr std::array< uint32, 3 > FathomGuardSpawnGroupsData
void AddSC_boss_fathomlord_karathress()
@ EVENT_POISON_CLEANSING_TOTEM
@ EVENT_WATER_BOLT_VOLLEY
@ EVENT_SUMMON_FATHOM_PET
InstanceScript *const instance
void JustEngagedWith(Unit *who) override
void _DespawnAtEvade(Seconds delayToRespawn=30s, Creature *who=nullptr)
void Repeat(Milliseconds time)
void ScheduleEvent(EventId eventId, Milliseconds time, GroupIndex group=0u, PhaseIndex phase=0u)
Creature * GetCreature(uint32 type)
bool SpawnGroupSpawn(uint32 groupId, bool ignoreRespawn=false, bool force=false, std::vector< WorldObject * > *spawnedObjects=nullptr)
bool SpawnGroupDespawn(uint32 groupId, bool deleteRespawnTimes=false, size_t *count=nullptr)
static bool ValidateSpellInfo(std::initializer_list< uint32 > spellIds)
Unit * GetHitUnit() const
HookList< EffectHandler > OnEffectHitTarget
HookList< CastHandler > OnCast
void Summon(Creature const *summon)
TaskContext & Repeat(TaskScheduler::duration_t duration)
TaskScheduler & CancelAll()
TaskScheduler & Schedule(duration_t time, task_handler_t task)
TaskScheduler & Update()
Update the scheduler to the current time.
uint32 GetThreatListPlayerCount(bool includeOffline=false) const
SpellCastResult DoCastSelf(uint32 spellId, CastSpellExtraArgs const &args={})
SpellCastResult DoCastVictim(uint32 spellId, CastSpellExtraArgs const &args={})
Unit * SelectTarget(SelectTargetMethod targetType, uint32 offset=0, float dist=0.0f, bool playerOnly=false, bool withTank=true, int32 aura=0)
SpellCastResult DoCast(uint32 spellId)
ThreatManager & GetThreatManager()
bool HealthBelowPctDamaged(float pct, uint32 damage) const
bool HasUnitState(const uint32 f) const
SpellCastResult CastSpell(CastSpellTargetArg const &targets, uint32 spellId, CastSpellExtraArgs const &args={ })
bool Validate(SpellInfo const *) override
void HandleScript(SpellEffIndex)
bool Validate(SpellInfo const *) override
@ BOSS_FATHOM_LORD_KARATHRESS
#define RegisterSerpentshrineCavernCreatureAI(ai_name)
void UpdateAI(uint32 diff) override
virtual void ExecuteEvent(uint32 const eventId)=0
void JustSummoned(Creature *summon) override
FathomGuardBaseAI(Creature *creature)
InstanceScript * Instance
void DoAction(int32 action) override
void AttackStart(Unit *) override
== Triggered Actions Requested ==================
Unit * DoSelectLowestHpFriendly(float range, uint32 minHPDiff=1)
ScriptedAI(Creature *creature, uint32 scriptId=0) noexcept
void ResetThreatList(Unit *who=nullptr)
void AddThreat(Unit *victim, float amount, Unit *who=nullptr)
void ExecuteEvent(uint32 eventId) override
void JustEngagedWith(Unit *) override
void JustDied(Unit *) override
void JustDied(Unit *) override
void JustEngagedWith(Unit *) override
void ExecuteEvent(uint32 eventId) override
void JustAppeared() override
void ExecuteEvent(uint32 eventId) override
void JustDied(Unit *) override
void JustEngagedWith(Unit *) override
void KilledUnit(Unit *) override
boss_fathomlord_karathress(Creature *creature)
void UpdateAI(uint32 diff) override
void JustSummoned(Creature *summon) override
void DamageTaken(Unit *, uint32 &damage, DamageEffectType, SpellInfo const *) override
void SpellHit(WorldObject *, SpellInfo const *spellInfo) override
void JustAppeared() override
void EnterEvadeMode(EvadeReason) override
void JustEngagedWith(Unit *who) override
void JustDied(Unit *) override
void UpdateAI(uint32 diff) override
void JustAppeared() override