69 return object->GetDistance2d(
me) >= 5.0f;
298 trigger->CastSpell(trigger, spell,
true);
uint32 urand(uint32 min, uint32 max)
#define RegisterSpellScript(spell_script)
@ SPELL_EFFECT_SCRIPT_EFFECT
@ SPELL_AURA_PERIODIC_DUMMY
#define SpellEffectFn(F, I, N)
#define AuraEffectPeriodicFn(F, I, N)
@ SPELL_SUMMON_CRYSTAL_SPIKE_2_H
@ SPELL_SUMMON_CRYSTAL_SPIKE_1_H
@ SPELL_SUMMON_CRYSTAL_SPIKE_2
@ SPELL_SUMMON_CRYSTAL_SPIKE_3
@ SPELL_SUMMON_CRYSTAL_SPIKE_1
@ SPELL_SUMMON_CRYSTAL_SPIKE_4
@ SPELL_SUMMON_CRYSTAL_SPIKE_3_H
@ SPELL_SUMMON_CRYSTAL_SPIKE_4_H
@ SPELL_SUMMON_CRYSTALLINE_TANGLER
std::array< uint32, 4 > const SummonSpells
void AddSC_boss_ormorok()
uint32 const crystalSpikeSummon[3]
@ NPC_CRYSTAL_SPIKE_INITIAL
@ SPELL_CRYSTAL_SPIKE_AURA
@ NPC_CRYSTAL_SPIKE_TRIGGER
@ SPELL_CRYSTAL_SPIKE_DAMAGE
@ EVENT_CRYSTALLINE_TANGLER
std::array< uint32, 4 > const SummonSpellsHeroic
HookList< EffectPeriodicHandler > OnEffectPeriodic
void JustEngagedWith(Unit *who) override
void Talk(uint8 id, WorldObject const *whisperTarget=nullptr)
void DespawnOrUnsummon(Milliseconds timeToDespawn=0s, Seconds forceRespawnTime=0s)
void ScheduleEvent(uint32 eventId, Milliseconds time, uint32 group=0, uint8 phase=0)
static Creature * ToCreature(Object *o)
bool operator()(WorldObject *object) const
OrmorokTanglerPredicate(Unit *unit)
static bool ValidateSpellInfo(std::initializer_list< uint32 > spellIds)
HookList< EffectHandler > OnEffectHit
Unit * SelectTarget(SelectTargetMethod targetType, uint32 offset=0, float dist=0.0f, bool playerOnly=false, bool withTank=true, int32 aura=0)
SpellCastResult DoCast(uint32 spellId)
void SetFacingToObject(WorldObject const *object, bool force=true)
bool HasUnitState(const uint32 f) const
GameObject * FindNearestGameObject(uint32 entry, float range, bool spawnedOnly=true) const
SpellCastResult CastSpell(CastSpellTargetArg const &targets, uint32 spellId, CastSpellExtraArgs const &args={ })
void HandlePeriodic(AuraEffect const *)
void HandleScript(SpellEffIndex)
bool Validate(SpellInfo const *) override
#define RegisterNexusCreatureAI(ai_name)
bool HealthBelowPct(uint32 pct) const
void UpdateAI(uint32 diff) override
void JustEngagedWith(Unit *who) override
void KilledUnit(Unit *who) override
boss_ormorok(Creature *creature)
void DamageTaken(Unit *, uint32 &, DamageEffectType, SpellInfo const *) override
void JustDied(Unit *) override
void UpdateAI(uint32 diff) override
uint32 GetData(uint32 type) const override
npc_crystal_spike_trigger(Creature *creature)
void IsSummonedBy(WorldObject *owner) override