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()
 
void DoAction (int32 action) override
 
- 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 (const Position *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 >
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
 
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
 
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 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)
 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
 
uint32 _destroyedTurretCount
 
- 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
191 {
192 assert(vehicle);
193 }
Definition ScriptedCreature.h:485
Vehicle * GetVehicleKit() const
Definition Unit.h:1925
Creature * me
Definition ScriptedCreature.h:281
Vehicle * vehicle
Definition boss_flame_leviathan.cpp:195
@ BOSS_LEVIATHAN
Definition ulduar.h:31

References vehicle.

Member Function Documentation

◆ ActivateTowers()

void boss_flame_leviathan::ActivateTowers ( )
483{
484 _towersCount = 0;
485 me->ResetLootMode();
487 {
488 if (instance->GetData(i))
489 {
490 ++_towersCount;
491
493 switch (i)
494 {
497 events.RescheduleEvent(EVENT_FREYA, 30s);
498 break;
501 events.RescheduleEvent(EVENT_THORIMS_HAMMER, 1min);
502 break;
505 events.RescheduleEvent(EVENT_HODIRS_FURY, 20s);
506 break;
509 events.RescheduleEvent(EVENT_MIMIRONS_INFERNO, 42s);
510 break;
511 }
512 }
513 }
514}
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:121
@ EVENT_HODIRS_FURY
Definition boss_flame_leviathan.cpp:119
@ EVENT_FREYA
Definition boss_flame_leviathan.cpp:120
@ EVENT_THORIMS_HAMMER
Definition boss_flame_leviathan.cpp:122
events
Definition boss_sartura.cpp:43
InstanceScript *const instance
Definition ScriptedCreature.h:492
void ResetLootMode()
Definition Creature.h:248
void AddLootMode(uint16 lootMode)
Definition Creature.h:246
Aura * AddAura(uint32 spellId, Unit *target)
Definition Unit.cpp:15088
virtual uint32 GetData(uint32) const
Definition ZoneScript.h:51
uint8 _towersCount
Definition boss_flame_leviathan.cpp:199
@ EVENT_TOWER_OF_STORM_DESTROYED
Definition ulduar.h:327
@ EVENT_TOWER_OF_LIFE_DESTROYED
Definition ulduar.h:330
@ EVENT_TOWER_OF_FLAMES_DESTROYED
Definition ulduar.h:329
@ EVENT_TOWER_OF_FROST_DESTROYED
Definition ulduar.h:328

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.

235 {
236 if (Unit* veh = who->GetVehicleBase())
238 else
240 }
virtual void AttackStart(Unit *)
Definition UnitAI.cpp:28
Definition Unit.h:664
Unit * GetVehicleBase() const
Definition Unit.cpp:14967

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

◆ BindPlayers()

void boss_flame_leviathan::BindPlayers ( )
470{
472}
void PermBindAllPlayers()
Definition Map.cpp:2174
InstanceMap * ToInstanceMap()
Definition Map.h:378
Map * GetMap() const
Definition Object.h:625

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

Referenced by JustDied(), and JustEngagedWith().

◆ DoAction()

void boss_flame_leviathan::DoAction ( int32  action)
inlineoverridevirtual

Reimplemented from UnitAI.

455 {
456 if (action == ACTION_DESTROYED_TURRET)
457 {
459
460 if (_destroyedTurretCount == RAID_MODE<uint32>(2, 4))
461 {
464 }
465 }
466 }
@ SPELL_SYSTEMS_SHUTDOWN
Definition boss_flame_leviathan.cpp:57
@ ACTION_DESTROYED_TURRET
Definition boss_flame_leviathan.cpp:183
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:1350
uint32 _destroyedTurretCount
Definition boss_flame_leviathan.cpp:201

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

◆ GetData()

uint32 boss_flame_leviathan::GetData ( uint32  param) const
inlineoverridevirtual

Reimplemented from UnitAI.

307 {
308 if (param == DATA_GET_TOWER_COUNT)
309 return _towersCount;
310 if (param == DATA_GET_SHUTDOWN)
311 return !_shutdown;
312
313 return 0;
314 }
@ DATA_GET_SHUTDOWN
Definition boss_flame_leviathan.cpp:171
@ DATA_GET_TOWER_COUNT
Definition boss_flame_leviathan.cpp:170
bool _shutdown
Definition boss_flame_leviathan.cpp:200

