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

Public Member Functions

 boss_kelthuzadAI (Creature *c)
 
float NormalizeOrientation (float o)
 
void SpawnHelpers ()
 
void SummonHelper (uint32 entry, uint32 count)
 
void Reset () override
 
void EnterEvadeMode (EvadeReason why) override
 
void KilledUnit (Unit *who) override
 
void JustDied (Unit *killer) override
 
void MoveInLineOfSight (Unit *who) override
 
void JustEngagedWith (Unit *who) override
 Called for reaction when initially engaged. More...
 
void JustSummoned (Creature *cr) override
 
void UpdateAI (uint32 diff) override
 Use to start attacking a target. Called just before JustEngagedWith() More...
 
- Public Member Functions inherited from BossAI
 BossAI (Creature *creature, uint32 bossId)
 
 ~BossAI () override
 
bool CanRespawn () override
 
void DamageTaken (Unit *attacker, uint32 &damage, DamageEffectType damagetype, SpellSchoolMask damageSchoolMask) override
 Called at any Damage from any attacker (before damage apply) More...
 
void JustSummoned (Creature *summon) override
 
void SummonedCreatureDespawn (Creature *summon) override
 
void SummonedCreatureDespawnAll () override
 
void UpdateAI (uint32 diff) override
 Use to start attacking a target. Called just before JustEngagedWith() More...
 
void ScheduleHealthCheckEvent (uint32 healthPct, std::function< void()> exec)
 Executes a function once the creature reaches the defined health point percent. More...
 
void ScheduleHealthCheckEvent (std::initializer_list< uint8 > healthPct, std::function< void()> exec)
 
virtual void ExecuteEvent (uint32)
 
virtual void ScheduleTasks ()
 
void Reset () override
 
void JustEngagedWith (Unit *) override
 Called for reaction when initially engaged. More...
 
void EnterEvadeMode (EvadeReason why=EVADE_REASON_OTHER) override
 
void JustDied (Unit *) override
 
void JustReachedHome () override
 
- Public Member Functions inherited from ScriptedAI
 ScriptedAI (Creature *creature)
 
 ~ScriptedAI () override
 
void AttackStartNoMove (Unit *target)
 
void DamageTaken (Unit *, uint32 &, DamageEffectType, SpellSchoolMask) override
 Called at any Damage from any attacker (before damage apply) 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
 
- 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)
 
 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

EventMap events
 
SummonList summons
 
InstanceScriptpInstance
 
bool _justSpawned
 
- Public Attributes inherited from BossAI
float callForHelpRange
 
InstanceScript *const instance
 
- Public Attributes inherited from ScriptedAI
Creatureme
 

Additional Inherited Members

- Public Types inherited from ScriptedAI
enum class  Axis {
  AXIS_X ,
  AXIS_Y
}
 
- Public Types inherited from CreatureAI
enum  EvadeReason {
  EVADE_REASON_NO_HOSTILES ,
  EVADE_REASON_BOUNDARY ,
  EVADE_REASON_SEQUENCE_BREAK ,
  EVADE_REASON_NO_PATH ,
  EVADE_REASON_OTHER
}
 
- Static Public Member Functions inherited from CreatureAI
static bool IsInBounds (CreatureBoundary const &boundary, Position const *who)
 
- Static Public Member Functions inherited from UnitAI
static void FillAISpellInfo ()
 
- Static Public Attributes inherited from UnitAI
static AISpellInfoTypeAISpellInfo
 
- Protected Member Functions inherited from BossAI
void _Reset ()
 
void _JustEngagedWith ()
 
void _JustDied ()
 
void _JustReachedHome ()
 
void _EnterEvadeMode (EvadeReason why=EVADE_REASON_OTHER)
 
void TeleportCheaters ()
 
- Protected Member Functions inherited from CreatureAI
bool UpdateVictim ()
 
bool UpdateVictimWithGaze ()
 
void SetGazeOn (Unit *target)
 
CreatureDoSummon (uint32 entry, Position const &pos, uint32 despawnTime=30000, TempSummonType summonType=TEMPSUMMON_CORPSE_TIMED_DESPAWN)
 
CreatureDoSummon (uint32 entry, WorldObject *obj, float radius=5.0f, uint32 despawnTime=30000, TempSummonType summonType=TEMPSUMMON_CORPSE_TIMED_DESPAWN)
 
CreatureDoSummonFlyer (uint32 entry, WorldObject *obj, float flightZ, float radius=5.0f, uint32 despawnTime=30000, TempSummonType summonType=TEMPSUMMON_CORPSE_TIMED_DESPAWN)
 
virtual void MoveInLineOfSight (Unit *)
 
bool _EnterEvadeMode (EvadeReason why=EVADE_REASON_OTHER)
 
- Protected Attributes inherited from BossAI
SummonList summons
 
