323 switch (spellInfo->
Id)
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)
std::array< uint32, 5 > const SwarmerTeleportSpells
void AddSC_boss_ayamiss()
const Position AyamissGroundPos
@ SPELL_LARVA_FEAR_EFFECT
@ SPELL_LARVA_AGGRO_EFFECT
@ SPELL_SWARMER_TELEPORT_3
@ SPELL_SWARMER_TELEPORT_2
@ SPELL_SWARMER_TELEPORT_5
@ SPELL_SWARMER_TELEPORT_1
@ SPELL_SWARMER_START_LOOP
@ SPELL_SWARMER_TELEPORT_4
@ SPELL_SWARMER_TELE_TRIGGER
const Position AyamissAirPos
std::array< uint32, 3 > const SwarmerLoopSpells
const Position SwarmerPos
InstanceScript *const instance
void JustEngagedWith(Unit *who) override
void DoZoneInCombat(Creature *creature=nullptr)
void SetReactState(ReactStates st)
void DespawnOrUnsummon(Milliseconds timeToDespawn=0s, Seconds forceRespawnTime=0s)
void SetCorpseDelay(uint32 delay, bool ignoreCorpseDecayRatio=false)
void Repeat(Milliseconds time)
void CancelEvent(EventId eventId)
void ScheduleEvent(EventId eventId, Milliseconds time, GroupIndex group=0u, PhaseIndex phase=0u)
virtual ObjectGuid GetGuidData(uint32 type) const override
void MovePoint(uint32 id, Position const &pos, bool generatePath=true, Optional< float > finalOrient={})
void MoveFall(uint32 id=0)
HookList< HitHandler > AfterHit
HookList< EffectHandler > OnEffectHit
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 SetHover(bool enable, bool updateAnimTier=true)
bool SetDisableGravity(bool disable, bool updateAnimTier=true)
bool HasUnitState(const uint32 f) const
bool HealthBelowPctDamaged(int32 pct, uint32 damage) const
SpellCastResult CastSpell(CastSpellTargetArg const &targets, uint32 spellId, CastSpellExtraArgs const &args={ })
void GetRandomPoint(Position const &srcPos, float distance, float &rand_x, float &rand_y, float &rand_z) const
virtual void SetGuidData(uint32, ObjectGuid)
static bool ValidateSpellInfo(std::initializer_list< uint32 > spellIds)
PrepareSpellScript(spell_ayamiss_paralyze)
bool Validate(SpellInfo const *) override
bool Validate(SpellInfo const *) override
void HandleScript(SpellEffIndex)
PrepareSpellScript(spell_ayamiss_swarmer_start_loop)
PrepareSpellScript(spell_ayamiss_swarmer_teleport_trigger)
bool Validate(SpellInfo const *) override
void HandleScript(SpellEffIndex)
TC_GAME_API Player * GetPlayer(Map const *, ObjectGuid const &guid)
auto SelectRandomContainerElement(C const &container) -> typename std::add_const< decltype(*std::begin(container))>::type &
#define RegisterAQ20CreatureAI(ai_name)
void SetCombatMovement(bool allowMovement)
void ResetThreatList(Unit *who=nullptr)
boss_ayamiss(Creature *creature)
void DamageTaken(Unit *, uint32 &damage, DamageEffectType, SpellInfo const *) override
void UpdateAI(uint32 diff) override
void JustReachedHome() override
void JustSummoned(Creature *) override
void MovementInform(uint32 type, uint32 id) override
void JustEngagedWith(Unit *who) override
void OnSpellCast(SpellInfo const *spell) override
void JustAppeared() override
npc_hive_zara_larva(Creature *creature)
void MovementInform(uint32 type, uint32 id) override
void InitializeAI() override
InstanceScript * _instance
void JustAppeared() override
void UpdateAI(uint32) override
npc_hive_zara_swarmer(Creature *creature)
void InitializeAI() override
void SpellHit(WorldObject *, SpellInfo const *spellInfo) override