TrinityCore
BossAI Class Reference

#include <ScriptedCreature.h>

Public Member Functions

 BossAI (Creature *creature, uint32 bossId)
 
virtual ~BossAI ()
 
void JustSummoned (Creature *summon) override
 
void SummonedCreatureDespawn (Creature *summon) override
 
virtual void UpdateAI (uint32 diff) override
 
virtual void ExecuteEvent (uint32)
 
virtual void ScheduleTasks ()
 
void Reset () override
 
void JustEngagedWith (Unit *who) override
 
void JustDied (Unit *) override
 
void JustReachedHome () override
 
bool CanAIAttack (Unit const *target) const override
 
- Public Member Functions inherited from ScriptedAI
 ScriptedAI (Creature *creature)
 
 ScriptedAI (Creature *creature, uint32 scriptId)
 
virtual ~ScriptedAI ()
 
void AttackStartNoMove (Unit *target)
 
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 AddThreat (Unit *victim, float amount, Unit *who=nullptr)
 
void ModifyThreatByPercent (Unit *victim, int32 pct, Unit *who=nullptr)
 
void ResetThreat (Unit *victim, Unit *who=nullptr)
 
void ResetThreatList (Unit *who=nullptr)
 
float GetThreat (Unit const *victim, Unit const *who=nullptr)
 
void ForceCombatStop (Creature *who, bool reset=true)
 
void ForceCombatStopForCreatureEntry (uint32 entry, float maxSearchRange=250.0f, bool samePhase=true, bool reset=true)
 
void ForceCombatStopForCreatureEntry (std::vector< uint32 > creatureEntries, float maxSearchRange=250.0f, bool samePhase=true, bool reset=true)
 
void DoTeleportTo (float x, float y, float z, uint32 time=0)
 
void DoTeleportTo (float const pos[4])
 
void DoTeleportPlayer (Unit *unit, float x, float y, float z, float o)
 
void DoTeleportAll (float x, float y, float z, float o)
 
UnitDoSelectLowestHpFriendly (float range, uint32 minHPDiff=1)
 
UnitDoSelectBelowHpPctFriendlyWithEntry (uint32 entry, float range, uint8 hpPct=1, bool excludeSelf=true)
 
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, Milliseconds despawntime)
 
bool HealthBelowPct (uint32 pct) const
 
bool HealthAbovePct (uint32 pct) const
 
SpellInfo const * SelectSpell (Unit *target, uint32 school, uint32 mechanic, SelectTargetType targets, 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)
 
void SetCombatMovement (bool allowMovement)
 
bool IsCombatMovementAllowed () 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
 
- Public Member Functions inherited from CreatureAI
 CreatureAI (Creature *creature, uint32 scriptId={})
 
virtual ~CreatureAI ()
 
uint32 GetId () const
 
bool IsEngaged () const
 
void Talk (uint8 id, WorldObject const *whisperTarget=nullptr)
 
void MoveInLineOfSight_Safe (Unit *who)
 == Reactions At ================================= More...
 
void TriggerAlert (Unit const *who) const
 
virtual void EnterEvadeMode (EvadeReason why=EVADE_REASON_OTHER)
 
void JustEnteredCombat (Unit *) override
 
virtual void JustStartedThreateningMe (Unit *who)
 
virtual void KilledUnit (Unit *)
 
virtual void IsSummonedBy (WorldObject *)
 
virtual void SummonedCreatureDies (Creature *, Unit *)
 
virtual void JustSummonedGameobject (GameObject *)
 
virtual void SummonedGameobjectDespawn (GameObject *)
 
virtual void JustRegisteredDynObject (DynamicObject *)
 
virtual void JustUnregisteredDynObject (DynamicObject *)
 
virtual void JustRegisteredAreaTrigger (AreaTrigger *)
 
virtual void JustUnregisteredAreaTrigger (AreaTrigger *)
 
virtual void SpellHit (WorldObject *, SpellInfo const *)
 
virtual void SpellHitTarget (WorldObject *, SpellInfo const *)
 
virtual void OnSpellCast (SpellInfo const *)
 
virtual void OnSpellFailed (SpellInfo const *)
 
virtual void OnSpellStart (SpellInfo const *)
 
virtual void OnChannelFinished (SpellInfo const *)
 
virtual bool IsEscorted () const
 
virtual void JustAppeared ()
 
virtual void MovementInform (uint32, uint32)
 
void OnCharmed (bool isNew) override
 
void DoZoneInCombat (Creature *creature=nullptr)
 
virtual void ReceiveEmote (Player *, uint32)
 
virtual void OwnerAttackedBy (Unit *attacker)
 
virtual void OwnerAttacked (Unit *target)
 
virtual void CorpseRemoved (uint32 &)
 == Triggered Actions Requested ================== More...
 
virtual Optional< QuestGiverStatusGetDialogStatus (Player *player)
 == Gossip system ================================ More...
 
virtual bool OnGossipHello (Player *)
 
virtual bool OnGossipSelect (Player *, uint32, uint32)
 
virtual bool OnGossipSelectCode (Player *, uint32, uint32, char const *)
 
virtual void OnQuestAccept (Player *, Quest const *)
 
virtual void OnQuestReward (Player *, Quest const *, LootItemType, uint32)
 
virtual void WaypointStarted (uint32, uint32)
 == Waypoints system ============================= More...
 
virtual void WaypointReached (uint32, uint32)
 
virtual void WaypointPathEnded (uint32, uint32)
 
virtual void PassengerBoarded (Unit *, int8, bool)
 == Fields ======================================= More...
 
virtual void OnSpellClick (Unit *, bool)
 
virtual bool CanSeeAlways (WorldObject const *)
 
virtual PlayerAIGetAIForCharmedPlayer (Player *)
 
int32 VisualizeBoundary (Seconds duration, Unit *owner=nullptr, bool fill=false) const
 
virtual bool CheckInRoom ()
 
CreatureBoundary const * GetBoundary () const
 
void SetBoundary (CreatureBoundary const *boundary, bool negativeBoundaries=false)
 
bool IsInBoundary (Position const *who=nullptr) const
 
- Public Member Functions inherited from UnitAI
 UnitAI (Unit *unit)
 
virtual ~UnitAI ()
 
virtual void InitializeAI ()
 
virtual void DoAction (int32)
 
virtual uint32 GetData (uint32) const
 
virtual void SetData (uint32, uint32)
 
virtual void SetGUID (ObjectGuid const &, int32=0)
 
virtual ObjectGuid GetGUID (int32=0) const
 
UnitSelectTarget (SelectTargetMethod targetType, uint32 offset=0, float dist=0.0f, bool playerOnly=false, bool withTank=true, int32 aura=0)
 
template<class PREDICATE >
UnitSelectTarget (SelectTargetMethod targetType, uint32 offset, PREDICATE const &predicate)
 
void SelectTargetList (std::list< Unit *> &targetList, uint32 num, SelectTargetMethod targetType, uint32 offset=0, float dist=0.0f, bool playerOnly=false, bool withTank=true, int32 aura=0)
 
template<class PREDICATE >
void SelectTargetList (std::list< Unit *> &targetList, uint32 num, SelectTargetMethod targetType, uint32 offset, PREDICATE const &predicate)
 
virtual void JustExitedCombat ()
 
virtual void LeavingWorld ()
 
virtual void DamageDealt (Unit *, uint32 &, DamageEffectType)
 
virtual void DamageTaken (Unit *, uint32 &, DamageEffectType, SpellInfo const *)
 
virtual void HealReceived (Unit *, uint32 &)
 
virtual void HealDone (Unit *, uint32 &)
 
virtual void SpellInterrupted (uint32, uint32)
 
void AttackStartCaster (Unit *victim, float dist)
 
SpellCastResult DoCast (uint32 spellId)
 
SpellCastResult DoCast (Unit *victim, uint32 spellId, CastSpellExtraArgs const &args={})
 
SpellCastResult DoCastSelf (uint32 spellId, CastSpellExtraArgs const &args={})
 
SpellCastResult DoCastVictim (uint32 spellId, CastSpellExtraArgs const &args={})
 
SpellCastResult DoCastAOE (uint32 spellId, CastSpellExtraArgs const &args={})
 