- Protected Attributes inherited from CreatureAI
Creature *const me
 
EventMap events
 
TaskScheduler scheduler
 
CreatureBoundary const * _boundary
 
bool _negateBoundary
 
- Protected Attributes inherited from UnitAI
Unit *const me
 

Detailed Description

Constructor & Destructor Documentation

◆ boss_kelthuzadAI()

boss_kelthuzad::boss_kelthuzadAI::boss_kelthuzadAI ( Creature c)
inlineexplicit
148 {
150 _justSpawned = true;
151 }
@ BOSS_KELTHUZAD
Definition: naxxramas.h:43
Creature * me
Definition: ScriptedCreature.h:280
Definition: ScriptedCreature.h:457
InstanceScript * GetInstanceScript() const
Definition: Object.cpp:1192
SummonList summons
Definition: boss_kelthuzad.cpp:154
bool _justSpawned
Definition: boss_kelthuzad.cpp:156
InstanceScript * pInstance
Definition: boss_kelthuzad.cpp:155

References _justSpawned, WorldObject::GetInstanceScript(), ScriptedAI::me, and pInstance.

Member Function Documentation

◆ EnterEvadeMode()

void boss_kelthuzad::boss_kelthuzadAI::EnterEvadeMode ( EvadeReason  why)
inlineoverridevirtual

Reimplemented from BossAI.

259 {
262 }
@ UNIT_FLAG_NON_ATTACKABLE
Definition: UnitDefines.h:230
@ UNIT_FLAG_DISABLE_MOVE
Definition: UnitDefines.h:231
virtual void EnterEvadeMode(EvadeReason why=EVADE_REASON_OTHER)
Definition: CreatureAI.cpp:197
void RemoveUnitFlag(UnitFlags flags)
UnitFlags available in UnitDefines.h.
Definition: Unit.h:684

References CreatureAI::EnterEvadeMode(), ScriptedAI::me, Unit::RemoveUnitFlag(), UNIT_FLAG_DISABLE_MOVE, and UNIT_FLAG_NON_ATTACKABLE.

◆ JustDied()

void boss_kelthuzad::boss_kelthuzadAI::JustDied ( Unit killer)
inlineoverridevirtual

Reimplemented from BossAI.

277 {
278 BossAI::JustDied(killer);
281 {
282 guardian->AI()->Talk(EMOTE_GUARDIAN_FLEE);
283 }
285 if (pInstance)
286 {
288 {
289 go->SetGoState(GO_STATE_ACTIVE);
290 }
291 }
292 }
@ GO_STATE_ACTIVE
Definition: GameObjectData.h:690
@ DATA_KELTHUZAD_GATE
Definition: naxxramas.h:75
@ ACTION_GUARDIANS_OFF
Definition: boss_kelthuzad.cpp:75
@ NPC_GUARDIAN_OF_ICECROWN
Definition: boss_kelthuzad.cpp:70
@ SAY_DEATH
Definition: boss_kelthuzad.cpp:31
@ EMOTE_GUARDIAN_FLEE
Definition: boss_kelthuzad.cpp:39
Talk
Definition: hyjal.cpp:82
Creature * GetCreatureWithEntry(uint32 entry) const
Definition: ScriptedCreature.cpp:132
void DoAction(int32 info, uint16 max=0)
Definition: ScriptedCreature.h:102
void JustDied(Unit *) override
Definition: ScriptedCreature.h:489
Definition: Creature.h:46
Definition: GameObject.h:121
Map * GetMap() const
Definition: Object.h:531
ObjectGuid GetGuidData(uint32 type) const override
Definition: InstanceScript.cpp:95
GameObject * GetGameObject(ObjectGuid const guid)
Definition: Map.cpp:3319

References ACTION_GUARDIANS_OFF, DATA_KELTHUZAD_GATE, SummonList::DoAction(), EMOTE_GUARDIAN_FLEE, SummonList::GetCreatureWithEntry(), Map::GetGameObject(), InstanceScript::GetGuidData(), WorldObject::GetMap(), GO_STATE_ACTIVE, BossAI::JustDied(), ScriptedAI::me, NPC_GUARDIAN_OF_ICECROWN, pInstance, SAY_DEATH, and summons.

◆ JustEngagedWith()

void boss_kelthuzad::boss_kelthuzadAI::JustEngagedWith ( Unit )
inlineoverridevirtual

Called for reaction when initially engaged.

Reimplemented from BossAI.

