TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boss_svala::boss_svalaAI Struct Reference

Public Member Functions

 boss_svalaAI (Creature *creature)
 
void Initialize ()
 
void Reset () override
 
void EnterCombat (Unit *) override
 
void JustSummoned (Creature *summon) override
 
void MoveInLineOfSight (Unit *who) override
 
void KilledUnit (Unit *who) override
 
void JustDied (Unit *) override
 
void SpellHitTarget (Unit *, SpellInfo const *spellInfo) override
 
void UpdateAI (uint32 diff) override
 
- Public Member Functions inherited from BossAI
 BossAI (Creature *creature, uint32 bossId)
 
virtual ~BossAI ()
 
void SummonedCreatureDespawn (Creature *summon) override
 
virtual void ExecuteEvent (uint32)
 
virtual void ScheduleTasks ()
 
void JustReachedHome () override
 
bool CanAIAttack (Unit const *target) const override
 
- Public Member Functions inherited from ScriptedAI
 ScriptedAI (Creature *creature)
 
virtual ~ScriptedAI ()
 
void AttackStartNoMove (Unit *target)
 
void DamageTaken (Unit *, uint32 &) override
 
void SpellHit (Unit *, SpellInfo const *) override
 
void OnPossess (bool)
 
void AttackStart (Unit *) override
 
void DoStartMovement (Unit *target, float distance=0.0f, float angle=0.0f)
 
void DoStartNoMovement (Unit *target)
 
void DoStopAttack ()
 
void DoCastSpell (Unit *target, SpellInfo const *spellInfo, bool triggered=false)
 
void DoPlaySoundToSet (WorldObject *source, uint32 soundId)
 
void DoResetThreat ()
 
float DoGetThreat (Unit *unit)
 
void DoModifyThreatPercent (Unit *unit, int32 pct)
 
void DoTeleportTo (float x, float y, float z, uint32 time=0)
 
void DoTeleportTo (float const pos[4])
 
void DoTeleportPlayer (Unit *unit, float x, float y, float z, float o)
 
void DoTeleportAll (float x, float y, float z, float o)
 
UnitDoSelectLowestHpFriendly (float range, uint32 minHPDiff=1)
 
std::list< Creature * > DoFindFriendlyCC (float range)
 
std::list< Creature * > DoFindFriendlyMissingBuff (float range, uint32 spellId)
 
PlayerGetPlayerAtMinimumRange (float minRange)
 
CreatureDoSpawnCreature (uint32 entry, float offsetX, float offsetY, float offsetZ, float angle, uint32 type, uint32 despawntime)
 
bool HealthBelowPct (uint32 pct) const
 
bool HealthAbovePct (uint32 pct) const
 
SpellInfo constSelectSpell (Unit *target, uint32 school, uint32 mechanic, SelectTargetType targets, float rangeMin, float rangeMax, SelectEffect effect)
 
void SetEquipmentSlots (bool loadDefault, int32 mainHand=EQUIP_NO_CHANGE, int32 offHand=EQUIP_NO_CHANGE, int32 ranged=EQUIP_NO_CHANGE)
 
void SetCombatMovement (bool allowMovement)
 
bool IsCombatMovementAllowed () const
 
bool IsHeroic () const
 
Difficulty GetDifficulty () const
 
bool Is25ManRaid () const
 
template<class T >
const T & DUNGEON_MODE (const T &normal5, const T &heroic10) const
 
template<class T >
const T & RAID_MODE (const T &normal10, const T &normal25) const
 
template<class T >
const T & RAID_MODE (const T &normal10, const T &normal25, const T &heroic10, const T &heroic25) const
 
- Public Member Functions inherited from CreatureAI
void Talk (uint8 id, WorldObject const *whisperTarget=nullptr)
 
 CreatureAI (Creature *creature)
 
virtual ~CreatureAI ()
 
void MoveInLineOfSight_Safe (Unit *who)
 == Reactions At ================================= More...
 
void TriggerAlert (Unit const *who) const
 
virtual bool CanRespawn ()
 
virtual void EnterEvadeMode (EvadeReason why=EVADE_REASON_OTHER)
 
virtual void IsSummonedBy (Unit *)
 
virtual void SummonedCreatureDies (Creature *, Unit *)
 
virtual void AttackedBy (Unit *)
 
virtual bool IsEscorted () const
 