virtual bool ShouldSparWith (Unit const *) const
 
void DoMeleeAttackIfReady ()
 
bool DoSpellAttackIfReady (uint32 spellId)
 
virtual void OnGameEvent (bool, uint16)
 
virtual std::string GetDebugInfo () const
 

Public Attributes

InstanceScript *const instance
 
- Public Attributes inherited from ScriptedAI
bool IsFleeing
 

Protected Member Functions

void _Reset ()
 
void _JustEngagedWith (Unit *who)
 
void _JustDied ()
 
void _JustReachedHome ()
 
void _DespawnAtEvade (Seconds delayToRespawn=30s, Creature *who=nullptr)
 
void TeleportCheaters ()
 
- Protected Member Functions inherited from CreatureAI
bool UpdateVictim ()
 
CreatureDoSummon (uint32 entry, Position const &pos, Milliseconds despawnTime=30s, TempSummonType summonType=TEMPSUMMON_CORPSE_TIMED_DESPAWN)
 
CreatureDoSummon (uint32 entry, WorldObject *obj, float radius=5.0f, Milliseconds despawnTime=30s, TempSummonType summonType=TEMPSUMMON_CORPSE_TIMED_DESPAWN)
 
CreatureDoSummonFlyer (uint32 entry, WorldObject *obj, float flightZ, float radius=5.0f, Milliseconds despawnTime=30s, TempSummonType summonType=TEMPSUMMON_CORPSE_TIMED_DESPAWN)
 
void EngagementStart (Unit *who)
 
void EngagementOver ()
 
virtual void MoveInLineOfSight (Unit *)
 
bool _EnterEvadeMode (EvadeReason why=EVADE_REASON_OTHER)
 

Protected Attributes

EventMap events
 
SummonList summons
 
TaskScheduler scheduler
 
- Protected Attributes inherited from CreatureAI
Creature *const me
 
CreatureBoundary const * _boundary
 
bool _negateBoundary
 
- Protected Attributes inherited from UnitAI
Unit *const me
 

Private Attributes

uint32 const _bossId
 

Additional Inherited Members

