TrinityCore
Loading...
Searching...
No Matches
boss_voice_of_yogg_saron::boss_voice_of_yogg_saronAI Struct Reference

Public Member Functions

 boss_voice_of_yogg_saronAI (Creature *creature)
 
void Initialize ()
 
void MoveInLineOfSight (Unit *who) override
 
void EnterEvadeMode (EvadeReason why) override
 
void Reset () override
 
void JustEngagedWith (Unit *) override
 
void JustDied (Unit *) override
 
void UpdateAI (uint32 diff) override
 
void DoAction (int32 action) override
 
void JustSummoned (Creature *summon) override
 
- Public Member Functions inherited from BossAI
 BossAI (Creature *creature, uint32 bossId)
 
virtual ~BossAI ()
 
void JustSummoned (Creature *summon) override
 
void SummonedCreatureDespawn (Creature *summon) override
 
virtual void UpdateAI (uint32 diff) override
 
virtual void ExecuteEvent (uint32)
 
virtual void ScheduleTasks ()
 
void Reset () override
 
void JustEngagedWith (Unit *who) override
 
void JustDied (Unit *) override
 
void JustReachedHome () override
 
bool CanAIAttack (Unit const *target) const override
 
uint32 GetBossId () const
 
- Public Member Functions inherited from ScriptedAI
 ScriptedAI (Creature *creature)
 
 ScriptedAI (Creature *creature, uint32 scriptId)
 
virtual ~ScriptedAI ()
 
void AttackStartNoMove (Unit *target)
 
virtual void UpdateAI (uint32 diff) override
 
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 AddThreat (Unit *victim, float amount, Unit *who=nullptr)
 
void ModifyThreatByPercent (Unit *victim, int32 pct, Unit *who=nullptr)
 
void ResetThreat (Unit *victim, Unit *who=nullptr)
 
void ResetThreatList (Unit *who=nullptr)
 
float GetThreat (Unit const *victim, Unit const *who=nullptr)
 
void ForceCombatStop (Creature *who, bool reset=true)
 
void ForceCombatStopForCreatureEntry (uint32 entry, float maxSearchRange=250.0f, bool samePhase=true, bool reset=true)
 
void ForceCombatStopForCreatureEntry (std::vector< uint32 > creatureEntries, float maxSearchRange=250.0f, bool samePhase=true, bool reset=true)
 
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)
 
UnitDoSelectBelowHpPctFriendlyWithEntry (uint32 entry, float range, uint8 hpPct=1, bool excludeSelf=true)
 
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, Milliseconds despawntime)
 
bool HealthBelowPct (uint32 pct) const
 
bool HealthAbovePct (uint32 pct) const
 
