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

Public Member Functions

 boss_magtheridonAI (Creature *creature)
 
void Reset () override
 
void KilledUnit (Unit *) override
 
void JustDied (Unit *) override
 
void MoveInLineOfSight (Unit *) override
 
void JustEngagedWith (Unit *) override
 Called for reaction when initially engaged.
 
void UpdateAI (uint32 diff) override
 
- 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
 
void JustSummoned (Creature *summon) override
 
void SummonedCreatureDespawn (Creature *summon) override
 
void SummonedCreatureDespawnAll () override
 
void UpdateAI (uint32 diff) override
 
void ScheduleHealthCheckEvent (uint32 healthPct, std::function< void()> exec)
 Executes a function once the creature reaches the defined health point percent.
 
virtual void ExecuteEvent (uint32)
 
virtual void ScheduleTasks ()
 
void Reset () override
 
void JustEngagedWith (Unit *) override
 Called for reaction when initially engaged.
 
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
 
void UpdateAI (uint32 diff) override
 
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.
 
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 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 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)
 
void SetCombatMovement (bool allowMovement)
 
bool IsCombatMovementAllowed () const
 
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.
 
void Talk (uint8 id, Milliseconds delay)
 
 CreatureAI (Creature *creature)
 
 ~CreatureAI () override
 
void MoveCircleChecks ()
 
void MoveBackwardsChecks ()
 
void MoveInLineOfSight_Safe (Unit *who)
 == Reactions At =================================
 
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.
 
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 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
 
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 ==================
 
virtual void PassengerBoarded (Unit *, int8, bool)
 == Fields =======================================
 
virtual bool BeforeSpellClick (Unit *)
 
virtual void OnSpellClick (Unit *, bool &)
 
virtual bool CanSeeAlways (WorldObject const *)
 
virtual bool CanBeSeen (Player const *)
 
virtual bool CanAlwaysBeDetectable (WorldObject const *)
 
virtual void PetStopAttack ()
 
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 *)
 
- 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
 
virtual void InitializeAI ()
 
virtual void Reset ()
 
virtual void OnCharmed (bool apply)=0
 
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)
 
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 (NOTE: Creature engage logic should NOT be here, but in JustEngagedWith, which happens once threat is established!)
 
virtual void JustExitedCombat ()
 Called when the unit leaves combat.
 
virtual void DamageDealt (Unit *, uint32 &, DamageEffectType)
 
virtual void DamageTaken (Unit *, uint32 &, DamageEffectType, SpellSchoolMask)
 
virtual void HealReceived (Unit *, uint32 &)
 
virtual void HealDone (Unit *, uint32 &)
 
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)
 
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)
 
SpellCastResult DoCastMaxThreat (uint32 spellId, uint32 threatTablePosition=0, float dist=0.0f, bool playerOnly=true, bool triggered=false)
 Cast spell on the max threat target, which may not always be the current victim.
 
float DoGetSpellMaxRange (uint32 spellId, bool positive=false)
 
void DoMeleeAttackIfReady ()
 
bool DoSpellAttackIfReady (uint32 spell)
 
void DoSpellAttackToRandomTargetIfReady (uint32 spell, uint32 threatTablePosition=0, float dist=0.f, bool playerOnly=true)
 
virtual void SummonMovementInform (Creature *, uint32, uint32)
 
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 events2
 
- Public Attributes inherited from BossAI
InstanceScript *const instance
 
- Public Attributes inherited from ScriptedAI
Creatureme
 
bool IsFleeing
 

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 ()
 
bool _ProccessHealthCheckEvent (uint8 healthPct, uint32 damage, std::function< void()> exec) const
 
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
EventMap events
 
SummonList summons
 
TaskScheduler scheduler
 
- Protected Attributes inherited from CreatureAI
Creature *const me
 
EventMap events
 
CreatureBoundary const * _boundary
 
bool _negateBoundary
 
