AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
boss_flame_leviathan::boss_flame_leviathanAI Struct Reference
Inheritance diagram for boss_flame_leviathan::boss_flame_leviathanAI:
ScriptedAI CreatureAI UnitAI

Public Member Functions

 boss_flame_leviathanAI (Creature *pCreature)
 
void BindPlayers ()
 
void RadioSay (uint8 textid)
 
void ActivateTowers ()
 
void TurnGates (bool _start, bool _death)
 
void TurnHealStations (bool _apply)
 
void ScheduleEvents ()
 
void SummonTowerHelpers (uint8 towerId)
 
void JustReachedHome () override
 
void MoveInLineOfSight (Unit *) override
 
void JustSummoned (Creature *cr) override
 
void SummonedCreatureDespawn (Creature *cr) override
 
void SpellHit (Unit *caster, SpellInfo const *spellInfo) override
 
void JustDied (Unit *) override
 
void KilledUnit (Unit *who) override
 
void SpellHitTarget (Unit *target, SpellInfo const *spell) override
 
void AttackStart (Unit *who) override
 
void JustEngagedWith (Unit *) override
 Called for reaction when initially engaged.
 
void InitializeAI () override
 
void Reset () override
 
uint32 GetData (uint32 param) const override
 
void UpdateAI (uint32 diff) override
 Use to start attacking a target. Called just before JustEngagedWith()
 
void DoAction (int32 action) override
 
- Public Member Functions inherited from ScriptedAI
 ScriptedAI (Creature *creature)
 
 ~ScriptedAI () override
 
void AttackStartNoMove (Unit *target)
 
void DamageTaken (Unit *, uint32 &, 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()
 
void JustDied (Unit *) override
 
void KilledUnit (Unit *) override
 
void JustSummoned (Creature *) override
 
void SummonedCreatureDespawn (Creature *) override
 
void SpellHit (Unit *, SpellInfo const *) override
 
void SpellHitTarget (Unit *, SpellInfo const *) override
 
void MovementInform (uint32, uint32) override
 
void OnPossess (bool)
 
bool IsInRoom (const Position *pos, Axis axis, bool above)
 
void Reset () override
 
void JustEngagedWith (Unit *) override
 Called for reaction when initially engaged.
 
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 DoPlayMusic (uint32 soundId, bool zone)
 
void DoAddThreat (Unit *unit, float amount)
 
void DoModifyThreatByPercent (Unit *unit, int32 pct)
 
void DoResetThreat (Unit *unit)
 
void DoResetThreatList ()
 
float DoGetThreat (Unit *unit)
 
void DoTeleportPlayer (Unit *unit, float x, float y, float z, float o)
 
void DoTeleportPlayer (Unit *unit, Position pos)
 
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 IsUniqueTimedEventDone (uint32 id) const
 
void SetUniqueTimedEventDone (uint32 id)
 
void ResetUniqueTimedEvent (uint32 id)
 
void ClearUniqueTimedEventsDone ()
 
void ScheduleTimedEvent (Milliseconds timerMin, Milliseconds timerMax, std::function< void()> exec, Milliseconds repeatMin, Milliseconds repeatMax=0ms, uint32 uniqueId=0)
 
void ScheduleTimedEvent (Milliseconds timerMax, std::function< void()> exec, Milliseconds repeatMin, Milliseconds repeatMax=0ms, uint32 uniqueId=0)
 
void ScheduleUniqueTimedEvent (Milliseconds timer, std::function< void()> exec, uint32 uniqueId)
 
bool HealthBelowPct (uint32 pct) const
 
bool HealthAbovePct (uint32 pct) const
 
SpellInfo const * SelectSpell (Unit *target, uint32 school, uint32 mechanic, SelectTargetType targets, uint32 powerCostMin, uint32 powerCostMax, 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)
 
virtual bool CheckEvadeIfOutOfCombatArea () 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
 
PlayerSelectTargetFromPlayerList (float maxdist, uint32 excludeAura=0, bool mustBeInLOS=false) const
 
void SetInvincibility (bool apply)
 
bool IsInvincible () const
 
void SetAutoAttackAllowed (bool allow)
 
bool IsAutoAttackAllowed () const
 
- 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)
 
WorldObjectGetSummoner () const
 Returns the summoner creature/object, if the creature is a temporary summon.
 
 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 IsSummonedBy (WorldObject *)
 
virtual void SummonedCreatureDies (Creature *, Unit *)
 
virtual void SummonedCreatureDespawnAll ()
 
virtual void SummonedCreatureEvade (Creature *)
 
virtual void OnSpellCastFinished (SpellInfo const *, SpellFinishReason)
 
virtual void AttackedBy (Unit *)
 
virtual bool IsEscorted ()
 
virtual void JustRespawned ()
 
virtual void PathEndReached (uint32)
 
void OnCharmed (bool apply) override
 Called when unit is charmed.
 
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 ()
 
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 SetData (uint32, uint32)
 
virtual void SetGUID (ObjectGuid const &, 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)
 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 JustEnteredCombat (Unit *)
 Called when the unit enters combat.
 
virtual void JustExitedCombat ()
 Called when the unit leaves combat.
 
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)
 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

InstanceScriptm_pInstance
 
Vehiclevehicle
 
EventMap events
 
SummonList summons
 
uint32 _startTimer
 
uint32 _speakTimer
 
uint8 _towersCount
 
bool _shutdown
 
uint32 _destroyedTurretCount
 
- Public Attributes inherited from ScriptedAI
Creatureme
 

Additional Inherited Members

