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

Public Member Functions

 boss_yoggsaron_brainAI (Creature *pCreature)
 
void Reset () override
 
void JustSummoned (Creature *cr) override
 
void PrepareChamberIllusion ()
 
void PrepareIceCrownIllusion ()
 
void PrepareStormwindIllusion ()
 
void DoAction (int32 param) override
 
uint32 GetData (uint32 param) const override
 
void DamageTaken (Unit *who, uint32 &damage, DamageEffectType, SpellSchoolMask) override
 
void UpdateAI (uint32 diff) override
 
- Public Member Functions inherited from NullCreatureAI
 NullCreatureAI (Creature *c)
 
void MoveInLineOfSight (Unit *) override
 
void AttackStart (Unit *) override
 
void UpdateAI (uint32) override
 
void EnterEvadeMode (EvadeReason) override
 
void OnCharmed (bool) override
 
- Public Member Functions inherited from CreatureAI
void Talk (uint8 id, WorldObject const *whisperTarget=nullptr, Milliseconds delay=0s)
 Causes the creature to talk/say the text assigned to their entry in the creature_text database table.
 
void Talk (uint8 id, Milliseconds delay)
 
 CreatureAI (Creature *creature)
 
 ~CreatureAI () override
 
void MoveCircleChecks ()
 
void MoveBackwardsChecks ()
 
void MoveInLineOfSight_Safe (Unit *who)
 == Reactions At =================================
 
void TriggerAlert (Unit const *who) const
 
virtual bool CanRespawn ()
 
virtual void EnterEvadeMode (EvadeReason why=EVADE_REASON_OTHER)
 
virtual void JustEngagedWith (Unit *)
 Called for reaction when initially engaged.
 
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 SummonedCreatureDespawnAll ()
 
virtual void SpellHit (Unit *, SpellInfo const *)
 
virtual void SpellHitTarget (Unit *, SpellInfo const *)
 
virtual void AttackedBy (Unit *)
 
virtual bool IsEscorted ()
 
virtual void JustRespawned ()
 
virtual void MovementInform (uint32, uint32)
 
virtual void PathEndReached (uint32)
 
void OnCharmed (bool apply) override
 
virtual void JustReachedHome ()
 
void DoZoneInCombat (Creature *creature=nullptr, float maxRangeToNearestTarget=250.0f)
 
virtual void ReceiveEmote (Player *, uint32)
 
virtual void OwnerAttackedBy (Unit *)
 
virtual void OwnerAttacked (Unit *)
 
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 ()
 
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 *)
 
- 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)=0
 
virtual void InitializeAI ()
 
virtual void Reset ()
 
virtual void OnCharmed (bool apply)=0
 
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 (SelectTargetMethod targetType, uint32 position=0, float dist=0.0f, bool playerOnly=false, bool withTank=true, int32 aura=0)
 
template<class PREDICATE >
UnitSelectTarget (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)
 
template<class PREDICATE >
void SelectTargetList (std::list< Unit * > &targetList, uint32 num, SelectTargetMethod targetType, uint32 position, PREDICATE const &predicate)
 
virtual void JustEnteredCombat (Unit *)
 Called when the unit enters combat (NOTE: Creature engage logic should NOT be here, but in JustEngagedWith, which happens once threat is established!)
 
virtual void JustExitedCombat ()
 Called when the unit leaves combat.
 
virtual void DamageDealt (Unit *, uint32 &, DamageEffectType)
 
virtual void DamageTaken (Unit *, uint32 &, DamageEffectType, SpellSchoolMask)
 
virtual void HealReceived (Unit *, uint32 &)
 
virtual void HealDone (Unit *, uint32 &)
 
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)
 
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)
 
SpellCastResult DoCastMaxThreat (uint32 spellId, uint32 threatTablePosition=0, float dist=0.0f, bool playerOnly=true, bool triggered=false)
 Cast spell on the max threat target, which may not always 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)
 
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 _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 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)
 
virtual void MoveInLineOfSight (Unit *)
 
