uint32 urand(uint32 min, uint32 max)
#define RegisterSpellScript(spell_script)
@ SPELL_SPAWN_HATCHLING_2
@ SPELL_SPAWN_HATCHLING_3
@ SPELL_SPAWN_HATCHLING_1
void AddSC_boss_fankriss()
void JustEngagedWith(Unit *who) override
void Repeat(Milliseconds time)
void ScheduleEvent(EventId eventId, Milliseconds time, GroupIndex group=0u, PhaseIndex phase=0u)
HookList< CastHandler > AfterCast
SpellInfo const * GetSpellInfo() const
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)
bool HasUnitState(const uint32 f) const
SpellCastResult CastSpell(CastSpellTargetArg const &targets, uint32 spellId, CastSpellExtraArgs const &args={ })
static bool ValidateSpellInfo(std::initializer_list< uint32 > spellIds)
PrepareSpellScript(spell_fankriss_entangle)
bool Validate(SpellInfo const *) override
void RandomShuffle(C &container)
Reorder the elements of the container randomly.
std::vector< uint32 > SummonWormSpells
void UpdateAI(uint32 diff) override
std::vector< uint32 > EntangleSpells
void JustEngagedWith(Unit *who) override
boss_fankriss(Creature *creature)
#define RegisterAQ40CreatureAI(ai_name)