- Public Types inherited from ScriptedAI
enum class  Axis {
  AXIS_X ,
  AXIS_Y
}
 
- 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 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)
 
bool _EnterEvadeMode (EvadeReason why=EVADE_REASON_OTHER)
 
- Protected Attributes inherited from CreatureAI
Creature *const me
 
EventMap events
 
TaskScheduler scheduler
 
CreatureBoundary const * _boundary
 
bool _negateBoundary
 
- Protected Attributes inherited from UnitAI
Unit *const me
 

Detailed Description

Constructor & Destructor Documentation

◆ boss_flame_leviathanAI()

boss_flame_leviathan::boss_flame_leviathanAI::boss_flame_leviathanAI ( Creature pCreature)
inline
208 : ScriptedAI(pCreature), vehicle(me->GetVehicleKit()), summons(me)
209 {
210 m_pInstance = pCreature->GetInstanceScript();
211 assert(vehicle);
212 }
Vehicle * GetVehicleKit() const
Definition Unit.h:1879
InstanceScript * GetInstanceScript() const
Definition Object.cpp:1221
Definition ScriptedCreature.h:190
Creature * me
Definition ScriptedCreature.h:280
InstanceScript * m_pInstance
Definition boss_flame_leviathan.cpp:214
SummonList summons
Definition boss_flame_leviathan.cpp:217
Vehicle * vehicle
Definition boss_flame_leviathan.cpp:215

References WorldObject::GetInstanceScript(), m_pInstance, and vehicle.

Member Function Documentation

◆ ActivateTowers()

void boss_flame_leviathan::boss_flame_leviathanAI::ActivateTowers ( )
517{
518 _towersCount = 0;
519 me->ResetLootMode();
521 {
522 if (m_pInstance->GetData(i))
523 {
524 ++_towersCount;
525
527 switch (i)
528 {
531 events.RescheduleEvent(EVENT_FREYA, 30s);
532 break;
535 events.RescheduleEvent(EVENT_THORIMS_HAMMER, 1min);
536 break;
539 events.RescheduleEvent(EVENT_HODIRS_FURY, 20s);
540 break;
543 events.RescheduleEvent(EVENT_MIMIRONS_INFERNO, 42s);
544 break;
545 }
546 }
547 }
548}
std::uint32_t uint32
Definition Define.h:107
@ SPELL_TOWER_OF_LIFE
Definition boss_flame_leviathan.cpp:64
@ SPELL_TOWER_OF_STORMS
Definition boss_flame_leviathan.cpp:61
@ SPELL_TOWER_OF_FROST
Definition boss_flame_leviathan.cpp:63
@ SPELL_TOWER_OF_FLAMES
Definition boss_flame_leviathan.cpp:62
@ EVENT_MIMIRONS_INFERNO
Definition boss_flame_leviathan.cpp:123
@ EVENT_HODIRS_FURY
Definition boss_flame_leviathan.cpp:121
@ EVENT_FREYA
Definition boss_flame_leviathan.cpp:122
@ EVENT_THORIMS_HAMMER
Definition boss_flame_leviathan.cpp:124
events
Definition boss_sartura.cpp:43
void ResetLootMode()
Definition Creature.h:248
void AddLootMode(uint16 lootMode)
Definition Creature.h:246
Aura * AddAura(uint32 spellId, Unit *target)
Definition Unit.cpp:18894
virtual uint32 GetData(uint32) const
Definition ZoneScript.h:51
uint8 _towersCount
Definition boss_flame_leviathan.cpp:221
@ EVENT_TOWER_OF_STORM_DESTROYED
Definition ulduar.h:268
@ EVENT_TOWER_OF_LIFE_DESTROYED
Definition ulduar.h:271
@ EVENT_TOWER_OF_FLAMES_DESTROYED
Definition ulduar.h:270
@ EVENT_TOWER_OF_FROST_DESTROYED
Definition ulduar.h:269

References EVENT_FREYA, EVENT_HODIRS_FURY, EVENT_MIMIRONS_INFERNO, EVENT_THORIMS_HAMMER, EVENT_TOWER_OF_FLAMES_DESTROYED, EVENT_TOWER_OF_FROST_DESTROYED, EVENT_TOWER_OF_LIFE_DESTROYED, EVENT_TOWER_OF_STORM_DESTROYED, SPELL_TOWER_OF_FLAMES, SPELL_TOWER_OF_FROST, SPELL_TOWER_OF_LIFE, and SPELL_TOWER_OF_STORMS.

Referenced by JustEngagedWith().

◆ AttackStart()

void boss_flame_leviathan::boss_flame_leviathanAI::AttackStart ( Unit who)
inlineoverridevirtual

Reimplemented from UnitAI.

257 {
258 if (Unit* veh = who->GetVehicleBase())
260 else
262 }
Definition Unit.h:650
Unit * GetVehicleBase() const
Definition Unit.cpp:18773
void AttackStart(Unit *) override
Definition ScriptedCreature.cpp:210

References ScriptedAI::AttackStart(), and Unit::GetVehicleBase().

◆ BindPlayers()

void boss_flame_leviathan::boss_flame_leviathanAI::BindPlayers ( )
504{
506}
void PermBindAllPlayers()
Definition Map.cpp:2195
InstanceMap * ToInstanceMap()
Definition Map.h:377
Map * GetMap() const
Definition Object.h:621

References WorldObject::GetMap(), ScriptedAI::me, InstanceMap::PermBindAllPlayers(), and Map::ToInstanceMap().

Referenced by JustEngagedWith().

◆ DoAction()

void boss_flame_leviathan::boss_flame_leviathanAI::DoAction ( int32  action)
inlineoverridevirtual