bool _EnterEvadeMode (EvadeReason why=EVADE_REASON_OTHER)
 
- Protected Attributes inherited from CreatureAI
Creature *const me
 
EventMap events
 
CreatureBoundary const * _boundary
 
bool _negateBoundary
 
- Protected Attributes inherited from UnitAI
Unit *const me
 

Detailed Description

Constructor & Destructor Documentation

◆ boss_yoggsaron_brainAI()

boss_yoggsaron_brain::boss_yoggsaron_brainAI::boss_yoggsaron_brainAI ( Creature pCreature)
inline
1239 : NullCreatureAI(pCreature), summons(pCreature)
1240 {
1241 me->SetDisableGravity(true);
1242 _tentacleCount = 0;
1243 _activeIllusion = 0;
1244 _induceTimer = 0;
1245 _brainDamaged = false;
1246 me->SetRegeneratingHealth(false);
1247 }
Definition: PassiveAI.h:53
Creature *const me
Definition: CreatureAI.h:72
bool SetDisableGravity(bool disable, bool packetOnly=false, bool updateAnimationTier=true) override
Definition: Creature.cpp:3092
void SetRegeneratingHealth(bool c)
Definition: Creature.h:310
SummonList summons
Definition: boss_yoggsaron.cpp:1253
uint8 _activeIllusion
Definition: boss_yoggsaron.cpp:1251
bool _brainDamaged
Definition: boss_yoggsaron.cpp:1249
uint32 _induceTimer
Definition: boss_yoggsaron.cpp:1252
uint8 _tentacleCount
Definition: boss_yoggsaron.cpp:1250

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

Member Function Documentation

◆ DamageTaken()

void boss_yoggsaron_brain::boss_yoggsaron_brainAI::DamageTaken ( Unit who,
uint32 damage,
DamageEffectType  ,
SpellSchoolMask   
)
inlineoverridevirtual

Reimplemented from UnitAI.

1438 {
1439 if (_tentacleCount < 7) // if all tentacles aren't killed
1440 {
1441 damage = 0;
1442 if (who)
1443 Unit::Kill(who, who);
1444 return;
1445 }
1446
1447 if (!_brainDamaged)
1448 {
1449 // START PHASE 3
1450 if (me->HealthBelowPctDamaged(30, damage))
1451 {
1452 me->SetRegeneratingHealth(false);
1454 _brainDamaged = true;
1455
1457 if (me->GetInstanceScript())
1459 sara->AI()->DoAction(ACTION_BRAIN_DAMAGED);
1460 }
1461 }
1462 }
@ SPELL_BRAIN_HURT_VISUAL
Definition: boss_yoggsaron.cpp:120
@ ACTION_BRAIN_DAMAGED
Definition: boss_yoggsaron.cpp:240
@ NPC_SARA
Definition: ulduar.h:126
Creature * GetCreature(WorldObject const &u, ObjectGuid const guid)
Definition: ObjectAccessor.cpp:215
bool _EnterEvadeMode(EvadeReason why=EVADE_REASON_OTHER)
Definition: CreatureAI.cpp:292
Definition: Creature.h:46
InstanceScript * GetInstanceScript() const
Definition: Object.cpp:1192
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:17862
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:1169
bool HealthBelowPctDamaged(int32 pct, uint32 damage) const
Definition: Unit.h:1445
ObjectGuid GetGuidData(uint32 type) const override
Definition: InstanceScript.cpp:94

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

◆ DoAction()

void boss_yoggsaron_brain::boss_yoggsaron_brainAI::DoAction ( int32  param)
inlineoverridevirtual

Reimplemented from UnitAI.