301 {
306 me->SetTarget();
309 events.ScheduleEvent(EVENT_SPAWN_POOL, 5s);
310 events.ScheduleEvent(EVENT_SUMMON_SOLDIER, 6400ms);
312 events.ScheduleEvent(EVENT_SUMMON_SOUL_WEAVER, 12s);
313 events.ScheduleEvent(EVENT_PHASE_2, 228s);
314 events.ScheduleEvent(EVENT_ENRAGE, 15min);
315 if (pInstance)
316 {
318 {
319 events.ScheduleEvent(EVENT_FLOOR_CHANGE, 15s);
320 go->SetGoState(GO_STATE_ACTIVE);
321 }
322 }
324 {
325 go->SetGoState(GO_STATE_READY);
326 }
327 }
@ REACT_PASSIVE
Definition: Unit.h:548
@ GO_STATE_READY
Definition: GameObjectData.h:691
@ DATA_KELTHUZAD_FLOOR
Definition: naxxramas.h:67
@ SAY_SUMMON_MINIONS
Definition: boss_kelthuzad.cpp:36
@ EVENT_SPAWN_POOL
Definition: boss_kelthuzad.cpp:96
@ EVENT_ENRAGE
Definition: boss_kelthuzad.cpp:95
@ EVENT_SUMMON_SOUL_WEAVER
Definition: boss_kelthuzad.cpp:83
@ EVENT_FLOOR_CHANGE
Definition: boss_kelthuzad.cpp:94
@ EVENT_SUMMON_SOLDIER
Definition: boss_kelthuzad.cpp:81
@ EVENT_PHASE_2
Definition: boss_kelthuzad.cpp:84
@ EVENT_SUMMON_UNSTOPPABLE_ABOMINATION
Definition: boss_kelthuzad.cpp:82
@ SPELL_KELTHUZAD_CHANNEL
Definition: boss_kelthuzad.cpp:57
events
Definition: boss_sartura.cpp:43
void JustEngagedWith(Unit *) override
Called for reaction when initially engaged.
Definition: ScriptedCreature.h:487
void SetTarget(ObjectGuid guid=ObjectGuid::Empty) override
Definition: Creature.cpp:3532
void SetReactState(ReactStates state)
A creature can have 3 ReactStates : Agressive, Passive, Neutral.
Definition: Creature.h:97
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:1168
void RemoveAllAttackers()
Remove all units in m_attackers list and send them AttackStop()
Definition: Unit.cpp:10446
void SetUnitFlag(UnitFlags flags)
UnitFlags available in UnitDefines.h.
Definition: Unit.h:683

References Unit::CastSpell(), DATA_KELTHUZAD_FLOOR, DATA_KELTHUZAD_GATE, EVENT_ENRAGE, EVENT_FLOOR_CHANGE, EVENT_PHASE_2, EVENT_SPAWN_POOL, EVENT_SUMMON_SOLDIER, EVENT_SUMMON_SOUL_WEAVER, EVENT_SUMMON_UNSTOPPABLE_ABOMINATION, Map::GetGameObject(), InstanceScript::GetGuidData(), WorldObject::GetMap(), GO_STATE_ACTIVE, GO_STATE_READY, BossAI::JustEngagedWith(), ScriptedAI::me, pInstance, REACT_PASSIVE, Unit::RemoveAllAttackers(), SAY_SUMMON_MINIONS, Creature::SetReactState(), Creature::SetTarget(), Unit::SetUnitFlag(), SPELL_KELTHUZAD_CHANNEL, UNIT_FLAG_DISABLE_MOVE, and UNIT_FLAG_NON_ATTACKABLE.

◆ JustSummoned()

void boss_kelthuzad::boss_kelthuzadAI::JustSummoned ( Creature cr)
inlineoverridevirtual

Reimplemented from BossAI.

330 {
331 summons.Summon(cr);
332 if (!cr->IsInCombat())
333 {
334 cr->GetMotionMaster()->MoveRandom(5);
335 }
337 {
339 }
340 }
void Summon(Creature const *summon)
Definition: ScriptedCreature.h:88
void SetHomePosition(float x, float y, float z, float o)
Definition: Creature.h:337
uint32 GetEntry() const
Definition: Object.h:112
float GetPositionZ() const
Definition: Position.h:119
float GetOrientation() const
Definition: Position.h:120
float GetPositionX() const
Definition: Position.h:117
float GetPositionY() const
Definition: Position.h:118
MotionMaster * GetMotionMaster()
Definition: Unit.h:1601
bool IsInCombat() const
Definition: Unit.h:820
void MoveRandom(float wanderDistance=0.0f)
Enable a random movement in desired range around the unit. Doesn't work with UNIT_FLAG_DISABLE_MOVE.
Definition: MotionMaster.cpp:242

References Object::GetEntry(), Unit::GetMotionMaster(), Position::GetOrientation(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), Unit::IsInCombat(), MotionMaster::MoveRandom(), NPC_GUARDIAN_OF_ICECROWN, Creature::SetHomePosition(), SummonList::Summon(), and summons.

◆ KilledUnit()

void boss_kelthuzad::boss_kelthuzadAI::KilledUnit ( Unit who)
inlineoverridevirtual

Reimplemented from ScriptedAI.

