AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
boss_yoggsaron_brain Struct Reference
Inheritance diagram for boss_yoggsaron_brain:
NullCreatureAI CreatureAI UnitAI

Public Member Functions

 boss_yoggsaron_brain (Creature *creature)
 
void Reset () override
 
void JustSummoned (Creature *cr) override
 
void PrepareChamberIllusion ()
 
void PrepareIceCrownIllusion ()
 
void PrepareStormwindIllusion ()
 
void OnSpellCast (SpellInfo const *spellInfo) override
 
void DoAction (int32 param) override
 
uint32 GetData (uint32 param) const override
 
void DamageTaken (Unit *who, uint32 &damage, DamageEffectType, SpellSchoolMask) override
 Called at any Damage from any attacker (before damage apply)
 
void UpdateAI (uint32 diff) override
 Use to start attacking a target. Called just before JustEngagedWith()
 
- Public Member Functions inherited from NullCreatureAI
 NullCreatureAI (Creature *c)
 
void MoveInLineOfSight (Unit *) override
 
void AttackStart (Unit *) override
 
void JustStartedThreateningMe (Unit *) override
 
void JustEnteredCombat (Unit *) override
 Called when the unit enters combat.
 
void UpdateAI (uint32) override
 Use to start attacking a target. Called just before JustEngagedWith()
 
void EnterEvadeMode (EvadeReason) override
 
void OnCharmed (bool) override
 Called when unit is charmed.
 
- Public Member Functions inherited from CreatureAI
void Talk (uint8 id, WorldObject const *whisperTarget=nullptr, Milliseconds delay=0ms)
 Causes the creature to talk/say the text assigned to their entry in the creature_text database table.
 
void Talk (uint8 id, Milliseconds delay)
 
WorldObject * GetSummoner () const
 Returns the summoner creature/object, if the creature is a temporary summon.
 
 CreatureAI (Creature *creature)
 
 ~CreatureAI () override
 
bool IsEngaged () const
 Check if creature is currently engaged in combat.
 
void MoveCircleChecks ()
 
void MoveBackwardsChecks ()
 
void MoveInLineOfSight_Safe (Unit *who)
 == Reactions At =================================
 
void TriggerAlert (Unit const *who) const
 
virtual bool CanRespawn ()
 
virtual bool IsEscortNPC (bool=true) const
 
virtual void JustEngagedWith (Unit *)
 Called for reaction when initially engaged - this happens after JustEnteredCombat.
 
void EngagementStart (Unit *who)
 
void EngagementOver ()
 
void JustExitedCombat () override
 Called when the unit leaves combat.
 
virtual void JustDied (Unit *)
 
virtual void KilledUnit (Unit *)
 
virtual void IsSummonedBy (WorldObject *)
 
virtual void SummonedCreatureDespawn (Creature *)
 
virtual void SummonedCreatureDies (Creature *, Unit *)
 
virtual void SummonedCreatureDespawnAll ()
 
virtual void SummonedCreatureEvade (Creature *)
 
virtual void SpellHit (Unit *, SpellInfo const *)
 
virtual void SpellHitTarget (Unit *, SpellInfo const *)
 
virtual void OnSpellStart (SpellInfo const *)
 
virtual void OnSpellFailed (SpellInfo const *)
 
virtual void OnChannelFinished (SpellInfo const *)
 
virtual void AttackedBy (Unit *)
 
virtual bool IsEscorted ()
 
virtual void JustRespawned ()
 
virtual void MovementInform (uint32, uint32)
 
virtual void PathEndReached (uint32)
 
virtual void WaypointPathStarted (uint32)
 == Waypoints system =============================
 
virtual void WaypointStarted (uint32, uint32)
 
virtual void WaypointReached (uint32, uint32)
 
virtual void WaypointPathEnded (uint32, uint32)
 
virtual void JustReachedHome ()
 
void DoZoneInCombat (Creature *creature=nullptr, float maxRangeToNearestTarget=250.0f)
 
virtual void ReceiveEmote (Player *, uint32)
 
virtual void OwnerAttackedBy (Unit *attacker)
 
virtual void OwnerAttacked (Unit *target)
 
void OnOwnerCombatInteraction (Unit *target)
 