- Public Types inherited from CreatureAI
enum  EvadeReason {
  EVADE_REASON_NO_HOSTILES, EVADE_REASON_BOUNDARY, EVADE_REASON_NO_PATH, EVADE_REASON_SEQUENCE_BREAK,
  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 std::unordered_map< std::pair< uint32, Difficulty >, AISpellInfoTypeAISpellInfo
 

Constructor & Destructor Documentation

◆ BossAI()

BossAI::BossAI ( Creature creature,
uint32  bossId 
)
493  : ScriptedAI(creature), instance(creature->GetInstanceScript()), summons(creature), _bossId(bossId)
494 {
495  if (instance)
497  scheduler.SetValidator([this]
498  {
500  });
501 }
TaskScheduler & SetValidator(P &&predicate)
Sets a validator which is asked if tasks are allowed to be executed.
Definition: TaskScheduler.h:196
uint32 const _bossId
Definition: ScriptedCreature.h:353
ScriptedAI(Creature *creature)
Definition: ScriptedCreature.cpp:120
CreatureBoundary const * GetBossBoundary(uint32 id) const
Definition: InstanceScript.h:234
TaskScheduler scheduler
Definition: ScriptedCreature.h:350
Definition: Unit.h:257
Creature *const me
Definition: CreatureAI.h:61
bool HasUnitState(const uint32 f) const
Definition: Unit.h:850
InstanceScript * GetInstanceScript() const
Definition: Object.cpp:950
SummonList summons
Definition: ScriptedCreature.h:349
void SetBoundary(CreatureBoundary const *boundary, bool negativeBoundaries=false)
Definition: CreatureAI.cpp:429
InstanceScript *const instance
Definition: ScriptedCreature.h:317
+ Here is the call graph for this function:

◆ ~BossAI()

virtual BossAI::~BossAI ( )
inlinevirtual
315 { }

Member Function Documentation

◆ _DespawnAtEvade()

void BossAI::_DespawnAtEvade ( Seconds  delayToRespawn = 30s,
Creature who = nullptr 
)
protected
601 {
602  if (delayToRespawn < 2s)
603  {
604  TC_LOG_ERROR("scripts.ai", "BossAI::_DespawnAtEvade: called with delay of " SI64FMTD " seconds, defaulting to 2 (me: %s)", delayToRespawn.count(), me->GetGUID().ToString().c_str());
605  delayToRespawn = 2s;
606  }
607 
608  if (!who)
609  who = me;
610 
611  if (TempSummon* whoSummon = who->ToTempSummon())
612  {
613  TC_LOG_WARN("scripts.ai", "BossAI::_DespawnAtEvade: called on a temporary summon (who: %s)", who->GetGUID().ToString().c_str());
614  whoSummon->UnSummon();
615  return;
616  }
617 
618  who->DespawnOrUnsummon(0s, delayToRespawn);
619 
620  if (instance && who == me)
622 }
#define TC_LOG_WARN(filterType__,...)
Definition: Log.h:182
uint32 const _bossId
Definition: ScriptedCreature.h:353
Definition: TemporarySummon.h:43
std::string ToString() const
Definition: ObjectGuid.cpp:531
static ObjectGuid GetGUID(Object const *o)
Definition: Object.h:156
#define TC_LOG_ERROR(filterType__,...)
Definition: Log.h:185
Definition: InstanceScript.h:66
TempSummon * ToTempSummon()
Definition: Unit.h:1847
Creature *const me
Definition: CreatureAI.h:61
#define SI64FMTD
Definition: Define.h:130
virtual bool SetBossState(uint32 id, EncounterState state)
Definition: InstanceScript.cpp:372
void DespawnOrUnsummon(Milliseconds timeToDespawn=0s, Seconds forceRespawnTime=0s)
Definition: Creature.cpp:2307
InstanceScript *const instance
Definition: ScriptedCreature.h:317
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _JustDied()

void BossAI::_JustDied ( )
protected
518 {
519  events.Reset();
522  if (instance)
524 }
uint32 const _bossId
Definition: ScriptedCreature.h:353
void DespawnAll()
Definition: ScriptedCreature.cpp:76
void Reset()
Definition: EventMap.cpp:21
TaskScheduler scheduler
Definition: ScriptedCreature.h:350
Definition: InstanceScript.h:67
virtual bool SetBossState(uint32 id, EncounterState state)
Definition: InstanceScript.cpp:372
SummonList summons
Definition: ScriptedCreature.h:349
TaskScheduler & CancelAll()
Definition: TaskScheduler.cpp:45
EventMap events
Definition: ScriptedCreature.h:348
InstanceScript *const instance
Definition: ScriptedCreature.h:317
+ Here is the call graph for this function:

◆ _JustEngagedWith()

void BossAI::_JustEngagedWith ( Unit who)
protected
532 {
533  if (instance)
534  {
535  // bosses do not respawn, check only on enter combat
537  {
539  return;
540  }
542  }
543 
545  me->setActive(true);
546  DoZoneInCombat();
547  ScheduleTasks();
548 }
static Player * ToPlayer(Object *o)
Definition: Object.h:198
uint32 const _bossId
Definition: ScriptedCreature.h:353
virtual bool CheckRequiredBosses(uint32, Player const *=nullptr) const
Definition: InstanceScript.h:241
void setActive(bool isActiveObject)
Definition: Object.cpp:852
virtual void EnterEvadeMode(EvadeReason why=EVADE_REASON_OTHER)
Definition: CreatureAI.cpp:220
void DoZoneInCombat(Creature *creature=nullptr)
Definition: CreatureAI.cpp:79
virtual void ScheduleTasks()
Definition: ScriptedCreature.h:330
Creature *const me
Definition: CreatureAI.h:61
Definition: CreatureAI.h:76
Definition: InstanceScript.h:65
virtual bool SetBossState(uint32 id, EncounterState state)
Definition: InstanceScript.cpp:372
void SetCombatPulseDelay(uint32 delay)
Definition: Creature.h:286
InstanceScript *const instance
Definition: ScriptedCreature.h:317
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _JustReachedHome()

void BossAI::_JustReachedHome ( )
protected
527 {
528  me->setActive(false);
529 }
void setActive(bool isActiveObject)
Definition: Object.cpp:852
Creature *const me
Definition: CreatureAI.h:61
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _Reset()

void BossAI::_Reset ( )
protected
504 {
505  if (!me->IsAlive())
506  return;
507 
509  me->ResetLootMode();
510  events.Reset();
515 }
uint32 const _bossId
Definition: ScriptedCreature.h:353
void DespawnAll()
Definition: ScriptedCreature.cpp:76
void Reset()
Definition: EventMap.cpp:21
TaskScheduler scheduler
Definition: ScriptedCreature.h:350
Definition: InstanceScript.h:67
Creature *const me
Definition: CreatureAI.h:61
EncounterState GetBossState(uint32 id) const
Definition: InstanceScript.h:232
bool IsAlive() const
Definition: Unit.h:1251
Definition: InstanceScript.h:64
virtual bool SetBossState(uint32 id, EncounterState state)
Definition: InstanceScript.cpp:372
SummonList summons
Definition: ScriptedCreature.h:349
void ResetLootMode()
Definition: Creature.h:244
TaskScheduler & CancelAll()
Definition: TaskScheduler.cpp:45
EventMap events
Definition: ScriptedCreature.h:348
void SetCombatPulseDelay(uint32 delay)
Definition: Creature.h:286
InstanceScript *const instance
Definition: ScriptedCreature.h:317
+ Here is the call graph for this function:

◆ CanAIAttack()

bool BossAI::CanAIAttack ( Unit const *  target) const
overridevirtual

Reimplemented from UnitAI.

Reimplemented in boss_deathbringer_saurfang, boss_the_lich_king, boss_razorscale, boss_hadronox, boss_thaddius, boss_anub_arak, boss_gurtogg_bloodboil, and boss_general_zarithrian.

596 {
597  return IsInBoundary(target);
598 }
bool IsInBoundary(Position const *who=nullptr) const
Definition: CreatureAI.cpp:409
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ExecuteEvent()

◆ JustDied()

void BossAI::JustDied ( Unit )
inlineoverridevirtual

Reimplemented from CreatureAI.

Reimplemented in npc_toc_enh_shaman, boss_malygos, boss_elder_ironbranch::boss_elder_ironbranchAI, boss_cthun::cthunAI, boss_elder_stonebark::boss_elder_stonebarkAI, boss_elder_brightleaf::boss_elder_brightleafAI, boss_jormungarAI, boss_illidan_stormrage, boss_faction_championsAI, boss_freya::boss_freyaAI, boss_kaelthas, boss_voice_of_yogg_saron::boss_voice_of_yogg_saronAI, boss_the_lich_king, boss_stormcaller_brundir::boss_stormcaller_brundirAI, boss_razorscale, boss_essence_of_anger, boss_sathrovarr, BloodPrincesBossAI, boss_archimonde::boss_archimondeAI, boss_twilight_halion::boss_twilight_halionAI, boss_mimiron::boss_mimironAI, boss_nefarian, boss_volazj, boss_gothik, boss_runemaster_molgeim::boss_runemaster_molgeimAI, boss_lady_deathwhisper, PalehoofMinionsBossAI, boss_flame_leviathan::boss_flame_leviathanAI, boss_sister_svalna, boss_four_horsemen_baseAI, boss_blood_council_controller, boss_deathbringer_saurfang, boss_northrend_beastsAI, boss_professor_putricide, boss_anub_arak, boss_urom, boss_ymiron, boss_shade_of_akama, IllidariCouncilBossAI, boss_halion::boss_halionAI, boss_yauj::boss_yaujAI, boss_sindragosa, boss_kelthuzad, npc_baltharus_the_warborn_clone, boss_warbringer_omrogg::boss_warbringer_omroggAI, boss_reliquary_of_souls, boss_palehoof, boss_vazruden::boss_vazrudenAI, boss_garothi_worldbreaker, boss_eregos, boss_prince_taldaram, boss_twin_baseAI, boss_general_vezax::boss_general_vezaxAI, boss_anubarak_trial, boss_svala, boss_skadi, boss_thaddius, boss_xt002, boss_coren_direbrew, boss_auriaya, boss_viscidus::boss_viscidusAI, boss_sapphiron, boss_attumen::boss_attumenAI, boss_magtheridon, boss_baleroc, boss_steelbreaker::boss_steelbreakerAI, boss_jedoga_shadowseeker, boss_ahune, boss_blood_queen_lana_thel, boss_rend_blackhand, boss_devourer_of_souls, boss_entropius, boss_ossirian::boss_ossirianAI, boss_tyrannus, boss_earthrager_ptah::boss_earthrager_ptahAI, boss_temple_guardian_anhuur::boss_temple_guardian_anhuurAI, boss_jaraxxus, boss_illidari_council, boss_sartharion, boss_kelidan_the_breaker::boss_kelidan_the_breakerAI, boss_sjonnir, boss_vem::boss_vemAI, boss_ick, boss_slad_ran, boss_ingvar_the_plunderer, boss_anraphet::boss_anraphetAI, boss_krik_thir, boss_gurtogg_bloodboil, boss_apothecary_hummel, boss_lord_marrowgar, boss_selin_fireheart::boss_selin_fireheartAI, boss_ichoron, boss_high_priestess_azil::boss_high_priestess_azilAI, boss_felblood_kaelthas, boss_trollgore, boss_noth, boss_gal_darah, boss_ignis::boss_ignis_AI, boss_slabhide::boss_slabhideAI, boss_varos, boss_high_astromancer_solarian, boss_mandokir, boss_keleseth, boss_nightbane::boss_nightbaneAI, boss_kologarn::boss_kologarnAI, boss_exarch_maladaar, boss_rotface, boss_anubrekhan, boss_volkhan, boss_epoch::boss_epochAI, boss_teron_gorefiend, boss_talon_king_ikiss, boss_nexusprince_shaffar, boss_festergut, boss_novos, boss_drakos, boss_twinemperorsAI, boss_skeram::boss_skeramAI, boss_mother_shahraz, boss_salramm::boss_salrammAI, firelands_bossAI, boss_ozruk::boss_ozrukAI, boss_drakkari_colossus, boss_krystallus, boss_gruul::boss_gruulAI, boss_warchief_kargath_bladefist::boss_warchief_kargath_bladefistAI, generic_boss_controllerAI, boss_grandmaster_vorpil, boss_grand_warlock_nethekurse::boss_grand_warlock_nethekurseAI, boss_baltharus_the_warborn, boss_garfrost, boss_moorabi, boss_faerlina, boss_elder_nadox, boss_pyroguard_emberseer, boss_xevozz, boss_omor_the_unscarred::boss_omor_the_unscarredAI, boss_amanitar, boss_watchkeeper_gargolmar::boss_watchkeeper_gargolmarAI, boss_harbinger_skyriss, boss_loken, boss_shattered_executioner::boss_shattered_executionerAI, boss_terestian_illhoof::boss_terestianAI, boss_ormorok, boss_darkweaver_syth, boss_alizabal::boss_alizabalAI, boss_general_zarithrian, boss_tharon_ja, boss_kirtonos_the_herald::boss_kirtonos_the_heraldAI, boss_sartura::boss_sarturaAI, boss_zuramat, boss_blackheart_the_inciter, boss_king_dred, boss_bronjahm, boss_falric::boss_falricAI, boss_heigan, boss_razuvious, boss_keristrasza, boss_meathook::boss_meathookAI, boss_wrath_scryer_soccothrates, boss_mechano_lord_capacitus, boss_saviana_ragefire, boss_nethermancer_sepethrea, boss_randolph_moloch, boss_chrono_lord_deja, boss_erekem, boss_baron_rivendare, boss_anzu, boss_najentus, boss_pathaleon_the_calculator, boss_thorngrin_the_tender::boss_thorngrin_the_tenderAI, boss_razorgore, boss_occuthar::boss_occutharAI, boss_gyth, boss_infinite_corruptor::boss_infinite_corruptorAI, boss_amnennar_the_coldbringer::boss_amnennar_the_coldbringerAI, boss_kri::boss_kriAI, boss_aeonus, boss_kurinnaxx::boss_kurinnaxxAI, boss_maiden_of_grief, boss_commander_sarannis, boss_herod, boss_zum_rah::boss_zum_rahAI, boss_nexus_commanders, boss_patchwerk, boss_hogger, boss_pit_lord_argaloth::boss_pit_lord_argalothAI, boss_corla::boss_corlaAI, boss_warp_splinter, boss_overlord_wyrmthalak, boss_marwyn::boss_marwynAI, boss_temporus, boss_high_botanist_freywinn, boss_gatewatcher_iron_hand, boss_broodlord, boss_curator::boss_curatorAI, boss_interrogator_vishas, boss_void_reaver, boss_ascendant_lord_obsidius::boss_ascendant_lord_obsidiusAI, boss_karsh_steelbender::boss_karsh_steelbenderAI, boss_darkmaster_gandling::boss_darkmaster_gandlingAI, boss_dalliah_the_doomsayer, boss_the_maker::boss_the_makerAI, boss_jindo_the_godbreaker::boss_jindo_the_godbreakerAI, boss_mordresh_fire_eye::boss_mordresh_fire_eyeAI, boss_beauty::boss_beautyAI, boss_lord_valthalak, boss_baroness_anastari, boss_daakara::boss_daakaraAI, boss_nalorakk::boss_nalorakkAI, boss_kelris, boss_glutton::boss_gluttonAI, boss_halycon, boss_hexlord_malacrass::boss_hex_lord_malacrassAI, boss_gizrul_the_slavener, boss_romogg_bonecrusher::boss_romogg_bonecrusherAI, boss_the_beast::boss_thebeastAI, boss_zanzil::boss_zanzilAI, boss_mennu_the_betrayer, boss_warmaster_voone, boss_maiden_of_virtue::boss_maiden_of_virtueAI, boss_janalai::boss_janalaiAI, boss_cyanigosa, boss_rokmar_the_crackler, boss_halazzi::boss_halazziAI, boss_tuten_kash::boss_tuten_kashAI, boss_urok_doomhowl, boss_lord_overheat, boss_hydromancer_thespia::boss_thespiaAI, boss_pandemonius, boss_gatewatcher_gyrokill, boss_drakkisath, boss_kilnara, boss_shadow_hunter_voshgajin, boss_quagmirran, boss_akilzon::boss_akilzonAI, boss_zereketh_the_unbound, quartermaster_zigris, boss_mother_smolderweb, boss_venoxis, boss_highlord_omokk, boss_grilek, boss_hazzarah, and boss_renataki.

334 { _JustDied(); }
void _JustDied()
Definition: ScriptedCreature.cpp:517
+ Here is the caller graph for this function:

◆ JustEngagedWith()

void BossAI::JustEngagedWith ( Unit who)
inlineoverridevirtual

Reimplemented from CreatureAI.

Reimplemented in npc_toc_retro_paladin, npc_toc_hunter, npc_toc_warlock, boss_elder_ironbranch::boss_elder_ironbranchAI, boss_elder_stonebark::boss_elder_stonebarkAI, boss_elder_brightleaf::boss_elder_brightleafAI, boss_faction_championsAI, boss_thorim::boss_thorimAI, boss_malygos, boss_the_lich_king, boss_voice_of_yogg_saron::boss_voice_of_yogg_saronAI, boss_essence_of_anger, boss_illidan_stormrage, boss_stormcaller_brundir::boss_stormcaller_brundirAI, boss_sathrovarr, BloodPrincesBossAI, boss_fjola, boss_twilight_halion::boss_twilight_halionAI, boss_mimiron::boss_mimironAI, boss_nefarian, boss_essence_of_desire, boss_hodir::boss_hodirAI, boss_algalon_the_observer, boss_razorscale, boss_sister_svalna, boss_freya::boss_freyaAI, boss_midnight::boss_midnightAI, boss_essence_of_suffering, PalehoofMinionsBossAI, boss_gothik, boss_runemaster_molgeim::boss_runemaster_molgeimAI, boss_archimonde::boss_archimondeAI, boss_four_horsemen_baseAI, boss_lady_deathwhisper, boss_flame_leviathan::boss_flame_leviathanAI, boss_deathbringer_saurfang, boss_sindragosa, boss_anubarak_trial, boss_twin_baseAI, boss_volazj, boss_muru, boss_blood_council_controller, boss_archmage_arugal::boss_archmage_arugalAI, IllidariCouncilBossAI, boss_professor_putricide, boss_northrend_beastsAI, boss_halion::boss_halionAI, npc_baltharus_the_warborn_clone, boss_dalronn_the_controller, boss_vazruden::boss_vazrudenAI, boss_hadronox, boss_palehoof, boss_garothi_worldbreaker, boss_kalecgos, boss_grand_warlock_nethekurse::boss_grand_warlock_nethekurseAI, boss_warbringer_omrogg::boss_warbringer_omroggAI, boss_chromaggus, boss_skarvald_the_constructor, boss_nightbane::boss_nightbaneAI, boss_viscidus::boss_viscidusAI, boss_xt002, boss_earthrager_ptah::boss_earthrager_ptahAI, boss_ahune, boss_rend_blackhand, boss_temple_guardian_anhuur::boss_temple_guardian_anhuurAI, boss_sapphiron, boss_krik_thir, boss_blood_queen_lana_thel, boss_svala, boss_alar, boss_jedoga_shadowseeker, boss_ick, boss_high_astromancer_solarian, boss_sartharion, boss_steelbreaker::boss_steelbreakerAI, boss_anraphet::boss_anraphetAI, boss_tyrannus, boss_auriaya, boss_onyxia, boss_lord_marrowgar, boss_high_priestess_azil::boss_high_priestess_azilAI, boss_devourer_of_souls, boss_ingvar_the_plunderer, boss_ossirian::boss_ossirianAI, boss_anubrekhan, boss_twinemperorsAI, boss_illidari_council, boss_urom, boss_ignis::boss_ignis_AI, boss_felblood_kaelthas, boss_ayamiss::boss_ayamissAI, boss_slabhide::boss_slabhideAI, boss_skeram::boss_skeramAI, boss_ymiron, boss_selin_fireheart::boss_selin_fireheartAI, boss_general_vezax::boss_general_vezaxAI, boss_jaraxxus, boss_keleseth, boss_gurtogg_bloodboil, boss_mandokir, boss_anub_arak, boss_warchief_kargath_bladefist::boss_warchief_kargath_bladefistAI, boss_rotface, firelands_bossAI, boss_kologarn::boss_kologarnAI, boss_baleroc, boss_volkhan, boss_drakkari_colossus, boss_gal_darah, generic_boss_controllerAI, boss_festergut, boss_eregos, boss_razuvious, boss_harbinger_skyriss, boss_gruul::boss_gruulAI, boss_prince_taldaram, boss_mother_shahraz, boss_teron_gorefiend, boss_noth, boss_wrath_scryer_soccothrates, boss_gluth, boss_exarch_maladaar, boss_pyroguard_emberseer, boss_scarlet_commander_mograine, boss_baltharus_the_warborn, boss_heigan, boss_najentus, boss_ragnaros, boss_novos, boss_slad_ran, boss_nexusprince_shaffar, boss_garfrost, boss_sjonnir, boss_kelidan_the_breaker::boss_kelidan_the_breakerAI, boss_loken, boss_ichoron, boss_sartura::boss_sarturaAI, boss_maexxna, boss_alizabal::boss_alizabalAI, boss_ozruk::boss_ozrukAI, boss_nazan::boss_nazanAI, boss_faerlina, boss_amanitar, boss_bronjahm, boss_mal_ganis::boss_mal_ganisAI, boss_darkweaver_syth, boss_vaelastrasz, boss_trollgore, boss_varos, boss_terestian_illhoof::boss_terestianAI, boss_kirtonos_the_herald::boss_kirtonos_the_heraldAI, boss_xevozz, boss_omor_the_unscarred::boss_omor_the_unscarredAI, boss_buru::boss_buruAI, boss_patchwerk, boss_keristrasza, boss_vexallus::boss_vexallusAI, boss_general_zarithrian, boss_tharon_ja, boss_majordomo, boss_blackheart_the_inciter, boss_ouro::boss_ouroAI, boss_saviana_ragefire, boss_grandmaster_vorpil, boss_moorabi, boss_anzu, boss_supremus, boss_ormorok, boss_dalliah_the_doomsayer, boss_curator::boss_curatorAI, boss_darkmaster_gandling::boss_darkmaster_gandlingAI, boss_elder_nadox, boss_emalon, boss_talon_king_ikiss, boss_romogg_bonecrusher::boss_romogg_bonecrusherAI, boss_infinite_corruptor::boss_infinite_corruptorAI, boss_drakos, boss_watchkeeper_gargolmar::boss_watchkeeper_gargolmarAI, boss_mechano_lord_capacitus, boss_gyth, boss_high_inquisitor_fairbanks, boss_baron_rivendare, boss_zum_rah::boss_zum_rahAI, boss_falric::boss_falricAI, boss_salramm::boss_salrammAI, boss_king_dred, boss_instructor_malicia::boss_instructormaliciaAI, boss_pathaleon_the_calculator, boss_randolph_moloch, boss_amnennar_the_coldbringer::boss_amnennar_the_coldbringerAI, boss_thorngrin_the_tender::boss_thorngrin_the_tenderAI, boss_grobbulus, boss_loatheb, boss_hydromancer_thespia::boss_thespiaAI, boss_occuthar::boss_occutharAI, boss_hogger, boss_zuramat, boss_mennu_the_betrayer, boss_broggok::boss_broggokAI, boss_overlord_wyrmthalak, boss_maiden_of_virtue::boss_maiden_of_virtueAI, boss_herod, boss_epoch::boss_epochAI, boss_pandemonius, boss_rokmar_the_crackler, boss_commander_sarannis, boss_postmaster_malown::boss_postmaster_malownAI, boss_erekem, boss_nethermancer_sepethrea, boss_golemagg, boss_marwyn::boss_marwynAI, boss_laj, boss_corla::boss_corlaAI, boss_jindo_the_godbreaker::boss_jindo_the_godbreakerAI, boss_warp_splinter, boss_sulfuron, boss_eck, boss_gatewatcher_gyrokill, boss_lord_valthalak, boss_daakara::boss_daakaraAI, boss_meathook::boss_meathookAI, boss_broodlord, boss_magmadar, boss_baroness_anastari, boss_nalorakk::boss_nalorakkAI, boss_mordresh_fire_eye::boss_mordresh_fire_eyeAI, boss_krystallus, boss_high_botanist_freywinn, boss_beauty::boss_beautyAI, boss_interrogator_vishas, boss_chrono_lord_deja, boss_ascendant_lord_obsidius::boss_ascendant_lord_obsidiusAI, boss_karsh_steelbender::boss_karsh_steelbenderAI, boss_halycon, boss_hexlord_malacrass::boss_hex_lord_malacrassAI, boss_aeonus, boss_temporus, boss_maiden_of_grief, boss_quagmirran, boss_zereketh_the_unbound, boss_gatewatcher_iron_hand, boss_baron_geddon, boss_arcanist_doan, boss_bloodmage_thalnos, boss_lord_alexei_barov::boss_lordalexeibarovAI, boss_kelris, boss_gizrul_the_slavener, boss_venoxis, boss_zanzil::boss_zanzilAI, boss_doctor_theolen_krastinov::boss_theolenkrastinovAI, boss_janalai::boss_janalaiAI, boss_glutton::boss_gluttonAI, boss_void_reaver, boss_the_beast::boss_thebeastAI, boss_halazzi::boss_halazziAI, boss_archavon, boss_pit_lord_argaloth::boss_pit_lord_argalothAI, boss_illucia_barov::boss_illuciabarovAI, boss_tuten_kash::boss_tuten_kashAI, boss_the_maker::boss_the_makerAI, boss_lorekeeper_polkelt::boss_lorekeeperpolkeltAI, boss_the_ravenian::boss_theravenianAI, boss_garr, boss_aku_mai, boss_toravon, boss_urok_doomhowl, boss_warmaster_voone, boss_cyanigosa, boss_gehennas, boss_lucifron, boss_azshir_the_sleepless, boss_kilnara, boss_nexus_commanders, boss_grilek, boss_hazzarah, boss_renataki, boss_koralon, boss_moragg, boss_drakkisath, boss_shazzrah, boss_lord_overheat, boss_akilzon::boss_akilzonAI, boss_shadow_hunter_voshgajin, quartermaster_zigris, boss_flamegor, boss_mother_smolderweb, boss_highlord_omokk, boss_houndmaster_loksey, boss_scorn, boss_ebonroc, boss_firemaw, boss_wushoolay, boss_lavanthor, and boss_gelihast.

333 { _JustEngagedWith(who); }
void _JustEngagedWith(Unit *who)
Definition: ScriptedCreature.cpp:531

◆ JustReachedHome()

void BossAI::JustReachedHome ( )
inlineoverridevirtual

◆ JustSummoned()

void BossAI::JustSummoned ( Creature summon)
overridevirtual

Reimplemented from CreatureAI.

Reimplemented in npc_toc_enh_shaman, boss_aerial_command_unit::boss_aerial_command_unitAI, boss_vx_001::boss_vx_001AI, boss_leviathan_mk_ii::boss_leviathan_mk_iiAI, boss_prince_valanar_icc, boss_the_lich_king, boss_prince_taldaram_icc, boss_jormungarAI, boss_voice_of_yogg_saron::boss_voice_of_yogg_saronAI, boss_freya::boss_freyaAI, boss_prince_keleseth_icc, boss_thorim::boss_thorimAI, boss_kaelthas, boss_illidan_stormrage, boss_lady_deathwhisper, boss_massive_jormungar, boss_archimonde::boss_archimondeAI, boss_razorscale, boss_algalon_the_observer, boss_sindragosa, boss_toc_champion_controller, boss_deathbringer_saurfang, boss_hadronox, boss_midnight::boss_midnightAI, boss_gothik, boss_professor_putricide, boss_garothi_worldbreaker, boss_muru, boss_felblood_kaelthas, boss_kelthuzad, boss_anubarak_trial, boss_corborus::boss_corborusAI, boss_jedoga_shadowseeker, boss_victor_nefarius, boss_drakkari_colossus, boss_warbringer_omrogg::boss_warbringer_omroggAI, boss_kologarn::boss_kologarnAI, boss_palehoof, boss_grand_warlock_nethekurse::boss_grand_warlock_nethekurseAI, boss_volazj, boss_novos, boss_volkhan, boss_slad_ran, boss_trollgore, boss_ymiron, boss_rotface, boss_ignis::boss_ignis_AI, boss_skadi, boss_svala, boss_alar, boss_onyxia, boss_ichoron, boss_entropius, boss_ick, boss_eregos, boss_noth, boss_reliquary_of_souls, boss_attumen::boss_attumenAI, boss_exarch_maladaar, boss_kirtonos_the_herald::boss_kirtonos_the_heraldAI, boss_warchief_kargath_bladefist::boss_warchief_kargath_bladefistAI, boss_baltharus_the_warborn, boss_bronjahm, boss_sjonnir, boss_amanitar, boss_darkweaver_syth, boss_harbinger_skyriss, boss_prince_taldaram, boss_nexusprince_shaffar, boss_grandmaster_vorpil, boss_anubrekhan, boss_shattered_executioner::boss_shattered_executionerAI, boss_commander_sarannis, boss_omor_the_unscarred::boss_omor_the_unscarredAI, boss_nazan::boss_nazanAI, boss_ozruk::boss_ozrukAI, boss_nethermancer_sepethrea, boss_moorabi, boss_xevozz, boss_ayamiss::boss_ayamissAI, boss_emalon, boss_general_zarithrian, boss_gal_darah, boss_vexallus::boss_vexallusAI, boss_warp_splinter, boss_occuthar::boss_occutharAI, boss_hogger, boss_skeram::boss_skeramAI, boss_randolph_moloch, boss_high_botanist_freywinn, boss_broggok::boss_broggokAI, boss_laj, and boss_horAI.

564 {
565  summons.Summon(summon);
566  if (me->IsEngaged())
567  DoZoneInCombat(summon);
568 }
void DoZoneInCombat(Creature *creature=nullptr)
Definition: CreatureAI.cpp:79
void Summon(Creature const *summon)
Definition: ScriptedCreature.cpp:35
Creature *const me
Definition: CreatureAI.h:61
bool IsEngaged() const override
Definition: Creature.cpp:3430
SummonList summons
Definition: ScriptedCreature.h:349
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ Reset()

void BossAI::Reset ( )
inlineoverridevirtual

Reimplemented from UnitAI.

Reimplemented in npc_toc_pet_hunter, npc_toc_pet_warlock, npc_toc_retro_paladin, npc_toc_enh_shaman, npc_toc_rogue, npc_toc_dk, npc_toc_warrior, npc_toc_boomkin, npc_toc_hunter, npc_toc_mage, npc_toc_warlock, npc_toc_shadow_priest, npc_toc_priest, boss_elder_ironbranch::boss_elder_ironbranchAI, boss_acidmaw, npc_toc_paladin, boss_dreadscale, boss_leviathan_mk_ii::boss_leviathan_mk_iiAI, npc_toc_shaman, boss_elder_stonebark::boss_elder_stonebarkAI, npc_toc_druid, boss_elder_brightleaf::boss_elder_brightleafAI, boss_jormungarAI, boss_faction_championsAI, boss_cthun::cthunAI, boss_veklor::boss_veklorAI, boss_the_lich_king, boss_essence_of_anger, boss_voice_of_yogg_saron::boss_voice_of_yogg_saronAI, boss_eydis, npc_green_dragon_combat_trigger, boss_illidan_stormrage, boss_stormcaller_brundir::boss_stormcaller_brundirAI, boss_thorim::boss_thorimAI, boss_mimiron::boss_mimironAI, boss_sathrovarr, BloodPrincesBossAI, boss_twilight_halion::boss_twilight_halionAI, boss_veknilash::boss_veknilashAI, boss_nefarian, boss_essence_of_desire, boss_fjola, boss_toc_champion_controller, boss_high_nethermancer_zerevor, boss_malygos, boss_hodir::boss_hodirAI, boss_kaelthas, boss_freya::boss_freyaAI, PalehoofMinionsBossAI, boss_sister_svalna, boss_razorscale, boss_gothik, boss_runemaster_molgeim::boss_runemaster_molgeimAI, boss_algalon_the_observer, boss_midnight::boss_midnightAI, boss_four_horsemen_baseAI, boss_archimonde::boss_archimondeAI, boss_essence_of_suffering, boss_flame_leviathan::boss_flame_leviathanAI, boss_yauj::boss_yaujAI, boss_deathbringer_saurfang, IllidariCouncilBossAI, boss_sindragosa, npc_baltharus_the_warborn_clone, boss_blood_council_controller, boss_muru, boss_professor_putricide, boss_vazruden::boss_vazrudenAI, boss_lady_deathwhisper, boss_kelthuzad, boss_shade_of_akama, boss_northrend_beastsAI, boss_palehoof, boss_twin_baseAI, boss_chromaggus, boss_thaddius, boss_skarvald_the_constructor, boss_victor_nefarius, boss_anubarak_trial, boss_rend_blackhand, boss_vem::boss_vemAI, boss_xt002, boss_skadi, boss_warbringer_omrogg::boss_warbringer_omroggAI, boss_blood_queen_lana_thel, boss_razuvious, boss_steelbreaker::boss_steelbreakerAI, boss_alar, boss_felblood_kaelthas, boss_svala, boss_sapphiron, boss_kalecgos, boss_ick, boss_krik_thir, boss_anraphet::boss_anraphetAI, boss_onyxia, boss_jedoga_shadowseeker, boss_tyrannus, boss_reliquary_of_souls, boss_sartharion, boss_devourer_of_souls, boss_lord_marrowgar, boss_volazj, boss_entropius, boss_kologarn::boss_kologarnAI, boss_illidari_council, boss_high_astromancer_solarian, boss_coren_direbrew, boss_auriaya, boss_high_priestess_azil::boss_high_priestess_azilAI, boss_ignis::boss_ignis_AI, boss_ymiron, boss_urom, boss_general_vezax::boss_general_vezaxAI, boss_nightbane::boss_nightbaneAI, boss_slabhide::boss_slabhideAI, boss_magtheridon, boss_ossirian::boss_ossirianAI, boss_keleseth, boss_earthrager_ptah::boss_earthrager_ptahAI, boss_anub_arak, boss_mandokir, boss_jaraxxus, boss_baleroc, boss_rotface, boss_grand_warlock_nethekurse::boss_grand_warlock_nethekurseAI, boss_warchief_kargath_bladefist::boss_warchief_kargath_bladefistAI, boss_apothecary_hummel, boss_viscidus::boss_viscidusAI, boss_volkhan, boss_temple_guardian_anhuur::boss_temple_guardian_anhuurAI, boss_maexxna, boss_ingvar_the_plunderer, boss_faerlina, boss_gruul::boss_gruulAI, generic_boss_controllerAI, boss_mother_shahraz, boss_exarch_maladaar, boss_drakkari_colossus, boss_gurtogg_bloodboil, boss_ragnaros, boss_prince_taldaram, boss_slad_ran, boss_gluth, boss_eregos, boss_twinemperorsAI, boss_anubrekhan, boss_noth, boss_corborus::boss_corborusAI, boss_novos, boss_garfrost, boss_harbinger_skyriss, boss_ayamiss::boss_ayamissAI, boss_loken, boss_festergut, boss_kelidan_the_breaker::boss_kelidan_the_breakerAI, boss_scarlet_commander_mograine, boss_sartura::boss_sarturaAI, boss_ichoron, boss_nazan::boss_nazanAI, boss_wrath_scryer_soccothrates, boss_alizabal::boss_alizabalAI, boss_attumen::boss_attumenAI, boss_gal_darah, boss_darkweaver_syth, boss_shattered_executioner::boss_shattered_executionerAI, boss_kirtonos_the_herald::boss_kirtonos_the_heraldAI, boss_ozruk::boss_ozrukAI, boss_trollgore, boss_xevozz, boss_vaelastrasz, boss_huhuran::boss_huhuranAI, boss_nexusprince_shaffar, boss_tharon_ja, boss_omor_the_unscarred::boss_omor_the_unscarredAI, boss_razorgore, boss_kri::boss_kriAI, boss_heigan, boss_blackheart_the_inciter, boss_pyroguard_emberseer, boss_selin_fireheart::boss_selin_fireheartAI, boss_ouro::boss_ouroAI, boss_bronjahm, boss_keristrasza, boss_varos, boss_rajaxx::boss_rajaxxAI, boss_saviana_ragefire, boss_ormorok, boss_anzu, boss_terestian_illhoof::boss_terestianAI, boss_moorabi, boss_vexallus::boss_vexallusAI, boss_fankriss::boss_fankrissAI, boss_elder_nadox, boss_baltharus_the_warborn, boss_watchkeeper_gargolmar::boss_watchkeeper_gargolmarAI, boss_mal_ganis::boss_mal_ganisAI, boss_moam::boss_moamAI, boss_general_zarithrian, boss_emalon, boss_najentus, boss_skeram::boss_skeramAI, boss_zum_rah::boss_zum_rahAI, boss_falric::boss_falricAI, boss_supremus, boss_high_inquisitor_fairbanks, boss_king_dred, boss_patchwerk, boss_instructor_malicia::boss_instructormaliciaAI, boss_baron_rivendare, boss_drakos, boss_gyth, boss_randolph_moloch, boss_infinite_corruptor::boss_infinite_corruptorAI, boss_darkmaster_gandling::boss_darkmaster_gandlingAI, boss_amnennar_the_coldbringer::boss_amnennar_the_coldbringerAI, boss_kurinnaxx::boss_kurinnaxxAI, boss_dalliah_the_doomsayer, boss_thorngrin_the_tender::boss_thorngrin_the_tenderAI, boss_postmaster_malown::boss_postmaster_malownAI, boss_hogger, boss_zuramat, boss_broggok::boss_broggokAI, boss_overlord_wyrmthalak, boss_loatheb, boss_curator::boss_curatorAI, boss_herod, boss_talon_king_ikiss, boss_murmur, boss_commander_sarannis, boss_marwyn::boss_marwynAI, boss_nethermancer_sepethrea, boss_golemagg, boss_jindo_the_godbreaker::boss_jindo_the_godbreakerAI, boss_erekem, boss_laj, boss_romogg_bonecrusher::boss_romogg_bonecrusherAI, boss_chrono_lord_deja, boss_mennu_the_betrayer, boss_corla::boss_corlaAI, boss_daakara::boss_daakaraAI, boss_aeonus, boss_temporus, boss_eck, boss_lord_valthalak, boss_nalorakk::boss_nalorakkAI, boss_krystallus, boss_rokmar_the_crackler, boss_beauty::boss_beautyAI, boss_magmadar, boss_mordresh_fire_eye::boss_mordresh_fire_eyeAI, boss_high_botanist_freywinn, boss_ascendant_lord_obsidius::boss_ascendant_lord_obsidiusAI, boss_karsh_steelbender::boss_karsh_steelbenderAI, boss_interrogator_vishas, boss_hexlord_malacrass::boss_hex_lord_malacrassAI, boss_halycon, boss_hydromancer_thespia::boss_thespiaAI, boss_arcanist_doan, boss_bloodmage_thalnos, boss_zanzil::boss_zanzilAI, boss_janalai::boss_janalaiAI, boss_pandemonius, boss_the_beast::boss_thebeastAI, boss_lord_alexei_barov::boss_lordalexeibarovAI, boss_baroness_anastari, boss_halazzi::boss_halazziAI, boss_void_reaver, boss_glutton::boss_gluttonAI, boss_quagmirran, boss_zereketh_the_unbound, boss_gizrul_the_slavener, boss_urok_doomhowl, boss_warmaster_voone, boss_venoxis, boss_aku_mai, boss_kelris, boss_tuten_kash::boss_tuten_kashAI, boss_kilnara, boss_azshir_the_sleepless, boss_moragg, boss_drakkisath, boss_akilzon::boss_akilzonAI, quartermaster_zigris, boss_shadow_hunter_voshgajin, boss_grilek, boss_hazzarah, boss_renataki, boss_mother_smolderweb, boss_highlord_omokk, boss_lavanthor, and boss_horAI.

332 { _Reset(); }
void _Reset()
Definition: ScriptedCreature.cpp:503
+ Here is the caller graph for this function:

◆ ScheduleTasks()

virtual void BossAI::ScheduleTasks ( )
inlinevirtual

Reimplemented in boss_icehowl, boss_jormungarAI, boss_massive_jormungar, boss_ferocious_rhino, boss_frenzied_worgen, boss_ravenous_furbolg, boss_gormok, boss_muru, boss_ichoron, boss_erekem, boss_volazj, boss_entropius, boss_xevozz, boss_zuramat, boss_slad_ran, boss_attumen::boss_attumenAI, boss_cyanigosa, boss_moragg, and boss_lavanthor.

330 { }
+ Here is the caller graph for this function:

◆ SummonedCreatureDespawn()

void BossAI::SummonedCreatureDespawn ( Creature summon)
overridevirtual

Reimplemented from CreatureAI.

Reimplemented in npc_toc_enh_shaman, boss_sindragosa, boss_gothik, boss_volazj, boss_ichoron, boss_eregos, boss_anubrekhan, and boss_zuramat.

571 {
572  summons.Despawn(summon);
573 }
void Despawn(Creature const *summon)
Definition: ScriptedCreature.cpp:40
SummonList summons
Definition: ScriptedCreature.h:349
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ TeleportCheaters()

void BossAI::TeleportCheaters ( )
protected
551 {
552  float x, y, z;
553  me->GetPosition(x, y, z);
554 
555  for (auto const& pair : me->GetCombatManager().GetPvECombatRefs())
556  {
557  Unit* target = pair.second->GetOther(me);
558  if (target->IsControlledByPlayer() && !IsInBoundary(target))
559  target->NearTeleportTo(x, y, z, 0);
560  }
561 }
Creature *const me
Definition: CreatureAI.h:61
bool IsInBoundary(Position const *who=nullptr) const
Definition: CreatureAI.cpp:409
void NearTeleportTo(Position const &pos, bool casting=false)
Definition: Unit.cpp:12232
CombatManager & GetCombatManager()
Definition: Unit.h:1135
void GetPosition(float &x, float &y) const
Definition: Position.h:82
Definition: Unit.h:746
std::unordered_map< ObjectGuid, CombatReference * > const & GetPvECombatRefs() const
Definition: CombatManager.h:110
bool IsControlledByPlayer() const
Definition: Unit.h:1278
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ UpdateAI()

void BossAI::UpdateAI ( uint32  diff)
overridevirtual

Reimplemented from ScriptedAI.

Reimplemented in npc_toc_pet_hunter, npc_toc_pet_warlock, npc_toc_retro_paladin, npc_toc_enh_shaman, npc_toc_rogue, npc_toc_dk, npc_toc_warrior, npc_toc_boomkin, npc_toc_hunter, npc_toc_mage, boss_aerial_command_unit::boss_aerial_command_unitAI, npc_toc_warlock, npc_toc_shadow_priest, boss_vx_001::boss_vx_001AI, npc_toc_priest, boss_elder_ironbranch::boss_elder_ironbranchAI, npc_toc_paladin, boss_the_lich_king, boss_leviathan_mk_ii::boss_leviathan_mk_iiAI, boss_elder_stonebark::boss_elder_stonebarkAI, boss_jormungarAI, npc_toc_shaman, boss_prince_valanar_icc, boss_illidan_stormrage, npc_toc_druid, boss_elder_brightleaf::boss_elder_brightleafAI, boss_malygos, boss_prince_taldaram_icc, boss_faction_championsAI, boss_thorim::boss_thorimAI, boss_prince_keleseth_icc, boss_cthun::cthunAI, boss_professor_putricide, boss_kaelthas, boss_razorscale, boss_stormcaller_brundir::boss_stormcaller_brundirAI, boss_voice_of_yogg_saron::boss_voice_of_yogg_saronAI, boss_essence_of_anger, boss_veklor::boss_veklorAI, boss_twilight_halion::boss_twilight_halionAI, boss_algalon_the_observer, boss_lady_deathwhisper, boss_lady_malande, boss_mimiron::boss_mimironAI, boss_sister_svalna, boss_nefarian, boss_deathbringer_saurfang, boss_essence_of_desire, boss_sindragosa, boss_veknilash::boss_veknilashAI, boss_hodir::boss_hodirAI, boss_high_nethermancer_zerevor, boss_freya::boss_freyaAI, boss_gothik, boss_sartharion, boss_runemaster_molgeim::boss_runemaster_molgeimAI, boss_garothi_worldbreaker, boss_flame_leviathan::boss_flame_leviathanAI, boss_midnight::boss_midnightAI, boss_four_horsemen_baseAI, boss_blood_council_controller, boss_nightbane::boss_nightbaneAI, boss_essence_of_suffering, boss_twin_baseAI, boss_thaddius, boss_volazj, boss_blood_queen_lana_thel, boss_halion::boss_halionAI, boss_onyxia, boss_xt002, boss_northrend_beastsAI, boss_muru, boss_skadi, boss_jedoga_shadowseeker, boss_kelthuzad, boss_shade_of_akama, boss_hadronox, boss_anubarak_trial, boss_yauj::boss_yaujAI, boss_archmage_arugal::boss_archmage_arugalAI, boss_warbringer_omrogg::boss_warbringer_omroggAI, boss_sapphiron, boss_felblood_kaelthas, npc_baltharus_the_warborn_clone, boss_reliquary_of_souls, boss_kalecgos, boss_vazruden::boss_vazrudenAI, boss_kologarn::boss_kologarnAI, boss_krik_thir, boss_victor_nefarius, boss_rend_blackhand, boss_devourer_of_souls, boss_steelbreaker::boss_steelbreakerAI, boss_alar, boss_ossirian::boss_ossirianAI, boss_mandokir, boss_coren_direbrew, boss_volkhan, boss_slabhide::boss_slabhideAI, boss_svala, boss_grand_warlock_nethekurse::boss_grand_warlock_nethekurseAI, boss_ick, boss_auriaya, boss_urom, boss_attumen::boss_attumenAI, boss_tyrannus, boss_baleroc, boss_magtheridon, boss_scarlet_commander_mograine, boss_anraphet::boss_anraphetAI, boss_viscidus::boss_viscidusAI, boss_high_priestess_azil::boss_high_priestess_azilAI, boss_temple_guardian_anhuur::boss_temple_guardian_anhuurAI, boss_ignis::boss_ignis_AI, boss_chromaggus, boss_sjonnir, boss_earthrager_ptah::boss_earthrager_ptahAI, boss_warchief_kargath_bladefist::boss_warchief_kargath_bladefistAI, boss_illidari_council, boss_noth, boss_eregos, boss_entropius, boss_high_astromancer_solarian, boss_ingvar_the_plunderer, boss_jaraxxus, boss_drakkari_colossus, boss_garfrost, boss_lord_marrowgar, boss_rotface, boss_apothecary_hummel, boss_vem::boss_vemAI, boss_ichoron, boss_kelidan_the_breaker::boss_kelidan_the_breakerAI, boss_baltharus_the_warborn, boss_gurtogg_bloodboil, boss_selin_fireheart::boss_selin_fireheartAI, boss_anub_arak, boss_pyroguard_emberseer, boss_festergut, boss_keleseth, boss_gruul::boss_gruulAI, boss_anubrekhan, boss_keristrasza, boss_shattered_executioner::boss_shattered_executionerAI, boss_erekem, boss_harbinger_skyriss, boss_ayamiss::boss_ayamissAI, boss_exarch_maladaar, boss_skeram::boss_skeramAI, boss_bronjahm, boss_general_vezax::boss_general_vezaxAI, boss_alizabal::boss_alizabalAI, boss_wrath_scryer_soccothrates, boss_kirtonos_the_herald::boss_kirtonos_the_heraldAI, boss_teron_gorefiend, boss_faerlina, boss_saviana_ragefire, boss_buru::boss_buruAI, boss_amanitar, boss_prince_taldaram, boss_vexallus::boss_vexallusAI, boss_novos, boss_moorabi, boss_heigan, boss_loken, boss_corborus::boss_corborusAI, boss_slad_ran, boss_ozruk::boss_ozrukAI, boss_grandmaster_vorpil, boss_xevozz, boss_blackheart_the_inciter, boss_vaelastrasz, boss_ragnaros, boss_gluth, boss_razuvious, boss_general_zarithrian, boss_razorgore, boss_elder_nadox, boss_nazan::boss_nazanAI, boss_omor_the_unscarred::boss_omor_the_unscarredAI, boss_watchkeeper_gargolmar::boss_watchkeeper_gargolmarAI, boss_ormorok, boss_moam::boss_moamAI, boss_zuramat, boss_sartura::boss_sarturaAI, boss_tharon_ja, boss_falric::boss_falricAI, boss_maexxna, boss_anzu, boss_commander_sarannis, boss_dalliah_the_doomsayer, boss_mal_ganis::boss_mal_ganisAI, boss_occuthar::boss_occutharAI, boss_emalon, boss_thorngrin_the_tender::boss_thorngrin_the_tenderAI, boss_fankriss::boss_fankrissAI, boss_king_dred, boss_high_inquisitor_fairbanks, boss_warp_splinter, boss_nethermancer_sepethrea, boss_pathaleon_the_calculator, boss_gyth, boss_high_botanist_freywinn, boss_trollgore, boss_varos, boss_mechano_lord_capacitus, boss_chrono_lord_deja, boss_baron_rivendare, boss_aeonus, boss_temporus, boss_darkmaster_gandling::boss_darkmaster_gandlingAI, boss_patchwerk, boss_majordomo, boss_zum_rah::boss_zum_rahAI, boss_kri::boss_kriAI, boss_amnennar_the_coldbringer::boss_amnennar_the_coldbringerAI, boss_kurinnaxx::boss_kurinnaxxAI, boss_ouro::boss_ouroAI, boss_marwyn::boss_marwynAI, boss_loatheb, boss_maiden_of_grief, boss_romogg_bonecrusher::boss_romogg_bonecrusherAI, boss_huhuran::boss_huhuranAI, boss_grobbulus, boss_mennu_the_betrayer, boss_pit_lord_argaloth::boss_pit_lord_argalothAI, boss_corla::boss_corlaAI, boss_rajaxx::boss_rajaxxAI, boss_drakos, boss_broodlord, boss_instructor_malicia::boss_instructormaliciaAI, boss_overlord_wyrmthalak, boss_murmur, boss_laj, boss_golemagg, boss_maiden_of_virtue::boss_maiden_of_virtueAI, boss_postmaster_malown::boss_postmaster_malownAI, boss_daakara::boss_daakaraAI, boss_gatewatcher_iron_hand, boss_nalorakk::boss_nalorakkAI, boss_void_reaver, boss_ascendant_lord_obsidius::boss_ascendant_lord_obsidiusAI, boss_karsh_steelbender::boss_karsh_steelbenderAI, boss_hexlord_malacrass::boss_hex_lord_malacrassAI, boss_rokmar_the_crackler, boss_gatewatcher_gyrokill, boss_baroness_anastari, boss_beauty::boss_beautyAI, boss_zanzil::boss_zanzilAI, boss_mordresh_fire_eye::boss_mordresh_fire_eyeAI, boss_halycon, boss_lord_valthalak, boss_janalai::boss_janalaiAI, boss_jindo_the_godbreaker::boss_jindo_the_godbreakerAI, boss_sulfuron, boss_halazzi::boss_halazziAI, boss_kelris, boss_krystallus, boss_zereketh_the_unbound, boss_glutton::boss_gluttonAI, boss_cyanigosa, boss_quagmirran, boss_gizrul_the_slavener, boss_magmadar, boss_venoxis, boss_the_beast::boss_thebeastAI, boss_arcanist_doan, boss_warmaster_voone, boss_kilnara, boss_baron_geddon, boss_azshir_the_sleepless, boss_tuten_kash::boss_tuten_kashAI, boss_archavon, boss_lord_alexei_barov::boss_lordalexeibarovAI, boss_akilzon::boss_akilzonAI, boss_urok_doomhowl, boss_doctor_theolen_krastinov::boss_theolenkrastinovAI, boss_illucia_barov::boss_illuciabarovAI, boss_toravon, boss_mother_smolderweb, boss_lorekeeper_polkelt::boss_lorekeeperpolkeltAI, boss_the_ravenian::boss_theravenianAI, boss_drakkisath, boss_koralon, boss_shadow_hunter_voshgajin, boss_garr, boss_moragg, quartermaster_zigris, boss_gehennas, boss_lucifron, boss_shazzrah, boss_highlord_omokk, boss_flamegor, boss_grilek, boss_hazzarah, boss_renataki, boss_lavanthor, boss_ebonroc, boss_firemaw, boss_wushoolay, and boss_gelihast.

576 {
577  if (!UpdateVictim())
578  return;
579 
580  events.Update(diff);
581 
583  return;
584 
585  while (uint32 eventId = events.ExecuteEvent())
586  {
587  ExecuteEvent(eventId);
589  return;
590  }
591 
593 }
bool UpdateVictim()
Definition: CreatureAI.cpp:246
Definition: Unit.h:257
Creature *const me
Definition: CreatureAI.h:61
bool HasUnitState(const uint32 f) const
Definition: Unit.h:850
uint32_t uint32
Definition: Define.h:143
void Update(uint32 time)
Definition: EventMap.h:54
uint32 ExecuteEvent()
Definition: EventMap.cpp:73
void DoMeleeAttackIfReady()
Definition: UnitAI.cpp:60
EventMap events
Definition: ScriptedCreature.h:348
virtual void ExecuteEvent(uint32)
Definition: ScriptedCreature.h:328
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ _bossId

uint32 const BossAI::_bossId
private

◆ events

EventMap BossAI::events
protected

◆ instance

InstanceScript* const BossAI::instance

◆ scheduler

TaskScheduler BossAI::scheduler
protected

◆ summons

SummonList BossAI::summons
protected

The documentation for this class was generated from the following files: