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. More...
 
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() More...
 
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) More...
 
void UpdateAI (uint32 diff) override
 Use to start attacking a target. Called just before JustEngagedWith() More...
 
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. More...
 
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=0s, uint32 uniqueId=0)
 
void ScheduleTimedEvent (Milliseconds timerMax, std::function< void()> exec, Milliseconds repeatMin, Milliseconds repeatMax=0s, 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=0s)
 Causes the creature to talk/say the text assigned to their entry in the creature_text database table. More...
 
void Talk (uint8 id, Milliseconds delay)
 
WorldObjectGetSummoner () const
 Returns the summoner creature/object, if the creature is a temporary summon. More...
 
 CreatureAI (Creature *creature)
 
 ~CreatureAI () override
 
void MoveCircleChecks ()
 
void MoveBackwardsChecks ()
 
void MoveInLineOfSight_Safe (Unit *who)
 == Reactions At ================================= More...
 
void TriggerAlert (Unit const *who) const
 
virtual bool CanRespawn ()
 
virtual void EnterEvadeMode (EvadeReason why=EVADE_REASON_OTHER)
 
virtual void JustEngagedWith (Unit *)
 Called for reaction when initially engaged. More...
 
virtual void JustDied (Unit *)
 
virtual void KilledUnit (Unit *)
 
virtual void JustSummoned (Creature *)
 
virtual void IsSummonedBy (WorldObject *)
 
virtual void SummonedCreatureDespawn (Creature *)
 
virtual void SummonedCreatureDies (Creature *, Unit *)
 
virtual void SummonedCreatureDespawnAll ()
 
virtual void SummonedCreatureEvade (Creature *)
 
virtual void SpellHit (Unit *, SpellInfo const *)
 
virtual void SpellHitTarget (Unit *, SpellInfo const *)
 
virtual void AttackedBy (Unit *)
 
virtual bool IsEscorted ()
 
virtual void JustRespawned ()
 
virtual void MovementInform (uint32, uint32)
 
virtual void PathEndReached (uint32)
 
void OnCharmed (bool apply) override
 Called when unit is charmed. More...
 
virtual void JustReachedHome ()
 
void DoZoneInCombat (Creature *creature=nullptr, float maxRangeToNearestTarget=250.0f)
 
virtual void ReceiveEmote (Player *, uint32)
 
virtual void OwnerAttackedBy (Unit *)
 
virtual void OwnerAttacked (Unit *)
 
virtual void CorpseRemoved (uint32 &)
 == Triggered Actions Requested ================== More...
 
virtual void PassengerBoarded (Unit *, int8, bool)
 == Fields ======================================= More...
 
virtual bool BeforeSpellClick (Unit *)
 
virtual void OnSpellClick (Unit *, bool &)
 
virtual bool CanSeeAlways (WorldObject const *)
 
virtual bool CanBeSeen (Player const *)
 
virtual bool CanAlwaysBeDetectable (WorldObject const *)
 
virtual void PetStopAttack ()
 
virtual bool CheckInRoom ()
 
CreatureBoundary const * GetBoundary () const
 
void SetBoundary (CreatureBoundary const *boundary, bool negativeBoundaries=false)
 
bool IsInBoundary (Position const *who=nullptr) const
 
virtual void CalculateThreat (Unit *, float &, SpellInfo const *)
 
virtual bool OnTeleportUnreacheablePlayer (Player *)
 
virtual void OnAuraRemove (AuraApplication *, AuraRemoveMode)
 
- Public Member Functions inherited from UnitAI
 UnitAI (Unit *unit)
 
virtual ~UnitAI ()
 
virtual bool CanAIAttack (Unit const *) const
 
virtual void AttackStart (Unit *)
 
virtual void UpdateAI (uint32)=0
 Use to start attacking a target. Called just before JustEngagedWith() More...
 
virtual void InitializeAI ()
 
virtual void Reset ()
 
virtual void OnCharmed (bool apply)=0
 Called when unit is charmed. More...
 
virtual void DoAction (int32)
 
virtual uint32 GetData (uint32) const
 
virtual void SetData (uint32, uint32)
 
virtual void SetGUID (ObjectGuid, int32=0)
 
virtual ObjectGuid GetGUID (int32=0) const
 