- Protected Attributes inherited from UnitAI
Unit *const me
 

Detailed Description

Constructor & Destructor Documentation

◆ boss_magtheridonAI()

boss_magtheridon::boss_magtheridonAI::boss_magtheridonAI ( Creature creature)
inline
105: BossAI(creature, TYPE_MAGTHERIDON) { }
@ TYPE_MAGTHERIDON
Definition: magtheridons_lair.h:30
Definition: ScriptedCreature.h:456

Member Function Documentation

◆ JustDied()

void boss_magtheridon::boss_magtheridonAI::JustDied ( Unit )
inlineoverridevirtual

Reimplemented from BossAI.

130 {
131 _JustDied();
133 }
Talk
Definition: boss_fathomlord_karathress.cpp:23
@ SAY_DEATH
Definition: boss_magtheridon.cpp:30
void _JustDied()
Definition: ScriptedCreature.cpp:585

References BossAI::_JustDied(), and SAY_DEATH.

◆ JustEngagedWith()

void boss_magtheridon::boss_magtheridonAI::JustEngagedWith ( Unit )
inlineoverridevirtual

Called for reaction when initially engaged.

Reimplemented from BossAI.

138 {
139 events2.Reset();
141 events.ScheduleEvent(EVENT_EMOTE1, 0);
142 events.ScheduleEvent(EVENT_EMOTE2, 60000);
143 events.ScheduleEvent(EVENT_EMOTE3, 120000);
144 events.ScheduleEvent(EVENT_ENTER_COMBAT, 123000);
145 }
events
Definition: boss_sartura.cpp:43
@ EVENT_EMOTE2
Definition: boss_magtheridon.cpp:61
@ EVENT_EMOTE1
Definition: boss_magtheridon.cpp:60
@ EVENT_EMOTE3
Definition: boss_magtheridon.cpp:62
@ EVENT_ENTER_COMBAT
Definition: boss_magtheridon.cpp:63
void Reset()
Definition: EventMap.cpp:21
void _JustEngagedWith()
Definition: ScriptedCreature.cpp:598
EventMap events2
Definition: boss_magtheridon.cpp:107

References BossAI::_JustEngagedWith(), EVENT_EMOTE1, EVENT_EMOTE2, EVENT_EMOTE3, EVENT_ENTER_COMBAT, events2, and EventMap::Reset().

◆ KilledUnit()

void boss_magtheridon::boss_magtheridonAI::KilledUnit ( Unit )
inlineoverridevirtual

Reimplemented from ScriptedAI.

121 {
122 if (events.GetNextEventTime(EVENT_RECENTLY_SPOKEN) == 0)
123 {
124 events.ScheduleEvent(EVENT_RECENTLY_SPOKEN, 5000);
125 Talk(SAY_SLAY);
126 }
127 }
@ SAY_SLAY
Definition: boss_magtheridon.cpp:27
@ EVENT_RECENTLY_SPOKEN
Definition: boss_magtheridon.cpp:64

References EVENT_RECENTLY_SPOKEN, and SAY_SLAY.

◆ MoveInLineOfSight()

void boss_magtheridon::boss_magtheridonAI::MoveInLineOfSight ( Unit )
inlineoverridevirtual

Reimplemented from CreatureAI.

135{ }

◆ Reset()

void boss_magtheridon::boss_magtheridonAI::Reset ( )
inlineoverridevirtual

Reimplemented from BossAI.

110 {
111 events2.Reset();
113 _Reset();
117 me->SetImmuneToPC(true);
118 }
@ REACT_PASSIVE
Definition: Unit.h:1023
@ UNIT_FLAG_NOT_SELECTABLE
Definition: Unit.h:473
@ SPELL_SHADOW_CAGE
Definition: boss_magtheridon.cpp:43
@ EVENT_RANDOM_TAUNT
Definition: boss_magtheridon.cpp:76
void ScheduleEvent(uint32 eventId, uint32 time, uint32 group=0, uint32 phase=0)
Definition: EventMap.cpp:56
Creature * me
Definition: ScriptedCreature.h:282
void _Reset()
Definition: ScriptedCreature.cpp:570
void SetReactState(ReactStates st)
Definition: Creature.h:89
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:1169
void SetUnitFlag(UnitFlags flags)
Definition: Unit.h:1481
void SetImmuneToPC(bool apply, bool keepCombat=false)
Definition: Unit.cpp:13518

