38 {340.15f, 58.65f, 17.71f},
39 {388.09f, 31.54f, 20.18f},
40 {388.18f, -32.85f, 20.18f},
41 {340.29f, -60.19f, 17.72f},
42 {332.0f, 0.01f, 39.0f},
43 {331.0f, 0.01f, -2.39f}
106 me->SetDisplayId(
me->GetNativeDisplayId());
111 me->SetDisableGravity(
true);
113 me->setActive(
false);
121 me->SetDisableGravity(
true);
136 summon->AI()->AttackStart(target);
151 if (damage >=
me->GetHealth() &&
Phase1)
159 me->InterruptNonMeleeSpells(
true);
160 me->RemoveAllAuras();
165 me->GetMotionMaster()->Clear();
176 me->SetDisplayId(11686);
193 if (!
me->IsInCombat())
222 me->GetMotionMaster()->MoveIdle();
279 if (
me->IsWithinDist3d(target->GetPositionX(), target->GetPositionY(), target->GetPositionZ(), 5.0f))
282 me->SetPosition(target->GetPositionX(), target->GetPositionY(), target->GetPositionZ(), 0.0f);
301 for (
uint8 i = 0; i < 2; ++i)
307 me->SetDisplayId(
me->GetNativeDisplayId());
327 if (
me->getThreatManager().getThreatList().empty())
426 if (
me->isAttackReady() && !
me->IsNonMeleeSpellCasted(
false))
428 if (
me->IsWithinMeleeRange(
me->GetVictim()))
430 me->AttackerStateUpdate(
me->GetVictim());
431 me->resetAttackTimer();
436 target =
me->SelectNearestTargetInAttackDistance(5);
438 me->AI()->AttackStart(target);
509 if (damage >=
me->GetHealth() && killer !=
me && !
toDie)
513 me->SetDisplayId(11686);
519 int32 AlarHealth =
int32(Alar->GetHealth()) -
int32(Alar->CountPctFromMaxHealth(3));
521 Alar->SetHealth(AlarHealth);
@ TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT
@ TEMPSUMMON_TIMED_DESPAWN
@ SPELL_SCHOOL_MASK_NORMAL
@ UNIT_FLAG_NON_ATTACKABLE
@ UNIT_FLAG_NOT_SELECTABLE
@ UNIT_FIELD_BOUNDING_RADIUS
@ CREATURE_FLAME_PATCH_ALAR
static float waypoint[6][3]
void DoZoneInCombat(Creature *creature=NULL, float maxRangeToNearestTarget=50.0f)
virtual void EnterEvadeMode()
void SetDisplayId(uint32 modelId) OVERRIDE
void SetObjectScale(float scale) OVERRIDE
CreatureScript(const char *name)
float GetObjectScale() const
void SetFlag(uint16 index, uint32 newFlag)
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 setFaction(uint32 faction)
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)
static Unit * GetUnit(WorldObject &object, uint64 guid)
float GetSpeedRate(UnitMoveType mtype) const
void ApplySpellImmune(uint32 spellId, uint32 op, uint32 type, bool apply)
bool SetDisableGravity(bool disable, bool packetOnly=false)
InstanceScript * GetInstanceScript()
CreatureAI * GetAI(Creature *creature) const OVERRIDE
CreatureAI * GetAI(Creature *creature) const OVERRIDE
CreatureAI * GetAI(Creature *creature) const OVERRIDE
void AttackStartNoMove(Unit *target)
Creature * DoSpawnCreature(uint32 entry, float offsetX, float offsetY, float offsetZ, float angle, TempSummonType type, uint32 despawntime)
ScriptedAI(Creature *creature)
void AttackStart(Unit *) OVERRIDE
void JustDied(Unit *) OVERRIDE
void MoveInLineOfSight(Unit *) OVERRIDE
void JustSummoned(Creature *summon) OVERRIDE
boss_alarAI(Creature *creature)
void UpdateAI(uint32 diff) OVERRIDE
== Triggered Actions Requested ==================
uint32 Platforms_Move_Timer
void AttackStart(Unit *who) OVERRIDE
void EnterCombat(Unit *) OVERRIDE
void DoMeleeAttackIfReady()
void MovementInform(uint32 type, uint32) OVERRIDE
float DefaultMoveSpeedRate
void DamageTaken(Unit *, uint32 &damage) OVERRIDE
InstanceScript * instance
void SpellHit(Unit *, const SpellInfo *spell) OVERRIDE
InstanceScript * instance
void DamageTaken(Unit *killer, uint32 &damage) OVERRIDE
void UpdateAI(uint32) OVERRIDE
== Triggered Actions Requested ==================
void EnterCombat(Unit *) OVERRIDE
void EnterEvadeMode() OVERRIDE
npc_ember_of_alarAI(Creature *creature)
void EnterCombat(Unit *) OVERRIDE
void AttackStart(Unit *) OVERRIDE
npc_flame_patch_alarAI(Creature *creature)
void MoveInLineOfSight(Unit *) OVERRIDE
void UpdateAI(uint32) OVERRIDE
== Triggered Actions Requested ==================