1378 {
1379 if (param == ACTION_DESPAWN_ADDS)
1380 {
1382 return;
1383 }
1384 else if (param == ACTION_INFLUENCE_TENTACLE_DIED)
1385 {
1387 if (_tentacleCount >= 7 /*TENTACLES COUNT*/)
1388 {
1389 // Stun
1390 if (me->GetInstanceScript())
1392 sara->AI()->DoAction(MINUTE * IN_MILLISECONDS - std::min((uint32)MINUTE * IN_MILLISECONDS, _induceTimer));
1393
1394 _induceTimer = 0;
1397 go->SetGoState(GO_STATE_ACTIVE);
1398 }
1399 return;
1400 }
1401 else if (param == ACTION_REMOVE_STUN)
1402 return;
1403
1405 switch(param)
1406 {
1409 break;
1412 break;
1415 break;
1416 }
1417
1419 if (GameObject* go = me->FindNearestGameObject(i, 150.0f))
1420 go->SetGoState(GO_STATE_READY);
1421
1422 _activeIllusion = param - 1;
1423 _tentacleCount = 0;
1424 _induceTimer = 1;
1425
1427 }
constexpr auto IN_MILLISECONDS
Definition: Common.h:62
constexpr auto MINUTE
Definition: Common.h:56
std::uint32_t uint32
Definition: Define.h:108
@ GO_STATE_READY
Definition: GameObjectData.h:691
@ GO_STATE_ACTIVE
Definition: GameObjectData.h:690
@ SPELL_INDUCE_MADNESS
Definition: boss_yoggsaron.cpp:119
@ ACTION_ILLUSION_ICECROWN
Definition: boss_yoggsaron.cpp:249
@ ACTION_ILLUSION_STORMWIND
Definition: boss_yoggsaron.cpp:250
@ ACTION_DESPAWN_ADDS
Definition: boss_yoggsaron.cpp:233
@ ACTION_REMOVE_STUN
Definition: boss_yoggsaron.cpp:241
@ ACTION_INFLUENCE_TENTACLE_DIED
Definition: boss_yoggsaron.cpp:239
@ ACTION_ILLUSION_DRAGONS
Definition: boss_yoggsaron.cpp:248
@ GO_STORMWIND_ILLUSION_DOORS
Definition: boss_yoggsaron.cpp:224
@ GO_CHAMBER_ILLUSION_DOORS
Definition: boss_yoggsaron.cpp:222
@ NPC_LAUGHING_SKULL
Definition: boss_yoggsaron.cpp:195
void DespawnEntry(uint32 entry)
Definition: ScriptedCreature.cpp:50
void DespawnAll(uint32 delay=0)
Definition: ScriptedCreature.cpp:67
Definition: GameObject.h:122
GameObject * FindNearestGameObject(uint32 entry, float range, bool onlySpawned=false) const
Definition: Object.cpp:2418
void PrepareStormwindIllusion()
Definition: boss_yoggsaron.cpp:1346
void PrepareIceCrownIllusion()
Definition: boss_yoggsaron.cpp:1312
void PrepareChamberIllusion()
Definition: boss_yoggsaron.cpp:1279

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

◆ GetData()

uint32 boss_yoggsaron_brain::boss_yoggsaron_brainAI::GetData ( uint32  param) const
inlineoverridevirtual

Reimplemented from UnitAI.

1430 {
1431 if (param == DATA_GET_CURRENT_ILLUSION)
1432 return _activeIllusion + 1;
1433
1434 return 0;
1435 }
@ DATA_GET_CURRENT_ILLUSION
Definition: boss_yoggsaron.cpp:262

References _activeIllusion, and DATA_GET_CURRENT_ILLUSION.

◆ JustSummoned()

void boss_yoggsaron_brain::boss_yoggsaron_brainAI::JustSummoned ( Creature cr)
inlineoverridevirtual

Reimplemented from CreatureAI.

