109 else if (temp->GetVictim())
110 me->getThreatManager().addThreat(temp->GetVictim(), 0.0f);
114 if (!
me->IsInCombat())
216 if (Temp && Temp->
isDead())
233 if (!
me->IsNonMeleeSpellCasted(
false))
248 if (!
me->IsNonMeleeSpellCasted(
false))
268 if (!
me->IsNonMeleeSpellCasted(
false))
282 for (
uint8 i = 0; i<3; ++i)
297 if (!
me->IsNonMeleeSpellCasted(
false))
312 if (
me->isAttackReady() && !
me->IsNonMeleeSpellCasted(
false))
315 if (
me->IsWithinMeleeRange(
me->GetVictim()))
318 me->AttackerStateUpdate(
me->GetVictim());
319 me->resetAttackTimer();
371 else if (temp->GetVictim())
372 me->getThreatManager().addThreat(temp->GetVictim(), 0.0f);
376 if (!
me->IsInCombat())
410 if (!
me->IsInCombat())
417 if (!who ||
me->GetVictim())
420 if (
me->CanCreatureAttack(who))
422 float attackRadius =
me->GetAttackDistance(who);
425 if (!
me->IsInCombat())
551 if (Temp && Temp->
isDead())
560 if (!
me->GetVictim())
581 if (!
me->IsNonMeleeSpellCasted(
false))
595 if (!
me->IsNonMeleeSpellCasted(
false))
618 if (!
me->IsNonMeleeSpellCasted(
false))
627 if (!
me->IsNonMeleeSpellCasted(
false))
636 if (!
me->IsNonMeleeSpellCasted(
false))
722 if (!
me->IsNonMeleeSpellCasted(
false))
725 if (
me->IsWithinMeleeRange(
me->GetVictim()))
#define CREATURE_Z_ATTACK_RANGE
@ TEMPSUMMON_CORPSE_DESPAWN
@ UNIT_FLAG_NOT_SELECTABLE
@ OBJECT_FIELD_DYNAMIC_FLAGS
@ YELL_SISTER_SACROLASH_DEAD
@ YELL_SISTER_ALYTHESS_DEAD
void AddSC_boss_eredar_twins()
void DoZoneInCombat(Creature *creature=NULL, float maxRangeToNearestTarget=50.0f)
void Talk(uint8 id, WorldObject const *whisperTarget=NULL)
CreatureScript(const char *name)
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)
virtual void AttackStart(Unit *)
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)
void AddThreat(Unit *victim, float fThreat, SpellSchoolMask schoolMask=SPELL_SCHOOL_MASK_NORMAL, SpellInfo const *threatSpell=NULL)
bool HasAura(uint32 spellId, uint64 casterGUID=0, uint64 itemCasterGUID=0, uint32 reqEffMask=0) const
static Creature * GetCreature(WorldObject &object, uint64 guid)
static Unit * GetUnit(WorldObject &object, uint64 guid)
InstanceScript * GetInstanceScript()
CreatureAI * GetAI(Creature *creature) const OVERRIDE
CreatureAI * GetAI(Creature *creature) const OVERRIDE
CreatureAI * GetAI(Creature *creature) const OVERRIDE
void DoStartNoMovement(Unit *target)
void SetCombatMovement(bool allowMovement)
Creature * DoSpawnCreature(uint32 entry, float offsetX, float offsetY, float offsetZ, float angle, TempSummonType type, uint32 despawntime)
ScriptedAI(Creature *creature)
void AttackStart(Unit *) OVERRIDE
void SpellHitTarget(Unit *target, const SpellInfo *spell) OVERRIDE
boss_alythessAI(Creature *creature)
void HandleTouchedSpells(Unit *target, uint32 TouchedType)
void UpdateAI(uint32 diff) OVERRIDE
== Triggered Actions Requested ==================
InstanceScript * instance
void JustDied(Unit *) OVERRIDE
void AttackStart(Unit *who) OVERRIDE
uint32 IntroStep(uint32 step)
void MoveInLineOfSight(Unit *who) OVERRIDE
void KilledUnit(Unit *) OVERRIDE
void EnterCombat(Unit *who) OVERRIDE
uint32 ConflagrationTimer
uint32 ConflagrationTimer
boss_sacrolashAI(Creature *creature)
void JustDied(Unit *) OVERRIDE
InstanceScript * instance
uint32 ConfoundingblowTimer
void UpdateAI(uint32 diff) OVERRIDE
== Triggered Actions Requested ==================
void HandleTouchedSpells(Unit *target, uint32 TouchedType)
void SpellHitTarget(Unit *target, const SpellInfo *spell) OVERRIDE
void EnterCombat(Unit *who) OVERRIDE
void KilledUnit(Unit *) OVERRIDE
void UpdateAI(uint32 diff) OVERRIDE
== Triggered Actions Requested ==================
void EnterCombat(Unit *) OVERRIDE
void SpellHitTarget(Unit *target, const SpellInfo *spell) OVERRIDE
npc_shadow_imageAI(Creature *creature)
@ DATA_EREDAR_TWINS_EVENT