UnitSelectTarget (SelectTargetMethod targetType, uint32 position=0, float dist=0.0f, bool playerOnly=false, bool withTank=true, int32 aura=0)
 
template<class PREDICATE >
UnitSelectTarget (SelectTargetMethod targetType, uint32 position, PREDICATE const &predicate)
 
void SelectTargetList (std::list< Unit * > &targetList, uint32 num, SelectTargetMethod targetType, uint32 position=0, float dist=0.0f, bool playerOnly=false, bool withTank=true, int32 aura=0)
 Select the best (up to) <num> targets (in <targetType> order) from the threat list that fulfill the following: More...
 
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. More...
 
virtual void JustExitedCombat ()
 Called when the unit leaves combat. More...
 
virtual void DamageDealt (Unit *, uint32 &, DamageEffectType)
 Called at any Damage to any victim (before damage apply) More...
 
virtual void DamageTaken (Unit *, uint32 &, DamageEffectType, SpellSchoolMask)
 Called at any Damage from any attacker (before damage apply) More...
 
virtual void HealReceived (Unit *, uint32 &)
 Called when the creature receives heal. More...
 
virtual void OnPowerUpdate (Powers, int32, int32, uint32)
 Called when the creature power updates. More...
 
virtual void HealDone (Unit *, uint32 &)
 Called when the unit heals. More...
 
virtual void OnCalculateMeleeDamageReceived (uint32 &, Unit *)
 Called during damage calculations. More...
 
virtual void OnCalculateSpellDamageReceived (int32 &, Unit *)
 
virtual void OnCalculatePeriodicTickReceived (uint32 &, Unit *)
 Called during calculation when receiving periodic healing or damage (DoT or HoT) More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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)
 
virtual void MoveInLineOfSight (Unit *)
 
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
207 : ScriptedAI(pCreature), vehicle(me->GetVehicleKit()), summons(me)
208 {
209 m_pInstance = pCreature->GetInstanceScript();
210 assert(vehicle);
211 }
Definition: ScriptedCreature.h:190
Creature * me
Definition: ScriptedCreature.h:280
InstanceScript * GetInstanceScript() const
Definition: Object.cpp:1203
Vehicle * GetVehicleKit() const
Definition: Unit.h:1785
InstanceScript * m_pInstance
Definition: boss_flame_leviathan.cpp:213
SummonList summons
Definition: boss_flame_leviathan.cpp:216
Vehicle * vehicle
Definition: boss_flame_leviathan.cpp:214

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
events
Definition: boss_sartura.cpp:43
@ SPELL_TOWER_OF_LIFE
Definition: boss_flame_leviathan.cpp:63
@ SPELL_TOWER_OF_STORMS
Definition: boss_flame_leviathan.cpp:60
@ SPELL_TOWER_OF_FROST
Definition: boss_flame_leviathan.cpp:62
@ SPELL_TOWER_OF_FLAMES
Definition: boss_flame_leviathan.cpp:61
@ EVENT_MIMIRONS_INFERNO
Definition: boss_flame_leviathan.cpp:122
@ EVENT_HODIRS_FURY
Definition: boss_flame_leviathan.cpp:120
@ EVENT_FREYA
Definition: boss_flame_leviathan.cpp:121
@ EVENT_THORIMS_HAMMER
Definition: boss_flame_leviathan.cpp:123
@ 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
void ResetLootMode()
Definition: Creature.h:245
void AddLootMode(uint16 lootMode)
Definition: Creature.h:243
Aura * AddAura(uint32 spellId, Unit *target)
Definition: Unit.cpp:18863
virtual uint32 GetData(uint32) const
Definition: ZoneScript.h:51
uint8 _towersCount
Definition: boss_flame_leviathan.cpp:220

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 ScriptedAI.

256 {
257 if (Unit* veh = who->GetVehicleBase())
259 else
261 }
void AttackStart(Unit *) override
Definition: ScriptedCreature.cpp:210
Definition: Unit.h:630
Unit * GetVehicleBase() const
Definition: Unit.cpp:18742

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

◆ BindPlayers()