1257 {
1258 if (cr->GetEntry() == NPC_INFLUENCE_TENTACLE)
1259 {
1260 // Dragons Illusion
1261 if (cr->GetPositionX() > 2000.0f && cr->GetPositionX() < 2150.0f)
1263 // Icecrown Illusion
1264 else if (cr->GetPositionY() > -150.0f && cr->GetPositionY() < -90.0f)
1265 {
1268 }
1269 // Stormwind Illusion
1270 else
1272 }
1273 else if (cr->GetEntry() == NPC_LICH_KING)
1274 cr->CastSpell(cr, SPELL_DEATHGRASP, false);
1275
1276 summons.Summon(cr);
1277 }
uint32 urand(uint32 min, uint32 max)
Definition: Random.cpp:44
@ UNIT_STAND_STATE_KNEEL
Definition: Unit.h:61
@ SPELL_DEATHGRASP
Definition: boss_yoggsaron.cpp:133
@ NPC_INFLUENCE_TENTACLE
Definition: boss_yoggsaron.cpp:192
@ NPC_CONSORT_LAST
Definition: boss_yoggsaron.cpp:202
@ NPC_DEATHSWORN_ZEALOT
Definition: boss_yoggsaron.cpp:210
@ NPC_LICH_KING
Definition: boss_yoggsaron.cpp:211
@ NPC_SUIT_OF_ARMOR
Definition: boss_yoggsaron.cpp:215
@ NPC_CONSORT_FIRST
Definition: boss_yoggsaron.cpp:201
void Summon(Creature const *summon)
Definition: ScriptedCreature.h:90
bool UpdateEntry(uint32 entry, const CreatureData *data=nullptr, bool changelevel=true, bool updateAI=false)
Definition: Creature.cpp:483
uint32 GetEntry() const
Definition: Object.h:109
float GetPositionX() const
Definition: Position.h:117
float GetPositionY() const
Definition: Position.h:118
void SetStandState(uint8 state)
Definition: Unit.cpp:16900

References 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().

◆ PrepareChamberIllusion()

void boss_yoggsaron_brain::boss_yoggsaron_brainAI::PrepareChamberIllusion ( )
inline
1280 {
1281 me->SummonCreature(NPC_INFLUENCE_TENTACLE, 2126.13f, -65.488f, 239.721f, 1.99171f);
1282 me->SummonCreature(NPC_INFLUENCE_TENTACLE, 2141.05f, -50.5146f, 239.751f, 2.72998f);
1283 me->SummonCreature(NPC_INFLUENCE_TENTACLE, 2148.83f, -23.9568f, 239.721f, 3.04807f);
1284 me->SummonCreature(NPC_INFLUENCE_TENTACLE, 2064.39f, -42.0691f, 239.719f, 0.0949586f);
1285 me->SummonCreature(NPC_INFLUENCE_TENTACLE, 2064.29f, -7.13128f, 239.756f, 5.96974f);
1286 me->SummonCreature(NPC_INFLUENCE_TENTACLE, 2117.31f, 14.897f, 239.731f, 4.32041f);
1287 me->SummonCreature(NPC_INFLUENCE_TENTACLE, 2136.7f, 2.43262f, 239.72f, 3.90023f);
1288
1289 // Laughing Skulls
1290 if (urand(0, 1))
1291 me->SummonCreature(NPC_LAUGHING_SKULL, 2139.13f, -59.0848f, 239.728f, 2.2974f);
1292 else
1293 me->SummonCreature(NPC_LAUGHING_SKULL, 2083, -25.66f, 244, 0);
1294 if (urand(0, 1))
1295 me->SummonCreature(NPC_LAUGHING_SKULL, 2066.67f, -59.8984f, 239.72f, 0.718747f);
1296 else
1297 me->SummonCreature(NPC_LAUGHING_SKULL, 2126.22f, -25.86f, 244, 0);
1298
1299 me->SummonCreature(NPC_LAUGHING_SKULL, 2133.09f, 15.341f, 239.72f, 4.0724f);
1300 me->SummonCreature(NPC_LAUGHING_SKULL, 2065.83f, 12.3772f, 239.792f, 5.49789f);
1301
1302 // Aspects
1303 me->SummonCreature(NPC_ALEXTRASZA, 2091.92f, -25.8f, 242.647f, 0);
1304 me->SummonCreature(NPC_YSERA, 2116, -25.8f, 242.647f, 3.14f);
1305 me->SummonCreature(NPC_NELTHARION, 2103.6f, -35.8f, 242.64f, 1.5f);
1306 me->SummonCreature(NPC_MALYGOS, 2103.6f, -15.8f, 242.64f, 4.7f);
1307
1308 // Yogg Vision
1309 me->SummonCreature(NPC_YOGG_SARON_VISION, 2109.695f, -25.09549f, 222.3250f, 0);
1310 }
@ NPC_MALYGOS
Definition: boss_yoggsaron.cpp:204
@ NPC_NELTHARION
Definition: boss_yoggsaron.cpp:205
@ NPC_YOGG_SARON_VISION
Definition: boss_yoggsaron.cpp:186
@ NPC_ALEXTRASZA
Definition: boss_yoggsaron.cpp:203
@ NPC_YSERA
Definition: boss_yoggsaron.cpp:206
TempSummon * SummonCreature(uint32 id, const Position &pos, TempSummonType spwtype=TEMPSUMMON_MANUAL_DESPAWN, uint32 despwtime=0, uint32 vehId=0, SummonPropertiesEntry const *properties=nullptr, bool visibleBySummonerOnly=false) const
Definition: Object.cpp:2318

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

