309 switch (spellInfo->
Id)
323 if (!combineTarget || !combineTarget->
IsAlive())
367 ai->JustSummoned(
me);
459 if (creature->IsAIEnabled() && creature->IsAlive())
460 creature->AI()->DoZoneInCombat();
First const & RAND(First const &first, Second const &second, Rest const &... rest)
#define RegisterSpellScript(spell_script)
#define RegisterSpellScriptWithArgs(spell_script, script_name,...)
@ AURA_EFFECT_HANDLE_REAL
@ SPELL_AURA_PERIODIC_DUMMY
#define AuraEffectPeriodicFn(F, I, N)
#define AuraEffectApplyFn(F, I, N, M)
#define AuraEffectRemoveFn(F, I, N, M)
void AddSC_boss_sjonnir()
Position const CenterPoint
@ SPELL_OOZE_COMBINE_EFFECT
@ SPELL_SUMMON_IRON_TROGG_PERIODIC
@ SPELL_SUMMON_IRON_DWARF_2
@ SPELL_IRON_SLUDGE_SPAWN_VISUAL
@ SPELL_SUMMON_IRON_TROGG_2
@ SPELL_SUMMON_EARTHEN_DWARF_2
@ SPELL_SUMMON_IRON_DWARF_PERIODIC
@ SPELL_SUMMON_MALFORMED_OOZE_1
@ SPELL_OOZE_COMBINE_PERIODIC
@ SPELL_SUMMON_MALFORMED_OOZE_2
@ SPELL_SUMMON_IRON_TROGG_1
@ SPELL_SUMMON_EARTHEN_DWARF_1
@ SPELL_SUMMON_IRON_SLUDGE
@ SPELL_SUMMON_EARTHEN_DWARF_PERIODIC
@ SPELL_SUMMON_MALFORMED_OOZE_PERIODIC
@ SPELL_SUMMON_IRON_DWARF_1
HookList< EffectApplyHandler > AfterEffectRemove
HookList< EffectPeriodicHandler > OnEffectPeriodic
HookList< EffectApplyHandler > AfterEffectApply
InstanceScript *const instance
void JustEngagedWith(Unit *who) override
void _DespawnAtEvade(Seconds delayToRespawn=30s, Creature *who=nullptr)
@ EVADE_REASON_SEQUENCE_BREAK
void SetReactState(ReactStates st)
void DespawnOrUnsummon(Milliseconds timeToDespawn=0s, Seconds forceRespawnTime=0s)
void SetCorpseDelay(uint32 delay, bool ignoreCorpseDecayRatio=false)
void Repeat(Milliseconds time)
void CancelEvent(EventId eventId)
void ScheduleEvent(EventId eventId, Milliseconds time, GroupIndex group=0u, PhaseIndex phase=0u)
Creature * GetCreature(uint32 type)
virtual bool CheckRequiredBosses(uint32, Player const *=nullptr) const
void MovePoint(uint32 id, Position const &pos, bool generatePath=true, Optional< float > finalOrient={})
void MoveRandom(float wanderDistance=0.0f)
static Creature * ToCreature(Object *o)
static ObjectGuid GetGUID(Object const *o)
static Player * ToPlayer(Object *o)
void Summon(Creature const *summon)
TaskContext & Repeat(std::chrono::duration< _Rep, _Period > const &duration)
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)
virtual void AttackStart(Unit *)
SpellCastResult DoCast(uint32 spellId)
MotionMaster * GetMotionMaster()
bool HasAura(uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint8 reqEffMask=0) const
void RemoveAurasDueToSpell(uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, uint8 reqEffMask=0, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
bool HasUnitState(const uint32 f) const
bool HealthBelowPctDamaged(int32 pct, uint32 damage) const
SpellCastResult CastSpell(CastSpellTargetArg const &targets, uint32 spellId, CastSpellExtraArgs const &args={ })
static bool ValidateSpellInfo(std::initializer_list< uint32 > spellIds)
bool OnCheck(Player *, Unit *target) override
achievement_abuse_the_ooze()
void AfterRemove(AuraEffect const *, AuraEffectHandleModes)
void AfterApply(AuraEffect const *, AuraEffectHandleModes)
PrepareAuraScript(spell_sjonnir_iron_sludge_spawn_visual)
bool Validate(SpellInfo const *) override
spell_sjonnir_periodic_summon(uint32 leftPipeSpell, uint32 rightPipeSpell)
PrepareAuraScript(spell_sjonnir_periodic_summon)
void OnPeriodic(AuraEffect const *)
void AfterApply(AuraEffect const *, AuraEffectHandleModes)
@ DATA_SJONNIR_THE_IRONSHAPER
#define RegisterHallsOfStoneCreatureAI(ai_name)
TC_GAME_API Creature * GetCreature(WorldObject const &u, ObjectGuid const &guid)
float GetExactDist2d(const float x, const float y) const
void GetPosition(float &x, float &y) const
void JustSummoned(Creature *summoned) override
void JustEngagedWith(Unit *who) override
void UpdateAI(uint32 diff) override
void KilledUnit(Unit *who) override
void JustDied(Unit *) override
boss_sjonnir(Creature *creature)
void DoAction(int32 action) override
void DamageTaken(Unit *, uint32 &damage, DamageEffectType, SpellInfo const *) override
uint32 GetData(uint32 type) const override
void EnterEvadeMode(EvadeReason) override
npc_iron_sludge(Creature *creature)
void JustDied(Unit *) override
void JustEngagedWith(Unit *) override
InstanceScript * _instance
void JustAppeared() override
void UpdateAI(uint32 diff) override