Reimplemented from UnitAI.

488 {
489 if (action == ACTION_DESTROYED_TURRET)
490 {
492
493 if (_destroyedTurretCount == RAID_MODE<uint32>(2, 4))
494 {
497 }
498 }
499 }
@ SPELL_SYSTEMS_SHUTDOWN
Definition boss_flame_leviathan.cpp:57
@ ACTION_DESTROYED_TURRET
Definition boss_flame_leviathan.cpp:191
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:1194
uint32 _destroyedTurretCount
Definition boss_flame_leviathan.cpp:223

References _destroyedTurretCount, ACTION_DESTROYED_TURRET, Unit::CastSpell(), ScriptedAI::me, and SPELL_SYSTEMS_SHUTDOWN.

◆ GetData()

uint32 boss_flame_leviathan::boss_flame_leviathanAI::GetData ( uint32  param) const
inlineoverridevirtual

Reimplemented from UnitAI.

333 {
334 if (param == DATA_GET_TOWER_COUNT)
335 return _towersCount;
336 if (param == DATA_GET_SHUTDOWN)
337 return !_shutdown;
338
339 return 0;
340 }
@ DATA_GET_SHUTDOWN
Definition boss_flame_leviathan.cpp:179
@ DATA_GET_TOWER_COUNT
Definition boss_flame_leviathan.cpp:178
bool _shutdown
Definition boss_flame_leviathan.cpp:222

References _shutdown, _towersCount, DATA_GET_SHUTDOWN, and DATA_GET_TOWER_COUNT.

◆ InitializeAI()

void boss_flame_leviathan::boss_flame_leviathanAI::InitializeAI ( )
inlineoverridevirtual

Reimplemented from UnitAI.

286 {
288 {
292 }
293
295 }
@ SPECIAL
Definition InstanceScript.h:62
const Position homePos
Definition boss_flame_leviathan.cpp:194
void SetHomePosition(float x, float y, float z, float o)
Definition Creature.h:339
virtual void InitializeAI()
Definition UnitAI.h:209
virtual bool UpdatePosition(float x, float y, float z, float ang, bool teleport=false)
Definition Unit.cpp:19784
void StopMovingOnCurrentPos()
Definition Unit.cpp:16699
@ TYPE_LEVIATHAN
Definition ulduar.h:32

References ZoneScript::GetData(), homePos, UnitAI::InitializeAI(), m_pInstance, ScriptedAI::me, Creature::SetHomePosition(), SPECIAL, Unit::StopMovingOnCurrentPos(), TYPE_LEVIATHAN, and Unit::UpdatePosition().

◆ JustDied()

void boss_flame_leviathan::boss_flame_leviathanAI::JustDied ( Unit )
overridevirtual

Reimplemented from CreatureAI.

638{
639 // Despawn Lashers, do before summons clear
642
643 if (m_pInstance)
644 {
647 }
648
650
651 TurnGates(false, true);
652 BindPlayers();
653}
@ DONE
Definition InstanceScript.h:61
@ ACTION_DESPAWN_ADDS
Definition boss_flame_leviathan.cpp:189
@ FLAME_LEVIATHAN_SAY_DEATH
Definition boss_flame_leviathan.cpp:133
void DoAction(int32 info, uint16 max=0)
Definition ScriptedCreature.h:102
void DespawnAll(Milliseconds delay=0ms)
Definition ScriptedCreature.cpp:71
virtual void SetData(uint32, uint32)
Definition ZoneScript.h:52
Talk
Definition hyjal.cpp:82
void BindPlayers()
Definition boss_flame_leviathan.cpp:503
void TurnGates(bool _start, bool _death)
Definition boss_flame_leviathan.cpp:550
@ VEHICLE_POS_NONE
Definition ulduar.h:266
@ DATA_VEHICLE_SPAWN
Definition ulduar.h:54

References ACTION_DESPAWN_ADDS, DATA_VEHICLE_SPAWN, DONE, FLAME_LEVIATHAN_SAY_DEATH, summons, TYPE_LEVIATHAN, and VEHICLE_POS_NONE.

◆ JustEngagedWith()

void boss_flame_leviathan::boss_flame_leviathanAI::JustEngagedWith ( Unit )
inlineoverridevirtual

Called for reaction when initially engaged.

Reimplemented from CreatureAI.

265 {
268
269 me->setActive(true);
271 TurnHealStations(false);
273 if (m_pInstance)
275
276 BindPlayers();
278
279 if (!_startTimer)
280 {
281 TurnGates(true, false);
282 }
283 }
@ FLAME_LEVIATHAN_SAY_AGGRO
Definition boss_flame_leviathan.cpp:131
void SetInCombatWithZone()
Set in combat all units in the dungeon/raid. Affect only units with IsAIEnabled.
Definition Creature.cpp:2829
void setActive(bool isActiveObject)
Definition Object.cpp:1065
uint32 _startTimer
Definition boss_flame_leviathan.cpp:219
void ActivateTowers()
Definition boss_flame_leviathan.cpp:516
void ScheduleEvents()
Definition boss_flame_leviathan.cpp:608
void TurnHealStations(bool _apply)
Definition boss_flame_leviathan.cpp:586

References _startTimer, ActivateTowers(), BindPlayers(), FLAME_LEVIATHAN_SAY_AGGRO, homePos, m_pInstance, ScriptedAI::me, ScheduleEvents(), WorldObject::setActive(), ZoneScript::SetData(), Creature::SetHomePosition(), Creature::SetInCombatWithZone(), SPECIAL, TurnGates(), TurnHealStations(), and TYPE_LEVIATHAN.