void boss_flame_leviathan::boss_flame_leviathanAI::BindPlayers ( )
504{
506}
Map * GetMap() const
Definition: Object.h:536
InstanceMap * ToInstanceMap()
Definition: Map.h:544
void PermBindAllPlayers()
Definition: Map.cpp:3155

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:56
@ ACTION_DESTROYED_TURRET
Definition: boss_flame_leviathan.cpp:190
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:1167
uint32 _destroyedTurretCount
Definition: boss_flame_leviathan.cpp:222

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.

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

References _shutdown, _towersCount, DATA_GET_SHUTDOWN, and DATA_GET_TOWER_COUNT.

◆ InitializeAI()

void boss_flame_leviathan::boss_flame_leviathanAI::InitializeAI ( )
inlineoverridevirtual

Reimplemented from UnitAI.

285 {
287 {
291 }
292
294 }
const Position homePos
Definition: boss_flame_leviathan.cpp:193
@ TYPE_LEVIATHAN
Definition: ulduar.h:32
@ SPECIAL
Definition: InstanceScript.h:61
virtual void InitializeAI()
Definition: UnitAI.h:204
void SetHomePosition(float x, float y, float z, float o)
Definition: Creature.h:336
virtual bool UpdatePosition(float x, float y, float z, float ang, bool teleport=false)
Definition: Unit.cpp:20025
void StopMovingOnCurrentPos()
Definition: Unit.cpp:16689

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 ScriptedAI.

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

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 ScriptedAI.

264 {
267
268 me->setActive(true);
270 TurnHealStations(false);
272 if (m_pInstance)
274
275 BindPlayers();
277
278 if (!_startTimer)
279 {
280 TurnGates(true, false);
281 }
282 }
@ FLAME_LEVIATHAN_SAY_AGGRO
Definition: boss_flame_leviathan.cpp:130
void SetInCombatWithZone()
Set in combat all units in the dungeon/raid. Affect only units with IsAIEnabled.
Definition: Creature.cpp:2811
void setActive(bool isActiveObject)
Definition: Object.cpp:1094
uint32 _startTimer
Definition: boss_flame_leviathan.cpp:218
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.

235 {
236 // For achievement
237 if (m_pInstance)
239 me->setActive(false);
240 }
@ 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 ScriptedAI.

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

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 ScriptedAI.

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:131
@ EVENT_PURSUE
Definition: boss_flame_leviathan.cpp:114
bool IsPlayer() const
Definition: Object.h:200
Unit * GetVictim() const
Definition: Unit.h:853

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.

242{}

◆ RadioSay()

void boss_flame_leviathan::boss_flame_leviathanAI::RadioSay ( uint8  textid)
509{
511 {
512 r->AI()->Talk(textid);
513 }
514}
@ NPC_BRANN_RADIO
Definition: boss_flame_leviathan.cpp:97
@ TEMPSUMMON_TIMED_DESPAWN
Definition: Object.h:48
Definition: Creature.h:43
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:2366
float GetPositionZ() const
Definition: Position.h:118
float GetOrientation() const
Definition: Position.h:119
float GetPositionX() const
Definition: Position.h:116
float GetPositionY() const
Definition: Position.h:117

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 ScriptedAI.