virtual void JustRespawned ()
 
virtual void MovementInform (uint32, uint32)
 
void OnCharmed (bool apply) override
 
void DoZoneInCombat (Creature *creature=NULL, float maxRangeToNearestTarget=50.0f)
 
virtual void ReceiveEmote (Player *, uint32)
 
virtual void OwnerAttackedBy (Unit *)
 
virtual void OwnerAttacked (Unit *)
 
virtual void CorpseRemoved (uint32 &)
 == Triggered Actions Requested ================== More...
 
virtual void PassengerBoarded (Unit *, int8, bool)
 == Fields ======================================= More...
 
virtual void OnSpellClick (Unit *, bool &)
 
virtual bool CanSeeAlways (WorldObject const *)
 
int32 VisualizeBoundary (uint32 duration, Unit *owner=nullptr, bool fill=false) const
 
virtual bool CheckInRoom ()
 
CreatureBoundary constGetBoundary () const
 
- Public Member Functions inherited from UnitAI
 UnitAI (Unit *unit)
 
virtual ~UnitAI ()
 
virtual void InitializeAI ()
 
virtual void DoAction (int32)
 
virtual uint32 GetData (uint32) const
 
virtual void SetData (uint32, uint32)
 
virtual void SetGUID (ObjectGuid, int32=0)
 
virtual ObjectGuid GetGUID (int32=0) const
 
UnitSelectTarget (SelectAggroTarget targetType, uint32 position=0, float dist=0.0f, bool playerOnly=false, int32 aura=0)
 
template<class PREDICATE >
UnitSelectTarget (SelectAggroTarget targetType, uint32 position, PREDICATE const &predicate)
 
void SelectTargetList (std::list< Unit * > &targetList, uint32 num, SelectAggroTarget targetType, float dist=0.0f, bool playerOnly=false, int32 aura=0)
 
template<class PREDICATE >
void SelectTargetList (std::list< Unit * > &targetList, PREDICATE const &predicate, uint32 maxTargets, SelectAggroTarget targetType)
 
virtual void DamageDealt (Unit *, uint32 &, DamageEffectType)
 
virtual void HealReceived (Unit *, uint32 &)
 
virtual void HealDone (Unit *, uint32 &)
 
virtual void SpellInterrupted (uint32, uint32)
 
void AttackStartCaster (Unit *victim, float dist)
 
void DoCast (uint32 spellId)
 
void DoCast (Unit *victim, uint32 spellId, bool triggered=false)
 
void DoCastVictim (uint32 spellId, bool triggered=false)
 
void DoCastAOE (uint32 spellId, bool triggered=false)
 
void DoMeleeAttackIfReady ()
 
bool DoSpellAttackIfReady (uint32 spellId)
 
virtual void sGossipHello (Player *)
 
virtual void sGossipSelect (Player *, uint32, uint32)
 
virtual void sGossipSelectCode (Player *, uint32, uint32, char const *)
 
virtual void sQuestAccept (Player *, Quest const *)
 
virtual void sQuestSelect (Player *, Quest const *)
 
virtual void sQuestReward (Player *, Quest const *, uint32)
 
virtual bool sOnDummyEffect (Unit *, uint32, SpellEffIndex)
 
virtual void sOnGameEvent (bool, uint16)
 

Private Attributes

ObjectGuid _arthasGUID
 
bool _sacrificed
 
bool _introCompleted
 

Additional Inherited Members

- Public Types inherited from CreatureAI
enum  EvadeReason { EVADE_REASON_NO_HOSTILES, EVADE_REASON_BOUNDARY, EVADE_REASON_SEQUENCE_BREAK, EVADE_REASON_OTHER }
 
- Static Public Member Functions inherited from UnitAI
static void FillAISpellInfo ()
 
- Public Attributes inherited from BossAI
InstanceScript *const instance
 
- Public Attributes inherited from ScriptedAI
bool IsFleeing
 
- Static Public Attributes inherited from UnitAI
static AISpellInfoTypeAISpellInfo
 
- Protected Member Functions inherited from BossAI
void _Reset ()
 
void _EnterCombat ()
 
void _JustDied ()
 
void _JustReachedHome ()
 
void _DespawnAtEvade ()
 
void TeleportCheaters ()
 
- Protected Member Functions inherited from CreatureAI
bool UpdateVictim ()
 