References _shutdown, _towersCount, DATA_GET_SHUTDOWN, and DATA_GET_TOWER_COUNT.

◆ InitializeAI()

void boss_flame_leviathan::InitializeAI ( )
inlineoverridevirtual

Reimplemented from UnitAI.

263 {
265 {
269 }
270
272 }
@ SPECIAL
Definition InstanceScript.h:62
const Position homePos
Definition boss_flame_leviathan.cpp:186
void SetHomePosition(float x, float y, float z, float o)
Definition Creature.h:345
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:15967
void StopMovingOnCurrentPos()
Definition Unit.cpp:13036

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.

603{
604 // Despawn Lashers, do before summons clear
607
610
612
613 TurnGates(false, true);
614 BindPlayers();
615}
@ DONE
Definition InstanceScript.h:61
@ ACTION_DESPAWN_ADDS
Definition boss_flame_leviathan.cpp:181
@ FLAME_LEVIATHAN_SAY_DEATH
Definition boss_flame_leviathan.cpp:131
SummonList summons
Definition ScriptedCreature.h:539
virtual bool SetBossState(uint32 id, EncounterState state)
Definition InstanceScript.cpp:390
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:469
void TurnGates(bool _start, bool _death)
Definition boss_flame_leviathan.cpp:516
@ VEHICLE_POS_NONE
Definition ulduar.h:325
@ 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.

243 {
246
247 me->setActive(true);
249 TurnHealStations(false);
252
253 BindPlayers();
255
256 if (!_startTimer)
257 {
258 TurnGates(true, false);
259 }
260 }
@ FLAME_LEVIATHAN_SAY_AGGRO
Definition boss_flame_leviathan.cpp:129
void SetInCombatWithZone()
Set in combat all units in the dungeon/raid. Affect only units with IsAIEnabled.
Definition Creature.cpp:2789
void setActive(bool isActiveObject)
Definition Object.cpp:1082
uint32 _startTimer
Definition boss_flame_leviathan.cpp:197
void TurnHealStations(bool _apply)
Definition boss_flame_leviathan.cpp:552
void ActivateTowers()
Definition boss_flame_leviathan.cpp:482
void ScheduleEvents()
Definition boss_flame_leviathan.cpp:574

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.

214 {
216 // For achievement
218 me->setActive(false);
219 }
void _JustReachedHome()
Definition ScriptedCreature.h:534
void StorePersistentData(uint32 index, uint32 data)
Definition InstanceScript.cpp:427
@ PERSISTENT_DATA_UNBROKEN
Definition ulduar.h:313

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

◆ JustSummoned()

void boss_flame_leviathan::JustSummoned ( Creature cr)
inlineoverridevirtual

Reimplemented from CreatureAI.

223 {
224 if (cr->GetEntry() != NPC_FLAME_LEVIATHAN_TURRET && cr->GetEntry() != NPC_SEAT)
225 summons.Summon(cr);
226 }
@ NPC_FLAME_LEVIATHAN_TURRET
Definition boss_flame_leviathan.cpp:91
@ NPC_SEAT
Definition boss_flame_leviathan.cpp:92
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.

618{
619 if (who == me->GetVictim())
620 events.RescheduleEvent(EVENT_PURSUE, 0ms);
621
622 if (who->IsPlayer())
624}
@ FLAME_LEVIATHAN_SAY_SLAY
Definition boss_flame_leviathan.cpp:130
@ EVENT_PURSUE
Definition boss_flame_leviathan.cpp:114
bool IsPlayer() const
Definition Object.h:201
Unit * GetVictim() const
Definition Unit.h:903

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.

221{}

◆ RadioSay()

void boss_flame_leviathan::RadioSay ( uint8  textid)
475{
477 {
478 r->AI()->Talk(textid);
479 }
480}
@ TEMPSUMMON_TIMED_DESPAWN
Definition Object.h:51
@ NPC_BRANN_RADIO
Definition boss_flame_leviathan.cpp:97
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:2394
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.