265 {
266 if (!who->IsPlayer())
267 return;
268
269 Talk(SAY_SLAY);
270 if (pInstance)
271 {
273 }
274 }
@ DATA_IMMORTAL_FAIL
Definition: naxxramas.h:74
@ SAY_SLAY
Definition: boss_kelthuzad.cpp:30
bool IsPlayer() const
Definition: Object.h:197
virtual void SetData(uint32, uint32)
Definition: ZoneScript.h:53

References DATA_IMMORTAL_FAIL, Object::IsPlayer(), pInstance, SAY_SLAY, and ZoneScript::SetData().

◆ MoveInLineOfSight()

void boss_kelthuzad::boss_kelthuzadAI::MoveInLineOfSight ( Unit who)
inlineoverridevirtual

Reimplemented from CreatureAI.

295 {
296 if (!me->IsInCombat() && who->IsPlayer() && who->IsAlive() && me->GetDistance(who) <= 50.0f)
297 AttackStart(who);
298 }
void AttackStart(Unit *) override
Definition: ScriptedCreature.cpp:208
float GetDistance(WorldObject const *obj) const
Definition: Object.cpp:1245
bool IsAlive() const
Definition: Unit.h:1204

References ScriptedAI::AttackStart(), WorldObject::GetDistance(), Unit::IsAlive(), Unit::IsInCombat(), Object::IsPlayer(), and ScriptedAI::me.

◆ NormalizeOrientation()

float boss_kelthuzad::boss_kelthuzadAI::NormalizeOrientation ( float  o)
inline
159 {
160 return std::fmod(o, 2.0f * static_cast<float>(M_PI)); // Only positive values will be passed
161 }

◆ Reset()

void boss_kelthuzad::boss_kelthuzadAI::Reset ( )
inlineoverridevirtual

Reimplemented from BossAI.

221 {
223 events.Reset();
228 {
229 go->SetPhaseMask(1, true);
230 go->SetGoState(GO_STATE_READY);
231 }
233 {
234 if (!_justSpawned) // Don't open the door if we just spawned and are still doing the conversation
235 {
236 go->SetGoState(GO_STATE_ACTIVE);
237 }
238 }
239 _justSpawned = false;
241 {
242 go->SetGoState(GO_STATE_READY);
243 }
245 {
246 go->SetGoState(GO_STATE_READY);
247 }
249 {
250 go->SetGoState(GO_STATE_READY);
251 }
253 {
254 go->SetGoState(GO_STATE_READY);
255 }
256 }
@ REACT_AGGRESSIVE
Definition: Unit.h:550
@ DATA_KELTHUZAD_PORTAL_3
Definition: naxxramas.h:79
@ DATA_KELTHUZAD_PORTAL_2
Definition: naxxramas.h:78
@ DATA_KELTHUZAD_PORTAL_1
Definition: naxxramas.h:77
@ DATA_KELTHUZAD_PORTAL_4
Definition: naxxramas.h:80
void DespawnAll(uint32 delay=0)
Definition: ScriptedCreature.cpp:71
void Reset() override
Definition: ScriptedCreature.h:486

References _justSpawned, DATA_KELTHUZAD_FLOOR, DATA_KELTHUZAD_GATE, DATA_KELTHUZAD_PORTAL_1, DATA_KELTHUZAD_PORTAL_2, DATA_KELTHUZAD_PORTAL_3, DATA_KELTHUZAD_PORTAL_4, SummonList::DespawnAll(), Map::GetGameObject(), InstanceScript::GetGuidData(), WorldObject::GetMap(), GO_STATE_ACTIVE, GO_STATE_READY, ScriptedAI::me, pInstance, REACT_AGGRESSIVE, Unit::RemoveUnitFlag(), BossAI::Reset(), Creature::SetReactState(), summons, UNIT_FLAG_DISABLE_MOVE, and UNIT_FLAG_NON_ATTACKABLE.

◆ SpawnHelpers()