◆ JustReachedHome()

void boss_flame_leviathan::boss_flame_leviathanAI::JustReachedHome ( )
inlineoverridevirtual

Reimplemented from CreatureAI.

236 {
237 // For achievement
238 if (m_pInstance)
240 me->setActive(false);
241 }
@ DATA_UNBROKEN_ACHIEVEMENT
Definition ulduar.h:59

References DATA_UNBROKEN_ACHIEVEMENT, m_pInstance, ScriptedAI::me, WorldObject::setActive(), and ZoneScript::SetData().

◆ JustSummoned()

void boss_flame_leviathan::boss_flame_leviathanAI::JustSummoned ( Creature cr)
inlineoverridevirtual

Reimplemented from CreatureAI.

245 {
246 if (cr->GetEntry() != NPC_FLAME_LEVIATHAN_TURRET && cr->GetEntry() != NPC_SEAT)
247 summons.Summon(cr);
248 }
@ NPC_FLAME_LEVIATHAN_TURRET
Definition boss_flame_leviathan.cpp:91
@ NPC_SEAT
Definition boss_flame_leviathan.cpp:92
uint32 GetEntry() const
Definition Object.h:116
void Summon(Creature const *summon)
Definition ScriptedCreature.h:88

References Object::GetEntry(), NPC_FLAME_LEVIATHAN_TURRET, NPC_SEAT, SummonList::Summon(), and summons.

◆ KilledUnit()

void boss_flame_leviathan::boss_flame_leviathanAI::KilledUnit ( Unit who)
overridevirtual

Reimplemented from CreatureAI.

656{
657 if (who == me->GetVictim())
658 events.RescheduleEvent(EVENT_PURSUE, 0ms);
659
660 if (who->IsPlayer())
662}
@ FLAME_LEVIATHAN_SAY_SLAY
Definition boss_flame_leviathan.cpp:132
@ EVENT_PURSUE
Definition boss_flame_leviathan.cpp:115
bool IsPlayer() const
Definition Object.h:201
Unit * GetVictim() const
Definition Unit.h:886

References EVENT_PURSUE, FLAME_LEVIATHAN_SAY_SLAY, Unit::GetVictim(), and Object::IsPlayer().

◆ MoveInLineOfSight()

void boss_flame_leviathan::boss_flame_leviathanAI::MoveInLineOfSight ( Unit )
inlineoverridevirtual

Reimplemented from CreatureAI.

243{}

◆ RadioSay()

void boss_flame_leviathan::boss_flame_leviathanAI::RadioSay ( uint8  textid)
509{
511 {
512 r->AI()->Talk(textid);
513 }
514}
@ TEMPSUMMON_TIMED_DESPAWN
Definition Object.h:50
@ NPC_BRANN_RADIO
Definition boss_flame_leviathan.cpp:98
Definition Creature.h:47
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:2359
float GetPositionZ() const
Definition Position.h:123
float GetOrientation() const
Definition Position.h:124
float GetPositionX() const
Definition Position.h:121
float GetPositionY() const
Definition Position.h:122

References NPC_BRANN_RADIO, WorldObject::SummonCreature(), and TEMPSUMMON_TIMED_DESPAWN.

Referenced by UpdateAI().

◆ Reset()

void boss_flame_leviathan::boss_flame_leviathanAI::Reset ( )
inlineoverridevirtual

Reimplemented from UnitAI.

298 {
299 // Special immunity case
302
305 events.Reset();
306
307 _shutdown = false;
308 _startTimer = 1;
309 _speakTimer = 0;
310 _towersCount = 0;
312
313 if (m_pInstance)
314 {
316 {
319 }
320 else
321 {
324 _startTimer = 0;
325 }
326 }
327
328 TurnGates(false, false);
329 TurnHealStations(true);
330 }
@ NOT_STARTED
Definition InstanceScript.h:58
@ IMMUNITY_STATE
Definition SharedDefines.h:1406
@ SPELL_AURA_USE_NORMAL_MOVEMENT_SPEED
Definition SpellAuraDefines.h:254
@ UNIT_FLAG_NON_ATTACKABLE
Definition UnitDefines.h:255
@ SPELL_INVIS_AND_STEALTH_DETECT
Definition boss_flame_leviathan.cpp:53
void ApplySpellImmune(uint32 spellId, uint32 op, uint32 type, bool apply, SpellImmuneBlockType blockType=SPELL_BLOCK_TYPE_ALL)
Definition Unit.cpp:13468
void SetUnitFlag(UnitFlags flags)
UnitFlags available in UnitDefines.h.
Definition Unit.h:733
void RemoveUnitFlag(UnitFlags flags)
UnitFlags available in UnitDefines.h.
Definition Unit.h:734
uint32 _speakTimer
Definition boss_flame_leviathan.cpp:220
@ VEHICLE_POS_LEVIATHAN
Definition ulduar.h:265

References _destroyedTurretCount, _shutdown, _speakTimer, _startTimer, _towersCount, ACTION_DESPAWN_ADDS, Unit::ApplySpellImmune(), Unit::CastSpell(), DATA_VEHICLE_SPAWN, SummonList::DespawnAll(), SummonList::DoAction(), ZoneScript::GetData(), IMMUNITY_STATE, m_pInstance, ScriptedAI::me, NOT_STARTED, Unit::RemoveUnitFlag(), ZoneScript::SetData(), Unit::SetUnitFlag(), SPECIAL, SPELL_AURA_USE_NORMAL_MOVEMENT_SPEED, SPELL_INVIS_AND_STEALTH_DETECT, summons, TurnGates(), TurnHealStations(), TYPE_LEVIATHAN, UNIT_FLAG_NON_ATTACKABLE, and VEHICLE_POS_LEVIATHAN.