virtual void CorpseRemoved (uint32 &)
 == Triggered Actions Requested ==================
 
virtual void PassengerBoarded (Unit *, int8, bool)
 == Fields =======================================
 
virtual bool BeforeSpellClick (Unit *)
 
virtual void OnSpellClick (Unit *, bool &)
 
virtual bool CanSeeAlways (WorldObject const *)
 
virtual bool CanBeSeen (Player const *)
 
virtual bool CanAlwaysBeDetectable (WorldObject const *)
 
virtual void PetStopAttack ()
 
int32 VisualizeBoundary (uint32 duration, Unit *owner=nullptr, bool fill=false, bool checkZ=false) const
 
virtual bool CheckInRoom ()
 
CreatureBoundary const * GetBoundary () const
 
void SetBoundary (CreatureBoundary const *boundary, bool negativeBoundaries=false)
 
bool IsInBoundary (Position const *who=nullptr) const
 
virtual void CalculateThreat (Unit *, float &, SpellInfo const *)
 
virtual bool OnTeleportUnreacheablePlayer (Player *)
 
virtual void OnAuraRemove (AuraApplication *, AuraRemoveMode)
 
virtual void DistancingStarted ()
 
virtual void DistancingEnded ()
 
- Public Member Functions inherited from UnitAI
 UnitAI (Unit *unit)
 
virtual ~UnitAI ()
 
virtual bool CanAIAttack (Unit const *) const
 
virtual void InitializeAI ()
 
virtual void SetData (uint32, uint32)
 
virtual void SetGUID (ObjectGuid const &, int32=0)
 
virtual ObjectGuid GetGUID (int32=0) const
 
Unit * SelectTarget (SelectTargetMethod targetType, uint32 position=0, float dist=0.0f, bool playerOnly=false, bool withTank=true, int32 aura=0)
 
template<class PREDICATE >
Unit * SelectTarget (SelectTargetMethod targetType, uint32 position, PREDICATE const &predicate)
 
void SelectTargetList (std::list< Unit * > &targetList, uint32 num, SelectTargetMethod targetType, uint32 position=0, float dist=0.0f, bool playerOnly=false, bool withTank=true, int32 aura=0)
 Select the best (up to) <num> targets (in <targetType> order) from the threat list that fulfill the following:
 
template<class PREDICATE >
void SelectTargetList (std::list< Unit * > &targetList, uint32 num, SelectTargetMethod targetType, uint32 position, PREDICATE const &predicate)
 
virtual void OnDespawn ()
 Called when the unit is about to be removed from the world (despawn, grid unload, corpse disappearing, player logging out etc.)
 
virtual void EvadeTimerExpired ()
 Called when evade timer expires (target unreachable for too long)
 
virtual void DamageDealt (Unit *, uint32 &, DamageEffectType, SpellSchoolMask)
 Called at any Damage to any victim (before damage apply)
 
virtual void HealReceived (Unit *, uint32 &)
 Called when the creature receives heal.
 
virtual void OnPowerUpdate (Powers, int32, int32, uint32)
 Called when the creature power updates.
 
virtual void HealDone (Unit *, uint32 &)
 Called when the unit heals.
 
virtual void OnCalculateMeleeDamageReceived (uint32 &, Unit *)
 Called during damage calculations.
 
virtual void OnCalculateSpellDamageReceived (int32 &, Unit *)
 
virtual void OnCalculatePeriodicTickReceived (uint32 &, Unit *)
 Called during calculation when receiving periodic healing or damage (DoT or HoT)
 
void AttackStartCaster (Unit *victim, float dist)
 
SpellCastResult DoAddAuraToAllHostilePlayers (uint32 spellid)
 
SpellCastResult DoCast (uint32 spellId)
 
SpellCastResult DoCast (Unit *victim, uint32 spellId, bool triggered=false)
 
SpellCastResult DoCastSelf (uint32 spellId, bool triggered=false)
 
SpellCastResult DoCastToAllHostilePlayers (uint32 spellid, bool triggered=false)
 To specify the caster as target if the spell is self-cast.
 
SpellCastResult DoCastVictim (uint32 spellId, bool triggered=false)
 