Referenced by DoAction().

◆ PrepareIceCrownIllusion()

void boss_yoggsaron_brain::boss_yoggsaron_brainAI::PrepareIceCrownIllusion ( )
inline
1313 {
1314 // Laughing Skulls
1315 me->SummonCreature(NPC_LAUGHING_SKULL, 1931.12f, -92.702f, 239.991f, 5.2819f);
1316 if (urand(0, 1))
1317 me->SummonCreature(NPC_LAUGHING_SKULL, 1969.88f, -147.729f, 239.991f, 2.37593f);
1318 else
1319 me->SummonCreature(NPC_LAUGHING_SKULL, 1878, -93.3f, 240, 0);
1320 if (urand(0, 1))
1321 me->SummonCreature(NPC_LAUGHING_SKULL, 1950.78f, -167.902f, 239.991f, 2.34844f);
1322 else
1323 me->SummonCreature(NPC_LAUGHING_SKULL, 1938.45f, -116.5f, 240, 0);
1324 if (urand(0, 1))
1325 me->SummonCreature(NPC_LAUGHING_SKULL, 1896.45f, -141.469f, 239.991f, 6.12227f);
1326 else
1327 me->SummonCreature(NPC_LAUGHING_SKULL, 1921, -158, 240, 0);
1328
1329 // Influence
1330 me->SummonCreature(NPC_INFLUENCE_TENTACLE, 1958.29f, -128.65f, 239.99f, 3.61293f);
1331 me->SummonCreature(NPC_INFLUENCE_TENTACLE, 1957.78f, -134.368f, 239.99f, 3.35375f);
1332 me->SummonCreature(NPC_INFLUENCE_TENTACLE, 1953.04f, -137.843f, 239.99f, 3.55796f);
1333 me->SummonCreature(NPC_INFLUENCE_TENTACLE, 1900.31f, -93.5241f, 239.99f, 4.50043f);
1334 me->SummonCreature(NPC_INFLUENCE_TENTACLE, 1895.03f, -98.0773f, 239.99f, 4.88135f);
1335 me->SummonCreature(NPC_INFLUENCE_TENTACLE, 1895.19f, -104.587f, 239.99f, 5.02271f);
1336 me->SummonCreature(NPC_INFLUENCE_TENTACLE, 1923.31f, -125.98f, 240, 4.2f);
1337
1338 // Others
1339 me->SummonCreature(NPC_LICH_KING, 1906.98f, -153, 240, 4.2f);
1340 me->SummonCreature(NPC_IMMOLATED_CHAMPION, 1902.03f, -161.7f, 240, 1.07f);
1341
1342 // Yogg Vision
1343 me->SummonCreature(NPC_YOGG_SARON_VISION, 1906.226f, -155.8941f, 223.4727, 0);
1344 }
@ NPC_IMMOLATED_CHAMPION
Definition: boss_yoggsaron.cpp:212

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

Referenced by DoAction().