◆ ScheduleEvents()

void boss_flame_leviathan::boss_flame_leviathanAI::ScheduleEvents ( )
609{
610 events.RescheduleEvent(EVENT_MISSILE, 5s);
611 events.RescheduleEvent(EVENT_VENT, 20s);
612 events.RescheduleEvent(EVENT_SPEED, 15s);
613 events.RescheduleEvent(EVENT_SUMMON, 10s);
614 events.RescheduleEvent(EVENT_SOUND_BEGINNING, 10s);
615 events.RescheduleEvent(EVENT_POSITION_CHECK, 5s);
616
617 events.RescheduleEvent(EVENT_PURSUE, 0ms);
618}
@ EVENT_VENT
Definition boss_flame_leviathan.cpp:117
@ EVENT_SPEED
Definition boss_flame_leviathan.cpp:118
@ EVENT_POSITION_CHECK
Definition boss_flame_leviathan.cpp:126
@ EVENT_MISSILE
Definition boss_flame_leviathan.cpp:116
@ EVENT_SOUND_BEGINNING
Definition boss_flame_leviathan.cpp:125
@ EVENT_SUMMON
Definition boss_flame_leviathan.cpp:119

References EVENT_MISSILE, EVENT_POSITION_CHECK, EVENT_PURSUE, EVENT_SOUND_BEGINNING, EVENT_SPEED, EVENT_SUMMON, and EVENT_VENT.

Referenced by JustEngagedWith().

◆ SpellHit()

void boss_flame_leviathan::boss_flame_leviathanAI::SpellHit ( Unit caster,
SpellInfo const *  spellInfo 
)
overridevirtual

Reimplemented from CreatureAI.

621{
622 if (spellInfo->Id == SPELL_SYSTEMS_SHUTDOWN)
623 {
624 _shutdown = true; // ACHIEVEMENT
625
629
630 events.DelayEvents(21ms);
631 events.ScheduleEvent(EVENT_REINSTALL, 20ms);
632 }
633 else if (spellInfo->Id == 62522 /*SPELL_ELECTROSHOCK*/)
635}
@ FLAME_LEVIATHAN_EMOTE_REPAIR
Definition boss_flame_leviathan.cpp:145
@ FLAME_LEVIATHAN_SAY_OVERLOAD
Definition boss_flame_leviathan.cpp:142
@ FLAME_LEVIATHAN_EMOTE_OVERLOAD
Definition boss_flame_leviathan.cpp:144
@ EVENT_REINSTALL
Definition boss_flame_leviathan.cpp:120
void InterruptNonMeleeSpells(bool withDelayed, uint32 spellid=0, bool withInstant=true, bool bySelf=false)
Definition Unit.cpp:4188

References EVENT_REINSTALL, FLAME_LEVIATHAN_EMOTE_OVERLOAD, FLAME_LEVIATHAN_EMOTE_REPAIR, FLAME_LEVIATHAN_SAY_OVERLOAD, SpellInfo::Id, and SPELL_SYSTEMS_SHUTDOWN.

◆ SpellHitTarget()

void boss_flame_leviathan::boss_flame_leviathanAI::SpellHitTarget ( Unit target,
SpellInfo const *  spell 
)
overridevirtual

Reimplemented from CreatureAI.

695{
696 if (spell->Id != SPELL_PURSUED)
697 return;
698
699 for (SeatMap::const_iterator itr = target->GetVehicleKit()->Seats.begin(); itr != target->GetVehicleKit()->Seats.end(); ++itr)
700 {
701 if (Player* passenger = ObjectAccessor::GetPlayer(*me, itr->second.Passenger.Guid))
702 {
704 return;
705 }
706 }
707}
@ SPELL_PURSUED
Definition boss_flame_leviathan.cpp:46
@ FLAME_LEVIATHAN_EMOTE_PURSUE
Definition boss_flame_leviathan.cpp:143
Definition Player.h:1071
SeatMap Seats
Definition Vehicle.h:56
Player * GetPlayer(Map const *, ObjectGuid const &guid)
Definition ObjectAccessor.cpp:220

References FLAME_LEVIATHAN_EMOTE_PURSUE, ObjectAccessor::GetPlayer(), Unit::GetVehicleKit(), SpellInfo::Id, Vehicle::Seats, and SPELL_PURSUED.

◆ SummonedCreatureDespawn()

void boss_flame_leviathan::boss_flame_leviathanAI::SummonedCreatureDespawn ( Creature cr)
inlineoverridevirtual

Reimplemented from CreatureAI.

250{ summons.Despawn(cr); }
void Despawn(Creature const *summon)
Definition ScriptedCreature.h:89

References SummonList::Despawn(), and summons.

◆ SummonTowerHelpers()

