141 switch (spellInfo->
Id)
227 Unit* summoner = summon->GetSummonerUnit();
228 if (summoner && summoner->
IsPlayer())
354 if (
Unit* summoner = summon->GetSummonerUnit())
@ TEMPSUMMON_MANUAL_DESPAWN
bool roll_chance(float chance, PseudoRandomDistributionState &state)
#define RegisterSpellScript(spell_script)
@ AURA_EFFECT_HANDLE_REAL
#define AuraEffectApplyFn(F, I, N, M)
#define RegisterAuchenaiCryptsCreatureAI(ai_name)
void AddSC_boss_exarch_maladaar()
@ SPELL_HAMMER_OF_JUSTICE
@ SPELL_STOLEN_SOUL_VISUAL
@ SPELL_SUMMON_STOLEN_SOUL
@ SPELL_STOLEN_SOUL_DISPEL
static Position const DoreSpawnPos
HookList< EffectApplyHandler > AfterEffectApply
void JustEngagedWith(Unit *who) override
void SetDisplayId(uint32 displayId, bool setNative=false) override
void SetCorpseDelay(uint32 delay, bool ignoreCorpseDecayRatio=false)
void Repeat(Milliseconds time)
void ScheduleEvent(EventId eventId, Milliseconds time, GroupIndex group=0u, PhaseIndex phase=0u)
static bool ValidateSpellInfo(std::initializer_list< uint32 > spellIds)
HookList< HitHandler > AfterHit
Unit * GetHitUnit() const
TaskContext & Repeat(TaskScheduler::duration_t duration)
TaskScheduler & CancelAll()
TaskScheduler & Schedule(duration_t time, task_handler_t task)
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)
TempSummon * ToTempSummon()
virtual Gender GetNativeGender() const
bool HealthBelowPctDamaged(float pct, uint32 damage) const
bool HasUnitState(const uint32 f) 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={ })
TempSummon * SummonCreature(uint32 entry, Position const &pos, TempSummonType despawnType=TEMPSUMMON_MANUAL_DESPAWN, Milliseconds despawnTime=0s, uint32 vehId=0, uint32 spellId=0, ObjectGuid privateObjectOwner=ObjectGuid::Empty)
bool Validate(SpellInfo const *) override
void AfterApply(AuraEffect const *, AuraEffectHandleModes)
bool Validate(SpellInfo const *) override
void OnSpellStart(SpellInfo const *spellInfo) override
void KilledUnit(Unit *) override
boss_exarch_maladaar(Creature *creature)
void UpdateAI(uint32 diff) override
void DamageTaken(Unit *, uint32 &damage, DamageEffectType, SpellInfo const *) override
void JustSummoned(Creature *) override
void JustDied(Unit *) override
void OnSpellCast(SpellInfo const *spellInfo) override
void JustEngagedWith(Unit *who) override
void InitializeAI() override
void JustEngagedWith(Unit *) override
void JustDied(Unit *) override
void UpdateAI(uint32 diff) override
npc_stolen_soul(Creature *creature)
void JustAppeared() override