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

Public Member Functions

 boss_flame_leviathan (Creature *creature)
 
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 - this happens after JustEnteredCombat.
 
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()
 
- Public Member Functions inherited from BossAI
 BossAI (Creature *creature, uint32 bossId)
 
 ~BossAI () override
 
bool CanRespawn () override
 
void OnSpellCast (SpellInfo const *spell) override
 
void OnChannelFinished (SpellInfo const *spell) override
 
void OnSpellFailed (SpellInfo const *spell) override
 
void DamageTaken (Unit *attacker, uint32 &damage, DamageEffectType damagetype, SpellSchoolMask damageSchoolMask) override
 Called at any Damage from any attacker (before damage apply)
 
void JustSummoned (Creature *summon) override
 
void SummonedCreatureDespawn (Creature *summon) override
 
void SummonedCreatureDespawnAll () override
 
void UpdateAI (uint32 diff) override
 Use to start attacking a target. Called just before JustEngagedWith()
 
void ScheduleHealthCheckEvent (uint32 healthPct, std::function< void()> exec, bool allowedWhileCasting=true)
 Executes a function once the creature reaches the defined health point percent.
 
void ScheduleHealthCheckEvent (std::initializer_list< uint8 > healthPct, std::function< void()> exec, bool allowedWhileCasting=true)
 
void ProcessHealthCheck ()
 
void ScheduleEnrageTimer (uint32 spellId, Milliseconds timer, uint8 textId=0)
 
virtual void ExecuteEvent (uint32)
 
virtual void ScheduleTasks ()
 
void Reset () override
 
void JustEngagedWith (Unit *) override
 Called for reaction when initially engaged - this happens after JustEnteredCombat.
 
void EnterEvadeMode (EvadeReason why=EVADE_REASON_OTHER) override
 
void JustDied (Unit *) override
 
void JustReachedHome () 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 (Position const *pos, Axis axis, bool above)
 
void Reset () override
 
void JustEngagedWith (Unit *) override
 Called for reaction when initially engaged - this happens after JustEnteredCombat.
 
void AttackStart (Unit *) override
 
void DoStartMovement (Unit *target, float distance=0.0f, float angle=0.0f)
 
void DoStartNoMovement (Unit *target)
 
void DoStopAttack ()
 
void DoRewardPlayersInArea ()
 
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 >
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
 
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
 
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 IsEscortNPC (bool=true) const
 
void JustEnteredCombat (Unit *who) override
 Called when the unit enters combat.
 
virtual void JustStartedThreateningMe (Unit *who)
 
void EngagementStart (Unit *who)
 
void EngagementOver ()
 
void JustExitedCombat () override
 Called when the unit leaves combat.
 
virtual void IsSummonedBy (WorldObject *)
 
virtual void SummonedCreatureDies (Creature *, Unit *)
 
virtual void SummonedCreatureEvade (Creature *)
 
virtual void OnSpellStart (SpellInfo const *)
 
virtual void AttackedBy (Unit *)
 
virtual bool IsEscorted ()
 
virtual void JustRespawned ()
 
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)
 
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 *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 DoAction (int32)
 
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 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

Vehiclevehicle
 
uint32 _startTimer
 
uint32 _speakTimer
 
uint8 _towersCount
 
bool _shutdown
 
uint8 _overloadCircuitCount
 
- Public Attributes inherited from BossAI
float callForHelpRange
 
InstanceScript *const instance
 
- 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 BossAI
void _Reset ()
 
void _JustEngagedWith ()
 
void _JustDied ()
 
void _JustReachedHome ()
 
void _EnterEvadeMode (EvadeReason why=EVADE_REASON_OTHER)
 
void TeleportCheaters ()
 
- 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 BossAI
SummonList summons
 
- 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_flame_leviathan()

boss_flame_leviathan::boss_flame_leviathan ( Creature creature)
inline
195 {
196 assert(vehicle);
197 }
Definition ScriptedCreature.h:485
Vehicle * GetVehicleKit() const
Definition Unit.h:1925
Creature * me
Definition ScriptedCreature.h:281
Vehicle * vehicle
Definition boss_flame_leviathan.cpp:199
@ BOSS_LEVIATHAN
Definition ulduar.h:31

References vehicle.

Member Function Documentation

◆ ActivateTowers()