275 {
276 // Special immunity case
279
282 events.Reset();
283
284 _shutdown = false;
285 _startTimer = 1;
286 _speakTimer = 0;
287 _towersCount = 0;
289
291 {
294 }
295 else
296 {
299 _startTimer = 0;
300 }
301
302 TurnGates(false, false);
303 TurnHealStations(true);
304 }
@ NOT_STARTED
Definition InstanceScript.h:58
@ IMMUNITY_STATE
Definition SharedDefines.h:1401
@ 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:10437
void SetUnitFlag(UnitFlags flags)
UnitFlags available in UnitDefines.h.
Definition Unit.h:748
void RemoveUnitFlag(UnitFlags flags)
UnitFlags available in UnitDefines.h.
Definition Unit.h:749
uint32 _speakTimer
Definition boss_flame_leviathan.cpp:198
@ VEHICLE_POS_LEVIATHAN
Definition ulduar.h:324

References _destroyedTurretCount, _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 ( )
575{
576 events.RescheduleEvent(EVENT_MISSILE, 5s);
577 events.RescheduleEvent(EVENT_VENT, 20s);
578 events.RescheduleEvent(EVENT_SPEED, 15s);
579 events.RescheduleEvent(EVENT_SOUND_BEGINNING, 10s);
580 events.RescheduleEvent(EVENT_POSITION_CHECK, 5s);
581
582 events.RescheduleEvent(EVENT_PURSUE, 0ms);
583}
@ EVENT_VENT
Definition boss_flame_leviathan.cpp:116
@ EVENT_SPEED
Definition boss_flame_leviathan.cpp:117
@ EVENT_POSITION_CHECK
Definition boss_flame_leviathan.cpp:124
@ EVENT_MISSILE
Definition boss_flame_leviathan.cpp:115
@ EVENT_SOUND_BEGINNING
Definition boss_flame_leviathan.cpp:123

References EVENT_MISSILE, EVENT_POSITION_CHECK, 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.

586{
587 if (spellInfo->Id == SPELL_SYSTEMS_SHUTDOWN)
588 {
589 _shutdown = true; // ACHIEVEMENT
590
594
595 events.DelayEvents(21ms);
596 events.ScheduleEvent(EVENT_REINSTALL, 20ms);
597 }
598 else if (spellInfo->Id == 62522 /*SPELL_ELECTROSHOCK*/)
600}
@ FLAME_LEVIATHAN_EMOTE_REPAIR
Definition boss_flame_leviathan.cpp:143
@ FLAME_LEVIATHAN_SAY_OVERLOAD
Definition boss_flame_leviathan.cpp:140
@ FLAME_LEVIATHAN_EMOTE_OVERLOAD
Definition boss_flame_leviathan.cpp:142
@ EVENT_REINSTALL
Definition boss_flame_leviathan.cpp:118
void InterruptNonMeleeSpells(bool withDelayed, uint32 spellid=0, bool withInstant=true, bool bySelf=false)
Definition Unit.cpp:4302

References _shutdown, EVENT_REINSTALL, FLAME_LEVIATHAN_EMOTE_OVERLOAD, FLAME_LEVIATHAN_EMOTE_REPAIR, FLAME_LEVIATHAN_SAY_OVERLOAD, SpellInfo::Id, Unit::InterruptNonMeleeSpells(), ScriptedAI::me, and SPELL_SYSTEMS_SHUTDOWN.

◆ SpellHitTarget()

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

Reimplemented from CreatureAI.

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

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.

