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

Public Member Functions

 boss_valithria_dreamwalkerAI (Creature *creature)
 
void Initialize ()
 
void InitializeAI () override
 
void Reset () override
 
void AttackStart (Unit *) override
 
void DoAction (int32 action) override
 
void HealReceived (Unit *healer, uint32 &heal) override
 
void DamageTaken (Unit *, uint32 &damage) override
 
void SpellHit (Unit *, SpellInfo const *spell) override
 
void JustSummoned (Creature *summon) override
 
void SummonedCreatureDespawn (Creature *summon) override
 
void UpdateAI (uint32 diff) override
 
uint32 GetData (uint32 type) const override
 
- Public Member Functions inherited from ScriptedAI
 ScriptedAI (Creature *creature)
 
virtual ~ScriptedAI ()
 
void AttackStartNoMove (Unit *target)
 
void JustDied (Unit *) override
 
void KilledUnit (Unit *) override
 
void SpellHitTarget (Unit *, SpellInfo const *) override
 
void OnPossess (bool)
 
void EnterCombat (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
 
virtual void JustReachedHome ()
 
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 bool CanAIAttack (Unit const *) 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 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

EventMap _events
 
InstanceScript_instance
 
uint32 _spawnHealth
 
uint32 const _portalCount
 
uint32 _missedPortals
 
bool _under25PercentTalkDone
 
bool _over75PercentTalkDone
 
bool _justDied
 
bool _done
 

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 ScriptedAI
bool IsFleeing
 
- Static Public Attributes inherited from UnitAI
static AISpellInfoTypeAISpellInfo
 
- 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)
 
virtual void MoveInLineOfSight (Unit *)
 
bool _EnterEvadeMode (EvadeReason why=EVADE_REASON_OTHER)
 
- Protected Attributes inherited from CreatureAI
Creature *const me
 
CreatureBoundary const_boundary
 
- Protected Attributes inherited from UnitAI
Unit *const me
 

Constructor & Destructor Documentation

boss_valithria_dreamwalker::boss_valithria_dreamwalkerAI::boss_valithria_dreamwalkerAI ( Creature creature)
inline
282  : ScriptedAI(creature),
283  _instance(creature->GetInstanceScript()), _portalCount(RAID_MODE<uint32>(3, 8, 3, 8))
284  {
285  Initialize();
287  }
ScriptedAI(Creature *creature)
Definition: ScriptedCreature.cpp:100
uint32 _spawnHealth
Definition: boss_valithria_dreamwalker.cpp:481
InstanceScript * _instance
Definition: boss_valithria_dreamwalker.cpp:480
InstanceScript * GetInstanceScript()
Definition: Object.cpp:1540
void Initialize()
Definition: boss_valithria_dreamwalker.cpp:289
Creature *const me
Definition: CreatureAI.h:71
uint32 const _portalCount
Definition: boss_valithria_dreamwalker.cpp:482
uint32 GetHealth() const
Definition: Unit.h:1426

+ Here is the call graph for this function:

Member Function Documentation

void boss_valithria_dreamwalker::boss_valithria_dreamwalkerAI::AttackStart ( Unit )
inlineoverridevirtual

Reimplemented from ScriptedAI.

323  {
324  }
void boss_valithria_dreamwalker::boss_valithria_dreamwalkerAI::DamageTaken ( Unit ,
uint32 damage 
)
inlineoverridevirtual

Reimplemented from ScriptedAI.

370  {
371  if (me->HealthBelowPctDamaged(25, damage))
372  {
374  {
377  }
378 
379  if (damage > me->GetHealth())
380  {
381  damage = 0;
382  if (!_justDied)
383  {
384  _justDied = true;
388  trigger->AI()->DoAction(ACTION_DEATH);
389  }
390  }
391  }
392  }
Definition: InstanceScript.h:46
bool _justDied
Definition: boss_valithria_dreamwalker.cpp:486
bool HealthBelowPctDamaged(int32 pct, uint32 damage) const
Definition: Unit.h:1431
Definition: boss_valithria_dreamwalker.cpp:37
InstanceScript * _instance
Definition: boss_valithria_dreamwalker.cpp:480
Definition: icecrown_citadel.h:112
Definition: boss_valithria_dreamwalker.cpp:147
Definition: Creature.h:467
void SendEncounterUnit(uint32 type, Unit *unit=NULL, uint8 param1=0, uint8 param2=0)
Definition: InstanceScript.cpp:575
Creature *const me
Definition: CreatureAI.h:71
virtual ObjectGuid GetGuidData(uint32 type) const override
Definition: InstanceScript.cpp:93
bool _under25PercentTalkDone
Definition: boss_valithria_dreamwalker.cpp:484
void Talk(uint8 id, WorldObject const *whisperTarget=nullptr)
Definition: CreatureAI.cpp:42
Definition: boss_valithria_dreamwalker.cpp:38
TC_GAME_API Creature * GetCreature(WorldObject const &u, ObjectGuid const &guid)
Definition: ObjectAccessor.cpp:174
uint32 GetHealth() const
Definition: Unit.h:1426