void boss_flame_leviathan::ActivateTowers ( )
465{
466 _towersCount = 0;
467 me->ResetLootMode();
469 {
470 if (instance->GetData(i))
471 {
472 ++_towersCount;
473
475 switch (i)
476 {
479 events.RescheduleEvent(EVENT_FREYA, 30s);
480 break;
483 events.RescheduleEvent(EVENT_THORIMS_HAMMER, 1min);
484 break;
487 events.RescheduleEvent(EVENT_HODIRS_FURY, 20s);
488 break;
491 events.RescheduleEvent(EVENT_MIMIRONS_INFERNO, 42s);
492 break;
493 }
494 }
495 }
496}
std::uint32_t uint32
Definition Define.h:107
@ SPELL_TOWER_OF_LIFE
Definition boss_flame_leviathan.cpp:65
@ SPELL_TOWER_OF_STORMS
Definition boss_flame_leviathan.cpp:62
@ SPELL_TOWER_OF_FROST
Definition boss_flame_leviathan.cpp:64
@ SPELL_TOWER_OF_FLAMES
Definition boss_flame_leviathan.cpp:63
@ EVENT_MIMIRONS_INFERNO
Definition boss_flame_leviathan.cpp:125
@ EVENT_HODIRS_FURY
Definition boss_flame_leviathan.cpp:123
@ EVENT_FREYA
Definition boss_flame_leviathan.cpp:124
@ EVENT_THORIMS_HAMMER
Definition boss_flame_leviathan.cpp:126
events
Definition boss_sartura.cpp:43
InstanceScript *const instance
Definition ScriptedCreature.h:492
void ResetLootMode()
Definition Creature.h:250
void AddLootMode(uint16 lootMode)
Definition Creature.h:248
Aura * AddAura(uint32 spellId, Unit *target)
Definition Unit.cpp:15137
virtual uint32 GetData(uint32) const
Definition ZoneScript.h:51
uint8 _towersCount
Definition boss_flame_leviathan.cpp:203
@ EVENT_TOWER_OF_STORM_DESTROYED
Definition ulduar.h:352
@ EVENT_TOWER_OF_LIFE_DESTROYED
Definition ulduar.h:355
@ EVENT_TOWER_OF_FLAMES_DESTROYED
Definition ulduar.h:354
@ EVENT_TOWER_OF_FROST_DESTROYED
Definition ulduar.h:353

References _towersCount, Unit::AddAura(), Creature::AddLootMode(), 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, ZoneScript::GetData(), BossAI::instance, ScriptedAI::me, Creature::ResetLootMode(), 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::AttackStart ( Unit who)
inlineoverridevirtual

Reimplemented from UnitAI.

239 {
240 if (Unit* veh = who->GetVehicleBase())
242 else
244 }
virtual void AttackStart(Unit *)
Definition UnitAI.cpp:29
Definition Unit.h:665
Unit * GetVehicleBase() const
Definition Unit.cpp:15016

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

◆ BindPlayers()

void boss_flame_leviathan::BindPlayers ( )
452{
454}
void PermBindAllPlayers()
Definition Map.cpp:2252
InstanceMap * ToInstanceMap()
Definition Map.h:390
Map * GetMap() const
Definition Object.h:631

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

Referenced by JustDied(), and JustEngagedWith().

◆ GetData()

uint32 boss_flame_leviathan::GetData ( uint32  param) const
inlineoverridevirtual

Reimplemented from UnitAI.

311 {
312 if (param == DATA_GET_TOWER_COUNT)
313 return _towersCount;
314 if (param == DATA_GET_SHUTDOWN)
315 return !_shutdown;
316
317 return 0;
318 }
@ DATA_GET_SHUTDOWN
Definition boss_flame_leviathan.cpp:176
@ DATA_GET_TOWER_COUNT
Definition boss_flame_leviathan.cpp:175
bool _shutdown
Definition boss_flame_leviathan.cpp:204

References _shutdown, _towersCount, DATA_GET_SHUTDOWN, and DATA_GET_TOWER_COUNT.

◆ InitializeAI()

void boss_flame_leviathan::InitializeAI ( )
inlineoverridevirtual

Reimplemented from UnitAI.

267 {
269 {
273 }
274
276 }
@ SPECIAL
Definition InstanceScript.h:62
const Position homePos
Definition boss_flame_leviathan.cpp:190
void SetHomePosition(float x, float y, float z, float o)
Definition Creature.h:347
EncounterState GetBossState(uint32 id) const
Definition InstanceScript.h:252
virtual void InitializeAI()
Definition UnitAI.h:209
virtual bool UpdatePosition(float x, float y, float z, float ang, bool teleport=false)
Definition Unit.cpp:16005
void StopMovingOnCurrentPos()
Definition Unit.cpp:13073

