217 switch (spellInfo->
Id)
317 std::vector<Player*> playerList;
319 for (
Player* player : playerList)
321 if (player->IsNonMeleeSpellCast(
false))
364 DoCastSelf(SPELL_SPIRIT_CHANNEL);
368 DoCastSelf(SPELL_SPIRIT_EFFECT, true);
453 std::vector<Player*> playerList;
458 for (
Player* player : playerList)
#define RegisterSpellScript(spell_script)
void GetPlayerListInGrid(Container &container, WorldObject *source, float maxSearchRange, bool alive=true)
@ SPELL_EFFECT_SCRIPT_EFFECT
#define SpellEffectFn(F, I, N)
void AddSC_boss_halazzi()
@ SPELL_TRANSFORM_MAX_HEALTH
@ SPELL_SUMMON_SPIRIT_LYNX
@ SPELL_TRANSFORM_25_HEALTH
@ SPELL_TRANSFORM_75_HEALTH
@ SPELL_TRANSFORM_50_HEALTH
void JustEngagedWith(Unit *who) override
void DoZoneInCombat(Creature *creature=nullptr)
virtual void EnterEvadeMode(EvadeReason why=EVADE_REASON_OTHER)
void SetReactState(ReactStates st)
void DespawnOrUnsummon(Milliseconds timeToDespawn=0s, Seconds forceRespawnTime=0s)
bool UpdateEntry(uint32 entry, CreatureData const *data=nullptr, bool updateLevel=true)
void SetCanDualWield(bool value) override
void Repeat(Milliseconds time)
bool IsInPhase(PhaseIndex phase) const
void RescheduleEvent(EventId eventId, Milliseconds time, GroupIndex group=0u, PhaseIndex phase=0u)
void CancelEvent(EventId eventId)
void SetPhase(PhaseIndex phase)
void ScheduleEvent(EventId eventId, Milliseconds time, GroupIndex group=0u, PhaseIndex phase=0u)
Creature * GetCreature(uint32 type)
HookList< EffectHandler > OnEffectHit
int32 GetEffectValue() const
TaskContext & Repeat(std::chrono::duration< _Rep, _Period > const &duration)
TaskScheduler::repeated_t GetRepeatCounter() const
Returns the repeat counter which increases every time the task is repeated.
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)
void SetHealth(uint32 val)
bool HasUnitState(const uint32 f) const
bool HealthBelowPctDamaged(int32 pct, uint32 damage) const
Creature * FindNearestCreature(uint32 entry, float range, bool alive=true) const
PrepareSpellScript(spell_halazzi_set_health)
void HandleScript(SpellEffIndex)
void RandomResize(C &container, std::size_t requestedSize)
ScriptedAI(Creature *creature)
void DoAction(int32 action) override
void JustEngagedWith(Unit *who) override
void JustDied(Unit *) override
void PerformAdditionalEvents()
void EnterEvadeMode(EvadeReason why) override
void KilledUnit(Unit *) override
void OnSpellCast(SpellInfo const *spellInfo) override
boss_halazzi(Creature *creature)
void DamageTaken(Unit *, uint32 &damage, DamageEffectType, SpellInfo const *) override
void UpdateAI(uint32 diff) override
void InitializeAI() override
void UpdateAI(uint32 diff) override
void JustAppeared() override
void JustEngagedWith(Unit *) override
void JustAppeared() override
void DoAction(int32 action) override
InstanceScript * _instance
void UpdateAI(uint32 diff) override
npc_spirit_of_the_lynx(Creature *creature)
bool _hasReachedLowHealth
void DamageTaken(Unit *, uint32 &damage, DamageEffectType, SpellInfo const *) override
#define RegisterZulAmanCreatureAI(ai_name)