void boss_kelthuzad::boss_kelthuzadAI::SpawnHelpers ( )
inline
164 {
165 // spawn at gate
166 me->SummonCreature(NPC_UNSTOPPABLE_ABOMINATION, 3656.19f, -5093.78f, 143.33f, 6.08, TEMPSUMMON_CORPSE_TIMED_DESPAWN, 2000);// abo center
167 me->SummonCreature(NPC_UNSTOPPABLE_ABOMINATION, 3657.94f, -5087.68f, 143.60f, 6.08, TEMPSUMMON_CORPSE_TIMED_DESPAWN, 2000);// abo left
168 me->SummonCreature(NPC_UNSTOPPABLE_ABOMINATION, 3655.48f, -5100.05f, 143.53f, 6.08, TEMPSUMMON_CORPSE_TIMED_DESPAWN, 2000);// abo right
169 me->SummonCreature(NPC_SOUL_WEAVER, 3651.73f, -5092.62f, 143.38f, 6.05, TEMPSUMMON_CORPSE_TIMED_DESPAWN, 2000); // soul behind
170 me->SummonCreature(NPC_SOLDIER_OF_THE_FROZEN_WASTES, 3660.17f, -5092.45f, 143.37f, 6.07, TEMPSUMMON_CORPSE_TIMED_DESPAWN, 2000); // ske front left
171 me->SummonCreature(NPC_SOLDIER_OF_THE_FROZEN_WASTES, 3659.39f, -5096.21f, 143.29f, 6.07, TEMPSUMMON_CORPSE_TIMED_DESPAWN, 2000); // ske front right
172 me->SummonCreature(NPC_SOLDIER_OF_THE_FROZEN_WASTES, 3659.29f, -5090.19f, 143.48f, 6.07, TEMPSUMMON_CORPSE_TIMED_DESPAWN, 2000); // ske left left
173 me->SummonCreature(NPC_SOLDIER_OF_THE_FROZEN_WASTES, 3657.43f, -5098.03f, 143.41f, 6.07, TEMPSUMMON_CORPSE_TIMED_DESPAWN, 2000); // ske right right
174 me->SummonCreature(NPC_SOLDIER_OF_THE_FROZEN_WASTES, 3654.36f, -5090.51f, 143.48f, 6.09, TEMPSUMMON_CORPSE_TIMED_DESPAWN, 2000); // ske behind left
175 me->SummonCreature(NPC_SOLDIER_OF_THE_FROZEN_WASTES, 3653.35f, -5095.91f, 143.41f, 6.09, TEMPSUMMON_CORPSE_TIMED_DESPAWN, 2000); // ske right right
176
177 // 6 rooms, 8 soldiers, 3 abominations and 1 weaver in each room | middle positions in table starts from 6
178 for (uint8 i = 6; i < 12; ++i)
179 {
180 for (uint8 j = 0; j < 8; ++j)
181 {
182 float angle = M_PI * 2 / 8 * j;
183 me->SummonCreature(NPC_SOLDIER_OF_THE_FROZEN_WASTES, SummonGroups[i].GetPositionX() + 6 * cos(angle), SummonGroups[i].GetPositionY() + 6 * std::sin(angle), SummonGroups[i].GetPositionZ(), SummonGroups[i].GetOrientation(), TEMPSUMMON_CORPSE_TIMED_DESPAWN, 20000);
184 }
185 }
186 for (uint8 i = 6; i < 12; ++i)
187 {
188 for (uint8 j = 1; j < 4; ++j)
189 {
190 float dist = j == 2 ? 0.0f : 8.0f; // second in middle
191 float angle = SummonGroups[i].GetOrientation() + M_PI * 2 / 4 * j;
192 me->SummonCreature(NPC_UNSTOPPABLE_ABOMINATION, SummonGroups[i].GetPositionX() + dist * cos(angle), SummonGroups[i].GetPositionY() + dist * std::sin(angle), SummonGroups[i].GetPositionZ(), SummonGroups[i].GetOrientation(), TEMPSUMMON_CORPSE_TIMED_DESPAWN, 20000);
193 }
194 }
195 for (uint8 i = 6; i < 12; ++i)
196 {
197 for (uint8 j = 0; j < 1; ++j)
198 {
199 float angle = SummonGroups[i].GetOrientation() + M_PI;
200 me->SummonCreature(NPC_SOUL_WEAVER, SummonGroups[i].GetPositionX() + 6 * cos(angle), SummonGroups[i].GetPositionY() + 6 * std::sin(angle), SummonGroups[i].GetPositionZ() + 0.5f, SummonGroups[i].GetOrientation(), TEMPSUMMON_CORPSE_TIMED_DESPAWN, 20000);
201 }
202 }
203 }
std::uint8_t uint8
Definition: Define.h:109
@ TEMPSUMMON_CORPSE_TIMED_DESPAWN
Definition: Object.h:50
@ NPC_SOLDIER_OF_THE_FROZEN_WASTES
Definition: boss_kelthuzad.cpp:67
@ NPC_SOUL_WEAVER
Definition: boss_kelthuzad.cpp:69
@ NPC_UNSTOPPABLE_ABOMINATION
Definition: boss_kelthuzad.cpp:68
SummonGroups
Definition: boss_jedoga_shadowseeker.cpp:93
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:2355

References Position::GetOrientation(), ScriptedAI::me, NPC_SOLDIER_OF_THE_FROZEN_WASTES, NPC_SOUL_WEAVER, NPC_UNSTOPPABLE_ABOMINATION, WorldObject::SummonCreature(), and TEMPSUMMON_CORPSE_TIMED_DESPAWN.

Referenced by UpdateAI().

◆ SummonHelper()