void boss_flame_leviathan::boss_flame_leviathanAI::SummonTowerHelpers ( uint8  towerId)
665{
666 if (towerId == TOWER_OF_LIFE)
667 {
671 me->SummonCreature(NPC_FREYA_WARD, 382.9f, 74, 411.6f + 40, 0, TEMPSUMMON_MANUAL_DESPAWN);
673 me->SummonCreature(NPC_FREYA_WARD, 159.4f, 64.1f, 409.8f + 40, 0, TEMPSUMMON_MANUAL_DESPAWN);
675 me->SummonCreature(NPC_FREYA_WARD, 157.7f, -140.26f, 409.8f + 40, 0, TEMPSUMMON_MANUAL_DESPAWN);
676 }
677 else if (towerId == TOWER_OF_FROST)
678 {
681 }
682 else if (towerId == TOWER_OF_FLAMES)
683 {
685 //me->SummonCreature(NPC_MIMIRONS_INFERNO, 364.4f, -9.7f, 409.8f+40, 0, TEMPSUMMON_MANUAL_DESPAWN);
686 }
687 else if (towerId == TOWER_OF_STORMS)
688 {
689 for (uint8 i = 0; i < 8; ++i)
690 me->SummonCreature(NPC_THORIM_HAMMER_TARGET, 157 + rand() % 200, -140 + rand() % 200, 409.8f, 0, TEMPSUMMON_TIMED_DESPAWN, 24000);
691 }
692}
std::uint8_t uint8
Definition Define.h:109
@ TEMPSUMMON_MANUAL_DESPAWN
Definition Object.h:55
@ TOWER_OF_FLAMES
Definition boss_flame_leviathan.cpp:182
@ TOWER_OF_STORMS
Definition boss_flame_leviathan.cpp:181
@ TOWER_OF_FROST
Definition boss_flame_leviathan.cpp:183
@ TOWER_OF_LIFE
Definition boss_flame_leviathan.cpp:184
@ NPC_MIMIRONS_INFERNO_TARGET
Definition boss_flame_leviathan.cpp:107
@ NPC_THORIM_HAMMER_TARGET
Definition boss_flame_leviathan.cpp:103
@ NPC_FREYA_WARD
Definition boss_flame_leviathan.cpp:106
@ NPC_FREYA_WARD_TARGET
Definition boss_flame_leviathan.cpp:105
@ NPC_HODIRS_FURY_TARGET
Definition boss_flame_leviathan.cpp:109

References NPC_FREYA_WARD, NPC_FREYA_WARD_TARGET, NPC_HODIRS_FURY_TARGET, NPC_MIMIRONS_INFERNO_TARGET, NPC_THORIM_HAMMER_TARGET, TEMPSUMMON_MANUAL_DESPAWN, TEMPSUMMON_TIMED_DESPAWN, TOWER_OF_FLAMES, TOWER_OF_FROST, TOWER_OF_LIFE, and TOWER_OF_STORMS.

Referenced by UpdateAI().

◆ TurnGates()

void boss_flame_leviathan::boss_flame_leviathanAI::TurnGates ( bool  _start,
bool  _death 
)
551{
552 if (!m_pInstance)
553 return;
554
555 if (_start)
556 {
557 // first one is ALWAYS turned on, unless leviathan is beaten
558 GameObject* go = nullptr;
561
565 }
566 else
567 {
568 GameObject* go = nullptr;
569 if (_death)
572
575
577 {
580 else
582 }
583 }
584}
@ GO_STATE_READY
Definition GameObjectData.h:692
@ GO_STATE_ACTIVE
Definition GameObjectData.h:691
@ GO_STATE_ACTIVE_ALTERNATIVE
Definition GameObjectData.h:693
Definition GameObject.h:120
void SetGoState(GOState state)
Definition GameObject.cpp:2469
ObjectGuid GetGuidData(uint32 type) const override
Definition InstanceScript.cpp:110
GameObject * GetGameObject(WorldObject const &u, ObjectGuid const &guid)
Definition ObjectAccessor.cpp:184
@ DATA_LIGHTNING_WALL2
Definition ulduar.h:56
@ DATA_LIGHTNING_WALL1
Definition ulduar.h:55
@ GO_LEVIATHAN_DOORS
Definition ulduar.h:195

References DATA_LIGHTNING_WALL1, DATA_LIGHTNING_WALL2, DONE, ObjectAccessor::GetGameObject(), GO_LEVIATHAN_DOORS, GO_STATE_ACTIVE, GO_STATE_ACTIVE_ALTERNATIVE, GO_STATE_READY, NOT_STARTED, GameObject::SetGoState(), SPECIAL, and TYPE_LEVIATHAN.

Referenced by JustEngagedWith(), Reset(), and UpdateAI().

◆ TurnHealStations()

void boss_flame_leviathan::boss_flame_leviathanAI::TurnHealStations ( bool  _apply)
587{
588 if (!m_pInstance)
589 return;
590
591 GameObject* go = nullptr;
592 if (_apply)
593 {
598 }
599 else
600 {
605 }
606}
@ GO_ACTIVATED
Definition GameObject.h:112
@ GO_READY
Definition GameObject.h:111
void SetLootState(LootState s, Unit *unit=nullptr)
Definition GameObject.cpp:2434
@ DATA_REPAIR_STATION1
Definition ulduar.h:57
@ DATA_REPAIR_STATION2
Definition ulduar.h:58

References DATA_REPAIR_STATION1, DATA_REPAIR_STATION2, ObjectAccessor::GetGameObject(), GO_ACTIVATED, GO_READY, and GameObject::SetLootState().

Referenced by JustEngagedWith(), and Reset().

◆ UpdateAI()

void boss_flame_leviathan::boss_flame_leviathanAI::UpdateAI ( uint32  )
inlineoverridevirtual

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

Implements UnitAI.

