311 return "KelidansShadowmoonChanneler4";
313 return "KelidansShadowmoonChanneler3";
315 return "KelidansShadowmoonChanneler5";
317 return "KelidansShadowmoonChanneler2";
319 return "KelidansShadowmoonChanneler1";
bool roll_chance(float chance, PseudoRandomDistributionState &state)
#define RegisterSpellScript(spell_script)
@ AURA_EFFECT_HANDLE_REAL
#define AuraEffectApplyFn(F, I, N, M)
#define AuraEffectRemoveFn(F, I, N, M)
#define RegisterBloodFurnaceCreatureAI(ai_name)
@ EVENT_SHADOW_BOLT_VOLLEY
static constexpr std::array< uint32, 5 > ChannelersSpawnGroupsData
@ SPAWN_GROUP_CHANNELER_3
@ SPAWN_GROUP_CHANNELER_5
@ SPAWN_GROUP_CHANNELER_1
@ SPAWN_GROUP_CHANNELER_2
@ SPAWN_GROUP_CHANNELER_4
@ SPELL_SHADOW_BOLT_VOLLEY
@ SPELL_SHADOW_BOLT_VOLLEY_H
void AddSC_boss_kelidan_the_breaker()
HookList< EffectApplyHandler > AfterEffectRemove
HookList< EffectApplyHandler > AfterEffectApply
void JustEngagedWith(Unit *who) override
void SetReactState(ReactStates st)
bool HasStringId(std::string_view id) const
void SetImmuneToNPC(bool apply) override
void SetCorpseDelay(uint32 delay, bool ignoreCorpseDecayRatio=false)
bool IsInEvadeMode() const
void Repeat(Milliseconds time)
void ScheduleEvent(EventId eventId, Milliseconds time, GroupIndex group=0u, PhaseIndex phase=0u)
Creature * GetCreature(uint32 type)
bool SpawnGroupSpawn(uint32 groupId, bool ignoreRespawn=false, bool force=false, std::vector< WorldObject * > *spawnedObjects=nullptr)
static bool ValidateSpellInfo(std::initializer_list< uint32 > spellIds)
TaskContext & Repeat(TaskScheduler::duration_t duration)
TaskScheduler & CancelAll()
TaskScheduler & Schedule(duration_t time, task_handler_t task)
TaskScheduler & SetValidator(P &&predicate)
Sets a validator which is asked if tasks are allowed to be executed.
TaskScheduler & Update()
Update the scheduler to the current time.
SpellCastResult DoCastSelf(uint32 spellId, CastSpellExtraArgs const &args={})
virtual void InitializeAI()
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 ApplySpellImmune(uint32 spellId, SpellImmunity op, uint32 type, bool apply)
void InterruptNonMeleeSpells(bool withDelayed, uint32 spellid=0, bool withInstant=true)
void SetUninteractible(bool apply)
bool HasUnitState(const uint32 f) const
Creature * FindNearestCreatureWithOptions(float range, FindCreatureOptions const &options) const
SpellCastResult CastSpell(CastSpellTargetArg const &targets, uint32 spellId, CastSpellExtraArgs const &args={ })
void AfterApply(AuraEffect const *, AuraEffectHandleModes)
void AfterRemove(AuraEffect const *, AuraEffectHandleModes)
bool Validate(SpellInfo const *) override
T const & DUNGEON_MODE(T const &normal5, T const &heroic10) const
void KilledUnit(Unit *) override
void JustDied(Unit *) override
boss_kelidan_the_breaker(Creature *creature)
void DoAction(int32 action) override
void SpellHit(WorldObject *, SpellInfo const *spellInfo) override
void JustReachedHome() override
void UpdateAI(uint32 diff) override
void JustEngagedWith(Unit *who) override
uint8 _deadChannelersCount
void JustAppeared() override
std::string_view GetStringIdOfChanneler() const
void JustEngagedWith(Unit *) override
npc_shadowmoon_channeler(Creature *creature)
void InitializeAI() override
void DoCastChanneledSpell()
void JustAppeared() override
void UpdateAI(uint32 diff) override
void JustReachedHome() override
void JustDied(Unit *) override
InstanceScript * _instance