◆ PrepareStormwindIllusion()

void boss_yoggsaron_brain::boss_yoggsaron_brainAI::PrepareStormwindIllusion ( )
inline
1347 {
1348 // Laughing Skulls
1349 if (urand(0, 1))
1350 me->SummonCreature(NPC_LAUGHING_SKULL, 1916.36f, 28.05f, 239.666f, 1.30238f);
1351 else
1352 me->SummonCreature(NPC_LAUGHING_SKULL, 1966.7f, 57.8f, 239.66f, 0);
1353 if (urand(0, 1))
1354 me->SummonCreature(NPC_LAUGHING_SKULL, 1902, 75.1362f, 239.666f, 6.06189f);
1355 else
1356 me->SummonCreature(NPC_LAUGHING_SKULL, 1933, 91, 240, 0);
1357 me->SummonCreature(NPC_LAUGHING_SKULL, 1914.42f, 90.8465f, 239.666f, 5.25294f);
1358 me->SummonCreature(NPC_LAUGHING_SKULL, 1963.68f, 89.7549f, 239.667f, 3.70571f);
1359
1360 // Influence
1361 me->SummonCreature(NPC_INFLUENCE_TENTACLE, 1931.41f, 39.0711f, 239.66f, 1.82467f);
1362 me->SummonCreature(NPC_INFLUENCE_TENTACLE, 1908.67f, 45.5867f, 239.666f, 0.72119f);
1363 me->SummonCreature(NPC_INFLUENCE_TENTACLE, 1897.68f, 66.1274f, 239.666f, 6.27395f);
1364 me->SummonCreature(NPC_INFLUENCE_TENTACLE, 1950.73f, 49.3446f, 239.666f, 2.63756f);
1365 me->SummonCreature(NPC_INFLUENCE_TENTACLE, 1923.16f, 97.5586f, 239.666f, 4.74635f);
1366 me->SummonCreature(NPC_INFLUENCE_TENTACLE, 1956.16f, 72.1403f, 239.666f, 3.19518f);
1367 me->SummonCreature(NPC_INFLUENCE_TENTACLE, 1944.81f, 92.3154f, 239.666f, 4.03556f);
1368
1369 // Others
1370 me->SummonCreature(NPC_GARONA, 1928.58f, 65.64f, 242.37f, 2.1f);
1371 me->SummonCreature(NPC_KING_LLANE, 1925.14f, 71.74f, 242.37f, 5.17f);
1372
1373 // Yogg Vision
1374 me->SummonCreature(NPC_YOGG_SARON_VISION, 1929.160f, 67.75694f, 221.7322f, 0);
1375 }
@ NPC_KING_LLANE
Definition: boss_yoggsaron.cpp:217
@ NPC_GARONA
Definition: boss_yoggsaron.cpp:216

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

Referenced by DoAction().

◆ Reset()

void boss_yoggsaron_brain::boss_yoggsaron_brainAI::Reset ( )
inlineoverridevirtual

Reimplemented from UnitAI.

1255{ }

◆ UpdateAI()

void boss_yoggsaron_brain::boss_yoggsaron_brainAI::UpdateAI ( uint32  diff)
inlineoverridevirtual

Reimplemented from NullCreatureAI.

1465 {
1466 if (_induceTimer)
1467 _induceTimer += diff;
1468 }

References _induceTimer.

Member Data Documentation

◆ _activeIllusion

uint8 boss_yoggsaron_brain::boss_yoggsaron_brainAI::_activeIllusion

◆ _brainDamaged

bool boss_yoggsaron_brain::boss_yoggsaron_brainAI::_brainDamaged

◆ _induceTimer

uint32 boss_yoggsaron_brain::boss_yoggsaron_brainAI::_induceTimer

◆ _tentacleCount

uint8 boss_yoggsaron_brain::boss_yoggsaron_brainAI::_tentacleCount

◆ summons

SummonList boss_yoggsaron_brain::boss_yoggsaron_brainAI::summons

Referenced by DoAction(), and JustSummoned().