68 if (damage >
me->GetHealth())
70 return 100*(
me->GetHealth()-damage)/
me->GetMaxHealth();
81 me->InterruptNonMeleeSpells(
false);
108 Player* player = i->GetSource();
109 if (!player || !player->
IsAlive())
129 Player* player = i->GetSource();
147 me->SetPhaseMask((1|16|32|64|128|256),
true);
201 uint32 phase = summon->GetPhaseMask();
211 if (phase == visage->GetPhaseMask())
214 nextPhase = visage->GetPhaseMask();
221 Map* map =
me->GetMap();
230 if (
Player* player = i->GetSource())
232 if (player->HasAura(spell))
234 player->RemoveAurasDueToSpell(spell);
236 player->CastSpell(player, spell2,
true);
@ ACHIEVEMENT_TIMED_TYPE_EVENT
@ TEMPSUMMON_CORPSE_DESPAWN
@ UNIT_FLAG_NOT_SELECTABLE
@ SPELL_INSANITY_PHASING_1
@ SPELL_SHADOW_BOLT_VOLLEY
@ SPELL_INSANITY_PHASING_5
@ SPELL_INSANITY_PHASING_4
@ SPELL_INSANITY_PHASING_2
@ SPELL_INSANITY_PHASING_3
@ ACHIEV_QUICK_DEMISE_START_EVENT
@ SPELL_SHADOW_BOLT_VOLLEY
void Talk(uint8 id, WorldObject const *whisperTarget=NULL)
CreatureScript(const char *name)
PlayerList const & GetPlayers() const
LinkedListHead::Iterator< MapReference const > const_iterator
StorageType::const_iterator const_iterator
void DoMeleeAttackIfReady()
void DoCast(uint32 spellId)
Unit * SelectTarget(SelectAggroTarget targetType, uint32 position=0, float dist=0.0f, bool playerOnly=false, int32 aura=0)
void DoCastVictim(uint32 spellId, bool triggered=false)
void CastSpell(SpellCastTargets const &targets, SpellInfo const *spellInfo, CustomSpellValues const *value, TriggerCastFlags triggerFlags=TRIGGERED_NONE, Item *castItem=NULL, AuraEffect const *triggeredByAura=NULL, uint64 originalCaster=0)
void RemoveAurasDueToSpell(uint32 spellId, uint64 casterGUID=0, uint32 reqEffMask=0, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
static Creature * GetCreature(WorldObject &object, uint64 guid)
uint32 GetPhaseMask() const
InstanceScript * GetInstanceScript()
CreatureAI * GetAI(Creature *creature) const OVERRIDE
ScriptedAI(Creature *creature)
uint32 GetHealthPct(uint32 damage)
void SummonedCreatureDespawn(Creature *summon) OVERRIDE
void JustSummoned(Creature *summon) OVERRIDE
uint32 uiShadowBoltVolleyTimer
void UpdateAI(uint32 diff) OVERRIDE
== Triggered Actions Requested ==================
void KilledUnit(Unit *) OVERRIDE
uint32 GetSpellForPhaseMask(uint32 phase)
void SpellHitTarget(Unit *target, const SpellInfo *spell) OVERRIDE
void EnterCombat(Unit *) OVERRIDE
boss_volazjAI(Creature *creature)
void JustDied(Unit *) OVERRIDE
InstanceScript * instance
void ResetPlayersPhaseMask()
void DamageTaken(Unit *, uint32 &damage) OVERRIDE