References BOSS_LEVIATHAN, InstanceScript::GetBossState(), homePos, UnitAI::InitializeAI(), BossAI::instance, ScriptedAI::me, Creature::SetHomePosition(), SPECIAL, Unit::StopMovingOnCurrentPos(), and Unit::UpdatePosition().

◆ JustDied()

void boss_flame_leviathan::JustDied ( Unit )
overridevirtual

Reimplemented from CreatureAI.

605{
606 // Despawn Lashers, do before summons clear
609
612
614
615 TurnGates(false, true);
616 BindPlayers();
617}
@ DONE
Definition InstanceScript.h:61
@ ACTION_DESPAWN_ADDS
Definition boss_flame_leviathan.cpp:186
@ FLAME_LEVIATHAN_SAY_DEATH
Definition boss_flame_leviathan.cpp:135
SummonList summons
Definition ScriptedCreature.h:539
virtual bool SetBossState(uint32 id, EncounterState state)
Definition InstanceScript.cpp:400
void DoAction(int32 info, uint16 max=0)
Definition ScriptedCreature.h:102
void DespawnAll(Milliseconds delay=0ms)
Definition ScriptedCreature.cpp:72
virtual void SetData(uint32, uint32)
Definition ZoneScript.h:52
Talk
Definition hyjal.cpp:82
void BindPlayers()
Definition boss_flame_leviathan.cpp:451
void TurnGates(bool _start, bool _death)
Definition boss_flame_leviathan.cpp:498
@ VEHICLE_POS_NONE
Definition ulduar.h:350
@ DATA_VEHICLE_SPAWN
Definition ulduar.h:61

References ACTION_DESPAWN_ADDS, BindPlayers(), BOSS_LEVIATHAN, DATA_VEHICLE_SPAWN, SummonList::DespawnAll(), SummonList::DoAction(), DONE, FLAME_LEVIATHAN_SAY_DEATH, BossAI::instance, InstanceScript::SetBossState(), ZoneScript::SetData(), BossAI::summons, TurnGates(), and VEHICLE_POS_NONE.

◆ JustEngagedWith()

void boss_flame_leviathan::JustEngagedWith ( Unit )
inlineoverridevirtual

Called for reaction when initially engaged - this happens after JustEnteredCombat.

Reimplemented from CreatureAI.

247 {
250
251 me->setActive(true);
253 TurnHealStations(false);
256
257 BindPlayers();
259
260 if (!_startTimer)
261 {
262 TurnGates(true, false);
263 }
264 }
@ FLAME_LEVIATHAN_SAY_AGGRO
Definition boss_flame_leviathan.cpp:133
void SetInCombatWithZone()
Set in combat all units in the dungeon/raid. Affect only units with IsAIEnabled.
Definition Creature.cpp:2863
void setActive(bool isActiveObject)
Definition Object.cpp:1086
uint32 _startTimer
Definition boss_flame_leviathan.cpp:201
void TurnHealStations(bool _apply)
Definition boss_flame_leviathan.cpp:534
void ActivateTowers()
Definition boss_flame_leviathan.cpp:464
void ScheduleEvents()
Definition boss_flame_leviathan.cpp:556

References _startTimer, ActivateTowers(), BindPlayers(), BOSS_LEVIATHAN, FLAME_LEVIATHAN_SAY_AGGRO, homePos, BossAI::instance, ScriptedAI::me, ScheduleEvents(), WorldObject::setActive(), InstanceScript::SetBossState(), Creature::SetHomePosition(), Creature::SetInCombatWithZone(), SPECIAL, TurnGates(), and TurnHealStations().

◆ JustReachedHome()

void boss_flame_leviathan::JustReachedHome ( )
inlineoverridevirtual

Reimplemented from CreatureAI.

