142 if (advisor && !advisor->
IsAlive())
177 bool canPerformEmote =
true;
181 if (advisor && advisor->
IsAlive())
188 canPerformEmote =
false;
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
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 DoZoneInCombat(Creature *creature=nullptr)
void Respawn(bool force=false)
void Repeat(Milliseconds time)
void ScheduleEvent(EventId eventId, Milliseconds time, GroupIndex group=0u, PhaseIndex phase=0u)
virtual ObjectGuid GetGuidData(uint32 type) const override
void MoveChase(Unit *target, Optional< ChaseRange > dist={}, Optional< ChaseAngle > angle={})
Unit * GetHitUnit() const
HookList< EffectHandler > OnEffectHitTarget
HookList< CastHandler > OnCast
TaskContext & Repeat(std::chrono::duration< _Rep, _Period > const &duration)
TaskScheduler & CancelAll()
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={})
Unit * SelectTarget(SelectTargetMethod targetType, uint32 offset=0, float dist=0.0f, bool playerOnly=false, bool withTank=true, int32 aura=0)
SpellCastResult DoCast(uint32 spellId)
MotionMaster * GetMotionMaster()
bool HasUnitState(const uint32 f) const
bool HealthBelowPctDamaged(int32 pct, uint32 damage) const
SpellCastResult CastSpell(CastSpellTargetArg const &targets, uint32 spellId, CastSpellExtraArgs const &args={ })
static bool ValidateSpellInfo(std::initializer_list< uint32 > spellIds)
bool Validate(SpellInfo const *) override
PrepareSpellScript(spell_fathomlord_karathress_the_beast_within)
void HandleScript(SpellEffIndex)
PrepareSpellScript(spell_fathomlord_karathress_tidal_surge)
bool Validate(SpellInfo const *) override
TC_GAME_API Creature * GetCreature(WorldObject const &u, ObjectGuid const &guid)
@ BOSS_FATHOM_LORD_KARATHRESS
#define RegisterSerpentshrineCavernCreatureAI(ai_name)
Unit * DoSelectLowestHpFriendly(float range, uint32 minHPDiff=1)
void ResetThreatList(Unit *who=nullptr)
void AddThreat(Unit *victim, float amount, Unit *who=nullptr)
void JustEngagedWith(Unit *) override
boss_fathomguard_caribdis(Creature *creature)
void JustDied(Unit *) override
void UpdateAI(uint32 diff) override
void JustDied(Unit *) override
void JustEngagedWith(Unit *) override
void UpdateAI(uint32 diff) override
boss_fathomguard_sharkkis(Creature *creature)
void JustDied(Unit *) override
boss_fathomguard_tidalvess(Creature *creature)
void JustEngagedWith(Unit *) override
void UpdateAI(uint32 diff) override
void KilledUnit(Unit *) override
ObjectGuid _advisors[MAX_ADVISORS]
boss_fathomlord_karathress(Creature *creature)
void UpdateAI(uint32 diff) override
void DamageTaken(Unit *, uint32 &damage, DamageEffectType, SpellInfo const *) override
void SpellHit(WorldObject *, SpellInfo const *spellInfo) override
void JustEngagedWith(Unit *who) override
void JustDied(Unit *) override
void UpdateAI(uint32 diff) override
void JustAppeared() override
npc_fathomlord_karathress_cyclone(Creature *creature)