+ Here is the call graph for this function:

void boss_valithria_dreamwalker::boss_valithria_dreamwalkerAI::DoAction ( int32  action)
inlineoverridevirtual

Reimplemented from UnitAI.

327  {
328  if (action != ACTION_ENTER_COMBAT)
329  return;
330 
335  if (IsHeroic())
337  }
Definition: boss_valithria_dreamwalker.cpp:110
InstanceScript * _instance
Definition: boss_valithria_dreamwalker.cpp:480
Definition: boss_valithria_dreamwalker.cpp:112
bool IsHeroic() const
Definition: ScriptedCreature.h:268
Definition: boss_valithria_dreamwalker.cpp:145
void SendEncounterUnit(uint32 type, Unit *unit=NULL, uint8 param1=0, uint8 param2=0)
Definition: InstanceScript.cpp:575
Creature *const me
Definition: CreatureAI.h:71
Definition: InstanceScript.h:45
uint32 urand(uint32 min, uint32 max)
Definition: Random.cpp:45
void DoCast(uint32 spellId)
Definition: UnitAI.cpp:101
void ScheduleEvent(uint32 eventId, Milliseconds const &time, uint32 group=0, uint8 phase=0)
Definition: EventMap.h:123
Definition: boss_valithria_dreamwalker.cpp:111
EventMap _events
Definition: boss_valithria_dreamwalker.cpp:479
Definition: boss_valithria_dreamwalker.cpp:47

+ Here is the call graph for this function:

uint32 boss_valithria_dreamwalker::boss_valithria_dreamwalkerAI::GetData ( uint32  type) const
inlineoverridevirtual

Reimplemented from UnitAI.

471  {
472  if (type == MISSED_PORTALS)
473  return _missedPortals;
474 
475  return 0;
476  }
uint32 _missedPortals
Definition: boss_valithria_dreamwalker.cpp:483
Definition: boss_valithria_dreamwalker.cpp:146
void boss_valithria_dreamwalker::boss_valithria_dreamwalkerAI::HealReceived ( Unit healer,
uint32 heal 
)
inlineoverridevirtual

Reimplemented from UnitAI.