217 {
219 // For achievement
221 me->setActive(false);
223 }
@ SPELL_GATHERING_SPEED
Definition boss_flame_leviathan.cpp:47
void _JustReachedHome()
Definition ScriptedCreature.h:534
void StorePersistentData(uint32 index, uint32 data)
Definition InstanceScript.cpp:440
void RemoveAurasDueToSpell(uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, uint8 reqEffMask=0, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
Definition Unit.cpp:5189
@ PERSISTENT_DATA_UNBROKEN
Definition ulduar.h:337

References BossAI::_JustReachedHome(), BossAI::instance, ScriptedAI::me, PERSISTENT_DATA_UNBROKEN, Unit::RemoveAurasDueToSpell(), WorldObject::setActive(), SPELL_GATHERING_SPEED, and InstanceScript::StorePersistentData().

◆ JustSummoned()

void boss_flame_leviathan::JustSummoned ( Creature cr)
inlineoverridevirtual

Reimplemented from CreatureAI.

227 {
228 if (cr->GetEntry() != NPC_FLAME_LEVIATHAN_TURRET && cr->GetEntry() != NPC_SEAT)
229 summons.Summon(cr);
230 }
@ NPC_FLAME_LEVIATHAN_TURRET
Definition boss_flame_leviathan.cpp:96
@ NPC_SEAT
Definition boss_flame_leviathan.cpp:97
uint32 GetEntry() const
Definition Object.h:117
void Summon(Creature const *summon)
Definition ScriptedCreature.h:88

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

◆ KilledUnit()

void boss_flame_leviathan::KilledUnit ( Unit who)
overridevirtual

Reimplemented from CreatureAI.

620{
621 if (who == me->GetVictim())
622 events.RescheduleEvent(EVENT_PURSUE, 0ms);
623
624 if (who->IsPlayer())
626}
@ FLAME_LEVIATHAN_SAY_SLAY
Definition boss_flame_leviathan.cpp:134
@ EVENT_PURSUE
Definition boss_flame_leviathan.cpp:119
bool IsPlayer() const
Definition Object.h:201
Unit * GetVictim() const
Definition Unit.h:904

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

◆ MoveInLineOfSight()

void boss_flame_leviathan::MoveInLineOfSight ( Unit )
inlineoverridevirtual

Reimplemented from CreatureAI.

225{}

◆ RadioSay()

void boss_flame_leviathan::RadioSay ( uint8  textid)
457{
459 {
460 r->AI()->Talk(textid);
461 }
462}
@ TEMPSUMMON_TIMED_DESPAWN
Definition Object.h:51
@ NPC_BRANN_RADIO
Definition boss_flame_leviathan.cpp:102
Definition Creature.h:47
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:2448
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 Position::GetOrientation(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), ScriptedAI::me, NPC_BRANN_RADIO, WorldObject::SummonCreature(), and TEMPSUMMON_TIMED_DESPAWN.

Referenced by UpdateAI().

◆ Reset()

void boss_flame_leviathan::Reset ( )
inlineoverridevirtual

Reimplemented from UnitAI.

279 {
280 // Special immunity case
283
286 events.Reset();
287
288 _shutdown = false;
289 _startTimer = 1;
290 _speakTimer = 0;
291 _towersCount = 0;
293
295 {
298 }
299 else
300 {
303 _startTimer = 0;
304 }
305
306 TurnGates(false, false);
307 TurnHealStations(true);
308 }
@ NOT_STARTED
Definition InstanceScript.h:58
@ IMMUNITY_STATE
Definition SharedDefines.h:1399
@ SPELL_AURA_USE_NORMAL_MOVEMENT_SPEED
Definition SpellAuraDefines.h:254
@ UNIT_FLAG_NON_ATTACKABLE
Definition UnitDefines.h:258
@ 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:10469
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:1361
void SetUnitFlag(UnitFlags flags)
UnitFlags available in UnitDefines.h.
Definition Unit.h:749
void RemoveUnitFlag(UnitFlags flags)
UnitFlags available in UnitDefines.h.
Definition Unit.h:750
uint8 _overloadCircuitCount
Definition boss_flame_leviathan.cpp:205
uint32 _speakTimer
Definition boss_flame_leviathan.cpp:202
@ VEHICLE_POS_LEVIATHAN
Definition ulduar.h:349

References _overloadCircuitCount, _shutdown, _speakTimer, _startTimer, _towersCount, ACTION_DESPAWN_ADDS, Unit::ApplySpellImmune(), BOSS_LEVIATHAN, Unit::CastSpell(), DATA_VEHICLE_SPAWN, SummonList::DespawnAll(), SummonList::DoAction(), InstanceScript::GetBossState(), IMMUNITY_STATE, BossAI::instance, ScriptedAI::me, NOT_STARTED, Unit::RemoveUnitFlag(), InstanceScript::SetBossState(), ZoneScript::SetData(), Unit::SetUnitFlag(), SPECIAL, SPELL_AURA_USE_NORMAL_MOVEMENT_SPEED, SPELL_INVIS_AND_STEALTH_DETECT, BossAI::summons, TurnGates(), TurnHealStations(), UNIT_FLAG_NON_ATTACKABLE, and VEHICLE_POS_LEVIATHAN.

◆ ScheduleEvents()

void boss_flame_leviathan::ScheduleEvents ( )
557{
558 events.RescheduleEvent(EVENT_MISSILE, 5s);
559 events.RescheduleEvent(EVENT_VENT, 20s);
560 events.RescheduleEvent(EVENT_SPEED, 15s);
561 events.RescheduleEvent(EVENT_SOUND_BEGINNING, 10s);
562
563 events.RescheduleEvent(EVENT_PURSUE, 0ms);
564}
@ EVENT_VENT
Definition boss_flame_leviathan.cpp:121
@ EVENT_SPEED
Definition boss_flame_leviathan.cpp:122
@ EVENT_MISSILE
Definition boss_flame_leviathan.cpp:120
@ EVENT_SOUND_BEGINNING
Definition boss_flame_leviathan.cpp:127

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

Referenced by JustEngagedWith().

◆ SpellHit()

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

Reimplemented from CreatureAI.

567{
568 if (spellInfo->Id == SPELL_OVERLOAD_CIRCUIT)
569 {
571 if (_overloadCircuitCount == 1)
573
574 uint8 const threshold = me->GetMap()->Is25ManRaid() ? 4 : 2;
575 if (_overloadCircuitCount >= threshold)
576 {
579 }
580 }
581 else if (spellInfo->Id == SPELL_SYSTEMS_SHUTDOWN)
582 {
583 _shutdown = true; // ACHIEVEMENT
584
587
588 events.ScheduleEvent(EVENT_EJECT_PLAYERS, 3s);
589 }
590 else if (spellInfo->Id == SPELL_START_THE_ENGINE)
591 {
592 // Respawn turrets
593 for (uint8 i = 0; i < 4; ++i)
594 if (Unit* seat = vehicle->GetPassenger(i))
595 if (seat->IsCreature())
596 seat->ToCreature()->AI()->EnterEvadeMode();
597
599 }
600 else if (spellInfo->Id == 62522 /*SPELL_ELECTROSHOCK*/)
602}
std::uint8_t uint8
Definition Define.h:109
@ SPELL_START_THE_ENGINE
Definition boss_flame_leviathan.cpp:59
@ SPELL_SYSTEMS_SHUTDOWN
Definition boss_flame_leviathan.cpp:57
@ SPELL_OVERLOAD_CIRCUIT
Definition boss_flame_leviathan.cpp:58
@ FLAME_LEVIATHAN_EMOTE_REACTIVATE
Definition boss_flame_leviathan.cpp:152
@ FLAME_LEVIATHAN_SAY_OVERLOAD
Definition boss_flame_leviathan.cpp:144
@ FLAME_LEVIATHAN_EMOTE_OVERLOAD
Definition boss_flame_leviathan.cpp:146
@ FLAME_LEVIATHAN_EMOTE_OVERLOAD_START
Definition boss_flame_leviathan.cpp:153
@ EVENT_EJECT_PLAYERS
Definition boss_flame_leviathan.cpp:128
bool Is25ManRaid() const
Definition Map.h:304
void InterruptNonMeleeSpells(bool withDelayed, uint32 spellid=0, bool withInstant=true, bool bySelf=false)
Definition Unit.cpp:4312
Unit * GetPassenger(int8 seatId) const
Definition Vehicle.cpp:239

References _overloadCircuitCount, _shutdown, Unit::CastSpell(), EVENT_EJECT_PLAYERS, FLAME_LEVIATHAN_EMOTE_OVERLOAD, FLAME_LEVIATHAN_EMOTE_OVERLOAD_START, FLAME_LEVIATHAN_EMOTE_REACTIVATE, FLAME_LEVIATHAN_SAY_OVERLOAD, WorldObject::GetMap(), Vehicle::GetPassenger(), SpellInfo::Id, Unit::InterruptNonMeleeSpells(), Map::Is25ManRaid(), ScriptedAI::me, SPELL_OVERLOAD_CIRCUIT, SPELL_START_THE_ENGINE, SPELL_SYSTEMS_SHUTDOWN, and vehicle.

◆ SpellHitTarget()

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

Reimplemented from CreatureAI.

659{
660 if (spell->Id != SPELL_PURSUED)
661 return;
662
663 for (SeatMap::const_iterator itr = target->GetVehicleKit()->Seats.begin(); itr != target->GetVehicleKit()->Seats.end(); ++itr)
664 {
665 if (Player* passenger = ObjectAccessor::GetPlayer(*me, itr->second.Passenger.Guid))
666 {
668 return;
669 }
670 }
671}
@ SPELL_PURSUED
Definition boss_flame_leviathan.cpp:46
@ FLAME_LEVIATHAN_EMOTE_PURSUE
Definition boss_flame_leviathan.cpp:145
Definition Player.h:1086
SeatMap Seats
Definition Vehicle.h:57
Player * GetPlayer(Map const *, ObjectGuid const &guid)
Definition ObjectAccessor.cpp:244

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

◆ SummonedCreatureDespawn()

void boss_flame_leviathan::SummonedCreatureDespawn ( Creature cr)
inlineoverridevirtual

Reimplemented from CreatureAI.

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

References SummonList::Despawn(), and BossAI::summons.

◆ SummonTowerHelpers()

void boss_flame_leviathan::SummonTowerHelpers ( uint8  towerId)
629{
630 if (towerId == TOWER_OF_LIFE)
631 {
635 me->SummonCreature(NPC_FREYA_WARD, 382.9f, 74, 411.6f + 40, 0, TEMPSUMMON_MANUAL_DESPAWN);
637 me->SummonCreature(NPC_FREYA_WARD, 159.4f, 64.1f, 409.8f + 40, 0, TEMPSUMMON_MANUAL_DESPAWN);
639 me->SummonCreature(NPC_FREYA_WARD, 157.7f, -140.26f, 409.8f + 40, 0, TEMPSUMMON_MANUAL_DESPAWN);
640 }
641 else if (towerId == TOWER_OF_FROST)
642 {
645 }
646 else if (towerId == TOWER_OF_FLAMES)
647 {
649 //me->SummonCreature(NPC_MIMIRONS_INFERNO, 364.4f, -9.7f, 409.8f+40, 0, TEMPSUMMON_MANUAL_DESPAWN);
650 }
651 else if (towerId == TOWER_OF_STORMS)
652 {
653 for (uint8 i = 0; i < 8; ++i)
654 me->SummonCreature(NPC_THORIM_HAMMER_TARGET, 157 + rand() % 200, -140 + rand() % 200, 409.8f, 0, TEMPSUMMON_TIMED_DESPAWN, 24000);
655 }
656}
@ TEMPSUMMON_MANUAL_DESPAWN
Definition Object.h:56
@ TOWER_OF_FLAMES
Definition boss_flame_leviathan.cpp:179
@ TOWER_OF_STORMS
Definition boss_flame_leviathan.cpp:178
@ TOWER_OF_FROST
Definition boss_flame_leviathan.cpp:180
@ TOWER_OF_LIFE
Definition boss_flame_leviathan.cpp:181
@ NPC_MIMIRONS_INFERNO_TARGET
Definition boss_flame_leviathan.cpp:111
@ NPC_THORIM_HAMMER_TARGET
Definition boss_flame_leviathan.cpp:107
@ NPC_FREYA_WARD
Definition boss_flame_leviathan.cpp:110
@ NPC_FREYA_WARD_TARGET
Definition boss_flame_leviathan.cpp:109
@ NPC_HODIRS_FURY_TARGET
Definition boss_flame_leviathan.cpp:113

References ScriptedAI::me, NPC_FREYA_WARD, NPC_FREYA_WARD_TARGET, NPC_HODIRS_FURY_TARGET, NPC_MIMIRONS_INFERNO_TARGET, NPC_THORIM_HAMMER_TARGET, WorldObject::SummonCreature(), 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::TurnGates ( bool  _start,
bool  _death 
)
499{
500 if (!instance)
501 return;
502
503 if (_start)
504 {
505 // first one is ALWAYS turned on, unless leviathan is beaten
506 GameObject* go = nullptr;
509
513 }
514 else
515 {
516 GameObject* go = nullptr;
517 if (_death)
520
523
525 {
528 else
530 }
531 }
532}
@ GO_STATE_READY
Definition GameObjectData.h:709
@ GO_STATE_ACTIVE
Definition GameObjectData.h:708
@ GO_STATE_ACTIVE_ALTERNATIVE
Definition GameObjectData.h:710
Definition GameObject.h:120
void SetGoState(GOState state)
Definition GameObject.cpp:2503
GameObject * GetGameObject(uint32 type)
Definition InstanceScript.cpp:125
@ DATA_LIGHTNING_WALL2
Definition ulduar.h:63
@ DATA_LEVIATHAN_DOORS
Definition ulduar.h:67
@ DATA_LIGHTNING_WALL1
Definition ulduar.h:62

References BOSS_LEVIATHAN, DATA_LEVIATHAN_DOORS, DATA_LIGHTNING_WALL1, DATA_LIGHTNING_WALL2, DONE, InstanceScript::GetBossState(), InstanceScript::GetGameObject(), GO_STATE_ACTIVE, GO_STATE_ACTIVE_ALTERNATIVE, GO_STATE_READY, BossAI::instance, NOT_STARTED, GameObject::SetGoState(), and SPECIAL.

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

◆ TurnHealStations()

void boss_flame_leviathan::TurnHealStations ( bool  _apply)
535{
536 if (!instance)
537 return;
538
539 GameObject* go = nullptr;
540 if (_apply)
541 {
546 }
547 else
548 {
553 }
554}
@ GO_ACTIVATED
Definition GameObject.h:112
@ GO_READY
Definition GameObject.h:111
void SetLootState(LootState s, Unit *unit=nullptr)
Definition GameObject.cpp:2468
@ DATA_REPAIR_STATION1
Definition ulduar.h:64
@ DATA_REPAIR_STATION2
Definition ulduar.h:65

References DATA_REPAIR_STATION1, DATA_REPAIR_STATION2, InstanceScript::GetGameObject(), GO_ACTIVATED, GO_READY, BossAI::instance, and GameObject::SetLootState().

Referenced by JustEngagedWith(), and Reset().

◆ UpdateAI()

void boss_flame_leviathan::UpdateAI ( uint32  )
inlineoverridevirtual

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

Implements UnitAI.

321 {
322 // THIS IS USED ONLY FOR FIRST ENGAGE!
323 if (_startTimer)
324 {
325 _startTimer += diff;
326 if (_startTimer >= 4000)
327 {
328 // Colossus dead, players in range
330 _startTimer = 1;
331 else
332 {
333 _startTimer = 0;
334 _speakTimer = 1;
335 }
336 }
337 return;
338 }
339
340 if (_speakTimer)
341 {
342 _speakTimer += diff;
343 if (_speakTimer <= 10000)
344 {
345 _speakTimer = 10000;
347 }
348 else if (_speakTimer > 16000 && _speakTimer < 20000)
349 {
350 _speakTimer = 20000;
352 }
353 else if (_speakTimer > 24000 && _speakTimer < 40000)
354 {
355 _speakTimer = 40000;
357 }
358 else if (_speakTimer > 41000 && _speakTimer < 60000)
359 {
361 TurnGates(true, false);
363 _speakTimer = 60000;
364 }
365 else if (_speakTimer > 63500)
366 {
368 if (!me->GetVictim())
369 {
370 me->CastSpell(me, SPELL_PURSUED, false);
371 events.RescheduleEvent(EVENT_PURSUE, 31s);
372 }
373 _speakTimer = 0;
374 }
375 return;
376 }
377
378 if (!UpdateVictim())
379 return;
380
381 events.Update(diff);
383 return;
384
385 switch (events.ExecuteEvent())
386 {
387 case EVENT_PURSUE:
389 me->CastSpell(me, SPELL_PURSUED, false);
390 events.RescheduleEvent(EVENT_PURSUE, 31s);
391 return;
392 case EVENT_SPEED:
394 events.Repeat(15s);
395 return;
396 case EVENT_MISSILE:
398 events.Repeat(4s);
399 return;
400 case EVENT_VENT:
402 events.Repeat(20s);
403 return;
405 if (_towersCount)
407 else
409 return;
412 events.Repeat(1min, 2min);
415 return;
416 case EVENT_FREYA:
420 return;
425 return;
430 return;
432 for (int8 i = 0; i < 4; ++i)
433 if (Unit* seat = vehicle->GetPassenger(i))
434 if (Vehicle* seatVehicle = seat->GetVehicleKit())
435 if (Unit* player = seatVehicle->GetPassenger(SEAT_PLAYER))
436 player->ExitVehicle();
437 return;
438 }
439
441 {
442 if (me->IsWithinCombatRange(me->GetVictim(), 15.0f))
443 {
446 }
447 }
448 }
std::int8_t int8
Definition Define.h:105
@ FORCED_MOVEMENT_NONE
Definition MotionMaster.h:86
@ UNIT_STATE_CASTING
Definition UnitDefines.h:188
@ UNIT_STATE_STUNNED
Definition UnitDefines.h:176
@ SPELL_FLAME_VENTS
Definition boss_flame_leviathan.cpp:49
@ SPELL_BATTERING_RAM
Definition boss_flame_leviathan.cpp:48
@ SPELL_MISSILE_BARRAGE
Definition boss_flame_leviathan.cpp:50
@ SEAT_PLAYER
Definition boss_flame_leviathan.cpp:166
@ NPC_ULDUAR_COLOSSUS
Definition boss_flame_leviathan.cpp:101
@ FLAME_LEVIATHAN_EMOTE_NATURE
Definition boss_flame_leviathan.cpp:150
@ FLAME_LEVIATHAN_EMOTE_STORM
Definition boss_flame_leviathan.cpp:151
@ BRANN_RADIO_SAY_FL_START_0
Definition boss_flame_leviathan.cpp:156
@ BRANN_RADIO_SAY_FL_START_1
Definition boss_flame_leviathan.cpp:157
@ FLAME_LEVIATHAN_SAY_HARDMODE
Definition boss_flame_leviathan.cpp:137
@ FLAME_LEVIATHAN_EMOTE_FROST
Definition boss_flame_leviathan.cpp:148
@ BRANN_RADIO_SAY_FL_START_2
Definition boss_flame_leviathan.cpp:158
@ FLAME_LEVIATHAN_SAY_PURSUE
Definition boss_flame_leviathan.cpp:136
@ FLAME_LEVIATHAN_SAY_TOWER_STORM
Definition boss_flame_leviathan.cpp:142
@ FLAME_LEVIATHAN_SAY_TOWER_FROST
Definition boss_flame_leviathan.cpp:139
@ FLAME_LEVIATHAN_SAY_TOWER_NONE
Definition boss_flame_leviathan.cpp:138
@ FLAME_LEVIATHAN_EMOTE_FLAME
Definition boss_flame_leviathan.cpp:149
@ FLAME_LEVIATHAN_SAY_TOWER_FLAME
Definition boss_flame_leviathan.cpp:140
@ FLAME_LEVIATHAN_SAY_TOWER_NATURE
Definition boss_flame_leviathan.cpp:141
bool UpdateVictim()
Definition CreatureAI.cpp:350
void MovePoint(uint32 id, Position const &pos, ForcedMovement forcedMovement=FORCED_MOVEMENT_NONE, float speed=0.f, bool generatePath=true, bool forceDestination=true, std::optional< AnimTier > animTier=std::nullopt)
Definition MotionMaster.h:240
bool IsWithinCombatRange(Unit const *obj, float dist2compare) const
Definition Unit.cpp:766
MotionMaster * GetMotionMaster()
Definition Unit.h:1758
bool HasUnitState(const uint32 f) const
Definition Unit.h:737
bool isAttackReady(WeaponAttackType type=BASE_ATTACK) const
Definition Unit.h:889
void resetAttackTimer(WeaponAttackType type=BASE_ATTACK)
Definition Unit.cpp:761
Definition Vehicle.h:28
Creature * FindNearestCreature(uint32 entry, float range, bool alive=true) const
Definition Object.cpp:2553
Player * SelectTargetFromPlayerList(float maxdist, uint32 excludeAura=0, bool mustBeInLOS=false) const
Definition ScriptedCreature.cpp:591
void RadioSay(uint8 textid)
Definition boss_flame_leviathan.cpp:456
void SummonTowerHelpers(uint8 towerId)
Definition boss_flame_leviathan.cpp:628

References _speakTimer, _startTimer, _towersCount, BRANN_RADIO_SAY_FL_START_0, BRANN_RADIO_SAY_FL_START_1, BRANN_RADIO_SAY_FL_START_2, Unit::CastSpell(), EVENT_EJECT_PLAYERS, EVENT_FREYA, EVENT_HODIRS_FURY, EVENT_MIMIRONS_INFERNO, EVENT_MISSILE, EVENT_PURSUE, EVENT_SOUND_BEGINNING, EVENT_SPEED, EVENT_THORIMS_HAMMER, EVENT_VENT, WorldObject::FindNearestCreature(), FLAME_LEVIATHAN_EMOTE_FLAME, FLAME_LEVIATHAN_EMOTE_FROST, FLAME_LEVIATHAN_EMOTE_NATURE, 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_ULDUAR_COLOSSUS, RadioSay(), Unit::RemoveUnitFlag(), Unit::resetAttackTimer(), SEAT_PLAYER, ScriptedAI::SelectTargetFromPlayerList(), Creature::SetInCombatWithZone(), SPELL_BATTERING_RAM, SPELL_FLAME_VENTS, SPELL_GATHERING_SPEED, SPELL_MISSILE_BARRAGE, SPELL_PURSUED, 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

◆ _overloadCircuitCount

uint8 boss_flame_leviathan::_overloadCircuitCount

Referenced by Reset(), and SpellHit().

◆ _shutdown

bool boss_flame_leviathan::_shutdown

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

◆ _speakTimer

uint32 boss_flame_leviathan::_speakTimer

Referenced by Reset(), and UpdateAI().

◆ _startTimer

uint32 boss_flame_leviathan::_startTimer

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

◆ _towersCount

uint8 boss_flame_leviathan::_towersCount

◆ vehicle

Vehicle* boss_flame_leviathan::vehicle

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