void boss_kelthuzad::boss_kelthuzadAI::SummonHelper ( uint32  entry,
uint32  count 
)
inline
206 {
207 for (uint8 i = 0; i < count; ++i)
208 {
210 {
211 if (Unit* target = SelectTargetFromPlayerList(100.0f))
212 {
213 cr->AI()->DoAction(ACTION_CALL_HELP_OFF);
214 cr->AI()->AttackStart(target);
215 }
216 }
217 }
218 }
uint32 urand(uint32 min, uint32 max)
Definition: Random.cpp:44
@ ACTION_CALL_HELP_OFF
Definition: boss_kelthuzad.cpp:73
const Position SpawnPool[7]
Definition: boss_kelthuzad.cpp:123
Player * SelectTargetFromPlayerList(float maxdist, uint32 excludeAura=0, bool mustBeInLOS=false) const
Definition: ScriptedCreature.cpp:546
Definition: Unit.h:630

References ACTION_CALL_HELP_OFF, ScriptedAI::me, ScriptedAI::SelectTargetFromPlayerList(), SpawnPool, WorldObject::SummonCreature(), TEMPSUMMON_CORPSE_TIMED_DESPAWN, and urand().

Referenced by UpdateAI().

◆ UpdateAI()

void boss_kelthuzad::boss_kelthuzadAI::UpdateAI ( uint32  )
inlineoverridevirtual

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

Reimplemented from BossAI.