bool UpdateVictimWithGaze ()
 
void SetGazeOn (Unit *target)
 
CreatureDoSummon (uint32 entry, Position const &pos, uint32 despawnTime=30000, TempSummonType summonType=TEMPSUMMON_CORPSE_TIMED_DESPAWN)
 
CreatureDoSummon (uint32 entry, WorldObject *obj, float radius=5.0f, uint32 despawnTime=30000, TempSummonType summonType=TEMPSUMMON_CORPSE_TIMED_DESPAWN)
 
CreatureDoSummonFlyer (uint32 entry, WorldObject *obj, float flightZ, float radius=5.0f, uint32 despawnTime=30000, TempSummonType summonType=TEMPSUMMON_CORPSE_TIMED_DESPAWN)
 
bool CheckBoundary (Position const *who=nullptr) const
 
void SetBoundary (CreatureBoundary const *boundary)
 
bool _EnterEvadeMode (EvadeReason why=EVADE_REASON_OTHER)
 
- Protected Attributes inherited from BossAI
EventMap events
 
SummonList summons
 
TaskScheduler scheduler
 
- Protected Attributes inherited from CreatureAI
Creature *const me
 
CreatureBoundary const_boundary
 
- Protected Attributes inherited from UnitAI
Unit *const me
 

Constructor & Destructor Documentation

boss_svala::boss_svalaAI::boss_svalaAI ( Creature creature)
inline
138  : BossAI(creature, DATA_SVALA_SORROWGRAVE)
139  {
140  Initialize();
141  _introCompleted = false;
142  }
bool _introCompleted
Definition: boss_svala.cpp:390
Definition: utgarde_pinnacle.h:29
void Initialize()
Definition: boss_svala.cpp:144
BossAI(Creature *creature, uint32 bossId)
Definition: ScriptedCreature.cpp:444

+ Here is the call graph for this function:

Member Function Documentation

void boss_svala::boss_svalaAI::EnterCombat ( Unit )
inlineoverridevirtual

Reimplemented from BossAI.

169  {
170  _EnterCombat();
171  Talk(SAY_AGGRO);
172  }
void _EnterCombat()
Definition: ScriptedCreature.cpp:480
Definition: boss_svala.cpp:64
void Talk(uint8 id, WorldObject const *whisperTarget=nullptr)
Definition: CreatureAI.cpp:42

+ Here is the call graph for this function:

void boss_svala::boss_svalaAI::Initialize ( void  )
inline
145  {
146  _arthasGUID.Clear();
147  _sacrificed = false;
148  }
ObjectGuid _arthasGUID
Definition: boss_svala.cpp:388
bool _sacrificed
Definition: boss_svala.cpp:389
void Clear()
Definition: ObjectGuid.h:215

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void boss_svala::boss_svalaAI::JustDied ( Unit )
inlineoverridevirtual

Reimplemented from BossAI.

210  {
214  _JustDied();
215  Talk(SAY_DEATH);
216  }
void SetEquipmentSlots(bool loadDefault, int32 mainHand=EQUIP_NO_CHANGE, int32 offHand=EQUIP_NO_CHANGE, int32 ranged=EQUIP_NO_CHANGE)
Definition: ScriptedCreature.cpp:364
void _JustDied()
Definition: ScriptedCreature.cpp:471
bool IsInPhase(uint8 phase) const
Definition: EventMap.h:290
Definition: CreatureAI.h:63
Creature *const me
Definition: CreatureAI.h:71
void Talk(uint8 id, WorldObject const *whisperTarget=nullptr)
Definition: CreatureAI.cpp:42
Definition: boss_svala.cpp:66
EventMap events
Definition: ScriptedCreature.h:371
void HandleEmoteCommand(uint32 anim_id)
Definition: Unit.cpp:1444
Definition: boss_svala.cpp:89
Definition: SharedDefines.h:2557
Definition: CreatureAI.h:64

+ Here is the call graph for this function:

void boss_svala::boss_svalaAI::JustSummoned ( Creature summon)
inlineoverridevirtual

Reimplemented from BossAI.

175  {
176  if (summon->GetEntry() == NPC_RITUAL_CHANNELER)
177  summon->CastSpell(summon, SPELL_SUMMONED_VIS, true);
178  summons.Summon(summon);
179  }
void Summon(Creature const *summon)
Definition: ScriptedCreature.h:92
Definition: boss_svala.cpp:77
SummonList summons
Definition: ScriptedCreature.h:372
Definition: boss_svala.cpp:41
uint32 GetEntry() const
Definition: Object.h:107
void CastSpell(SpellCastTargets const &targets, SpellInfo const *spellInfo, CustomSpellValues const *value, TriggerCastFlags triggerFlags=TRIGGERED_NONE, Item *castItem=NULL, AuraEffect const *triggeredByAura=NULL, ObjectGuid originalCaster=ObjectGuid::Empty)
Definition: Unit.cpp:869

+ Here is the call graph for this function:

void boss_svala::boss_svalaAI::KilledUnit ( Unit who)
inlineoverridevirtual

Reimplemented from ScriptedAI.

204  {
205  if (who->GetTypeId() == TYPEID_PLAYER)
206  Talk(SAY_SLAY);
207  }
Definition: boss_svala.cpp:65
TypeID GetTypeId() const
Definition: Object.h:113
void Talk(uint8 id, WorldObject const *whisperTarget=nullptr)
Definition: CreatureAI.cpp:42
Definition: ObjectGuid.h:33

+ Here is the call graph for this function:

void boss_svala::boss_svalaAI::MoveInLineOfSight ( Unit who)
inlineoverridevirtual

Reimplemented from CreatureAI.

182  {
183  if (!who)
184  return;
185 
186  if (events.IsInPhase(IDLE) && me->IsValidAttackTarget(who) && me->IsWithinDistInMap(who, 40))
187  {
190 
192  mirror->SetGoState(GO_STATE_READY);
193 
195  {
197  _arthasGUID = arthas->GetGUID();
198  }
200  }
201  }
Definition: Object.h:61
Definition: Unit.h:674
void SetPhase(uint8 phase)
Definition: EventMap.cpp:27
Position const ArthasPos
Definition: boss_svala.cpp:129
ObjectGuid _arthasGUID
Definition: boss_svala.cpp:388
bool IsValidAttackTarget(Unit const *target) const
Definition: Unit.cpp:10002
Definition: boss_svala.cpp:86
Definition: Creature.h:467
void SetFlag(uint16 index, uint32 newFlag)
Definition: Object.cpp:1199
bool IsInPhase(uint8 phase) const
Definition: EventMap.h:290
bool IsWithinDistInMap(WorldObject const *obj, float dist2compare, bool is3D=true) const
Definition: Object.cpp:1663
Definition: boss_svala.cpp:87
Creature *const me
Definition: CreatureAI.h:71
virtual ObjectGuid GetGuidData(uint32 type) const override
Definition: InstanceScript.cpp:93
Definition: utgarde_pinnacle.h:35
Definition: boss_svala.cpp:96
Definition: GameObject.h:880
void ScheduleEvent(uint32 eventId, Milliseconds const &time, uint32 group=0, uint8 phase=0)
Definition: EventMap.h:123
Definition: GameObject.h:823
Definition: UpdateFields.h:109
Definition: Common.h:103
TC_GAME_API GameObject * GetGameObject(WorldObject const &u, ObjectGuid const &guid)
Definition: ObjectAccessor.cpp:143
Definition: boss_svala.cpp:76
EventMap events
Definition: ScriptedCreature.h:371
Definition: Unit.h:698
TempSummon * SummonCreature(uint32 id, Position const &pos, TempSummonType spwtype=TEMPSUMMON_MANUAL_DESPAWN, uint32 despwtime=0, uint32 vehId=0) const
Definition: Object.cpp:2346
InstanceScript *const instance
Definition: ScriptedCreature.h:340

+ Here is the call graph for this function:

void boss_svala::boss_svalaAI::Reset ( )
inlineoverridevirtual

Reimplemented from BossAI.

151  {
152  _Reset();
153 
154  SetCombatMovement(true);
155 
156  if (_introCompleted)
158  else
160 
162 
163  Initialize();
164 
166  }
static ObjectGuid const Empty
Definition: ObjectGuid.h:196
void SetPhase(uint8 phase)
Definition: EventMap.cpp:27
bool _introCompleted
Definition: boss_svala.cpp:390
virtual void SetGuidData(uint32, ObjectGuid)
Definition: ZoneScript.h:45
Definition: boss_svala.cpp:86
bool SetDisableGravity(bool disable, bool packetOnly=false)
Definition: Unit.cpp:15818
bool IsInPhase(uint8 phase) const
Definition: EventMap.h:290
Creature *const me
Definition: CreatureAI.h:71
void _Reset()
Definition: ScriptedCreature.cpp:457
void SetCombatMovement(bool allowMovement)
Definition: ScriptedCreature.cpp:382
void Initialize()
Definition: boss_svala.cpp:144
EventMap events
Definition: ScriptedCreature.h:371
Definition: boss_svala.cpp:88
InstanceScript *const instance
Definition: ScriptedCreature.h:340
Definition: utgarde_pinnacle.h:37

+ Here is the call graph for this function:

void boss_svala::boss_svalaAI::SpellHitTarget ( Unit ,
SpellInfo const spellInfo 
)
inlineoverridevirtual

Reimplemented from ScriptedAI.

219  {
221  {
225  SetCombatMovement(true);
226 
227  if (Unit* target = SelectTarget(SELECT_TARGET_RANDOM, 0, 300.0f, true))
228  me->GetMotionMaster()->MoveChase(target);
229  }
230  }
Definition: boss_svala.cpp:108
void SetPhase(uint8 phase)
Definition: EventMap.cpp:27
void MoveChase(Unit *target, float dist=0.0f, float angle=0.0f)
Definition: MotionMaster.cpp:241
MotionMaster * GetMotionMaster()
Definition: Unit.h:2101
Definition: boss_svala.cpp:38
bool IsInPhase(uint8 phase) const
Definition: EventMap.h:290
Definition: boss_svala.cpp:109
Creature *const me
Definition: CreatureAI.h:71
Definition: UnitAI.h:35
uint32 urand(uint32 min, uint32 max)
Definition: Random.cpp:45
Unit * SelectTarget(SelectAggroTarget targetType, uint32 position=0, float dist=0.0f, bool playerOnly=false, int32 aura=0)
Definition: UnitAI.cpp:91
void ScheduleEvent(uint32 eventId, Milliseconds const &time, uint32 group=0, uint8 phase=0)
Definition: EventMap.h:123
void SetCombatMovement(bool allowMovement)
Definition: ScriptedCreature.cpp:382
Definition: boss_svala.cpp:90
Definition: Common.h:103
EventMap events
Definition: ScriptedCreature.h:371
Definition: boss_svala.cpp:88
Definition: Unit.h:1305

+ Here is the call graph for this function:

void boss_svala::boss_svalaAI::UpdateAI ( uint32  diff)
inlineoverridevirtual

Reimplemented from BossAI.