228{ 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)
627{
628 if (towerId == TOWER_OF_LIFE)
629 {
633 me->SummonCreature(NPC_FREYA_WARD, 382.9f, 74, 411.6f + 40, 0, TEMPSUMMON_MANUAL_DESPAWN);
635 me->SummonCreature(NPC_FREYA_WARD, 159.4f, 64.1f, 409.8f + 40, 0, TEMPSUMMON_MANUAL_DESPAWN);
637 me->SummonCreature(NPC_FREYA_WARD, 157.7f, -140.26f, 409.8f + 40, 0, TEMPSUMMON_MANUAL_DESPAWN);
638 }
639 else if (towerId == TOWER_OF_FROST)
640 {
643 }
644 else if (towerId == TOWER_OF_FLAMES)
645 {
647 //me->SummonCreature(NPC_MIMIRONS_INFERNO, 364.4f, -9.7f, 409.8f+40, 0, TEMPSUMMON_MANUAL_DESPAWN);
648 }
649 else if (towerId == TOWER_OF_STORMS)
650 {
651 for (uint8 i = 0; i < 8; ++i)
652 me->SummonCreature(NPC_THORIM_HAMMER_TARGET, 157 + rand() % 200, -140 + rand() % 200, 409.8f, 0, TEMPSUMMON_TIMED_DESPAWN, 24000);
653 }
654}
std::uint8_t uint8
Definition Define.h:109
@ TEMPSUMMON_MANUAL_DESPAWN
Definition Object.h:56
@ TOWER_OF_FLAMES
Definition boss_flame_leviathan.cpp:174
@ TOWER_OF_STORMS
Definition boss_flame_leviathan.cpp:173
@ TOWER_OF_FROST
Definition boss_flame_leviathan.cpp:175
@ TOWER_OF_LIFE
Definition boss_flame_leviathan.cpp:176
@ NPC_MIMIRONS_INFERNO_TARGET
Definition boss_flame_leviathan.cpp:106
@ NPC_THORIM_HAMMER_TARGET
Definition boss_flame_leviathan.cpp:102
@ NPC_FREYA_WARD
Definition boss_flame_leviathan.cpp:105
@ NPC_FREYA_WARD_TARGET
Definition boss_flame_leviathan.cpp:104
@ NPC_HODIRS_FURY_TARGET
Definition boss_flame_leviathan.cpp:108

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 
)
517{
518 if (!instance)
519 return;
520
521 if (_start)
522 {
523 // first one is ALWAYS turned on, unless leviathan is beaten
524 GameObject* go = nullptr;
527
531 }
532 else
533 {
534 GameObject* go = nullptr;
535 if (_death)
538
541
543 {
546 else
548 }
549 }
550}
@ 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:2492
GameObject * GetGameObject(uint32 type)
Definition InstanceScript.cpp:120
@ 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)
553{
554 if (!instance)
555 return;
556
557 GameObject* go = nullptr;
558 if (_apply)
559 {
564 }
565 else
566 {
571 }
572}
@ GO_ACTIVATED
Definition GameObject.h:112
@ GO_READY
Definition GameObject.h:111
void SetLootState(LootState s, Unit *unit=nullptr)
Definition GameObject.cpp:2457
@ 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.