343 {
344 if (!UpdateVictim())
345 return;
346
347 events.Update(diff);
349 {
351 return;
352 }
353
354 switch (events.ExecuteEvent())
355 {
357 if (pInstance)
358 {
360 {
361 events.ScheduleEvent(EVENT_FLOOR_CHANGE, 15s);
362 go->SetGoState(GO_STATE_READY);
363 go->SetPhaseMask(2, true);
364 }
365 }
366 break;
367 case EVENT_SPAWN_POOL:
368 SpawnHelpers();
369 break;
372 events.Repeat(3100ms);
373 break;
376 events.Repeat(18s + 500ms);
377 break;
380 events.Repeat(30s);
381 break;
382 case EVENT_PHASE_2:
385 events.Reset();
391 events.ScheduleEvent(EVENT_FROST_BOLT_SINGLE, 2s, 10s);
392 events.ScheduleEvent(EVENT_FROST_BOLT_MULTI, 15s, 30s);
393 events.ScheduleEvent(EVENT_DETONATE_MANA, 30s);
394 events.ScheduleEvent(EVENT_PHASE_3, 1s);
395 events.ScheduleEvent(EVENT_SHADOW_FISSURE, 25s);
396 events.ScheduleEvent(EVENT_FROST_BLAST, 45s);
397 if (Is25ManRaid())
398 {
399 events.ScheduleEvent(EVENT_CHAINS, 90s);
400 }
401 break;
402 case EVENT_ENRAGE:
403 me->CastSpell(me, SPELL_BERSERK, true);
404 break;
407 events.Repeat(2s, 10s);
408 break;
411 events.Repeat(15s, 30s);
412 break;
414 if (Unit* target = SelectTarget(SelectTargetMethod::Random, 0, 100.0f, true))
415 {
416 me->CastSpell(target, SPELL_SHADOW_FISURE, false);
417 }
418 events.Repeat(25s);
419 break;
421 if (Unit* target = SelectTarget(SelectTargetMethod::Random, RAID_MODE(1, 0), 0, true))
422 {
423 me->CastSpell(target, SPELL_FROST_BLAST, false);
424 }
426 events.Repeat(45s);
427 break;
428 case EVENT_CHAINS:
429 for (uint8 i = 0; i < 3; ++i)
430 {
431 if (Unit* target = SelectTarget(SelectTargetMethod::Random, 1, 200, true, true, -SPELL_CHAINS_OF_KELTHUZAD))
432 {
433 me->CastSpell(target, SPELL_CHAINS_OF_KELTHUZAD, true);
434 }
435 }
437 events.Repeat(90s);
438 break;
440 {
441 std::vector<Unit*> unitList;
443 for (auto itr : threatList)
444 {
445 if (itr->getTarget()->IsPlayer()
446 && itr->getTarget()->getPowerType() == POWER_MANA
447 && itr->getTarget()->GetPower(POWER_MANA))
448 {
449 unitList.push_back(itr->getTarget());
450 }
451 }
452 if (!unitList.empty())
453 {
454 auto itr = unitList.begin();
455 advance(itr, urand(0, unitList.size() - 1));
456 me->CastSpell(*itr, SPELL_DETONATE_MANA, false);
458 }
459 events.Repeat(30s);
460 break;
461 }
462 case EVENT_PHASE_3:
463 if (me->HealthBelowPct(45))
464 {
466 events.DelayEvents(5500ms);
467 events.ScheduleEvent(EVENT_P3_LICH_KING_SAY, 5s);
469 {
470 go->SetGoState(GO_STATE_ACTIVE);
471 }
473 {
474 go->SetGoState(GO_STATE_ACTIVE);
475 }
477 {
478 go->SetGoState(GO_STATE_ACTIVE);
479 }
481 {
482 go->SetGoState(GO_STATE_ACTIVE);
483 }
484 break;
485 }
486 events.Repeat(1s);
487 break;
489 if (pInstance)
490 {
492 {
493 cr->AI()->Talk(SAY_ANSWER_REQUEST);
494 }
495 }
496 for (uint8 i = 0 ; i < RAID_MODE(2, 4); ++i)
497 {
498 events.ScheduleEvent(EVENT_SUMMON_GUARDIAN_OF_ICECROWN, 10000 + (i * 5000));
499 }
500 break;
503 {
504 cr->AI()->Talk(EMOTE_GUARDIAN_APPEAR);
505 cr->AI()->AttackStart(me->GetVictim());
506 }
507 break;
508 }
511 }
static First const & RAND(First const &first, Second const &second, Rest const &... rest)
Definition: CreatureAIImpl.h:30
@ UNIT_STATE_CASTING
Definition: UnitDefines.h:164
@ DATA_LICH_KING_BOSS
Definition: naxxramas.h:66
@ ACTION_SECOND_PHASE
Definition: boss_kelthuzad.cpp:74
@ SAY_FROST_BLAST
Definition: boss_kelthuzad.cpp:33
@ SAY_CHAIN
Definition: boss_kelthuzad.cpp:32
@ SAY_AGGRO
Definition: boss_kelthuzad.cpp:29
@ SAY_SPECIAL
Definition: boss_kelthuzad.cpp:37
@ EMOTE_GUARDIAN_APPEAR
Definition: boss_kelthuzad.cpp:40
@ SAY_ANSWER_REQUEST
Definition: boss_kelthuzad.cpp:27
@ EMOTE_PHASE_TWO
Definition: boss_kelthuzad.cpp:35
@ SAY_REQUEST_AID
Definition: boss_kelthuzad.cpp:34
@ EVENT_CHAINS
Definition: boss_kelthuzad.cpp:92
@ EVENT_FROST_BOLT_MULTI
Definition: boss_kelthuzad.cpp:86
@ EVENT_SUMMON_GUARDIAN_OF_ICECROWN
Definition: boss_kelthuzad.cpp:93
@ EVENT_P3_LICH_KING_SAY
Definition: boss_kelthuzad.cpp:89
@ EVENT_FROST_BLAST
Definition: boss_kelthuzad.cpp:91
@ EVENT_DETONATE_MANA
Definition: boss_kelthuzad.cpp:87
@ EVENT_FROST_BOLT_SINGLE
Definition: boss_kelthuzad.cpp:85
@ EVENT_SHADOW_FISSURE
Definition: boss_kelthuzad.cpp:90
@ EVENT_PHASE_3
Definition: boss_kelthuzad.cpp:88
@ SPELL_FROST_BOLT_SINGLE_10
Definition: boss_kelthuzad.cpp:46
@ SPELL_SHADOW_FISURE
Definition: boss_kelthuzad.cpp:50
@ SPELL_CHAINS_OF_KELTHUZAD
Definition: boss_kelthuzad.cpp:55
@ SPELL_FROST_BLAST
Definition: boss_kelthuzad.cpp:54
@ SPELL_DETONATE_MANA
Definition: boss_kelthuzad.cpp:52
@ SPELL_FROST_BOLT_SINGLE_25
Definition: boss_kelthuzad.cpp:47
@ SPELL_FROST_BOLT_MULTI_10
Definition: boss_kelthuzad.cpp:48
@ SPELL_BERSERK
Definition: boss_kelthuzad.cpp:56
@ SPELL_FROST_BOLT_MULTI_25
Definition: boss_kelthuzad.cpp:49
@ POWER_MANA
Definition: SharedDefines.h:269
Creature * GetCreature(WorldObject const &u, ObjectGuid const guid)
Definition: ObjectAccessor.cpp:213
void DoMeleeAttackIfReady()
Definition: UnitAI.cpp:39
Unit * SelectTarget(SelectTargetMethod targetType, uint32 position=0, float dist=0.0f, bool playerOnly=false, bool withTank=true, int32 aura=0)
Definition: UnitAI.cpp:110
bool UpdateVictim()
Definition: CreatureAI.cpp:269
const T & RAID_MODE(const T &normal10, const T &normal25) const
Definition: ScriptedCreature.h:404
bool Is25ManRaid() const
Definition: ScriptedCreature.h:385
std::list< HostileReference * > StorageType
Definition: ThreatMgr.h:148
ThreatContainer::StorageType const & GetThreatList() const
Definition: ThreatMgr.h:274
void RemoveAura(AuraApplicationMap::iterator &i, AuraRemoveMode mode=AURA_REMOVE_BY_DEFAULT)
Definition: Unit.cpp:4758
bool HasUnitFlag(UnitFlags flags) const
Definition: Unit.h:682
bool HasAura(uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint8 reqEffMask=0) const
Definition: Unit.cpp:5669
bool HealthBelowPct(int32 pct) const
Definition: Unit.h:873
Unit * GetVictim() const
Definition: Unit.h:789
bool HasUnitState(const uint32 f) const
Definition: Unit.h:673
ThreatMgr & GetThreatMgr()
Definition: Unit.h:839
void MoveChase(Unit *target, std::optional< ChaseRange > dist={}, std::optional< ChaseAngle > angle={})
Force the unit to chase this target. Doesn't work with UNIT_FLAG_DISABLE_MOVE.
Definition: MotionMaster.cpp:313
void SummonHelper(uint32 entry, uint32 count)
Definition: boss_kelthuzad.cpp:205
void SpawnHelpers()
Definition: boss_kelthuzad.cpp:163

