95 switch (spellInfo->
Id)
200 if (targets.size() <= 1)
204 targets.remove_if([caster](
WorldObject const* target)
257 for (
ThreatReference const* ref : creature->GetThreatManager().GetUnsortedThreatList())
bool roll_chance_i(int chance)
#define RegisterSpellScript(spell_script)
@ TARGET_UNIT_SRC_AREA_ENEMY
@ SPELL_AURA_PERIODIC_TRIGGER_SPELL
#define SpellEffectFn(F, I, N)
#define SpellObjectAreaTargetSelectFn(F, I, N)
#define AuraEffectPeriodicFn(F, I, N)
void AddSC_boss_omor_the_unscarred()
@ EVENT_SUMMON_FIENDISH_HOUND
@ EVENT_ORBITAL_STRIKE_TARGET
@ SPELL_ORBITAL_STRIKE_KNOCK
@ SPELL_ORBITAL_STRIKE_TARGET
@ SPELL_SUMMON_FIENDISH_HOUND
@ SPELL_ORBITAL_STRIKE_WHIP
SpellEffectInfo const & GetSpellEffectInfo() const
void PreventDefaultAction()
HookList< EffectPeriodicHandler > OnEffectPeriodic
void JustEngagedWith(Unit *who) override
void DoZoneInCombat(Creature *creature=nullptr)
bool IsEngaged() const override
void Repeat(Milliseconds time)
void ScheduleEvent(EventId eventId, Milliseconds time, GroupIndex group=0u, PhaseIndex phase=0u)
static Creature * ToCreature(Object *o)
SpellEffectInfo const & GetEffect(SpellEffIndex index) const
Unit * GetHitUnit() const
HookList< EffectHandler > OnEffectHitTarget
HookList< ObjectAreaTargetSelectHandler > OnObjectAreaTargetSelect
void ModifyThreatByPercent(Unit *target, int32 percent)
void AttackStartCaster(Unit *victim, float dist)
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
bool CanHaveThreatList() const
====================== THREAT & COMBAT ====================
ThreatManager & GetThreatManager()
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)
void HandleDummy(SpellEffIndex)
PrepareSpellScript(spell_omor_the_unscarred_orbital_strike_target)
bool Validate(SpellInfo const *) override
void FilterTargets(std::list< WorldObject * > &targets)
PrepareAuraScript(spell_omor_the_unscarred_orbital_strike_whip)
bool Validate(SpellInfo const *spellInfo) override
void OnPeriodic(AuraEffect const *aurEff)
@ DATA_OMOR_THE_UNSCARRED
#define RegisterHellfireRampartsCreatureAI(ai_name)
void RandomResize(C &container, std::size_t requestedSize)
float GetExactDist2d(const float x, const float y) const
void JustEngagedWith(Unit *who) override
void JustSummoned(Creature *summoned) override
void AttackStart(Unit *who) override
void JustDied(Unit *) override
void DamageTaken(Unit *, uint32 &damage, DamageEffectType, SpellInfo const *) override
void OnSpellCast(SpellInfo const *spellInfo) override
void UpdateAI(uint32 diff) override
boss_omor_the_unscarred(Creature *creature)
void KilledUnit(Unit *) override