SpellInfo const * SelectSpell (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 IsLFR () const
 
bool IsNormal () const
 
bool IsHeroic () const
 
bool IsMythic () const
 
bool IsMythicPlus () const
 
bool IsHeroicOrHigher () const
 
bool IsTimewalking () const
 
Difficulty GetDifficulty () const
 
bool Is25ManRaid () const
 
template<class T >
T const & DUNGEON_MODE (T const &normal5, T const &heroic10) const
 
template<class T >
T const & RAID_MODE (T const &normal10, T const &normal25) const
 
template<class T >
T const & RAID_MODE (T const &normal10, T const &normal25, T const &heroic10, T const &heroic25) const
 
- Public Member Functions inherited from CreatureAI
 CreatureAI (Creature *creature, uint32 scriptId={})
 
virtual ~CreatureAI ()
 
uint32 GetId () const
 
bool IsEngaged () const
 
void Talk (uint8 id, WorldObject const *whisperTarget=nullptr)
 
void MoveInLineOfSight_Safe (Unit *who)
 == Reactions At =================================
 
void TriggerAlert (Unit const *who) const
 
virtual void EnterEvadeMode (EvadeReason why=EvadeReason::Other)
 
void JustEnteredCombat (Unit *) override
 
virtual void JustStartedThreateningMe (Unit *who)
 
virtual void JustEngagedWith (Unit *)
 
virtual void OnHealthDepleted (Unit *, bool)
 
virtual void JustDied (Unit *)
 
virtual void KilledUnit (Unit *)
 
virtual void JustSummoned (Creature *)
 
virtual void IsSummonedBy (WorldObject *)
 
virtual void SummonedCreatureDespawn (Creature *)
 
virtual void SummonedCreatureDies (Creature *, Unit *)
 
virtual void JustSummonedGameobject (GameObject *)
 
virtual void SummonedGameobjectDespawn (GameObject *)
 
virtual void JustRegisteredDynObject (DynamicObject *)
 
virtual void JustUnregisteredDynObject (DynamicObject *)
 
virtual void JustRegisteredAreaTrigger (AreaTrigger *)
 
virtual void JustUnregisteredAreaTrigger (AreaTrigger *)
 
virtual void SpellHit (WorldObject *, SpellInfo const *)
 
virtual void SpellHitTarget (WorldObject *, SpellInfo const *)
 
virtual void OnSpellCast (SpellInfo const *)
 
virtual void OnSpellFailed (SpellInfo const *)
 
virtual void OnSpellStart (SpellInfo const *)
 
virtual void OnChannelFinished (SpellInfo const *)
 
virtual bool IsEscorted () const
 
virtual void JustAppeared ()
 
virtual void MovementInform (uint32, uint32)
 
void OnCharmed (bool isNew) override
 
virtual void JustReachedHome ()
 
void DoZoneInCombat ()
 
virtual void ReceiveEmote (Player *, uint32)
 
virtual void OwnerAttackedBy (Unit *attacker)
 
virtual void OwnerAttacked (Unit *target)
 
virtual void CorpseRemoved (uint32 &)
 == Triggered Actions Requested ==================
 
virtual Optional< QuestGiverStatusGetDialogStatus (Player const *player)
 == Gossip system ================================
 
virtual bool OnGossipHello (Player *)
 
virtual bool OnGossipSelect (Player *, uint32, uint32)
 
virtual bool OnGossipSelectCode (Player *, uint32, uint32, char const *)
 
virtual void OnQuestAccept (Player *, Quest const *)
 
virtual void OnQuestReward (Player *, Quest const *, LootItemType, uint32)
 
virtual void WaypointStarted (uint32, uint32)
 == Waypoints system =============================
 
virtual void WaypointReached (uint32, uint32)
 
virtual void WaypointPathEnded (uint32, uint32)
 
virtual void PassengerBoarded (Unit *, int8, bool)
 == Fields =======================================
 
virtual void OnSpellClick (Unit *, bool)
 
virtual bool CanSeeAlways (WorldObject const *)
 
virtual PlayerAIGetAIForCharmedPlayer (Player *)
 
int32 VisualizeBoundary (Seconds duration, Unit *owner=nullptr, bool fill=false) const
 
virtual bool CheckInRoom ()
 
CreatureBoundary const * GetBoundary () const
 
void SetBoundary (CreatureBoundary const *boundary, bool negativeBoundaries=false)
 
bool IsInBoundary (Position const *who=nullptr) const
 
- Public Member Functions inherited from UnitAI
 UnitAI (Unit *unit)
 
virtual ~UnitAI ()
 
virtual bool CanAIAttack (Unit const *) const
 
virtual void AttackStart (Unit *)
 
virtual void UpdateAI (uint32 diff)=0
 
virtual void InitializeAI ()
 
virtual void Reset ()
 
virtual void OnCharmed (bool isNew)
 
virtual void DoAction (int32)
 
virtual uint32 GetData (uint32) const
 
virtual void SetData (uint32, uint32)
 
virtual void SetGUID (ObjectGuid const &, int32=0)
 
virtual ObjectGuid GetGUID (int32=0) const
 
UnitSelectTarget (SelectTargetMethod targetType, uint32 offset=0, float dist=0.0f, bool playerOnly=false, bool withTank=true, int32 aura=0)
 
template<class PREDICATE >
UnitSelectTarget (SelectTargetMethod targetType, uint32 offset, PREDICATE const &predicate)
 
void SelectTargetList (std::list< Unit * > &targetList, uint32 num, SelectTargetMethod targetType, uint32 offset=0, float dist=0.0f, bool playerOnly=false, bool withTank=true, int32 aura=0)
 
template<class PREDICATE >
void SelectTargetList (std::list< Unit * > &targetList, uint32 num, SelectTargetMethod targetType, uint32 offset, PREDICATE const &predicate)
 
virtual void JustEnteredCombat (Unit *)
 
virtual void JustExitedCombat ()
 
virtual void OnDespawn ()
 
virtual void DamageDealt (Unit *, uint32 &, DamageEffectType)
 
virtual void DamageTaken (Unit *, uint32 &, DamageEffectType, SpellInfo const *)
 
virtual void HealReceived (Unit *, uint32 &)
 
virtual void HealDone (Unit *, uint32 &)
 
virtual void SpellInterrupted (uint32, uint32)
 
void AttackStartCaster (Unit *victim, float dist)
 
SpellCastResult DoCast (uint32 spellId)
 
SpellCastResult DoCast (Unit *victim, uint32 spellId, CastSpellExtraArgs const &args={})
 
SpellCastResult DoCastSelf (uint32 spellId, CastSpellExtraArgs const &args={})
 
SpellCastResult DoCastVictim (uint32 spellId, CastSpellExtraArgs const &args={})
 
SpellCastResult DoCastAOE (uint32 spellId, CastSpellExtraArgs const &args={})
 
void DoMeleeAttackIfReady ()
 
bool DoSpellAttackIfReady (uint32 spellId)
 
virtual void OnGameEvent (bool, uint16)
 
virtual std::string GetDebugInfo () const
 

Private Attributes

uint8 _guardiansCount
 
Milliseconds _guardianTimer
 
bool _illusionShattered
 

Additional Inherited Members

- Static Public Member Functions inherited from CreatureAI
static void DoZoneInCombat (Creature *creature)
 
static bool IsInBounds (CreatureBoundary const &boundary, Position const *who)
 
- 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 std::unordered_map< std::pair< uint32, Difficulty >, AISpellInfoTypeAISpellInfo
 
- Protected Member Functions inherited from BossAI
void _Reset ()
 
void _JustEngagedWith (Unit *who)
 
void _JustDied ()
 
void _JustReachedHome ()
 
void _DespawnAtEvade (Seconds delayToRespawn=30s, Creature *who=nullptr)
 
void TeleportCheaters ()
 
- Protected Member Functions inherited from CreatureAI
bool UpdateVictim ()
 
CreatureDoSummon (uint32 entry, Position const &pos, Milliseconds despawnTime=30s, TempSummonType summonType=TEMPSUMMON_CORPSE_TIMED_DESPAWN)
 
CreatureDoSummon (uint32 entry, WorldObject *obj, float radius=5.0f, Milliseconds despawnTime=30s, TempSummonType summonType=TEMPSUMMON_CORPSE_TIMED_DESPAWN)
 
CreatureDoSummonFlyer (uint32 entry, WorldObject *obj, float flightZ, float radius=5.0f, Milliseconds despawnTime=30s, TempSummonType summonType=TEMPSUMMON_CORPSE_TIMED_DESPAWN)
 
void EngagementStart (Unit *who)
 
void EngagementOver ()
 
virtual void MoveInLineOfSight (Unit *)
 
bool _EnterEvadeMode (EvadeReason why=EvadeReason::Other)
 
- Protected Attributes inherited from BossAI
EventMap events
 
SummonList summons
 
TaskScheduler scheduler
 
- Protected Attributes inherited from CreatureAI
Creature *const me
 
CreatureBoundary const * _boundary
 
bool _negateBoundary
 
- Protected Attributes inherited from UnitAI
Unit *const me
 

Detailed Description

Definition at line 446 of file boss_yogg_saron.cpp.

Constructor & Destructor Documentation

◆ boss_voice_of_yogg_saronAI()

boss_voice_of_yogg_saron::boss_voice_of_yogg_saronAI::boss_voice_of_yogg_saronAI ( Creature creature)
inline

Definition at line 448 of file boss_yogg_saron.cpp.

448 : BossAI(creature, DATA_YOGG_SARON)
449 {
450 Initialize();
451 SetCombatMovement(false);
452 }
void SetCombatMovement(bool allowMovement)
@ DATA_YOGG_SARON
Definition: ulduar.h:49
+ Here is the call graph for this function:

Member Function Documentation

◆ DoAction()

void boss_voice_of_yogg_saron::boss_voice_of_yogg_saronAI::DoAction ( int32  action)
inlineoverridevirtual

Reimplemented from UnitAI.

Definition at line 615 of file boss_yogg_saron.cpp.

616 {
617 switch (action)
618 {
622 break;
623 case ACTION_PHASE_TWO:
627 DoZoneInCombat(brain);
632 break;
635 break;
639 break;
640 default:
641 break;
642 }
643 }
@ EVENT_GROUP_SUMMON_TENTACLES
@ ACTION_TOGGLE_SHATTERED_ILLUSION
@ ACTION_PHASE_TRANSFORM
@ ACTION_PHASE_THREE
@ ACTION_PHASE_TWO
Position const YoggSaronSpawnPos
@ PHASE_THREE
@ PHASE_TRANSFORM
@ PHASE_TWO
@ EVENT_SUMMON_IMMORTAL_GUARDIAN
@ EVENT_SUMMON_CRUSHER_TENTACLE
@ EVENT_SUMMON_CORRUPTOR_TENTACLE
@ EVENT_ILLUSION
@ EVENT_SUMMON_CONSTRICTOR_TENTACLE
InstanceScript *const instance
SummonList summons
EventMap events
void DoZoneInCombat()
Definition: CreatureAI.h:161
Creature *const me
Definition: CreatureAI.h:61
void ScheduleEvent(uint32 eventId, Milliseconds time, uint32 group=0, uint8 phase=0)
Definition: EventMap.cpp:36
void SetPhase(uint8 phase)
Definition: EventMap.cpp:28
Creature * GetCreature(uint32 type)
void DespawnEntry(uint32 entry)
TempSummon * SummonCreature(uint32 entry, Position const &pos, TempSummonType despawnType=TEMPSUMMON_MANUAL_DESPAWN, Milliseconds despawnTime=0s, uint32 vehId=0, uint32 spellId=0, ObjectGuid privateObjectOwner=ObjectGuid::Empty)
Definition: Object.cpp:2012
@ DATA_BRAIN_OF_YOGG_SARON
Definition: ulduar.h:429
@ NPC_OMINOUS_CLOUD
Definition: ulduar.h:205
@ NPC_YOGG_SARON
Definition: ulduar.h:83
+ Here is the call graph for this function:

◆ EnterEvadeMode()

void boss_voice_of_yogg_saron::boss_voice_of_yogg_saronAI::EnterEvadeMode ( EvadeReason  why)
inlineoverridevirtual

Reimplemented from CreatureAI.

Definition at line 468 of file boss_yogg_saron.cpp.

469 {
471
472 for (uint8 i = DATA_SARA; i <= DATA_MIMIRON_YS; ++i)
474 creature->AI()->EnterEvadeMode();
475
476 // not sure, spoken by Sara (sound), regarding to wowwiki Voice whispers it
477 Map::PlayerList const& players = me->GetMap()->GetPlayers();
478 for (Map::PlayerList::const_iterator itr = players.begin(); itr != players.end(); ++itr)
479 if (Player* player = itr->GetSource())
480 {
483
484 player->RemoveAurasDueToSpell(SPELL_SANITY);
485 player->RemoveAurasDueToSpell(SPELL_INSANE);
486 }
487 }
uint8_t uint8
Definition: Define.h:145
@ WHISPER_VOICE_PHASE_1_WIPE
@ SPELL_SANITY
@ SPELL_INSANE
@ PHASE_ONE
virtual void EnterEvadeMode(EvadeReason why=EvadeReason::Other)
Definition: CreatureAI.cpp:219
bool IsInPhase(uint8 phase) const
Definition: EventMap.h:217
virtual ObjectGuid GetGuidData(uint32 type) const override
iterator end()
Definition: MapRefManager.h:35
iterator begin()
Definition: MapRefManager.h:34
PlayerList const & GetPlayers() const
Definition: Map.h:363
Map * GetMap() const
Definition: Object.h:604
TC_GAME_API Creature * GetCreature(WorldObject const &u, ObjectGuid const &guid)
@ DATA_SARA
Definition: ulduar.h:428
@ DATA_MIMIRON_YS
Definition: ulduar.h:433
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ Initialize()

void boss_voice_of_yogg_saron::boss_voice_of_yogg_saronAI::Initialize ( )
inline

Definition at line 454 of file boss_yogg_saron.cpp.

+ Here is the caller graph for this function:

◆ JustDied()

void boss_voice_of_yogg_saron::boss_voice_of_yogg_saronAI::JustDied ( Unit )
inlineoverridevirtual

Reimplemented from BossAI.

Definition at line 528 of file boss_yogg_saron.cpp.

529 {
530 // don't despawn Yogg-Saron's corpse, remove him from SummonList!
532 summons.Despawn(yogg);
533
534 _JustDied();
535 }
void _JustDied()
void Despawn(Creature const *summon)
+ Here is the call graph for this function:

◆ JustEngagedWith()

void boss_voice_of_yogg_saron::boss_voice_of_yogg_saronAI::JustEngagedWith ( Unit )
inlineoverridevirtual

Reimplemented from BossAI.

Definition at line 509 of file boss_yogg_saron.cpp.

510 {
512 sara->SetInCombatWith(me);
513
514 for (uint8 i = DATA_FREYA_YS; i <= DATA_MIMIRON_YS; ++i)
516 keeper->SetInCombatWith(me);
517
519
522
525 events.ScheduleEvent(EVENT_EXTINGUISH_ALL_LIFE, 15min); // 15 minutes
526 }
@ SPELLVALUE_MAX_TARGETS
Definition: SpellDefines.h:230
@ ACHIEV_TIMED_START_EVENT
@ SPELL_SANITY_PERIODIC
@ SPELL_SUMMON_GUARDIAN_2
@ EVENT_LOCK_DOOR
@ EVENT_EXTINGUISH_ALL_LIFE
@ EVENT_SUMMON_GUARDIAN_OF_YOGG_SARON
void TriggerGameEvent(uint32 gameEventId, WorldObject *source=nullptr, WorldObject *target=nullptr) override
SpellCastResult DoCastAOE(uint32 spellId, CastSpellExtraArgs const &args={})
Definition: UnitAI.h:161
SpellCastResult DoCast(uint32 spellId)
Definition: UnitAI.cpp:124
@ DATA_FREYA_YS
Definition: ulduar.h:430
+ Here is the call graph for this function:

◆ JustSummoned()

void boss_voice_of_yogg_saron::boss_voice_of_yogg_saronAI::JustSummoned ( Creature summon)
inlineoverridevirtual

Reimplemented from BossAI.

Definition at line 645 of file boss_yogg_saron.cpp.

646 {
647 switch (summon->GetEntry())
648 {
650 summon->m_Events.AddEvent(new StartAttackEvent(me, summon), summon->m_Events.CalculateTime(1s));
651 break;
652 case NPC_YOGG_SARON:
654 break;
656 summon->CastSpell(summon, SPELL_LUNGE, true);
657 break;
662 summon->m_Events.AddEvent(new StartAttackEvent(me, summon), summon->m_Events.CalculateTime(5s));
663 break;
665 summon->CastSpell(summon, SPELL_TELEPORT_PORTAL_VISUAL, true);
666 break;
668 summon->CastSpell(summon, SPELL_SIMPLE_TELEPORT, true);
669 break;
670 }
671
672 BossAI::JustSummoned(summon);
673 }
@ EMOTE_ONESHOT_EMERGE
@ REACT_PASSIVE
Definition: UnitDefines.h:498
@ SPELL_TELEPORT_PORTAL_VISUAL
@ SPELL_LUNGE
@ SPELL_SIMPLE_TELEPORT
void JustSummoned(Creature *summon) override
void SetReactState(ReactStates st)
Definition: Creature.h:137
void AddEvent(BasicEvent *event, Milliseconds e_time, bool set_addtime=true)
Milliseconds CalculateTime(Milliseconds t_offset) const
uint32 GetEntry() const
Definition: Object.h:160
void HandleEmoteCommand(Emote emoteId, Player *target=nullptr, Trinity::IteratorPair< int32 const * > spellVisualKitIds={}, int32 sequenceVariation=0)
Definition: Unit.cpp:1595
SpellCastResult CastSpell(CastSpellTargetArg const &targets, uint32 spellId, CastSpellExtraArgs const &args={ })
Definition: Object.cpp:2883
EventProcessor m_Events
Definition: Object.h:757
@ NPC_IMMORTAL_GUARDIAN
Definition: ulduar.h:225
@ NPC_DESCEND_INTO_MADNESS
Definition: ulduar.h:227
@ NPC_CONSTRICTOR_TENTACLE
Definition: ulduar.h:223
@ NPC_CORRUPTOR_TENTACLE
Definition: ulduar.h:224
@ NPC_CRUSHER_TENTACLE
Definition: ulduar.h:222
@ NPC_GUARDIAN_OF_YOGG_SARON
Definition: ulduar.h:199
+ Here is the call graph for this function:

◆ MoveInLineOfSight()

void boss_voice_of_yogg_saron::boss_voice_of_yogg_saronAI::MoveInLineOfSight ( Unit who)
inlineoverridevirtual

Reimplemented from CreatureAI.

Definition at line 461 of file boss_yogg_saron.cpp.

462 {
463 // TODO: MoveInLineOfSight doesn't work for such a big distance
464 if (who->GetTypeId() == TYPEID_PLAYER && !who->ToPlayer()->IsGameMaster() && me->GetDistance2d(who) < 99.0f && !me->IsInCombat())
466 }
@ TYPEID_PLAYER
Definition: ObjectGuid.h:41
TypeID GetTypeId() const
Definition: Object.h:172
static Player * ToPlayer(Object *o)
Definition: Object.h:200
bool IsGameMaster() const
Definition: Player.h:1174
bool IsInCombat() const
Definition: Unit.h:1162
float GetDistance2d(WorldObject const *obj) const
Definition: Object.cpp:1087
+ Here is the call graph for this function:

◆ Reset()

void boss_voice_of_yogg_saron::boss_voice_of_yogg_saronAI::Reset ( )
inlineoverridevirtual

Reimplemented from BossAI.

Definition at line 489 of file boss_yogg_saron.cpp.

490 {
491 _Reset();
493
495
496 Initialize();
497
498 bool clockwise = false;
499 std::list<TempSummon*> clouds;
501 clouds.sort(Trinity::ObjectDistanceOrderPred(me, true));
502 for (std::list<TempSummon*>::const_iterator itr = clouds.begin(); itr != clouds.end(); ++itr)
503 {
504 (*itr)->AI()->DoAction(int32(clockwise));
505 clockwise = !clockwise;
506 }
507 }
int32_t int32
Definition: Define.h:139
uint32_t uint32
Definition: Define.h:143
@ CREATURE_GROUP_CLOUDS
void SummonCreatureGroup(uint8 group, std::list< TempSummon * > *list=nullptr)
Definition: Object.cpp:2118
virtual void SetData(uint32, uint32)
Definition: ZoneScript.h:92
@ DATA_DRIVE_ME_CRAZY
Definition: ulduar.h:435
+ Here is the call graph for this function:

◆ UpdateAI()

void boss_voice_of_yogg_saron::boss_voice_of_yogg_saronAI::UpdateAI ( uint32  diff)
inlineoverridevirtual

Reimplemented from BossAI.

Definition at line 537 of file boss_yogg_saron.cpp.

538 {
539 if (!UpdateVictim())
540 return;
541
543 EnterEvadeMode(EvadeReason::NoHostiles);
544
545 events.Update(diff);
546 // don't summon tentacles when illusion is shattered, delay them
549
550 while (uint32 eventId = events.ExecuteEvent())
551 {
552 switch (eventId)
553 {
554 case EVENT_LOCK_DOOR:
557 break;
560 {
561 yogg->AI()->Talk(EMOTE_YOGG_SARON_EXTINGUISH_ALL_LIFE, me);
562 yogg->CastSpell(nullptr, SPELL_EXTINGUISH_ALL_LIFE, true);
563 }
564 events.ScheduleEvent(EVENT_EXTINGUISH_ALL_LIFE, 10s); // cast it again after a short while, players can survive
565 break;
569 if (_guardiansCount <= 6 && _guardiansCount % 3 == 0)
570 _guardianTimer -= 5s;
572 break;
576 break;
580 break;
584 break;
585 case EVENT_ILLUSION:
586 {
588 {
589 yogg->AI()->Talk(EMOTE_YOGG_SARON_MADNESS);
590 yogg->AI()->Talk(SAY_YOGG_SARON_MADNESS);
591 }
592
594 if (me->GetMap()->Is25ManRaid())
596
598 instance->SetData(DATA_ILLUSION, illusion);
599
601 brain->AI()->DoAction(ACTION_INDUCE_MADNESS);
602 events.ScheduleEvent(EVENT_ILLUSION, 80s, 0, PHASE_TWO); // wowwiki says 80 secs, wowhead says something about 90 secs
603 break;
604 }
608 break;
609 default:
610 break;
611 }
612 }
613 }
std::chrono::milliseconds Milliseconds
Milliseconds shorthand typedef.
Definition: Duration.h:29
@ IN_PROGRESS
uint32 urand(uint32 min, uint32 max)
Definition: Random.cpp:42
@ ACTION_INDUCE_MADNESS
@ EMOTE_YOGG_SARON_EXTINGUISH_ALL_LIFE
@ SAY_YOGG_SARON_MADNESS
@ EMOTE_YOGG_SARON_MADNESS
@ SPELL_IMMORTAL_GUARDIAN
@ SPELL_CRUSHER_TENTACLE_SUMMON
@ SPELL_EXTINGUISH_ALL_LIFE
@ SPELL_INSANE_PERIODIC
@ SPELL_CORRUPTOR_TENTACLE_SUMMON
@ SPELL_CONSTRICTOR_TENTACLE
@ CREATURE_GROUP_PORTALS_25
@ CREATURE_GROUP_PORTALS_10
bool HasPvECombatWithPlayers() const
bool UpdateVictim()
Definition: CreatureAI.cpp:245
uint32 ExecuteEvent()
Definition: EventMap.cpp:73
void Update(uint32 time)
Definition: EventMap.h:56
void DelayEvents(Milliseconds delay)
Definition: EventMap.cpp:96
virtual bool SetBossState(uint32 id, EncounterState state)
bool Is25ManRaid() const
Definition: Map.cpp:3266
CombatManager & GetCombatManager()
Definition: Unit.h:1142
@ STORMWIND_ILLUSION
Definition: ulduar.h:501
@ CHAMBER_ILLUSION
Definition: ulduar.h:499
@ DATA_ILLUSION
Definition: ulduar.h:434
+ Here is the call graph for this function:

Member Data Documentation

◆ _guardiansCount

uint8 boss_voice_of_yogg_saron::boss_voice_of_yogg_saronAI::_guardiansCount
private

Definition at line 676 of file boss_yogg_saron.cpp.

◆ _guardianTimer

Milliseconds boss_voice_of_yogg_saron::boss_voice_of_yogg_saronAI::_guardianTimer
private

Definition at line 677 of file boss_yogg_saron.cpp.

◆ _illusionShattered

bool boss_voice_of_yogg_saron::boss_voice_of_yogg_saronAI::_illusionShattered
private

Definition at line 678 of file boss_yogg_saron.cpp.


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