References ACTION_SECOND_PHASE, Unit::CastSpell(), DATA_KELTHUZAD_FLOOR, DATA_KELTHUZAD_PORTAL_1, DATA_KELTHUZAD_PORTAL_2, DATA_KELTHUZAD_PORTAL_3, DATA_KELTHUZAD_PORTAL_4, DATA_LICH_KING_BOSS, SummonList::DoAction(), UnitAI::DoMeleeAttackIfReady(), EMOTE_GUARDIAN_APPEAR, EMOTE_PHASE_TWO, EVENT_CHAINS, EVENT_DETONATE_MANA, EVENT_ENRAGE, EVENT_FLOOR_CHANGE, EVENT_FROST_BLAST, EVENT_FROST_BOLT_MULTI, EVENT_FROST_BOLT_SINGLE, EVENT_P3_LICH_KING_SAY, EVENT_PHASE_2, EVENT_PHASE_3, EVENT_SHADOW_FISSURE, EVENT_SPAWN_POOL, EVENT_SUMMON_GUARDIAN_OF_ICECROWN, EVENT_SUMMON_SOLDIER, EVENT_SUMMON_SOUL_WEAVER, EVENT_SUMMON_UNSTOPPABLE_ABOMINATION, ObjectAccessor::GetCreature(), Map::GetGameObject(), InstanceScript::GetGuidData(), WorldObject::GetMap(), Unit::GetMotionMaster(), ThreatMgr::GetThreatList(), Unit::GetThreatMgr(), Unit::GetVictim(), GO_STATE_ACTIVE, GO_STATE_READY, Unit::HasAura(), Unit::HasUnitFlag(), Unit::HasUnitState(), Unit::HealthBelowPct(), ScriptedAI::Is25ManRaid(), ScriptedAI::me, MotionMaster::MoveChase(), NPC_GUARDIAN_OF_ICECROWN, NPC_SOLDIER_OF_THE_FROZEN_WASTES, NPC_SOUL_WEAVER, NPC_UNSTOPPABLE_ABOMINATION, pInstance, POWER_MANA, ScriptedAI::RAID_MODE(), RAND(), REACT_AGGRESSIVE, Unit::RemoveAura(), Unit::RemoveUnitFlag(), SAY_AGGRO, SAY_ANSWER_REQUEST, SAY_CHAIN, SAY_FROST_BLAST, SAY_REQUEST_AID, SAY_SPECIAL, UnitAI::SelectTarget(), Creature::SetReactState(), SpawnHelpers(), SpawnPool, SPELL_BERSERK, SPELL_CHAINS_OF_KELTHUZAD, SPELL_DETONATE_MANA, SPELL_FROST_BLAST, SPELL_FROST_BOLT_MULTI_10, SPELL_FROST_BOLT_MULTI_25, SPELL_FROST_BOLT_SINGLE_10, SPELL_FROST_BOLT_SINGLE_25, SPELL_KELTHUZAD_CHANNEL, SPELL_SHADOW_FISURE, WorldObject::SummonCreature(), SummonHelper(), summons, UNIT_FLAG_DISABLE_MOVE, UNIT_FLAG_NON_ATTACKABLE, UNIT_STATE_CASTING, CreatureAI::UpdateVictim(), and urand().

Member Data Documentation

◆ _justSpawned

bool boss_kelthuzad::boss_kelthuzadAI::_justSpawned

Referenced by boss_kelthuzadAI(), and Reset().

◆ events

EventMap boss_kelthuzad::boss_kelthuzadAI::events

◆ pInstance

InstanceScript* boss_kelthuzad::boss_kelthuzadAI::pInstance

◆ summons

SummonList boss_kelthuzad::boss_kelthuzadAI::summons