219 Map* map =
me->GetMap();
225 if (
Player* player = itr->GetSource())
265 Map* map =
me->GetMap();
268 std::list<Player*> PlayerList;
272 if (
Player* player = itr->GetSource())
274 float distance = player->GetDistance(
me->GetPositionX(),
me->GetPositionY(),
me->GetPositionZ());
275 if (rangeMin > distance || distance > rangeMax)
278 PlayerList.push_back(player);
282 if (PlayerList.empty())
285 size_t size = PlayerList.size();
286 if (size < playersMin)
395 me->GetMotionMaster()->MoveRandom(30.0f);
408 if (damage >=
me->GetHealth())
413 me->SetHealth(
me->GetMaxHealth());
414 me->RemoveAllAuras();
416 me->DespawnOrUnsummon(30000);
518 int32 damage = mana * 2;
@ SPELL_EFFECT_KNOCK_BACK
@ TARGET_UNIT_DEST_AREA_ENEMY
@ SPELL_FAILED_NO_VALID_TARGETS
@ SPELL_AURA_PERIODIC_DUMMY
@ AURA_EFFECT_HANDLE_REAL_OR_REAPPLY_MASK
#define SpellObjectAreaTargetSelectFn(F, I, N)
#define AuraEffectPeriodicFn(F, I, N)
#define AuraEffectApplyFn(F, I, N, M)
@ UNIT_FLAG_NON_ATTACKABLE
@ UNIT_FLAG_NOT_SELECTABLE
@ 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()
AchievementCriteriaScript(const char *name)
HookList< EffectPeriodicHandler > OnEffectPeriodic
HookList< EffectApplyHandler > AfterEffectApply
uint8 GetStackAmount() const
InstanceScript *const instance
BossAI(Creature *creature, uint32 bossId)
void Talk(uint8 id, WorldObject const *whisperTarget=NULL)
CreatureScript(const char *name)
PlayerList const & GetPlayers() const
LinkedListHead::Iterator< MapReference const > const_iterator
void FinishCast(SpellCastResult result)
WorldObject * GetExplTargetWorldObject()
HookList< ObjectAreaTargetSelectHandler > OnObjectAreaTargetSelect
SpellScriptLoader(const char *name)
void DoMeleeAttackIfReady()
void DoCast(uint32 spellId)
Unit * SelectTarget(SelectAggroTarget targetType, uint32 position=0, float dist=0.0f, bool playerOnly=false, int32 aura=0)
void DoCastAOE(uint32 spellId, bool triggered=false)
bool OnCheck(Player *, Unit *target) OVERRIDE
achievement_shadowdodger()
bool OnCheck(Player *, Unit *target) OVERRIDE
achievement_smell_saronite()
CreatureAI * GetAI(Creature *creature) const OVERRIDE
CreatureAI * GetAI(Creature *creature) const OVERRIDE
CreatureAI * GetAI(Creature *creature) const OVERRIDE
void HandleEffectPeriodic(AuraEffect const *aurEff)
PrepareAuraScript(spell_general_vezax_mark_of_the_faceless_AuraScript)
bool Validate(SpellInfo const *) OVERRIDE
PrepareSpellScript(spell_general_vezax_mark_of_the_faceless_leech_SpellScript)
void FilterTargets(std::list< WorldObject * > &targets)
SpellScript * GetSpellScript() const
spell_general_vezax_mark_of_the_faceless_leech()
AuraScript * GetAuraScript() const OVERRIDE
spell_general_vezax_mark_of_the_faceless()
PrepareAuraScript(spell_general_vezax_saronite_vapors_AuraScript)
void HandleEffectApply(AuraEffect const *aurEff, AuraEffectHandleModes)
bool Validate(SpellInfo const *) OVERRIDE
AuraScript * GetAuraScript() const OVERRIDE
spell_general_vezax_saronite_vapors()
C::value_type const & SelectRandomContainerElement(C const &container)
const T & RAID_MODE(const T &normal10, const T &normal25) const
ScriptedAI(Creature *creature)
void KilledUnit(Unit *who) OVERRIDE
void SpellHitTarget(Unit *who, SpellInfo const *spell) OVERRIDE
void DoAction(int32 action) OVERRIDE
void UpdateAI(uint32 diff) OVERRIDE
== Triggered Actions Requested ==================
Unit * CheckPlayersInRange(uint8 playersMin, float rangeMin, float rangeMax)
uint32 GetData(uint32 type) const OVERRIDE
boss_general_vezaxAI(Creature *creature)
void EnterCombat(Unit *) OVERRIDE
void JustDied(Unit *) OVERRIDE
void CheckShamanisticRage()
void UpdateAI(uint32 diff) OVERRIDE
== Triggered Actions Requested ==================
void JustDied(Unit *) OVERRIDE
InstanceScript * instance
boss_saronite_animusAI(Creature *creature)
InstanceScript * instance
npc_saronite_vaporsAI(Creature *creature)
void DamageTaken(Unit *, uint32 &damage) OVERRIDE
void UpdateAI(uint32 diff) OVERRIDE
== Triggered Actions Requested ==================