297 {
298 // Special immunity case
301
304 events.Reset();
305
306 _shutdown = false;
307 _startTimer = 1;
308 _speakTimer = 0;
309 _towersCount = 0;
311
312 if (m_pInstance)
313 {
315 {
318 }
319 else
320 {
323 _startTimer = 0;
324 }
325 }
326
327 TurnGates(false, false);
328 TurnHealStations(true);
329 }
@ SPELL_INVIS_AND_STEALTH_DETECT
Definition: boss_flame_leviathan.cpp:52
@ VEHICLE_POS_LEVIATHAN
Definition: ulduar.h:265
@ IMMUNITY_STATE
Definition: SharedDefines.h:1395
@ NOT_STARTED
Definition: InstanceScript.h:57
@ SPELL_AURA_USE_NORMAL_MOVEMENT_SPEED
Definition: SpellAuraDefines.h:254
@ UNIT_FLAG_NON_ATTACKABLE
Definition: UnitDefines.h:230
void ApplySpellImmune(uint32 spellId, uint32 op, uint32 type, bool apply, SpellImmuneBlockType blockType=SPELL_BLOCK_TYPE_ALL)
Definition: Unit.cpp:13389
void SetUnitFlag(UnitFlags flags)
UnitFlags available in UnitDefines.h.
Definition: Unit.h:713
void RemoveUnitFlag(UnitFlags flags)
UnitFlags available in UnitDefines.h.
Definition: Unit.h:714
uint32 _speakTimer
Definition: boss_flame_leviathan.cpp:219

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:116
@ EVENT_SPEED
Definition: boss_flame_leviathan.cpp:117
@ EVENT_POSITION_CHECK
Definition: boss_flame_leviathan.cpp:125
@ EVENT_MISSILE
Definition: boss_flame_leviathan.cpp:115
@ EVENT_SOUND_BEGINNING
Definition: boss_flame_leviathan.cpp:124
@ EVENT_SUMMON
Definition: boss_flame_leviathan.cpp:118

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 ScriptedAI.

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:144
@ FLAME_LEVIATHAN_SAY_OVERLOAD
Definition: boss_flame_leviathan.cpp:141
@ FLAME_LEVIATHAN_EMOTE_OVERLOAD
Definition: boss_flame_leviathan.cpp:143
@ EVENT_REINSTALL
Definition: boss_flame_leviathan.cpp:119
void InterruptNonMeleeSpells(bool withDelayed, uint32 spellid=0, bool withInstant=true, bool bySelf=false)
Definition: Unit.cpp:4129

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 ScriptedAI.

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:45
@ FLAME_LEVIATHAN_EMOTE_PURSUE
Definition: boss_flame_leviathan.cpp:142
Player * GetPlayer(Map const *, ObjectGuid const guid)
Definition: ObjectAccessor.cpp:220
Definition: Player.h:1081
SeatMap Seats
Definition: Vehicle.h:56

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 ScriptedAI.

249{ 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
@ TOWER_OF_FLAMES
Definition: boss_flame_leviathan.cpp:181
@ TOWER_OF_STORMS
Definition: boss_flame_leviathan.cpp:180
@ TOWER_OF_FROST
Definition: boss_flame_leviathan.cpp:182
@ TOWER_OF_LIFE
Definition: boss_flame_leviathan.cpp:183
@ 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
@ TEMPSUMMON_MANUAL_DESPAWN
Definition: Object.h:53

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}
@ DATA_LIGHTNING_WALL2
Definition: ulduar.h:56
@ DATA_LIGHTNING_WALL1
Definition: ulduar.h:55
@ GO_LEVIATHAN_DOORS
Definition: ulduar.h:195
@ GO_STATE_READY
Definition: GameObjectData.h:690
@ GO_STATE_ACTIVE
Definition: GameObjectData.h:689
@ GO_STATE_ACTIVE_ALTERNATIVE
Definition: GameObjectData.h:691
GameObject * GetGameObject(WorldObject const &u, ObjectGuid const guid)
Definition: ObjectAccessor.cpp:184
Definition: GameObject.h:120
void SetGoState(GOState state)
Definition: GameObject.cpp:2479
ObjectGuid GetGuidData(uint32 type) const override
Definition: InstanceScript.cpp:98

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}
@ DATA_REPAIR_STATION1
Definition: ulduar.h:57
@ DATA_REPAIR_STATION2
Definition: ulduar.h:58
@ GO_ACTIVATED
Definition: GameObject.h:112
@ GO_READY
Definition: GameObject.h:111
void SetLootState(LootState s, Unit *unit=nullptr)
Definition: GameObject.cpp:2444

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

Reimplemented from ScriptedAI.

