190 switch (spellInfo->
Id)
bool roll_chance_i(int chance)
#define RegisterSpellScript(spell_script)
@ SPELL_AURA_PROC_TRIGGER_SPELL
#define SpellEffectFn(F, I, N)
@ UNIT_STAND_STATE_SUBMERGED
@ UNIT_FLAG_UNINTERACTIBLE
@ EVENT_WRATH_OF_RAGNAROS
@ EVENT_MIGHT_OF_RAGNAROS
static constexpr std::array< uint32, 9 > SummonLavaBurstSpells
static constexpr std::array< uint32, 8 > SummonSonsOfFlameSpells
void AddSC_boss_ragnaros()
@ SPELL_SUMMON_LAVA_BURST_E
@ SPELL_SUMMON_LAVA_BURST_C
@ SPELL_SUMMON_SON_OF_FLAME_D
@ SPELL_SUMMON_SON_OF_FLAME_F
@ SPELL_WRATH_OF_RAGNAROS
@ SPELL_SUMMON_LAVA_BURST_I
@ SPELL_SUMMON_LAVA_BURST_G
@ SPELL_SUMMON_LAVA_BURST_H
@ SPELL_ELEMENTAL_FIRE_KILL
@ SPELL_SUMMON_LAVA_BURST_B
@ SPELL_SUMMON_SON_OF_FLAME_C
@ SPELL_SUMMON_LAVA_BURST_A
@ SPELL_SUMMON_SON_OF_FLAME_H
@ SPELL_SUMMON_SON_OF_FLAME_B
@ SPELL_SUMMON_SON_OF_FLAME_G
@ SPELL_SUMMON_LAVA_BURST_D
@ SPELL_SUMMON_SON_OF_FLAME_A
@ SPELL_SUMMON_SONS_OF_FLAME
@ SPELL_SUMMON_LAVA_BURST_F
@ SPELL_SUMMON_SON_OF_FLAME_E
@ SPELL_MIGHT_OF_RAGNAROS
void JustEngagedWith(Unit *who) override
void DoZoneInCombat(Creature *creature=nullptr)
void SetImmuneToPC(bool apply) override
void SetReactState(ReactStates st)
void DespawnOrUnsummon(Milliseconds timeToDespawn=0s, Seconds forceRespawnTime=0s)
void SetCorpseDelay(uint32 delay, bool ignoreCorpseDecayRatio=false)
void Repeat(Milliseconds time)
void RescheduleEvent(EventId eventId, Milliseconds time, GroupIndex group=0u, PhaseIndex phase=0u)
void CancelEvent(EventId eventId)
void ScheduleEvent(EventId eventId, Milliseconds time, GroupIndex group=0u, PhaseIndex phase=0u)
void AddEventAtOffset(BasicEvent *event, Milliseconds offset)
GameObjectAI(GameObject *go)
Creature * GetCreature(uint32 type)
HookList< EffectHandler > OnEffectHit
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 IsWithinMeleeRange(Unit const *obj) const
void RemoveAllAurasExceptType(AuraType type)
void RemoveAurasDueToSpell(uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, uint8 reqEffMask=0, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
bool HasUnitState(const uint32 f) const
void SetStandState(UnitStandStateType state)
void SetUnitFlag(UnitFlags flags)
void RemoveUnitFlag(UnitFlags flags)
InstanceScript * GetInstanceScript() const
SpellCastResult CastSpell(CastSpellTargetArg const &targets, uint32 spellId, CastSpellExtraArgs const &args={ })
static bool ValidateSpellInfo(std::initializer_list< uint32 > spellIds)
void HandleDummy(SpellEffIndex)
PrepareSpellScript(spell_ragnaros_lava_burst)
bool Validate(SpellInfo const *) override
void HandleDummy(SpellEffIndex)
PrepareSpellScript(spell_ragnaros_summon_sons_of_flame)
bool Validate(SpellInfo const *) override
#define RegisterMoltenCoreCreatureAI(ai_name)
#define RegisterMoltenCoreGameObjectAI(ai_name)
auto SelectRandomContainerElement(C const &container) -> typename std::add_const< decltype(*std::begin(container))>::type &
void ResetThreatList(Unit *who=nullptr)
void JustReachedHome() override
void UpdateIntroEvents(uint32 diff)
void JustAppeared() override
void OnSpellCast(SpellInfo const *spellInfo) override
void KilledUnit(Unit *victim) override
void UpdateAI(uint32 diff) override
uint8 _deadSonsOfFlameCount
void SummonedCreatureDies(Creature *summon, Unit *) override
boss_ragnaros(Creature *creature)
void JustEngagedWith(Unit *who) override
void InitializeAI() override
npc_flame_of_ragnaros(Creature *creature)
void InitializeAI() override
void JustAppeared() override
void JustAppeared() override
npc_son_of_flame(Creature *creature)
void UpdateAI(uint32) override
void InitializeAI() override