37#define DATA_SPHERE_ANGLE_OFFSET 0.7f
38#define DATA_GROUND_POSITION_Z 11.30809f
78 me->SetDisableGravity(
true);
141 Player* player = i->GetSource();
142 if (player && player->
IsAlive())
170 angle = sphere->GetAngle(sphereTarget);
171 x = sphere->GetPositionX() + 15.0f * std::cos(angle);
172 y = sphere->GetPositionY() + 15.0f * std::sin(angle);
173 sphere->GetMotionMaster()->MovePoint(0, x, y, sphere->GetPositionZ());
182 x = sphere->GetPositionX() + 15.0f / 2.0f * std::cos(angle);
183 y = sphere->GetPositionY() + 15.0f / 2.0f * std::sin(angle);
184 sphere->GetMotionMaster()->MovePoint(0, x, y, sphere->GetPositionZ());
191 x = sphere->GetPositionX() + 15.0f / 2 * std::cos(angle);
192 y = sphere->GetPositionY() + 15.0f / 2 * std::sin(angle);
193 sphere->GetMotionMaster()->MovePoint(0, x, y, sphere->GetPositionZ());
201 me->GetMotionMaster()->Clear();
203 me->GetMotionMaster()->MoveChase(embraceTarget);
211 me->GetMotionMaster()->Clear();
213 me->GetMotionMaster()->MoveChase(
me->GetVictim());
266 for (
uint8 i = 0; i < 2; ++i)
288 me->SetDisableGravity(
false);
289 me->GetMotionMaster()->MovePoint(0,
me->GetHomePosition());
322 me->SetObjectScale(1.0f);
340 me->DisappearAndDie();
367 if (PrinceTaldaram && PrinceTaldaram->
IsAlive())
373 switch (go->GetEntry())
@ TEMPSUMMON_TIMED_OR_CORPSE_DESPAWN
@ UNIT_FLAG_NOT_SELECTABLE
AI * GetAhnKahetAI(Creature *creature)
@ DATA_PRINCE_TALDARAM_PLATFORM
#define DATA_GROUND_POSITION_Z
@ SPELL_FLAME_SPHERE_VISUAL
@ SPELL_FLAME_SPHERE_SUMMON_1
@ SPELL_FLAME_SPHERE_DEATH_EFFECT
@ H_CREATURE_FLAME_SPHERE_1
@ SPELL_FLAME_SPHERE_SPAWN_EFFECT
@ H_SPELL_FLAME_SPHERE_SUMMON_1
@ H_CREATURE_FLAME_SPHERE_2
@ H_SPELL_FLAME_SPHERE_SUMMON_2
@ SPELL_CONJURE_FLAME_SPHERE
@ SPELL_FLAME_SPHERE_PERIODIC
@ SPELL_EMBRACE_OF_THE_VAMPYR
void AddSC_boss_taldaram()
#define DATA_SPHERE_ANGLE_OFFSET
@ EVENT_CASTING_FLAME_SPHERES
InstanceScript *const instance
BossAI(Creature *creature, uint32 bossId)
void Talk(uint8 id, WorldObject const *whisperTarget=NULL)
CreatureScript(const char *name)
GameObjectScript(const char *name)
LinkedListHead::Iterator< MapReference const > const_iterator
static Creature * GetCreature(WorldObject const &u, uint64 guid)
static Unit * GetUnit(WorldObject const &, uint64 guid)
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)
virtual void SetData(uint32, uint32)
virtual uint64 GetData64(uint32) const
CreatureAI * GetAI(Creature *creature) const OVERRIDE
CreatureAI * GetAI(Creature *creature) const OVERRIDE
npc_taldaram_flamesphere()
bool OnGossipHello(Player *, GameObject *go) OVERRIDE
Creature * DoSpawnCreature(uint32 entry, float offsetX, float offsetY, float offsetZ, float angle, TempSummonType type, uint32 despawntime)
ScriptedAI(Creature *creature)
const T & DUNGEON_MODE(const T &normal5, const T &heroic5) const
void KilledUnit(Unit *victim) OVERRIDE
void DamageTaken(Unit *, uint32 &damage) OVERRIDE
uint64 _embraceTargetGUID
void UpdateAI(uint32 diff) OVERRIDE
== Triggered Actions Requested ==================
Unit * GetEmbraceTarget()
void EnterCombat(Unit *) OVERRIDE
uint32 _embraceTakenDamage
boss_taldaramAI(Creature *creature)
void JustDied(Unit *) OVERRIDE
npc_taldaram_flamesphereAI(Creature *creature)
void EnterCombat(Unit *) OVERRIDE
void JustDied(Unit *) OVERRIDE
void UpdateAI(uint32 diff) OVERRIDE
== Triggered Actions Requested ==================
void MoveInLineOfSight(Unit *) OVERRIDE