317 {
318 // THIS IS USED ONLY FOR FIRST ENGAGE!
319 if (_startTimer)
320 {
321 _startTimer += diff;
322 if (_startTimer >= 4000)
323 {
324 // Colossus dead, players in range
326 _startTimer = 1;
327 else
328 {
329 _startTimer = 0;
330 _speakTimer = 1;
331 }
332 }
333 return;
334 }
335
336 if (_speakTimer)
337 {
338 _speakTimer += diff;
339 if (_speakTimer <= 10000)
340 {
341 _speakTimer = 10000;
343 }
344 else if (_speakTimer > 16000 && _speakTimer < 20000)
345 {
346 _speakTimer = 20000;
348 }
349 else if (_speakTimer > 24000 && _speakTimer < 40000)
350 {
351 _speakTimer = 40000;
353 }
354 else if (_speakTimer > 41000 && _speakTimer < 60000)
355 {
357 TurnGates(true, false);
359 _speakTimer = 60000;
360 }
361 else if (_speakTimer > 63500)
362 {
364 if (!me->GetVictim())
365 {
366 me->CastSpell(me, SPELL_PURSUED, false);
367 events.RescheduleEvent(EVENT_PURSUE, 31s);
368 }
369 _speakTimer = 0;
370 }
371 return;
372 }
373
374 if (!UpdateVictim())
375 return;
376
377 events.Update(diff);
379 return;
380
381 switch (events.ExecuteEvent())
382 {
384 if (me->GetPositionX() > 450 || me->GetPositionX() < 120)
385 {
387 return;
388 }
389 events.Repeat(5s);
390 break;
391 case EVENT_PURSUE:
393 me->CastSpell(me, SPELL_PURSUED, false);
394 events.RescheduleEvent(EVENT_PURSUE, 31s);
395 return;
396 case EVENT_SPEED:
398 events.Repeat(15s);
399 return;
400 case EVENT_MISSILE:
402 events.Repeat(4s);
403 return;
404 case EVENT_VENT:
406 events.Repeat(20s);
407 return;
409 if (_towersCount)
411 else
413 return;
414 case EVENT_REINSTALL:
415 for (uint8 i = RAID_MODE(0, 2); i < 4; ++i)
416 if (Unit* seat = vehicle->GetPassenger(i))
417 if (seat->IsCreature())
418 seat->ToCreature()->AI()->EnterEvadeMode();
420 return;
423 events.Repeat(1min, 2min);
426 return;
427 case EVENT_FREYA:
431 return;
436 return;
441 return;
442 }
443
445 {
446 if (me->IsWithinCombatRange(me->GetVictim(), 15.0f))
447 {
450 }
451 }
452 }
@ 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_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:96
@ FLAME_LEVIATHAN_EMOTE_NATURE
Definition boss_flame_leviathan.cpp:146
@ FLAME_LEVIATHAN_EMOTE_STORM
Definition boss_flame_leviathan.cpp:147
@ FLAME_LEVIATHAN_EMOTE_REACTIVATE
Definition boss_flame_leviathan.cpp:148
@ BRANN_RADIO_SAY_FL_START_0
Definition boss_flame_leviathan.cpp:151
@ BRANN_RADIO_SAY_FL_START_1
Definition boss_flame_leviathan.cpp:152
@ FLAME_LEVIATHAN_SAY_HARDMODE
Definition boss_flame_leviathan.cpp:133
@ FLAME_LEVIATHAN_EMOTE_FROST
Definition boss_flame_leviathan.cpp:144
@ BRANN_RADIO_SAY_FL_START_2
Definition boss_flame_leviathan.cpp:153
@ FLAME_LEVIATHAN_SAY_PURSUE
Definition boss_flame_leviathan.cpp:132
@ FLAME_LEVIATHAN_SAY_TOWER_STORM
Definition boss_flame_leviathan.cpp:138
@ FLAME_LEVIATHAN_SAY_TOWER_FROST
Definition boss_flame_leviathan.cpp:135
@ FLAME_LEVIATHAN_SAY_TOWER_NONE
Definition boss_flame_leviathan.cpp:134
@ FLAME_LEVIATHAN_EMOTE_FLAME
Definition boss_flame_leviathan.cpp:145
@ FLAME_LEVIATHAN_SAY_TOWER_FLAME
Definition boss_flame_leviathan.cpp:136
@ FLAME_LEVIATHAN_SAY_TOWER_NATURE
Definition boss_flame_leviathan.cpp:137
void EnterEvadeMode(EvadeReason why=EVADE_REASON_OTHER) override
Definition ScriptedCreature.h:526
bool UpdateVictim()
Definition CreatureAI.cpp:353
void MovePoint(uint32 id, const Position &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:736
bool isAttackReady(WeaponAttackType type=BASE_ATTACK) const
Definition Unit.h:888
void resetAttackTimer(WeaponAttackType type=BASE_ATTACK)
Definition Unit.cpp:761
Unit * GetPassenger(int8 seatId) const
Definition Vehicle.cpp:229
Creature * FindNearestCreature(uint32 entry, float range, bool alive=true) const
Definition Object.cpp:2499
const T & RAID_MODE(const T &normal10, const T &normal25) const
Definition ScriptedCreature.h:408
Player * SelectTargetFromPlayerList(float maxdist, uint32 excludeAura=0, bool mustBeInLOS=false) const
Definition ScriptedCreature.cpp:591
void RadioSay(uint8 textid)
Definition boss_flame_leviathan.cpp:474
void SummonTowerHelpers(uint8 towerId)
Definition boss_flame_leviathan.cpp:626

References _speakTimer, _startTimer, _towersCount, BRANN_RADIO_SAY_FL_START_0, BRANN_RADIO_SAY_FL_START_1, BRANN_RADIO_SAY_FL_START_2, Unit::CastSpell(), BossAI::EnterEvadeMode(), EVENT_FREYA, EVENT_HODIRS_FURY, EVENT_MIMIRONS_INFERNO, EVENT_MISSILE, EVENT_POSITION_CHECK, EVENT_PURSUE, EVENT_REINSTALL, 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_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_ULDUAR_COLOSSUS, RadioSay(), ScriptedAI::RAID_MODE(), Unit::RemoveUnitFlag(), Unit::resetAttackTimer(), 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

◆ _destroyedTurretCount

uint32 boss_flame_leviathan::_destroyedTurretCount

Referenced by DoAction(), and Reset().

◆ _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

Referenced by boss_flame_leviathan(), and UpdateAI().


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