SpellCastResult DoCastAOE (uint32 spellId, bool triggered=false)
 
SpellCastResult DoCastRandomTarget (uint32 spellId, uint32 threatTablePosition=0, float dist=0.0f, bool playerOnly=true, bool triggered=false, bool withTank=true, int32 aura=0)
 Cast the spell on a random unit from the threat list.
 
SpellCastResult DoCastMaxThreat (uint32 spellId, uint32 threatTablePosition=0, float dist=0.0f, bool playerOnly=true, bool triggered=false)
 Cast spell on the top threat target, which may not be the current victim.
 
float DoGetSpellMaxRange (uint32 spellId, bool positive=false)
 
void DoMeleeAttackIfReady ()
 
bool DoSpellAttackIfReady (uint32 spell)
 
void DoSpellAttackToRandomTargetIfReady (uint32 spell, uint32 threatTablePosition=0, float dist=0.f, bool playerOnly=true)
 
virtual void SummonMovementInform (Creature *, uint32, uint32)
 Called when a summon reaches a waypoint or point movement finished.
 
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 sQuestComplete (Player *, Quest const *)
 
virtual void sQuestReward (Player *, Quest const *, uint32)
 
virtual void sOnGameEvent (bool, uint16)
 
virtual std::string GetDebugInfo () const
 

Public Attributes

bool _brainDamaged
 
uint8 _tentacleCount
 
uint8 _tentacleTotal
 
uint8 _activeIllusion
 
uint32 _induceTimer
 
SummonList summons
 

Additional Inherited Members

- Public Types inherited from CreatureAI
enum  EvadeReason {
  EVADE_REASON_NO_HOSTILES ,
  EVADE_REASON_BOUNDARY ,
  EVADE_REASON_SEQUENCE_BREAK ,
  EVADE_REASON_NO_PATH ,
  EVADE_REASON_OTHER
}
 
- Static Public Member Functions inherited from NullCreatureAI
static int32 Permissible (Creature const *creature)
 
- Static Public Member Functions inherited from CreatureAI
static bool IsInBounds (CreatureBoundary const &boundary, Position const *who)
 
- Static Public Member Functions inherited from UnitAI
static void FillAISpellInfo ()
 
- Static Public Attributes inherited from UnitAI
static AISpellInfoType * AISpellInfo
 
- Protected Member Functions inherited from CreatureAI
bool UpdateVictim ()
 
bool UpdateVictimWithGaze ()
 
void SetGazeOn (Unit *target)
 
Creature * DoSummon (uint32 entry, Position const &pos, uint32 despawnTime=30000, TempSummonType summonType=TEMPSUMMON_CORPSE_TIMED_DESPAWN)
 
Creature * DoSummon (uint32 entry, WorldObject *obj, float radius=5.0f, uint32 despawnTime=30000, TempSummonType summonType=TEMPSUMMON_CORPSE_TIMED_DESPAWN)
 
Creature * DoSummonFlyer (uint32 entry, WorldObject *obj, float flightZ, float radius=5.0f, uint32 despawnTime=30000, TempSummonType summonType=TEMPSUMMON_CORPSE_TIMED_DESPAWN)
 
bool _EnterEvadeMode (EvadeReason why=EVADE_REASON_OTHER)
 
- Protected Attributes inherited from CreatureAI
Creature *const me
 
EventMap events
 
TaskScheduler scheduler
 
CreatureBoundary const * _boundary
 
bool _negateBoundary
 
bool _isEngaged
 
- Protected Attributes inherited from UnitAI
Unit *const me
 

Detailed Description

Constructor & Destructor Documentation

◆ boss_yoggsaron_brain()