343 {
344 // THIS IS USED ONLY FOR FIRST ENGAGE!
345 if (_startTimer)
346 {
347 _startTimer += diff;
348 if (_startTimer >= 4000)
349 {
350 // Colossus dead, players in range
352 _startTimer = 1;
353 else
354 {
355 _startTimer = 0;
356 _speakTimer = 1;
357 }
358 }
359 return;
360 }
361
362 if (_speakTimer)
363 {
364 _speakTimer += diff;
365 if (_speakTimer <= 10000)
366 {
367 _speakTimer = 10000;
369 }
370 else if (_speakTimer > 16000 && _speakTimer < 20000)
371 {
372 _speakTimer = 20000;
374 }
375 else if (_speakTimer > 24000 && _speakTimer < 40000)
376 {
377 _speakTimer = 40000;
379 }
380 else if (_speakTimer > 41000 && _speakTimer < 60000)
381 {
383 TurnGates(true, false);
385 _speakTimer = 60000;
386 }
387 else if (_speakTimer > 63500)
388 {
390 if (!me->GetVictim())
391 {
392 me->CastSpell(me, SPELL_PURSUED, false);
393 events.RescheduleEvent(EVENT_PURSUE, 31s);
394 }
395 _speakTimer = 0;
396 }
397 return;
398 }
399
400 if (!UpdateVictim())
401 return;
402
403 events.Update(diff);
405 return;
406
407 switch (events.ExecuteEvent())
408 {
410 if (me->GetPositionX() > 450 || me->GetPositionX() < 120)
411 {
413 return;
414 }
415 events.Repeat(5s);
416 break;
417 case EVENT_PURSUE:
419 me->CastSpell(me, SPELL_PURSUED, false);
420 events.RescheduleEvent(EVENT_PURSUE, 31s);
421 return;
422 case EVENT_SPEED:
424 events.Repeat(15s);
425 return;
426 case EVENT_MISSILE:
428 events.Repeat(4s);
429 return;
430 case EVENT_VENT:
432 events.Repeat(20s);
433 return;
434 case EVENT_SUMMON:
435 if (summons.size() < 20)
436 if (Creature* lift = DoSummonFlyer(NPC_MECHANOLIFT, me, 30.0f, 50.0f, 0))
437 lift->GetMotionMaster()->MoveRandom(100);
438
439 events.Repeat(4s);
440 return;
442 if (_towersCount)
444 else
446 return;
447 case EVENT_REINSTALL:
448 for (uint8 i = RAID_MODE(0, 2); i < 4; ++i)
449 if (Unit* seat = vehicle->GetPassenger(i))
450 if (seat->IsCreature())
451 seat->ToCreature()->AI()->EnterEvadeMode();
453 return;
456 events.Repeat(1min, 2min);
459 return;
460 case EVENT_FREYA:
464 return;
469 return;
474 return;
475 }
476
478 {
479 if (me->IsWithinCombatRange(me->GetVictim(), 15.0f))
480 {
483 }
484 }
485 }
@ FORCED_MOVEMENT_NONE
Definition MotionMaster.h:85
@ UNIT_STATE_CASTING
Definition UnitDefines.h:185
@ UNIT_STATE_STUNNED
Definition UnitDefines.h:173
@ SPELL_FLAME_VENTS
Definition boss_flame_leviathan.cpp:49
@ SPELL_BATTERING_RAM
Definition boss_flame_leviathan.cpp:48
@ SPELL_GATHERING_SPEED
Definition boss_flame_leviathan.cpp:47
@ SPELL_MISSILE_BARRAGE
Definition boss_flame_leviathan.cpp:50
@ NPC_ULDUAR_COLOSSUS
Definition boss_flame_leviathan.cpp:97
@ NPC_MECHANOLIFT
Definition boss_flame_leviathan.cpp:93
@ FLAME_LEVIATHAN_EMOTE_NATURE
Definition boss_flame_leviathan.cpp:148
@ FLAME_LEVIATHAN_EMOTE_STORM
Definition boss_flame_leviathan.cpp:149
@ FLAME_LEVIATHAN_EMOTE_REACTIVATE
Definition boss_flame_leviathan.cpp:150
@ BRANN_RADIO_SAY_FL_START_0
Definition boss_flame_leviathan.cpp:153
@ BRANN_RADIO_SAY_FL_START_1
Definition boss_flame_leviathan.cpp:154
@ FLAME_LEVIATHAN_SAY_HARDMODE
Definition boss_flame_leviathan.cpp:135
@ FLAME_LEVIATHAN_EMOTE_FROST
Definition boss_flame_leviathan.cpp:146
@ BRANN_RADIO_SAY_FL_START_2
Definition boss_flame_leviathan.cpp:155
@ FLAME_LEVIATHAN_SAY_PURSUE
Definition boss_flame_leviathan.cpp:134
@ FLAME_LEVIATHAN_SAY_TOWER_STORM
Definition boss_flame_leviathan.cpp:140
@ FLAME_LEVIATHAN_SAY_TOWER_FROST
Definition boss_flame_leviathan.cpp:137
@ FLAME_LEVIATHAN_SAY_TOWER_NONE
Definition boss_flame_leviathan.cpp:136
@ FLAME_LEVIATHAN_EMOTE_FLAME
Definition boss_flame_leviathan.cpp:147
@ FLAME_LEVIATHAN_SAY_TOWER_FLAME
Definition boss_flame_leviathan.cpp:138
@ FLAME_LEVIATHAN_SAY_TOWER_NATURE
Definition boss_flame_leviathan.cpp:139
Creature * DoSummonFlyer(uint32 entry, WorldObject *obj, float flightZ, float radius=5.0f, uint32 despawnTime=30000, TempSummonType summonType=TEMPSUMMON_CORPSE_TIMED_DESPAWN)
Definition CreatureAI.cpp:561
bool UpdateVictim()
Definition CreatureAI.cpp:287
virtual void EnterEvadeMode(EvadeReason why=EVADE_REASON_OTHER)
Definition CreatureAI.cpp:215
void MovePoint(uint32 id, const Position &pos, ForcedMovement forcedMovement=FORCED_MOVEMENT_NONE, float speed=0.f, bool generatePath=true, bool forceDestination=true)
Definition MotionMaster.h:228
size_type size() const
Definition ScriptedCreature.h:78
bool IsWithinCombatRange(Unit const *obj, float dist2compare) const
Definition Unit.cpp:649
MotionMaster * GetMotionMaster()
Definition Unit.h:1713
bool HasUnitState(const uint32 f) const
Definition Unit.h:721
bool isAttackReady(WeaponAttackType type=BASE_ATTACK) const
Definition Unit.h:871
void resetAttackTimer(WeaponAttackType type=BASE_ATTACK)
Definition Unit.cpp:643
Unit * GetPassenger(int8 seatId) const
Definition Vehicle.cpp:228
Creature * FindNearestCreature(uint32 entry, float range, bool alive=true) const
Definition Object.cpp:2450
const T & RAID_MODE(const T &normal10, const T &normal25) const
Definition ScriptedCreature.h:404
Player * SelectTargetFromPlayerList(float maxdist, uint32 excludeAura=0, bool mustBeInLOS=false) const
Definition ScriptedCreature.cpp:563
void RadioSay(uint8 textid)
Definition boss_flame_leviathan.cpp:508
void SummonTowerHelpers(uint8 towerId)
Definition boss_flame_leviathan.cpp:664

