245 if (
Player* player = itr->GetSource())
284 std::list<Player*> PlayerList;
288 if (
Player* player = itr->GetSource())
291 if (rangeMin > distance || distance > rangeMax)
294 PlayerList.push_back(player);
298 if (PlayerList.empty())
301 size_t size = PlayerList.size();
302 if (
size < playersMin)
311 return GetUlduarAI<boss_general_vezaxAI>(creature);
374 return GetUlduarAI<boss_saronite_animusAI>(creature);
445 return GetUlduarAI<npc_saronite_vaporsAI>(creature);
531 args1.AddSpellBP0(mana);
@ TARGET_UNIT_DEST_AREA_ENEMY
@ SPELL_FAILED_NO_VALID_TARGETS
@ AURA_EFFECT_HANDLE_REAL_OR_REAPPLY_MASK
@ SPELL_AURA_PERIODIC_DUMMY
@ TRIGGERED_FULL_MASK
Used when doing CastSpell with triggered == true.
#define SpellObjectAreaTargetSelectFn(F, I, N)
#define AuraEffectPeriodicFn(F, I, N)
#define AuraEffectApplyFn(F, I, N, M)
@ UNIT_FLAG_NON_ATTACKABLE
@ EVENT_MARK_OF_THE_FACELESS
@ EVENT_PROFOUND_OF_DARKNESS
@ EVENT_SURGE_OF_DARKNESS
@ SPELL_SARONITE_VAPORS_DAMAGE
@ SPELL_SUMMON_SARONITE_VAPORS
@ SPELL_SURGE_OF_DARKNESS
@ SPELL_VISUAL_SARONITE_ANIMUS
@ SPELL_SARONITE_VAPORS_ENERGIZE
@ SPELL_SUMMON_SARONITE_ANIMUS
@ SPELL_PROFOUND_OF_DARKNESS
@ SPELL_MARK_OF_THE_FACELESS_DAMAGE
@ SPELL_MARK_OF_THE_FACELESS
@ EMOTE_SURGE_OF_DARKNESS
void AddSC_boss_general_vezax()
HookList< EffectPeriodicHandler > OnEffectPeriodic
HookList< EffectApplyHandler > AfterEffectApply
uint8 GetStackAmount() const
InstanceScript *const instance
void JustEngagedWith(Unit *who) override
void Talk(uint8 id, WorldObject const *whisperTarget=nullptr)
void SetReactState(ReactStates st)
void DespawnOrUnsummon(Milliseconds timeToDespawn=0s, Seconds forceRespawnTime=0s)
void AddLootMode(uint16 lootMode)
void ScheduleEvent(uint32 eventId, Milliseconds time, uint32 group=0, uint8 phase=0)
void CancelEvent(uint32 eventId)
void DoRemoveAurasDueToSpellOnPlayers(uint32 spell, bool includePets=false, bool includeControlled=false)
Creature * GetCreature(uint32 type)
PlayerList const & GetPlayers() const
void MoveRandom(float wanderDistance=0.0f, Optional< Milliseconds > duration={}, MovementSlot slot=MOTION_SLOT_DEFAULT)
static Creature * ToCreature(Object *o)
static bool ValidateSpellInfo(std::initializer_list< uint32 > spellIds)
void FinishCast(SpellCastResult result, int32 *param1=nullptr, int32 *param2=nullptr)
WorldObject * GetExplTargetWorldObject() const
HookList< ObjectAreaTargetSelectHandler > OnObjectAreaTargetSelect
Unit * SelectTarget(SelectTargetMethod targetType, uint32 offset=0, float dist=0.0f, bool playerOnly=false, bool withTank=true, int32 aura=0)
SpellCastResult DoCastAOE(uint32 spellId, CastSpellExtraArgs const &args={})
SpellCastResult DoCast(uint32 spellId)
void ApplySpellImmune(uint32 spellId, SpellImmunity op, uint32 type, bool apply)
void SetHealth(uint64 val)
void SetStandState(UnitStandStateType state, uint32 animKitID=0)
void SetControlled(bool apply, UnitState state)
MotionMaster * GetMotionMaster()
void SetUninteractible(bool apply)
uint64 GetMaxHealth() const
bool HasUnitState(const uint32 f) const
void SetUnitFlag(UnitFlags flags)
void RemoveAurasDueToSpell(uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, uint32 reqEffMask=0, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
InstanceScript * GetInstanceScript() const
achievement_shadowdodger()
bool OnCheck(Player *, Unit *target) override
achievement_smell_saronite()
bool OnCheck(Player *, Unit *target) override
CreatureAI * GetAI(Creature *creature) const override
CreatureAI * GetAI(Creature *creature) const override
CreatureAI * GetAI(Creature *creature) const override
bool Validate(SpellInfo const *) override
void HandleEffectPeriodic(AuraEffect const *aurEff)
void FilterTargets(std::list< WorldObject * > &targets)
spell_general_vezax_mark_of_the_faceless_leech()
SpellScript * GetSpellScript() const override
spell_general_vezax_mark_of_the_faceless()
AuraScript * GetAuraScript() const override
bool Validate(SpellInfo const *) override
void HandleEffectApply(AuraEffect const *aurEff, AuraEffectHandleModes)
AuraScript * GetAuraScript() const override
spell_general_vezax_saronite_vapors()
auto SelectRandomContainerElement(C const &container) -> typename std::add_const< decltype(*std::begin(container))>::type &
constexpr std::size_t size()
constexpr float GetPositionX() const
constexpr float GetPositionY() const
constexpr float GetPositionZ() const
uint32 GetData(uint32 type) const override
void DoAction(int32 action) override
Unit * CheckPlayersInRange(uint8 playersMin, float rangeMin, float rangeMax)
void KilledUnit(Unit *who) override
void JustDied(Unit *) override
void UpdateAI(uint32 diff) override
boss_general_vezaxAI(Creature *creature)
void CheckShamanisticRage()
void SpellHitTarget(WorldObject *target, SpellInfo const *spellInfo) override
void JustEngagedWith(Unit *who) override
void UpdateAI(uint32 diff) override
InstanceScript * instance
void JustDied(Unit *) override
boss_saronite_animusAI(Creature *creature)
void DamageTaken(Unit *, uint32 &damage, DamageEffectType, SpellInfo const *) override
InstanceScript * instance
void UpdateAI(uint32 diff) override
npc_saronite_vaporsAI(Creature *creature)