boss_yoggsaron_brain::boss_yoggsaron_brain ( Creature *  creature)
inline
1347 : NullCreatureAI(creature), summons(creature)
1348 {
1349 me->SetDisableGravity(true);
1350 _tentacleCount = 0;
1351 _tentacleTotal = 0;
1352 _activeIllusion = 0;
1353 _induceTimer = 0;
1354 _brainDamaged = false;
1355 me->SetRegeneratingHealth(false);
1356 }
Creature *const me
Definition CreatureAI.h:71
void SetRegeneratingHealth(bool enable)
Definition Creature.h:328
Definition PassiveAI.h:56
void SetDisableGravity(bool disable)
Definition Unit.cpp:16119
uint8 _tentacleTotal
Definition boss_yoggsaron.cpp:1360
uint32 _induceTimer
Definition boss_yoggsaron.cpp:1362
uint8 _tentacleCount
Definition boss_yoggsaron.cpp:1359
bool _brainDamaged
Definition boss_yoggsaron.cpp:1358
SummonList summons
Definition boss_yoggsaron.cpp:1363
uint8 _activeIllusion
Definition boss_yoggsaron.cpp:1361

References _activeIllusion, _brainDamaged, _induceTimer, _tentacleCount, _tentacleTotal, CreatureAI::me, Unit::SetDisableGravity(), and Creature::SetRegeneratingHealth().

Member Function Documentation

◆ DamageTaken()

void boss_yoggsaron_brain::DamageTaken ( Unit *  ,
uint32 &  ,
DamageEffectType  ,
SpellSchoolMask   
)
inlineoverridevirtual

Called at any Damage from any attacker (before damage apply)

Note
It use for recalculation damage or special reaction at damage for attack reaction use AttackedBy called for non DOT damage in Unit::DealDamage also

Reimplemented from UnitAI.

1540 {
1541 if (!_tentacleTotal || _tentacleCount < _tentacleTotal) // if all tentacles aren't killed
1542 {
1543 damage = 0;
1544 if (who)
1545 Unit::Kill(who, who);
1546 return;
1547 }
1548
1549 if (!_brainDamaged)
1550 {
1551 // START PHASE 3
1552 if (me->HealthBelowPctDamaged(30, damage))
1553 {
1554 me->SetRegeneratingHealth(false);
1556 _brainDamaged = true;
1557
1559 if (me->GetInstanceScript())
1561 sara->AI()->DoAction(ACTION_BRAIN_DAMAGED);
1562 }
1563 }
1564 }
@ SPELL_BRAIN_HURT_VISUAL
Definition boss_yoggsaron.cpp:133
@ ACTION_BRAIN_DAMAGED
Definition boss_yoggsaron.cpp:263
bool _EnterEvadeMode(EvadeReason why=EVADE_REASON_OTHER)
Definition CreatureAI.cpp:383
Definition Creature.h:47
Creature * GetCreature(uint32 type)
Definition InstanceScript.cpp:120
static void Kill(Unit *killer, Unit *victim, bool durabilityLoss=true, WeaponAttackType attackType=BASE_ATTACK, SpellInfo const *spellProto=nullptr, Spell const *spell=nullptr)
Definition Unit.cpp:13580
SpellCastResult CastSpell(SpellCastTargets const &targets, SpellInfo const *spellInfo, CustomSpellValues const *value, TriggerCastFlags triggerFlags=TRIGGERED_NONE, Item *castItem=nullptr, AuraEffect const *triggeredByAura=nullptr, ObjectGuid originalCaster=ObjectGuid::Empty)
Definition Unit.cpp:1372
bool HealthBelowPctDamaged(int32 pct, uint32 damage) const
Definition Unit.h:1123
InstanceScript * GetInstanceScript() const
Definition Object.cpp:1247
@ DATA_SARA
Definition ulduar.h:130

References _brainDamaged, CreatureAI::_EnterEvadeMode(), _tentacleCount, _tentacleTotal, ACTION_BRAIN_DAMAGED, Unit::CastSpell(), DATA_SARA, InstanceScript::GetCreature(), WorldObject::GetInstanceScript(), Unit::HealthBelowPctDamaged(), Unit::Kill(), CreatureAI::me, Creature::SetRegeneratingHealth(), and SPELL_BRAIN_HURT_VISUAL.

◆ DoAction()

void boss_yoggsaron_brain::DoAction ( int32  param)
inlineoverridevirtual

Reimplemented from UnitAI.

1479 {
1480 if (param == ACTION_DESPAWN_ADDS)
1481 {
1483 return;
1484 }
1485 else if (param == ACTION_INFLUENCE_TENTACLE_DIED)
1486 {
1489 {
1490 // Stun
1491 if (me->GetInstanceScript())
1493 sara->AI()->DoAction(MINUTE * IN_MILLISECONDS - std::min((uint32)MINUTE * IN_MILLISECONDS, _induceTimer));
1494
1495 _induceTimer = 0;
1498 go->SetGoState(GO_STATE_ACTIVE);
1499 }
1500 return;
1501 }
1502 else if (param == ACTION_REMOVE_STUN)
1503 return;
1504
1506 _tentacleTotal = 0;
1507 switch (param)
1508 {
1511 break;
1514 break;
1517 break;
1518 }
1519
1521 if (GameObject* go = me->FindNearestGameObject(i, 150.0f))
1522 go->SetGoState(GO_STATE_READY);
1523
1524 _activeIllusion = param - 1;
1525 _tentacleCount = 0;
1526 _induceTimer = 1;
1527
1529 }
constexpr auto IN_MILLISECONDS
Definition Common.h:53
constexpr auto MINUTE
Definition Common.h:47
std::uint32_t uint32
Definition Define.h:107
@ GO_STATE_READY
Definition GameObjectData.h:709
@ GO_STATE_ACTIVE
Definition GameObjectData.h:708
@ SPELL_INDUCE_MADNESS
Definition boss_yoggsaron.cpp:132
@ ACTION_ILLUSION_ICECROWN
Definition boss_yoggsaron.cpp:272
@ ACTION_ILLUSION_STORMWIND
Definition boss_yoggsaron.cpp:273
@ ACTION_DESPAWN_ADDS
Definition boss_yoggsaron.cpp:256
@ ACTION_REMOVE_STUN
Definition boss_yoggsaron.cpp:264
@ ACTION_INFLUENCE_TENTACLE_DIED
Definition boss_yoggsaron.cpp:262
@ ACTION_ILLUSION_DRAGONS
Definition boss_yoggsaron.cpp:271
@ GO_STORMWIND_ILLUSION_DOORS
Definition boss_yoggsaron.cpp:244
@ GO_CHAMBER_ILLUSION_DOORS
Definition boss_yoggsaron.cpp:242
@ NPC_LAUGHING_SKULL
Definition boss_yoggsaron.cpp:215
Definition GameObject.h:120
void DespawnEntry(uint32 entry)
Definition ScriptedCreature.cpp:55
void DespawnAll(Milliseconds delay=0ms)
Definition ScriptedCreature.cpp:72
GameObject * FindNearestGameObject(uint32 entry, float range, bool onlySpawned=false) const
Definition Object.cpp:2567
void PrepareStormwindIllusion()
Definition boss_yoggsaron.cpp:1446
void PrepareChamberIllusion()
Definition boss_yoggsaron.cpp:1391
void PrepareIceCrownIllusion()
Definition boss_yoggsaron.cpp:1418

References _activeIllusion, _induceTimer, _tentacleCount, _tentacleTotal, ACTION_DESPAWN_ADDS, ACTION_ILLUSION_DRAGONS, ACTION_ILLUSION_ICECROWN, ACTION_ILLUSION_STORMWIND, ACTION_INFLUENCE_TENTACLE_DIED, ACTION_REMOVE_STUN, Unit::CastSpell(), DATA_SARA, SummonList::DespawnAll(), SummonList::DespawnEntry(), WorldObject::FindNearestGameObject(), InstanceScript::GetCreature(), WorldObject::GetInstanceScript(), GO_CHAMBER_ILLUSION_DOORS, GO_STATE_ACTIVE, GO_STATE_READY, GO_STORMWIND_ILLUSION_DOORS, IN_MILLISECONDS, CreatureAI::me, MINUTE, NPC_LAUGHING_SKULL, PrepareChamberIllusion(), PrepareIceCrownIllusion(), PrepareStormwindIllusion(), SPELL_INDUCE_MADNESS, and summons.

◆ GetData()

uint32 boss_yoggsaron_brain::GetData ( uint32  param) const
inlineoverridevirtual

Reimplemented from UnitAI.

1532 {
1533 if (param == DATA_GET_CURRENT_ILLUSION)
1534 return _activeIllusion + 1;
1535
1536 return 0;
1537 }
@ DATA_GET_CURRENT_ILLUSION
Definition boss_yoggsaron.cpp:293

References _activeIllusion, and DATA_GET_CURRENT_ILLUSION.

◆ JustSummoned()

void boss_yoggsaron_brain::JustSummoned ( Creature *  cr)
inlineoverridevirtual

Reimplemented from CreatureAI.

1367 {
1368 if (cr->GetEntry() == NPC_INFLUENCE_TENTACLE)
1369 {
1371
1372 // Dragons Illusion
1373 if (cr->GetPositionX() > 2000.0f && cr->GetPositionX() < 2150.0f)
1375 // Icecrown Illusion
1376 else if (cr->GetPositionY() > -150.0f && cr->GetPositionY() < -90.0f)
1377 {
1380 }
1381 // Stormwind Illusion
1382 else
1384 }
1385 else if (cr->GetEntry() == NPC_LICH_KING)
1386 cr->CastSpell(cr, SPELL_DEATHGRASP, false);
1387
1388 summons.Summon(cr);
1389 }
uint32 urand(uint32 min, uint32 max)
Definition Random.cpp:44
@ UNIT_STAND_STATE_KNEEL
Definition UnitDefines.h:43
@ SPELL_DEATHGRASP
Definition boss_yoggsaron.cpp:146
@ NPC_INFLUENCE_TENTACLE
Definition boss_yoggsaron.cpp:211
@ NPC_CONSORT_LAST
Definition boss_yoggsaron.cpp:222
@ NPC_DEATHSWORN_ZEALOT
Definition boss_yoggsaron.cpp:230
@ NPC_LICH_KING
Definition boss_yoggsaron.cpp:231
@ NPC_SUIT_OF_ARMOR
Definition boss_yoggsaron.cpp:235
@ NPC_CONSORT_FIRST
Definition boss_yoggsaron.cpp:221
bool UpdateEntry(uint32 entry, CreatureData const *data=nullptr, bool changelevel=true, bool updateAI=false)
Definition Creature.cpp:587
uint32 GetEntry() const
Definition Object.h:123
void Summon(Creature const *summon)
Definition ScriptedCreature.h:88
void SetStandState(uint8 state)
Definition Unit.cpp:12731
float GetPositionX() const
Definition Position.h:121
float GetPositionY() const
Definition Position.h:122

References _tentacleTotal, Unit::CastSpell(), Object::GetEntry(), Position::GetPositionX(), Position::GetPositionY(), NPC_CONSORT_FIRST, NPC_CONSORT_LAST, NPC_DEATHSWORN_ZEALOT, NPC_INFLUENCE_TENTACLE, NPC_LICH_KING, NPC_SUIT_OF_ARMOR, Unit::SetStandState(), SPELL_DEATHGRASP, SummonList::Summon(), summons, UNIT_STAND_STATE_KNEEL, Creature::UpdateEntry(), and urand().

◆ OnSpellCast()

void boss_yoggsaron_brain::OnSpellCast ( SpellInfo const *  spellInfo)
inlineoverridevirtual

Reimplemented from CreatureAI.

1472 {
1473 if (spellInfo->Id == SPELL_INDUCE_MADNESS)
1475 yogg->AI()->SetData(DATA_YOGG_SARON_HEALTH, static_cast<uint32>(me->GetHealthPct()));
1476 }
@ DATA_YOGG_SARON_HEALTH
Definition boss_yoggsaron.cpp:296
float GetHealthPct() const
Definition Unit.h:1116
@ BOSS_YOGGSARON
Definition ulduar.h:43

References BOSS_YOGGSARON, DATA_YOGG_SARON_HEALTH, InstanceScript::GetCreature(), Unit::GetHealthPct(), WorldObject::GetInstanceScript(), SpellInfo::Id, CreatureAI::me, and SPELL_INDUCE_MADNESS.

◆ PrepareChamberIllusion()

void boss_yoggsaron_brain::PrepareChamberIllusion ( )
inline
1392 {
1394
1395 // Laughing Skulls
1396 if (urand(0, 1))
1397 me->SummonCreature(NPC_LAUGHING_SKULL, 2139.13f, -59.0848f, 239.728f, 2.2974f);
1398 else
1399 me->SummonCreature(NPC_LAUGHING_SKULL, 2083, -25.66f, 244, 0);
1400 if (urand(0, 1))
1401 me->SummonCreature(NPC_LAUGHING_SKULL, 2066.67f, -59.8984f, 239.72f, 0.718747f);
1402 else
1403 me->SummonCreature(NPC_LAUGHING_SKULL, 2126.22f, -25.86f, 244, 0);
1404
1405 me->SummonCreature(NPC_LAUGHING_SKULL, 2133.09f, 15.341f, 239.72f, 4.0724f);
1406 me->SummonCreature(NPC_LAUGHING_SKULL, 2065.83f, 12.3772f, 239.792f, 5.49789f);
1407
1408 // Aspects
1409 me->SummonCreature(NPC_ALEXTRASZA, 2091.92f, -25.8f, 242.647f, 0);
1410 me->SummonCreature(NPC_YSERA, 2116, -25.8f, 242.647f, 3.14f);
1411 me->SummonCreature(NPC_NELTHARION, 2103.6f, -35.8f, 242.64f, 1.5f);
1412 me->SummonCreature(NPC_MALYGOS, 2103.6f, -15.8f, 242.64f, 4.7f);
1413
1414 // Yogg Vision
1415 me->SummonCreature(NPC_YOGG_SARON_VISION, 2109.695f, -25.09549f, 222.3250f, 0);
1416 }
@ SUMMON_GROUP_CHAMBER_TENTACLES
Definition boss_yoggsaron.cpp:276
@ NPC_MALYGOS
Definition boss_yoggsaron.cpp:224
@ NPC_NELTHARION
Definition boss_yoggsaron.cpp:225
@ NPC_YOGG_SARON_VISION
Definition boss_yoggsaron.cpp:205
@ NPC_ALEXTRASZA
Definition boss_yoggsaron.cpp:223
@ NPC_YSERA
Definition boss_yoggsaron.cpp:226
TempSummon * SummonCreature(uint32 id, Position const &pos, TempSummonType spwtype=TEMPSUMMON_MANUAL_DESPAWN, uint32 despwtime=0, uint32 vehId=0, SummonPropertiesEntry const *properties=nullptr, bool visibleBySummonerOnly=false) const
Definition Object.cpp:2453
void SummonCreatureGroup(uint8 group, std::list< TempSummon * > *list=nullptr)
Definition Object.cpp:2530

References CreatureAI::me, NPC_ALEXTRASZA, NPC_LAUGHING_SKULL, NPC_MALYGOS, NPC_NELTHARION, NPC_YOGG_SARON_VISION, NPC_YSERA, SUMMON_GROUP_CHAMBER_TENTACLES, WorldObject::SummonCreature(), WorldObject::SummonCreatureGroup(), and urand().

Referenced by DoAction().

◆ PrepareIceCrownIllusion()

void boss_yoggsaron_brain::PrepareIceCrownIllusion ( )
inline
1419 {
1420 // Laughing Skulls
1421 me->SummonCreature(NPC_LAUGHING_SKULL, 1931.12f, -92.702f, 239.991f, 5.2819f);
1422 if (urand(0, 1))
1423 me->SummonCreature(NPC_LAUGHING_SKULL, 1969.88f, -147.729f, 239.991f, 2.37593f);
1424 else
1425 me->SummonCreature(NPC_LAUGHING_SKULL, 1878, -93.3f, 240, 0);
1426 if (urand(0, 1))
1427 me->SummonCreature(NPC_LAUGHING_SKULL, 1950.78f, -167.902f, 239.991f, 2.34844f);
1428 else
1429 me->SummonCreature(NPC_LAUGHING_SKULL, 1938.45f, -116.5f, 240, 0);
1430 if (urand(0, 1))
1431 me->SummonCreature(NPC_LAUGHING_SKULL, 1896.45f, -141.469f, 239.991f, 6.12227f);
1432 else
1433 me->SummonCreature(NPC_LAUGHING_SKULL, 1921, -158, 240, 0);
1434
1435 // Influence
1437
1438 // Others
1439 me->SummonCreature(NPC_LICH_KING, 1906.98f, -153, 240, 4.2f);
1440 me->SummonCreature(NPC_IMMOLATED_CHAMPION, 1902.03f, -161.7f, 240, 1.07f);
1441
1442 // Yogg Vision
1443 me->SummonCreature(NPC_YOGG_SARON_VISION, 1906.226f, -155.8941f, 223.4727, 0);
1444 }
@ SUMMON_GROUP_ICECROWN_TENTACLES
Definition boss_yoggsaron.cpp:277
@ NPC_IMMOLATED_CHAMPION
Definition boss_yoggsaron.cpp:232