340  {
341  if (!me->hasLootRecipient())
342  me->SetLootRecipient(healer);
343 
344  me->LowerPlayerDamageReq(heal);
345 
346  // encounter complete
347  if (me->HealthAbovePctHealed(100, heal) && !_done)
348  {
349  _done = true;
357  lichKing->AI()->EnterEvadeMode();
358  }
359  else if (!_over75PercentTalkDone && me->HealthAbovePctHealed(75, heal))
360  {
361  _over75PercentTalkDone = true;
363  }
365  if (Creature* archmage = me->FindNearestCreature(NPC_RISEN_ARCHMAGE, 30.0f))
366  archmage->AI()->DoZoneInCombat(); // call EnterCombat on one of them, that will make it all start
367  }
Definition: InstanceScript.h:46
bool HealthAbovePctHealed(int32 pct, uint32 heal) const
Definition: Unit.h:1433
void DoCastAOE(uint32 spellId, bool triggered=false)
Definition: UnitAI.cpp:167
Definition: icecrown_citadel.h:85
Definition: icecrown_citadel.h:113
Definition: boss_valithria_dreamwalker.cpp:56
Definition: boss_valithria_dreamwalker.cpp:58
InstanceScript * _instance
Definition: boss_valithria_dreamwalker.cpp:480
Definition: boss_valithria_dreamwalker.cpp:41
Definition: boss_valithria_dreamwalker.cpp:113
Definition: Creature.h:467
Creature * FindNearestCreature(uint32 entry, float range, bool alive=true) const
Definition: Object.cpp:2443
bool _over75PercentTalkDone
Definition: boss_valithria_dreamwalker.cpp:485
Definition: boss_valithria_dreamwalker.cpp:61
void SetLootRecipient(Unit *unit)
Definition: Creature.cpp:993
void SendEncounterUnit(uint32 type, Unit *unit=NULL, uint8 param1=0, uint8 param2=0)
Definition: InstanceScript.cpp:575
Creature *const me
Definition: CreatureAI.h:71
virtual ObjectGuid GetGuidData(uint32 type) const override
Definition: InstanceScript.cpp:93
bool _done
Definition: boss_valithria_dreamwalker.cpp:487
Definition: icecrown_citadel.h:277
Definition: InstanceScript.h:58
void DoCast(uint32 spellId)
Definition: UnitAI.cpp:101
void Talk(uint8 id, WorldObject const *whisperTarget=nullptr)
Definition: CreatureAI.cpp:42
void ScheduleEvent(uint32 eventId, Milliseconds const &time, uint32 group=0, uint8 phase=0)
Definition: EventMap.h:123
TC_GAME_API Creature * GetCreature(WorldObject const &u, ObjectGuid const &guid)
Definition: ObjectAccessor.cpp:174
void RemoveAurasDueToSpell(uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, uint32 reqEffMask=0, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
Definition: Unit.cpp:3586
Definition: boss_valithria_dreamwalker.cpp:36
bool hasLootRecipient() const
Definition: Creature.h:586
EncounterState GetBossState(uint32 id) const
Definition: InstanceScript.h:227
EventMap _events
Definition: boss_valithria_dreamwalker.cpp:479
void LowerPlayerDamageReq(uint32 unDamage)
Definition: Creature.cpp:1239

+ Here is the call graph for this function:

void boss_valithria_dreamwalker::boss_valithria_dreamwalkerAI::Initialize ( void  )
inline
290  {
291  _missedPortals = 0;
292  _under25PercentTalkDone = false;
293  _over75PercentTalkDone = false;
294  _justDied = false;
295  _done = false;
296  }
uint32 _missedPortals
Definition: boss_valithria_dreamwalker.cpp:483
bool _justDied
Definition: boss_valithria_dreamwalker.cpp:486
bool _over75PercentTalkDone
Definition: boss_valithria_dreamwalker.cpp:485
bool _under25PercentTalkDone
Definition: boss_valithria_dreamwalker.cpp:484
bool _done
Definition: boss_valithria_dreamwalker.cpp:487

+ Here is the caller graph for this function:

void boss_valithria_dreamwalker::boss_valithria_dreamwalkerAI::InitializeAI ( )
inlineoverridevirtual

Reimplemented from UnitAI.

299  {
300  if (CreatureData const* data = sObjectMgr->GetCreatureData(me->GetSpawnId()))
301  if (data->curhealth)
302  _spawnHealth = data->curhealth;
303 
304  if (!me->isDead())
305  Reset();
306  }
Definition: Creature.h:287
uint32 _spawnHealth
Definition: boss_valithria_dreamwalker.cpp:481
ObjectGuid::LowType GetSpawnId() const
Definition: Creature.h:487
void Reset() override
Definition: boss_valithria_dreamwalker.cpp:308
#define sObjectMgr
Definition: ObjectMgr.h:1567
Creature *const me
Definition: CreatureAI.h:71
bool isDead() const
Definition: Unit.h:1694

+ Here is the call graph for this function:

void boss_valithria_dreamwalker::boss_valithria_dreamwalkerAI::JustSummoned ( Creature summon)
inlineoverridevirtual

Reimplemented from ScriptedAI.

413  {
414  if (summon->GetEntry() == NPC_DREAM_PORTAL_PRE_EFFECT)
415  {
416  summon->m_Events.AddEvent(new DelayedCastEvent(summon, SPELL_SUMMON_DREAM_PORTAL, me->GetGUID(), 6000), summon->m_Events.CalculateTime(15000));
418  }
419  else if (summon->GetEntry() == NPC_NIGHTMARE_PORTAL_PRE_EFFECT)
420  {
421  summon->m_Events.AddEvent(new DelayedCastEvent(summon, SPELL_SUMMON_NIGHTMARE_PORTAL, me->GetGUID(), 6000), summon->m_Events.CalculateTime(15000));
423  }
424  }
EventProcessor m_Events
Definition: Unit.h:1948
Definition: boss_valithria_dreamwalker.cpp:197
Definition: icecrown_citadel.h:286
void AddEvent(BasicEvent *Event, uint64 e_time, bool set_addtime=true)
Definition: EventProcessor.cpp:88
Definition: boss_valithria_dreamwalker.cpp:48
Definition: icecrown_citadel.h:287
Creature *const me
Definition: CreatureAI.h:71
Definition: boss_valithria_dreamwalker.cpp:55
uint64 CalculateTime(uint64 t_offset) const
Definition: EventProcessor.cpp:95
ObjectGuid const & GetGUID() const
Definition: Object.h:105
uint32 GetEntry() const
Definition: Object.h:107
Definition: boss_valithria_dreamwalker.cpp:175
Definition: boss_valithria_dreamwalker.cpp:49
Definition: boss_valithria_dreamwalker.cpp:54

+ Here is the call graph for this function:

void boss_valithria_dreamwalker::boss_valithria_dreamwalkerAI::Reset ( )
inlineoverridevirtual

Reimplemented from ScriptedAI.

309  {
313  // immune to percent heals
316  // Glyph of Dispel Magic - not a percent heal by effect, its cast with custom basepoints
317  me->ApplySpellImmune(0, IMMUNITY_ID, 56131, true);
319  Initialize();
320  }
Definition: InstanceScript.h:46
uint32 _spawnHealth
Definition: boss_valithria_dreamwalker.cpp:481
Definition: SharedDefines.h:1866
InstanceScript * _instance
Definition: boss_valithria_dreamwalker.cpp:480
Definition: Unit.h:1129
Definition: SpellAuraDefines.h:80
Definition: SharedDefines.h:1861
void ApplySpellImmune(uint32 spellId, uint32 op, uint32 type, bool apply)
Definition: Unit.cpp:9615
void Initialize()
Definition: boss_valithria_dreamwalker.cpp:289
void SendEncounterUnit(uint32 type, Unit *unit=NULL, uint8 param1=0, uint8 param2=0)
Definition: InstanceScript.cpp:575
Creature *const me
Definition: CreatureAI.h:71
Definition: SharedDefines.h:1146
bool LoadCreaturesAddon()
Definition: Creature.cpp:2214
Definition: SharedDefines.h:1860
void SetHealth(uint32 val)
Definition: Unit.cpp:11537
void SetReactState(ReactStates st)
Definition: Creature.h:502

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void boss_valithria_dreamwalker::boss_valithria_dreamwalkerAI::SpellHit ( Unit ,
SpellInfo const spell 
)
inlineoverridevirtual

Reimplemented from ScriptedAI.

395  {
396  if (spell->Id == SPELL_DREAM_SLIP)
397  {
400  // this display id was found in sniff instead of the one on aura
401  me->SetDisplayId(11686);
403  me->DespawnOrUnsummon(4000);
405  lichKing->CastSpell(lichKing, SPELL_SPAWN_CHEST, false);
406 
408  me->Kill(trigger);
409  }
410  }
void DespawnOrUnsummon(uint32 msTimeToDespawn=0)
Definition: Creature.cpp:1774
void Kill(Unit *victim, bool durabilityLoss=true)
Definition: Unit.cpp:13513
Definition: boss_valithria_dreamwalker.cpp:57
Definition: icecrown_citadel.h:113
InstanceScript * _instance
Definition: boss_valithria_dreamwalker.cpp:480
Definition: icecrown_citadel.h:112
Definition: Creature.h:467
void SetFlag(uint16 index, uint32 newFlag)
Definition: Object.cpp:1199
Definition: boss_valithria_dreamwalker.cpp:60
Definition: boss_valithria_dreamwalker.cpp:71
Creature *const me
Definition: CreatureAI.h:71
virtual ObjectGuid GetGuidData(uint32 type) const override
Definition: InstanceScript.cpp:93
void DoCast(uint32 spellId)
Definition: UnitAI.cpp:101
Definition: boss_valithria_dreamwalker.cpp:59
TC_GAME_API Creature * GetCreature(WorldObject const &u, ObjectGuid const &guid)
Definition: ObjectAccessor.cpp:174
void SetDisplayId(uint32 modelId) override
Definition: Creature.cpp:2664
Definition: UpdateFields.h:109
Definition: Unit.h:698

+ Here is the call graph for this function:

void boss_valithria_dreamwalker::boss_valithria_dreamwalkerAI::SummonedCreatureDespawn ( Creature summon)
inlineoverridevirtual

Reimplemented from ScriptedAI.

427  {
428  if (summon->GetEntry() == NPC_DREAM_PORTAL || summon->GetEntry() == NPC_NIGHTMARE_PORTAL)
429  if (summon->AI()->GetData(MISSED_PORTALS))
430  ++_missedPortals;
431  }
uint32 _missedPortals
Definition: boss_valithria_dreamwalker.cpp:483
Definition: boss_valithria_dreamwalker.cpp:146
CreatureAI * AI() const
Definition: Creature.h:525
Definition: icecrown_citadel.h:288
uint32 GetEntry() const
Definition: Object.h:107
virtual uint32 GetData(uint32) const
Definition: UnitAI.h:139
Definition: icecrown_citadel.h:289

+ Here is the call graph for this function:

void boss_valithria_dreamwalker::boss_valithria_dreamwalkerAI::UpdateAI ( uint32  diff)
inlineoverridevirtual

Reimplemented from ScriptedAI.

434  {
435  // does not enter combat
437  return;
438 
439  _events.Update(diff);
440 
442  return;
443 
444  while (uint32 eventId = _events.ExecuteEvent())
445  {
446  switch (eventId)
447  {
448  case EVENT_INTRO_TALK:
450  break;
451  case EVENT_BERSERK:
453  break;
454  case EVENT_DREAM_PORTAL:
455  if (!IsHeroic())
457  for (uint32 i = 0; i < _portalCount; ++i)
460  break;
461  case EVENT_DREAM_SLIP:
463  break;
464  default:
465  break;
466  }
467  }
468  }
Definition: icecrown_citadel.h:85
Definition: boss_valithria_dreamwalker.cpp:110
Definition: Unit.h:565
Definition: boss_valithria_dreamwalker.cpp:57
Definition: boss_valithria_dreamwalker.cpp:40
InstanceScript * _instance
Definition: boss_valithria_dreamwalker.cpp:480
Definition: boss_valithria_dreamwalker.cpp:112
Definition: boss_valithria_dreamwalker.cpp:113
bool IsHeroic() const
Definition: ScriptedCreature.h:268
#define SUMMON_PORTAL
Definition: boss_valithria_dreamwalker.cpp:101
Creature *const me
Definition: CreatureAI.h:71
Definition: boss_valithria_dreamwalker.cpp:34
Definition: InstanceScript.h:59
uint32 urand(uint32 min, uint32 max)
Definition: Random.cpp:45
uint32_t uint32
Definition: Define.h:150
void DoCast(uint32 spellId)
Definition: UnitAI.cpp:101
void Talk(uint8 id, WorldObject const *whisperTarget=nullptr)
Definition: CreatureAI.cpp:42
void ScheduleEvent(uint32 eventId, Milliseconds const &time, uint32 group=0, uint8 phase=0)
Definition: EventMap.h:123
uint32 const _portalCount
Definition: boss_valithria_dreamwalker.cpp:482
Definition: boss_valithria_dreamwalker.cpp:111
void Update(uint32 time)
Definition: EventMap.h:54
Definition: boss_valithria_dreamwalker.cpp:35
uint32 ExecuteEvent()
Definition: EventMap.cpp:46
bool HasUnitState(const uint32 f) const
Definition: Unit.h:1395
EncounterState GetBossState(uint32 id) const
Definition: InstanceScript.h:227
EventMap _events
Definition: boss_valithria_dreamwalker.cpp:479

+ Here is the call graph for this function:

Member Data Documentation

bool boss_valithria_dreamwalker::boss_valithria_dreamwalkerAI::_done
private
EventMap boss_valithria_dreamwalker::boss_valithria_dreamwalkerAI::_events
private
InstanceScript* boss_valithria_dreamwalker::boss_valithria_dreamwalkerAI::_instance
private
bool boss_valithria_dreamwalker::boss_valithria_dreamwalkerAI::_justDied
private
uint32 boss_valithria_dreamwalker::boss_valithria_dreamwalkerAI::_missedPortals
private
bool boss_valithria_dreamwalker::boss_valithria_dreamwalkerAI::_over75PercentTalkDone
private
uint32 const boss_valithria_dreamwalker::boss_valithria_dreamwalkerAI::_portalCount
private
uint32 boss_valithria_dreamwalker::boss_valithria_dreamwalkerAI::_spawnHealth
private
bool boss_valithria_dreamwalker::boss_valithria_dreamwalkerAI::_under25PercentTalkDone
private

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