342 {
343 // THIS IS USED ONLY FOR FIRST ENGAGE!
344 if (_startTimer)
345 {
346 _startTimer += diff;
347 if (_startTimer >= 4000)
348 {
349 // Colossus dead, players in range
351 _startTimer = 1;
352 else
353 {
354 _startTimer = 0;
355 _speakTimer = 1;
356 }
357 }
358 return;
359 }
360
361 if (_speakTimer)
362 {
363 _speakTimer += diff;
364 if (_speakTimer <= 10000)
365 {
366 _speakTimer = 10000;
368 }
369 else if (_speakTimer > 16000 && _speakTimer < 20000)
370 {
371 _speakTimer = 20000;
373 }
374 else if (_speakTimer > 24000 && _speakTimer < 40000)
375 {
376 _speakTimer = 40000;
378 }
379 else if (_speakTimer > 41000 && _speakTimer < 60000)
380 {
382 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 }
@ SPELL_FLAME_VENTS
Definition: boss_flame_leviathan.cpp:48
@ SPELL_BATTERING_RAM
Definition: boss_flame_leviathan.cpp:47
@ SPELL_GATHERING_SPEED
Definition: boss_flame_leviathan.cpp:46
@ SPELL_MISSILE_BARRAGE
Definition: boss_flame_leviathan.cpp:49
@ NPC_ULDUAR_COLOSSUS
Definition: boss_flame_leviathan.cpp:96
@ NPC_MECHANOLIFT
Definition: boss_flame_leviathan.cpp:92
@ FLAME_LEVIATHAN_EMOTE_NATURE
Definition: boss_flame_leviathan.cpp:147
@ FLAME_LEVIATHAN_EMOTE_STORM
Definition: boss_flame_leviathan.cpp:148
@ FLAME_LEVIATHAN_EMOTE_REACTIVATE
Definition: boss_flame_leviathan.cpp:149
@ BRANN_RADIO_SAY_FL_START_0
Definition: boss_flame_leviathan.cpp:152
@ BRANN_RADIO_SAY_FL_START_1
Definition: boss_flame_leviathan.cpp:153
@ FLAME_LEVIATHAN_SAY_HARDMODE
Definition: boss_flame_leviathan.cpp:134
@ FLAME_LEVIATHAN_EMOTE_FROST
Definition: boss_flame_leviathan.cpp:145
@ BRANN_RADIO_SAY_FL_START_2
Definition: boss_flame_leviathan.cpp:154
@ FLAME_LEVIATHAN_SAY_PURSUE
Definition: boss_flame_leviathan.cpp:133
@ FLAME_LEVIATHAN_SAY_TOWER_STORM
Definition: boss_flame_leviathan.cpp:139
@ FLAME_LEVIATHAN_SAY_TOWER_FROST
Definition: boss_flame_leviathan.cpp:136
@ FLAME_LEVIATHAN_SAY_TOWER_NONE
Definition: boss_flame_leviathan.cpp:135
@ FLAME_LEVIATHAN_EMOTE_FLAME
Definition: boss_flame_leviathan.cpp:146
@ FLAME_LEVIATHAN_SAY_TOWER_FLAME
Definition: boss_flame_leviathan.cpp:137
@ FLAME_LEVIATHAN_SAY_TOWER_NATURE
Definition: boss_flame_leviathan.cpp:138
@ UNIT_STATE_CASTING
Definition: UnitDefines.h:164
@ UNIT_STATE_STUNNED
Definition: UnitDefines.h:152
Creature * DoSummonFlyer(uint32 entry, WorldObject *obj, float flightZ, float radius=5.0f, uint32 despawnTime=30000, TempSummonType summonType=TEMPSUMMON_CORPSE_TIMED_DESPAWN)
Definition: CreatureAI.cpp:435
bool UpdateVictim()
Definition: CreatureAI.cpp:280
virtual void EnterEvadeMode(EvadeReason why=EVADE_REASON_OTHER)
Definition: CreatureAI.cpp:208
size_type size() const
Definition: ScriptedCreature.h:78
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:571
Creature * FindNearestCreature(uint32 entry, float range, bool alive=true) const
Definition: Object.cpp:2457
bool IsWithinCombatRange(Unit const *obj, float dist2compare) const
Definition: Unit.cpp:648
void MonsterMoveWithSpeed(float x, float y, float z, float speed)
Definition: Unit.cpp:529
bool HasUnitState(const uint32 f) const
Definition: Unit.h:701
bool isAttackReady(WeaponAttackType type=BASE_ATTACK) const
Definition: Unit.h:838
void resetAttackTimer(WeaponAttackType type=BASE_ATTACK)
Definition: Unit.cpp:642
Unit * GetPassenger(int8 seatId) const
Definition: Vehicle.cpp:227
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, Vehicle::GetPassenger(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), Unit::GetVictim(), Unit::HasUnitState(), homePos, Unit::isAttackReady(), Unit::IsWithinCombatRange(), ScriptedAI::me, Unit::MonsterMoveWithSpeed(), 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, Unit::UpdatePosition(), 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().