References CreatureAI::me, NPC_IMMOLATED_CHAMPION, NPC_LAUGHING_SKULL, NPC_LICH_KING, NPC_YOGG_SARON_VISION, SUMMON_GROUP_ICECROWN_TENTACLES, WorldObject::SummonCreature(), WorldObject::SummonCreatureGroup(), and urand().

Referenced by DoAction().

◆ PrepareStormwindIllusion()

void boss_yoggsaron_brain::PrepareStormwindIllusion ( )
inline
1447 {
1448 // Laughing Skulls
1449 if (urand(0, 1))
1450 me->SummonCreature(NPC_LAUGHING_SKULL, 1916.36f, 28.05f, 239.666f, 1.30238f);
1451 else
1452 me->SummonCreature(NPC_LAUGHING_SKULL, 1966.7f, 57.8f, 239.66f, 0);
1453 if (urand(0, 1))
1454 me->SummonCreature(NPC_LAUGHING_SKULL, 1902, 75.1362f, 239.666f, 6.06189f);
1455 else
1456 me->SummonCreature(NPC_LAUGHING_SKULL, 1933, 91, 240, 0);
1457 me->SummonCreature(NPC_LAUGHING_SKULL, 1914.42f, 90.8465f, 239.666f, 5.25294f);
1458 me->SummonCreature(NPC_LAUGHING_SKULL, 1963.68f, 89.7549f, 239.667f, 3.70571f);
1459
1460 // Influence
1462
1463 // Others
1464 me->SummonCreature(NPC_GARONA, 1928.58f, 65.64f, 242.37f, 2.1f);
1465 me->SummonCreature(NPC_KING_LLANE, 1925.14f, 71.74f, 242.37f, 5.17f);
1466
1467 // Yogg Vision
1468 me->SummonCreature(NPC_YOGG_SARON_VISION, 1929.160f, 67.75694f, 221.7322f, 0);
1469 }
@ SUMMON_GROUP_STORMWIND_TENTACLES
Definition boss_yoggsaron.cpp:278
@ NPC_KING_LLANE
Definition boss_yoggsaron.cpp:237
@ NPC_GARONA
Definition boss_yoggsaron.cpp:236

References CreatureAI::me, NPC_GARONA, NPC_KING_LLANE, NPC_LAUGHING_SKULL, NPC_YOGG_SARON_VISION, SUMMON_GROUP_STORMWIND_TENTACLES, WorldObject::SummonCreature(), WorldObject::SummonCreatureGroup(), and urand().

Referenced by DoAction().

◆ Reset()

void boss_yoggsaron_brain::Reset ( )
inlineoverridevirtual

Reimplemented from UnitAI.

1365{ }

◆ UpdateAI()

void boss_yoggsaron_brain::UpdateAI ( uint32  )
inlineoverridevirtual

Use to start attacking a target. Called just before JustEngagedWith()

Implements UnitAI.

1567 {
1568 if (_induceTimer)
1569 _induceTimer += diff;
1570 }

References _induceTimer.

Member Data Documentation

◆ _activeIllusion

uint8 boss_yoggsaron_brain::_activeIllusion

◆ _brainDamaged

bool boss_yoggsaron_brain::_brainDamaged

◆ _induceTimer

uint32 boss_yoggsaron_brain::_induceTimer

◆ _tentacleCount

uint8 boss_yoggsaron_brain::_tentacleCount

◆ _tentacleTotal

uint8 boss_yoggsaron_brain::_tentacleTotal

◆ summons

SummonList boss_yoggsaron_brain::summons

Referenced by DoAction(), and JustSummoned().


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