156 std::list<uint8> summonSpells = { 0, 1, 2 };
160 summonSpells.remove(spell);
222 if (me->IsWithinDist(xevozz, 3.0f))
224 DoCastAOE(SPELL_ARCANE_POWER);
225 me->DespawnOrUnsummon(8s);
std::chrono::milliseconds Milliseconds
Milliseconds shorthand typedef.
#define RegisterSpellScript(spell_script)
#define SpellEffectFn(F, I, N)
@ SAY_ETHEREAL_SPHERE_SUMMON
@ SPELL_ARCANE_BARRAGE_VOLLEY
@ SPELL_SUMMON_TARGET_VISUAL
static uint32 const EtherealSphereCount
@ NPC_ETHEREAL_SUMMON_TARGET
static uint32 const EtherealSphereSummonSpells[EtherealSphereCount]
@ SPELL_POWER_BALL_DAMAGE_TRIGGER
@ SPELL_POWER_BALL_VISUAL
static uint32 const EtherealSphereHeroicSummonSpells[EtherealSphereCount]
InstanceScript *const instance
void JustEngagedWith(Unit *who) override
void JustSummoned(Creature *summon) override
void JustReachedHome() override
void DespawnOrUnsummon(Milliseconds timeToDespawn=0s, Seconds forceRespawnTime=0s)
Creature * GetCreature(uint32 type)
void MoveFollow(Unit *target, float dist, ChaseAngle angle, MovementSlot slot=MOTION_SLOT_ACTIVE)
Unit * GetHitUnit() const
HookList< EffectHandler > OnEffectHitTarget
void DoAction(int32 info, Predicate &&predicate, uint16 max=0)
TaskContext & Repeat(std::chrono::duration< _Rep, _Period > const &duration)
TaskContext & Schedule(std::chrono::duration< _Rep, _Period > const &time, TaskScheduler::task_handler_t const &task)
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()
Unit * SelectTarget(SelectTargetMethod targetType, uint32 offset=0, float dist=0.0f, bool playerOnly=false, bool withTank=true, int32 aura=0)
SpellCastResult DoCastAOE(uint32 spellId, CastSpellExtraArgs const &args={})
SpellCastResult DoCast(uint32 spellId)
MotionMaster * GetMotionMaster()
InstanceScript * GetInstanceScript() const
SpellCastResult CastSpell(CastSpellTargetArg const &targets, uint32 spellId, CastSpellExtraArgs const &args={ })
virtual void SetData(uint32, uint32)
static bool ValidateSpellInfo(std::initializer_list< uint32 > spellIds)
void HandleScript(SpellEffIndex)
PrepareSpellScript(spell_xevozz_summon_players)
bool Validate(SpellInfo const *) override
auto SelectRandomContainerElement(C const &container) -> typename std::add_const< decltype(*std::begin(container))>::type &
void JustSummoned(Creature *summon) override
void JustReachedHome() override
void UpdateAI(uint32 diff) override
void JustDied(Unit *) override
void SpellHit(WorldObject *, SpellInfo const *spellInfo) override
boss_xevozz(Creature *creature)
void KilledUnit(Unit *victim) override
void JustEngagedWith(Unit *who) override
void ScheduleTasks() override
void UpdateAI(uint32 diff) override
npc_ethereal_sphere(Creature *creature)
InstanceScript * instance
void DoAction(int32 action) override
#define RegisterVioletHoldCreatureAI(ai_name)