233  {
234  if (events.IsInPhase(IDLE))
235  return;
236 
237  if (events.IsInPhase(NORMAL) && !UpdateVictim())
238  return;
239 
240  events.Update(diff);
241 
242  if (!_sacrificed && HealthBelowPct(50))
243  {
244  _sacrificed = true;
247  }
248 
249  if (events.IsInPhase(NORMAL))
251 
252  while (uint32 eventId = events.ExecuteEvent())
253  {
254  switch (eventId)
255  {
259  break;
262  arthas->AI()->Talk(SAY_DIALOG_OF_ARTHAS_1);
264  break;
266  {
268  arthas->CastSpell(me, SPELL_TRANSFORMING_CHANNEL, true);
269  Position pos;
270  pos.Relocate(me);
271  pos.m_positionZ += 8.0f;
272  me->GetMotionMaster()->MoveTakeoff(0, pos);
273  // spectators flee event
274  std::list<Creature*> lspectatorList;
275  GetCreatureListWithEntryInGrid(lspectatorList, me, NPC_SPECTATOR, 100.0f);
276  for (std::list<Creature*>::iterator itr = lspectatorList.begin(); itr != lspectatorList.end(); ++itr)
277  {
278  if ((*itr)->IsAlive())
279  {
280  (*itr)->SetStandState(UNIT_STAND_STATE_STAND);
281  (*itr)->SetWalk(false);
282  (*itr)->GetMotionMaster()->MovePoint(1, spectatorWP[0]);
283  }
284  }
286  break;
287  }
291  break;
295  {
296  arthas->InterruptNonMeleeSpells(true);
297  me->SetFacingToObject(arthas);
298  }
299  me->RemoveAllAuras();
303  break;
307  break;
310  arthas->AI()->Talk(SAY_DIALOG_OF_ARTHAS_2);
312  break;
315  me->SetFacingTo(1.58f);
317  arthas->SetVisible(false);
319  break;
321  {
322  Position pos;
323  pos.Relocate(me);
324  pos.m_positionX = me->GetHomePosition().GetPositionX();
325  pos.m_positionY = me->GetHomePosition().GetPositionY();
326  pos.m_positionZ = 90.6065f;
327  me->GetMotionMaster()->MoveLand(0, pos);
328  me->SetDisableGravity(false, true);
329  me->SetHover(true);
331  break;
332  }
335  mirror->SetGoState(GO_STATE_ACTIVE);
338  arthas->DespawnOrUnsummon();
339  _arthasGUID.Clear();
341  _introCompleted = true;
344  break;
348  break;
349  case EVENT_CALL_FLAMES:
350  if (Unit* target = SelectTarget(SELECT_TARGET_RANDOM, 0, 100.0f, true))
351  DoCast(target, SPELL_CALL_FLAMES);
353  break;
355  if (Unit* sacrificeTarget = SelectTarget(SELECT_TARGET_RANDOM, 0, 80.0f, true))
356  {
357  instance->SetGuidData(DATA_SACRIFICED_PLAYER, sacrificeTarget->GetGUID());
359  DoCast(sacrificeTarget, SPELL_RITUAL_PREPARATION);
360  SetCombatMovement(false);
362  }
364  break;
370  break;
371  case EVENT_RITUAL_STRIKE:
372  me->StopMoving();
377  break;
378  case EVENT_RITUAL_DISARM:
380  break;
381  default:
382  break;
383  }
384  }
385  }
Definition: Unit.h:207
void RemoveAllAuras()
Definition: Unit.cpp:3920
Definition: boss_svala.cpp:103
Definition: boss_svala.cpp:108
void MoveIdle()
Definition: MotionMaster.cpp:185
Definition: Unit.h:674
bool UpdateVictim()
Definition: CreatureAI.cpp:233
void SetPhase(uint8 phase)
Definition: EventMap.cpp:27
Definition: boss_svala.cpp:35
float m_positionY
Definition: Position.h:53
bool HealthBelowPct(uint32 pct) const
Definition: ScriptedCreature.h:247
Definition: boss_svala.cpp:101
Definition: boss_svala.cpp:105
bool _introCompleted
Definition: boss_svala.cpp:390
Definition: boss_svala.cpp:42
ObjectGuid _arthasGUID
Definition: boss_svala.cpp:388
Definition: boss_svala.cpp:28
MotionMaster * GetMotionMaster()
Definition: Unit.h:2101
Position const spectatorWP[2]
Definition: boss_svala.cpp:123
TC_GAME_API void GetCreatureListWithEntryInGrid(std::list< Creature * > &list, WorldObject *source, uint32 entry, float maxSearchRange)
Definition: ScriptedCreature.cpp:621
virtual void SetGuidData(uint32, ObjectGuid)
Definition: ZoneScript.h:45
Definition: boss_svala.cpp:86
float m_positionX
Definition: Position.h:52
Definition: boss_svala.cpp:34
Definition: Creature.h:467
bool SetDisableGravity(bool disable, bool packetOnly=false)
Definition: Unit.cpp:15818
void SetFlag(uint16 index, uint32 newFlag)
Definition: Object.cpp:1199
bool IsInPhase(uint8 phase) const
Definition: EventMap.h:290
Definition: boss_svala.cpp:109
Definition: boss_svala.cpp:87
Definition: boss_svala.cpp:44
Definition: boss_svala.cpp:70
Creature *const me
Definition: CreatureAI.h:71
bool SetHover(bool enable, bool packetOnly=false)
Definition: Unit.cpp:16018
void SetFacingToObject(WorldObject const *object)
Definition: Unit.cpp:15787
virtual ObjectGuid GetGuidData(uint32 type) const override
Definition: InstanceScript.cpp:93
void Relocate(float x, float y)
Definition: Position.h:67
bool _sacrificed
Definition: boss_svala.cpp:389
Definition: boss_svala.cpp:67
Definition: boss_svala.cpp:71
Definition: UnitAI.h:35
Definition: boss_svala.cpp:114
Definition: utgarde_pinnacle.h:35
Definition: boss_svala.cpp:98
Definition: boss_svala.cpp:110
uint32 urand(uint32 min, uint32 max)
Definition: Random.cpp:45
Definition: boss_svala.cpp:113
Definition: boss_svala.cpp:97
Unit * SelectTarget(SelectAggroTarget targetType, uint32 position=0, float dist=0.0f, bool playerOnly=false, int32 aura=0)
Definition: UnitAI.cpp:91
Definition: boss_svala.cpp:115
Definition: boss_svala.cpp:36
uint32_t uint32
Definition: Define.h:150
Definition: boss_svala.cpp:62
Definition: boss_svala.cpp:96
void DoCast(uint32 spellId)
Definition: UnitAI.cpp:101
Definition: GameObject.h:880
void SetFacingTo(float ori)
Definition: Unit.cpp:15777
void Talk(uint8 id, WorldObject const *whisperTarget=nullptr)
Definition: CreatureAI.cpp:42
float m_positionZ
Definition: Position.h:54
Definition: boss_svala.cpp:31
void ScheduleEvent(uint32 eventId, Milliseconds const &time, uint32 group=0, uint8 phase=0)
Definition: EventMap.h:123
Definition: boss_svala.cpp:104
void SetCombatMovement(bool allowMovement)
Definition: ScriptedCreature.cpp:382
TC_GAME_API Creature * GetCreature(WorldObject const &u, ObjectGuid const &guid)
Definition: ObjectAccessor.cpp:174
Definition: GameObject.h:822
void Update(uint32 time)
Definition: EventMap.h:54
void MoveLand(uint32 id, Position const &pos)
Definition: MotionMaster.cpp:299
void Clear()
Definition: ObjectGuid.h:215
Definition: boss_svala.cpp:78
void RemoveFlag(uint16 index, uint32 oldFlag)
Definition: Object.cpp:1214
Definition: boss_svala.cpp:43
Definition: UpdateFields.h:109
Definition: boss_svala.cpp:100
Definition: Common.h:103
void InterruptNonMeleeSpells(bool withDelayed, uint32 spellid=0, bool withInstant=true)
Definition: Unit.cpp:2916
uint32 ExecuteEvent()
Definition: EventMap.cpp:46
TC_GAME_API GameObject * GetGameObject(WorldObject const &u, ObjectGuid const &guid)
Definition: ObjectAccessor.cpp:143
Definition: boss_svala.cpp:30
void DoMeleeAttackIfReady()
Definition: UnitAI.cpp:49
Definition: Position.h:27
Definition: boss_svala.cpp:37
EventMap events
Definition: ScriptedCreature.h:371
Definition: boss_svala.cpp:89
void DoCastVictim(uint32 spellId, bool triggered=false)
Definition: UnitAI.cpp:159
Definition: boss_svala.cpp:99
Definition: boss_svala.cpp:59
Definition: utgarde_pinnacle.h:49
Definition: boss_svala.cpp:26
Definition: boss_svala.cpp:102
Definition: boss_svala.cpp:88
Definition: boss_svala.cpp:63
void MoveTakeoff(uint32 id, Position const &pos)
Definition: MotionMaster.cpp:313
Definition: Unit.h:1305
void StopMoving()
-------—End of Pet responses methods-------—
Definition: Unit.cpp:12743
bool UpdateEntry(uint32 entry, CreatureData const *data=nullptr)
Definition: Creature.cpp:407
void CastSpell(SpellCastTargets const &targets, SpellInfo const *spellInfo, CustomSpellValues const *value, TriggerCastFlags triggerFlags=TRIGGERED_NONE, Item *castItem=NULL, AuraEffect const *triggeredByAura=NULL, ObjectGuid originalCaster=ObjectGuid::Empty)
Definition: Unit.cpp:869
void GetHomePosition(float &x, float &y, float &z, float &ori) const
Definition: Creature.h:672
InstanceScript *const instance
Definition: ScriptedCreature.h:340
Definition: boss_svala.cpp:27
Definition: utgarde_pinnacle.h:37

+ Here is the call graph for this function:

Member Data Documentation

ObjectGuid boss_svala::boss_svalaAI::_arthasGUID
private
bool boss_svala::boss_svalaAI::_introCompleted
private
bool boss_svala::boss_svalaAI::_sacrificed
private

The documentation for this struct was generated from the following file: