59#define SPELL_LIGHTNING_RING_1 DUNGEON_MODE<uint32>(50840,59848)
60#define SPELL_LIGHTNING_RING_2 DUNGEON_MODE<uint32>(51849,59861)
61#define SPELL_STATIC_CHARGE DUNGEON_MODE<uint32>(50834,59861)
62#define SPELL_CHAIN_LIGHTNING DUNGEON_MODE<uint32>(50830,59844)
63#define SPELL_LIGHTNING_SHIELD DUNGEON_MODE<uint32>(50831,59845)
64#define SPELL_SUMMON_IRON_TROGG_PERIODIC DUNGEON_MODE<uint32>(50792,59859)
65#define SPELL_SUMMON_MALFORMED_OOZE_PERIODIC DUNGEON_MODE<uint32>(50801,59858)
66#define SPELL_TOXIC_VOLLEY DUNGEON_MODE<uint32>(50838,59853)
305 switch (spellInfo->
Id)
319 if (!combineTarget || !combineTarget->
IsAlive())
362 ai->JustSummoned(
me);
447 if (creature->IsAIEnabled() && creature->IsAlive())
448 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)
#define SPELL_LIGHTNING_RING_2
void AddSC_boss_sjonnir()
Position const CenterPoint
#define SPELL_SUMMON_IRON_TROGG_PERIODIC
@ SPELL_OOZE_COMBINE_EFFECT
@ 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_IRON_DWARF_1
#define SPELL_CHAIN_LIGHTNING
#define SPELL_LIGHTNING_RING_1
#define SPELL_LIGHTNING_SHIELD
#define SPELL_TOXIC_VOLLEY
#define SPELL_SUMMON_MALFORMED_OOZE_PERIODIC
#define SPELL_STATIC_CHARGE
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)
void Talk(uint8 id, WorldObject const *whisperTarget=nullptr)
void AttackStart(Unit *victim) override
== Triggered Actions Requested ==================
void SetReactState(ReactStates st)
void DespawnOrUnsummon(Milliseconds timeToDespawn=0s, Seconds forceRespawnTime=0s)
void SetCorpseDelay(uint32 delay, bool ignoreCorpseDecayRatio=false)
void Repeat(Milliseconds time)
void ScheduleEvent(uint32 eventId, Milliseconds time, uint32 group=0, uint8 phase=0)
void CancelEvent(uint32 eventId)
Creature * GetCreature(uint32 type)
virtual bool CheckRequiredBosses(uint32, Player const *=nullptr) const
void MoveRandom(float wanderDistance=0.0f, Optional< Milliseconds > duration={}, MovementSlot slot=MOTION_SLOT_DEFAULT)
void MovePoint(uint32 id, Position const &pos, bool generatePath=true, Optional< float > finalOrient={}, Optional< float > speed={}, MovementWalkRunSpeedSelectionMode speedSelectionMode=MovementWalkRunSpeedSelectionMode::Default, Optional< float > closeEnoughDistance={})
static Creature * ToCreature(Object *o)
static ObjectGuid GetGUID(Object const *o)
static Player * ToPlayer(Object *o)
static bool ValidateSpellInfo(std::initializer_list< uint32 > spellIds)
void Summon(Creature const *summon)
TaskContext & Repeat(std::chrono::duration< Rep, Period > duration)
TaskScheduler & Schedule(std::chrono::duration< Rep, Period > time, task_handler_t task)
TaskScheduler & Update(success_t const &callback=nullptr)
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)
MotionMaster * GetMotionMaster()
bool HasUnitState(const uint32 f) const
bool HasAura(uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint32 reqEffMask=0) const
bool HealthBelowPctDamaged(int32 pct, uint32 damage) const
void RemoveAurasDueToSpell(uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, uint32 reqEffMask=0, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
SpellCastResult CastSpell(CastSpellTargetArg const &targets, uint32 spellId, CastSpellExtraArgs const &args={ })
bool OnCheck(Player *, Unit *target) override
achievement_abuse_the_ooze()
void AfterRemove(AuraEffect const *, AuraEffectHandleModes)
void AfterApply(AuraEffect const *, AuraEffectHandleModes)
bool Validate(SpellInfo const *) override
spell_sjonnir_periodic_summon(uint32 leftPipeSpell, uint32 rightPipeSpell)
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
constexpr 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