References BossAI::_Reset(), Unit::CastSpell(), EVENT_RANDOM_TAUNT, events2, ScriptedAI::me, REACT_PASSIVE, EventMap::Reset(), EventMap::ScheduleEvent(), Unit::SetImmuneToPC(), Creature::SetReactState(), Unit::SetUnitFlag(), SPELL_SHADOW_CAGE, and UNIT_FLAG_NOT_SELECTABLE.

◆ UpdateAI()

void boss_magtheridon::boss_magtheridonAI::UpdateAI ( uint32  diff)
inlineoverridevirtual

Reimplemented from BossAI.

148 {
149 events2.Update(diff);
150 switch (events2.ExecuteEvent())
151 {
155 break;
158 {
161 break;
162 }
164 break;
165 }
166
167 if (!UpdateVictim())
168 return;
169
170 events.Update(diff);
172 return;
173
174 switch (events.ExecuteEvent())
175 {
176 case EVENT_EMOTE1:
178 break;
179 case EVENT_EMOTE2:
181 break;
182 case EVENT_EMOTE3:
184 Talk(SAY_FREE);
185 break;
188 me->SetImmuneToPC(false);
190 events.ScheduleEvent(EVENT_CLEAVE, 9000);
191 events.ScheduleEvent(EVENT_BLAZE, 10000);
192 events.ScheduleEvent(EVENT_QUAKE, 40000);
193 events.ScheduleEvent(EVENT_CHECK_HEALTH, 500);
194 events.ScheduleEvent(EVENT_ENRAGE, 22 * MINUTE * IN_MILLISECONDS);
195
198 break;
199 case EVENT_CLEAVE:
200 me->CastSpell(me->GetVictim(), SPELL_CLEAVE, false);
201 events.ScheduleEvent(EVENT_CLEAVE, 10000);
202 break;
203 case EVENT_BLAST_NOVA:
205 events.ScheduleEvent(EVENT_CANCEL_GRASP_CHECK, 12000);
207 break;
208 case EVENT_BLAZE:
210 events.ScheduleEvent(EVENT_BLAZE, 30000);
211 break;
212 case EVENT_ENRAGE:
213 me->CastSpell(me, SPELL_BERSERK, true);
214 break;
216 events2.Reset();
217 break;
218 case EVENT_QUAKE:
219 me->CastSpell(me, SPELL_QUAKE, false);
220 events.ScheduleEvent(EVENT_BLAST_NOVA, 7000);
221 events.ScheduleEvent(EVENT_QUAKE, 50000);
222 break;
224 if (me->HealthBelowPct(30))
225 {
227 events.SetPhase(1);
228 events.DelayEvents(18000);
229 events.ScheduleEvent(EVENT_COLLAPSE_CEIL, 8000);
230 events.ScheduleEvent(EVENT_COLLAPSE_DAMAGE, 15000);
231 break;
232 }
233 events.ScheduleEvent(EVENT_CHECK_HEALTH, 500);
234 break;
238 break;
242 events.SetPhase(0);
243 events.ScheduleEvent(EVENT_DEBRIS, 20000);
244 break;
245 case EVENT_DEBRIS:
246 if (Unit* target = SelectTarget(SelectTargetMethod::Random))
247 {
248 target->CastSpell(target, SPELL_DEBRIS_VISUAL, true, nullptr, nullptr, me->GetGUID());
250 }
251 events.ScheduleEvent(EVENT_DEBRIS, 20000);
252 break;
253 }
254
255 if (!events.IsInPhase(1))
257 }
constexpr auto IN_MILLISECONDS
Definition: Common.h:62
constexpr auto MINUTE
Definition: Common.h:56
@ GO_STATE_ACTIVE
Definition: GameObjectData.h:690
@ REACT_AGGRESSIVE
Definition: Unit.h:1025
@ UNIT_STATE_CASTING
Definition: Unit.h:340
@ SPELLVALUE_MAX_TARGETS
Definition: SpellDefines.h:118
@ SAY_EMOTE_NEARLY
Definition: boss_magtheridon.cpp:36
@ SAY_EMOTE_FREE
Definition: boss_magtheridon.cpp:37
@ SAY_EMOTE_BEGIN
Definition: boss_magtheridon.cpp:35
@ SAY_BANISH
Definition: boss_magtheridon.cpp:28
@ SAY_FREE
Definition: boss_magtheridon.cpp:26
@ SAY_PHASE3
Definition: boss_magtheridon.cpp:29
@ SAY_TAUNT
Definition: boss_magtheridon.cpp:25
@ SPELL_CLEAVE
Definition: boss_magtheridon.cpp:45
@ SPELL_QUAKE
Definition: boss_magtheridon.cpp:51
@ SPELL_COLLAPSE_DAMAGE
Definition: boss_magtheridon.cpp:52
@ SPELL_SHADOW_GRASP_VISUAL
Definition: boss_magtheridon.cpp:49
@ SPELL_CAMERA_SHAKE
Definition: boss_magtheridon.cpp:53
@ SPELL_DEBRIS_VISUAL
Definition: boss_magtheridon.cpp:54
@ SPELL_BLAST_NOVA
Definition: boss_magtheridon.cpp:44
@ SPELL_BERSERK
Definition: boss_magtheridon.cpp:48
@ SPELL_BLAZE
Definition: boss_magtheridon.cpp:46
@ EVENT_BLAZE
Definition: boss_magtheridon.cpp:68
@ EVENT_ENRAGE
Definition: boss_magtheridon.cpp:69
@ EVENT_CHECK_HEALTH
Definition: boss_magtheridon.cpp:71
@ EVENT_CHECK_GRASP
Definition: boss_magtheridon.cpp:77
@ EVENT_COLLAPSE_DAMAGE
Definition: boss_magtheridon.cpp:73
@ EVENT_DEBRIS
Definition: boss_magtheridon.cpp:74
@ EVENT_CANCEL_GRASP_CHECK
Definition: boss_magtheridon.cpp:78
@ EVENT_BLAST_NOVA
Definition: boss_magtheridon.cpp:67
@ EVENT_COLLAPSE_CEIL
Definition: boss_magtheridon.cpp:72
@ EVENT_CLEAVE
Definition: boss_magtheridon.cpp:66
@ EVENT_QUAKE
Definition: boss_magtheridon.cpp:70
@ DATA_COLLAPSE
Definition: magtheridons_lair.h:35
@ DATA_ACTIVATE_CUBES
Definition: magtheridons_lair.h:34
uint32 ExecuteEvent()
Definition: EventMap.cpp:114
void Update(uint32 time)
Definition: EventMap.h:54
void AddEvent(BasicEvent *Event, uint64 e_time, bool set_addtime=true)
Definition: EventProcessor.h:105
uint64 CalculateTime(uint64 t_offset) const
Definition: EventProcessor.cpp:158
void DoMeleeAttackIfReady()
Definition: UnitAI.cpp:40
Unit * SelectTarget(SelectTargetMethod targetType, uint32 position=0, float dist=0.0f, bool playerOnly=false, bool withTank=true, int32 aura=0)
Definition: UnitAI.cpp:111
bool UpdateVictim()
Definition: CreatureAI.cpp:269
InstanceScript *const instance
Definition: ScriptedCreature.h:461
static ObjectGuid GetGUID(Object const *o)
Definition: Object.h:106
Definition: Unit.h:1290
void InterruptNonMeleeSpells(bool withDelayed, uint32 spellid=0, bool withInstant=true, bool bySelf=false)
Definition: Unit.cpp:4069
SpellCastResult CastCustomSpell(Unit *victim, uint32 spellId, int32 const *bp0, int32 const *bp1, int32 const *bp2, bool triggered, Item *castItem=nullptr, AuraEffect const *triggeredByAura=nullptr, ObjectGuid originalCaster=ObjectGuid::Empty)
Definition: Unit.cpp:1226
uint32 GetAuraCount(uint32 spellId) const
Definition: Unit.cpp:5594
bool HealthBelowPct(int32 pct) const
Definition: Unit.h:1444
EventProcessor m_Events
Definition: Unit.h:2094
void RemoveAurasDueToSpell(uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, uint8 reqEffMask=0, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
Definition: Unit.cpp:4835
Unit * GetVictim() const
Definition: Unit.h:1386
bool HasUnitState(const uint32 f) const
Definition: Unit.h:1398
void resetAttackTimer(WeaponAttackType type=BASE_ATTACK)
Definition: Unit.cpp:661
void RemoveUnitFlag(UnitFlags flags)
Definition: Unit.h:1482
virtual void SetData(uint32, uint32)
Definition: ZoneScript.h:53
Definition: boss_magtheridon.cpp:82

References EventProcessor::AddEvent(), EventProcessor::CalculateTime(), Unit::CastCustomSpell(), Unit::CastSpell(), DATA_ACTIVATE_CUBES, DATA_COLLAPSE, UnitAI::DoMeleeAttackIfReady(), EVENT_BLAST_NOVA, EVENT_BLAZE, EVENT_CANCEL_GRASP_CHECK, EVENT_CHECK_GRASP, EVENT_CHECK_HEALTH, EVENT_CLEAVE, EVENT_COLLAPSE_CEIL, EVENT_COLLAPSE_DAMAGE, EVENT_DEBRIS, EVENT_EMOTE1, EVENT_EMOTE2, EVENT_EMOTE3, EVENT_ENRAGE, EVENT_ENTER_COMBAT, EVENT_QUAKE, EVENT_RANDOM_TAUNT, events2, EventMap::ExecuteEvent(), Unit::GetAuraCount(), Object::GetGUID(), Unit::GetVictim(), GO_STATE_ACTIVE, Unit::HasUnitState(), Unit::HealthBelowPct(), IN_MILLISECONDS, BossAI::instance, Unit::InterruptNonMeleeSpells(), Unit::m_Events, ScriptedAI::me, MINUTE, REACT_AGGRESSIVE, Unit::RemoveAurasDueToSpell(), Unit::RemoveUnitFlag(), EventMap::Reset(), Unit::resetAttackTimer(), SAY_BANISH, SAY_EMOTE_BEGIN, SAY_EMOTE_FREE, SAY_EMOTE_NEARLY, SAY_FREE, SAY_PHASE3, SAY_TAUNT, EventMap::ScheduleEvent(), UnitAI::SelectTarget(), ZoneScript::SetData(), Unit::SetImmuneToPC(), Creature::SetReactState(), SPELL_BERSERK, SPELL_BLAST_NOVA, SPELL_BLAZE, SPELL_CAMERA_SHAKE, SPELL_CLEAVE, SPELL_COLLAPSE_DAMAGE, SPELL_DEBRIS_VISUAL, SPELL_QUAKE, SPELL_SHADOW_CAGE, SPELL_SHADOW_GRASP_VISUAL, SPELLVALUE_MAX_TARGETS, UNIT_FLAG_NOT_SELECTABLE, UNIT_STATE_CASTING, EventMap::Update(), and CreatureAI::UpdateVictim().

Member Data Documentation

◆ events2

EventMap boss_magtheridon::boss_magtheridonAI::events2

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