References _speakTimer, _startTimer, _towersCount, BRANN_RADIO_SAY_FL_START_0, BRANN_RADIO_SAY_FL_START_1, BRANN_RADIO_SAY_FL_START_2, Unit::CastSpell(), CreatureAI::DoSummonFlyer(), CreatureAI::EnterEvadeMode(), EVENT_FREYA, EVENT_HODIRS_FURY, EVENT_MIMIRONS_INFERNO, EVENT_MISSILE, EVENT_POSITION_CHECK, EVENT_PURSUE, EVENT_REINSTALL, EVENT_SOUND_BEGINNING, EVENT_SPEED, EVENT_SUMMON, EVENT_THORIMS_HAMMER, EVENT_VENT, WorldObject::FindNearestCreature(), FLAME_LEVIATHAN_EMOTE_FLAME, FLAME_LEVIATHAN_EMOTE_FROST, FLAME_LEVIATHAN_EMOTE_NATURE, FLAME_LEVIATHAN_EMOTE_REACTIVATE, FLAME_LEVIATHAN_EMOTE_STORM, FLAME_LEVIATHAN_SAY_HARDMODE, FLAME_LEVIATHAN_SAY_PURSUE, FLAME_LEVIATHAN_SAY_TOWER_FLAME, FLAME_LEVIATHAN_SAY_TOWER_FROST, FLAME_LEVIATHAN_SAY_TOWER_NATURE, FLAME_LEVIATHAN_SAY_TOWER_NONE, FLAME_LEVIATHAN_SAY_TOWER_STORM, FORCED_MOVEMENT_NONE, Unit::GetMotionMaster(), Vehicle::GetPassenger(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), Unit::GetVictim(), Unit::HasUnitState(), homePos, Unit::isAttackReady(), Unit::IsWithinCombatRange(), ScriptedAI::me, MotionMaster::MovePoint(), NPC_MECHANOLIFT, NPC_ULDUAR_COLOSSUS, RadioSay(), ScriptedAI::RAID_MODE(), Unit::RemoveUnitFlag(), Unit::resetAttackTimer(), ScriptedAI::SelectTargetFromPlayerList(), Creature::SetInCombatWithZone(), SummonList::size(), SPELL_BATTERING_RAM, SPELL_FLAME_VENTS, SPELL_GATHERING_SPEED, SPELL_MISSILE_BARRAGE, SPELL_PURSUED, summons, SummonTowerHelpers(), TOWER_OF_FLAMES, TOWER_OF_FROST, TOWER_OF_LIFE, TOWER_OF_STORMS, TurnGates(), UNIT_FLAG_NON_ATTACKABLE, UNIT_STATE_CASTING, UNIT_STATE_STUNNED, CreatureAI::UpdateVictim(), and vehicle.

Member Data Documentation

◆ _destroyedTurretCount

uint32 boss_flame_leviathan::boss_flame_leviathanAI::_destroyedTurretCount

Referenced by DoAction(), and Reset().

◆ _shutdown

bool boss_flame_leviathan::boss_flame_leviathanAI::_shutdown

Referenced by GetData(), and Reset().

◆ _speakTimer

uint32 boss_flame_leviathan::boss_flame_leviathanAI::_speakTimer

Referenced by Reset(), and UpdateAI().

◆ _startTimer

uint32 boss_flame_leviathan::boss_flame_leviathanAI::_startTimer

Referenced by JustEngagedWith(), Reset(), and UpdateAI().

◆ _towersCount

uint8 boss_flame_leviathan::boss_flame_leviathanAI::_towersCount

Referenced by GetData(), Reset(), and UpdateAI().

◆ events

EventMap boss_flame_leviathan::boss_flame_leviathanAI::events

◆ m_pInstance

InstanceScript* boss_flame_leviathan::boss_flame_leviathanAI::m_pInstance

◆ summons

SummonList boss_flame_leviathan::boss_flame_leviathanAI::summons

◆ vehicle

Vehicle* boss_flame_leviathan::boss_flame_leviathanAI::vehicle

Referenced by boss_flame_leviathanAI(), and UpdateAI().


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