TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boss_magtheridon::boss_magtheridonAI Struct Reference

Public Member Functions

 boss_magtheridonAI (Creature *creature)
 
void Initialize ()
 
void Reset () override
 
void JustReachedHome () override
 
void SetClicker (ObjectGuid cubeGUID, ObjectGuid clickerGUID)
 
void DebuffClicker (Unit *clicker)
 
void NeedCheckCubeStatus ()
 
void KilledUnit (Unit *) override
 
void JustDied (Unit *) override
 
void MoveInLineOfSight (Unit *) override
 
void AttackStart (Unit *who) override
 
void EnterCombat (Unit *) override
 
void UpdateAI (uint32 diff) override
 
- Public Member Functions inherited from ScriptedAI
 ScriptedAI (Creature *creature)
 
virtual ~ScriptedAI ()
 
void AttackStartNoMove (Unit *target)
 
void DamageTaken (Unit *, uint32 &) override
 
void JustSummoned (Creature *) override
 
void SummonedCreatureDespawn (Creature *) override
 
void SpellHit (Unit *, SpellInfo const *) override
 
void SpellHitTarget (Unit *, SpellInfo const *) override
 
void OnPossess (bool)
 
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 DoResetThreat ()
 
float DoGetThreat (Unit *unit)
 
void DoModifyThreatPercent (Unit *unit, int32 pct)
 
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)
 
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 constSelectSpell (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 >
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
 
- Public Member Functions inherited from CreatureAI
void Talk (uint8 id, WorldObject const *whisperTarget=nullptr)
 
 CreatureAI (Creature *creature)
 
virtual ~CreatureAI ()
 
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 IsSummonedBy (Unit *)
 
virtual void SummonedCreatureDies (Creature *, Unit *)
 
virtual void AttackedBy (Unit *)
 
virtual bool IsEscorted () const
 
virtual void JustRespawned ()
 
virtual void MovementInform (uint32, uint32)
 
void OnCharmed (bool apply) override
 
void DoZoneInCombat (Creature *creature=NULL, float maxRangeToNearestTarget=50.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 void OnSpellClick (Unit *, bool &)
 
virtual bool CanSeeAlways (WorldObject const *)
 
int32 VisualizeBoundary (uint32 duration, Unit *owner=nullptr, bool fill=false) const
 
virtual bool CheckInRoom ()
 
CreatureBoundary constGetBoundary () const
 
- Public Member Functions inherited from UnitAI
 UnitAI (Unit *unit)
 
virtual ~UnitAI ()
 
virtual bool CanAIAttack (Unit const *) const
 
virtual void InitializeAI ()
 
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 (SelectAggroTarget targetType, uint32 position=0, float dist=0.0f, bool playerOnly=false, int32 aura=0)
 
template<class PREDICATE >
UnitSelectTarget (SelectAggroTarget targetType, uint32 position, PREDICATE const &predicate)
 
void SelectTargetList (std::list< Unit * > &targetList, uint32 num, SelectAggroTarget targetType, float dist=0.0f, bool playerOnly=false, int32 aura=0)
 
template<class PREDICATE >
void SelectTargetList (std::list< Unit * > &targetList, PREDICATE const &predicate, uint32 maxTargets, SelectAggroTarget targetType)
 
virtual void DamageDealt (Unit *, uint32 &, DamageEffectType)
 
virtual void HealReceived (Unit *, uint32 &)
 
virtual void HealDone (Unit *, uint32 &)
 
virtual void SpellInterrupted (uint32, uint32)
 
void AttackStartCaster (Unit *victim, float dist)
 
void DoCast (uint32 spellId)
 
void DoCast (Unit *victim, uint32 spellId, bool triggered=false)
 
void DoCastVictim (uint32 spellId, bool triggered=false)
 
void DoCastAOE (uint32 spellId, bool triggered=false)
 
void DoMeleeAttackIfReady ()
 
bool DoSpellAttackIfReady (uint32 spellId)
 
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 sQuestReward (Player *, Quest const *, uint32)
 
virtual bool sOnDummyEffect (Unit *, uint32, SpellEffIndex)
 
virtual void sOnGameEvent (bool, uint16)
 

Public Attributes

CubeMap Cube
 
InstanceScriptinstance
 
uint32 Berserk_Timer
 
uint32 Quake_Timer
 
uint32 Cleave_Timer
 
uint32 BlastNova_Timer
 
uint32 Blaze_Timer
 
uint32 Debris_Timer
 
uint32 RandChat_Timer
 
bool Phase3
 
bool NeedCheckCube
 
- Public Attributes inherited from ScriptedAI
bool IsFleeing
 

Additional Inherited Members

- Public Types inherited from CreatureAI
enum  EvadeReason { EVADE_REASON_NO_HOSTILES, EVADE_REASON_BOUNDARY, EVADE_REASON_SEQUENCE_BREAK, EVADE_REASON_OTHER }
 
- Static Public Member Functions inherited from UnitAI
static void FillAISpellInfo ()
 
- Static Public Attributes inherited from UnitAI
static AISpellInfoTypeAISpellInfo
 
- Protected Member Functions inherited from CreatureAI
bool UpdateVictim ()
 
bool UpdateVictimWithGaze ()
 
void SetGazeOn (Unit *target)
 
CreatureDoSummon (uint32 entry, Position const &pos, uint32 despawnTime=30000, TempSummonType summonType=TEMPSUMMON_CORPSE_TIMED_DESPAWN)
 
CreatureDoSummon (uint32 entry, WorldObject *obj, float radius=5.0f, uint32 despawnTime=30000, TempSummonType summonType=TEMPSUMMON_CORPSE_TIMED_DESPAWN)
 
CreatureDoSummonFlyer (uint32 entry, WorldObject *obj, float flightZ, float radius=5.0f, uint32 despawnTime=30000, TempSummonType summonType=TEMPSUMMON_CORPSE_TIMED_DESPAWN)
 
bool CheckBoundary (Position const *who=nullptr) const
 
void SetBoundary (CreatureBoundary const *boundary)
 
bool _EnterEvadeMode (EvadeReason why=EVADE_REASON_OTHER)
 
- Protected Attributes inherited from CreatureAI
Creature *const me
 
CreatureBoundary const_boundary
 
- Protected Attributes inherited from UnitAI
Unit *const me
 

Constructor & Destructor Documentation

boss_magtheridon::boss_magtheridonAI::boss_magtheridonAI ( Creature creature)
inline
214  : ScriptedAI(creature)
215  {
216  Initialize();
217  instance = creature->GetInstanceScript();
220  }
ScriptedAI(Creature *creature)
Definition: ScriptedCreature.cpp:100
InstanceScript * instance
Definition: boss_magtheridon.cpp:238
InstanceScript * GetInstanceScript()
Definition: Object.cpp:1540
Creature *const me
Definition: CreatureAI.h:71
Definition: UpdateFields.h:115
Definition: UpdateFields.h:116
void Initialize()
Definition: boss_magtheridon.cpp:222
void SetFloatValue(uint16 index, float value)
Definition: Object.cpp:1067

+ Here is the call graph for this function:

Member Function Documentation

void boss_magtheridon::boss_magtheridonAI::AttackStart ( Unit who)
inlineoverridevirtual

Reimplemented from ScriptedAI.

335  {
338  }
Creature *const me
Definition: CreatureAI.h:71
Definition: Unit.h:553
void AttackStart(Unit *) override
Definition: ScriptedCreature.cpp:117
bool HasUnitState(const uint32 f) const
Definition: Unit.h:1395

+ Here is the call graph for this function:

void boss_magtheridon::boss_magtheridonAI::DebuffClicker ( Unit clicker)
inline
279  {
280  if (!clicker || !clicker->IsAlive())
281  return;
282 
283  clicker->RemoveAurasDueToSpell(SPELL_SHADOW_GRASP); // cannot interrupt triggered spells
284  clicker->InterruptNonMeleeSpells(false);
285  clicker->CastSpell(clicker, SPELL_MIND_EXHAUSTION, true);
286  }
Definition: boss_magtheridon.cpp:74
Definition: boss_magtheridon.cpp:72
bool IsAlive() const
Definition: Unit.h:1692
void RemoveAurasDueToSpell(uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, uint32 reqEffMask=0, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
Definition: Unit.cpp:3586
void InterruptNonMeleeSpells(bool withDelayed, uint32 spellid=0, bool withInstant=true)
Definition: Unit.cpp:2916
void CastSpell(SpellCastTargets const &targets, SpellInfo const *spellInfo, CustomSpellValues const *value, TriggerCastFlags triggerFlags=TRIGGERED_NONE, Item *castItem=NULL, AuraEffect const *triggeredByAura=NULL, ObjectGuid originalCaster=ObjectGuid::Empty)
Definition: Unit.cpp:869

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Reimplemented from ScriptedAI.

341  {
343  DoZoneInCombat();
344 
347 
348  Talk(SAY_FREED);
349  }
Definition: Unit.h:674
InstanceScript * instance
Definition: boss_magtheridon.cpp:238
Definition: boss_magtheridon.cpp:35
void DoZoneInCombat(Creature *creature=NULL, float maxRangeToNearestTarget=50.0f)
Definition: CreatureAI.cpp:47
Creature *const me
Definition: CreatureAI.h:71
Definition: boss_magtheridon.cpp:75
Definition: InstanceScript.h:59
virtual void SetData(uint32, uint32)
Definition: ZoneScript.h:52
Definition: magtheridons_lair.h:26
void Talk(uint8 id, WorldObject const *whisperTarget=nullptr)
Definition: CreatureAI.cpp:42
void RemoveFlag(uint16 index, uint32 oldFlag)
Definition: Object.cpp:1214
void RemoveAurasDueToSpell(uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, uint32 reqEffMask=0, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
Definition: Unit.cpp:3586
Definition: UpdateFields.h:109

+ Here is the call graph for this function:

void boss_magtheridon::boss_magtheridonAI::Initialize ( void  )
inline
223  {
224  Berserk_Timer = 1320000;
225  Quake_Timer = 40000;
226  Debris_Timer = 10000;
227  Blaze_Timer = 10000 + rand32() % 20000;
228  BlastNova_Timer = 60000;
229  Cleave_Timer = 15000;
230  RandChat_Timer = 90000;
231 
232  Phase3 = false;
233  NeedCheckCube = false;
234  }
uint32 RandChat_Timer
Definition: boss_magtheridon.cpp:246
uint32 Cleave_Timer
Definition: boss_magtheridon.cpp:242
uint32 BlastNova_Timer
Definition: boss_magtheridon.cpp:243
bool NeedCheckCube
Definition: boss_magtheridon.cpp:249
uint32 Berserk_Timer
Definition: boss_magtheridon.cpp:240
bool Phase3
Definition: boss_magtheridon.cpp:248
uint32 Blaze_Timer
Definition: boss_magtheridon.cpp:244
uint32 Quake_Timer
Definition: boss_magtheridon.cpp:241
uint32 rand32()
Definition: Random.cpp:64
uint32 Debris_Timer
Definition: boss_magtheridon.cpp:245

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Reimplemented from ScriptedAI.

325  {
327 
328  Talk(SAY_DEATH);
329  }
InstanceScript * instance
Definition: boss_magtheridon.cpp:238
Definition: inflate.h:49
virtual void SetData(uint32, uint32)
Definition: ZoneScript.h:52
Definition: magtheridons_lair.h:26
Definition: boss_magtheridon.cpp:40
void Talk(uint8 id, WorldObject const *whisperTarget=nullptr)
Definition: CreatureAI.cpp:42

+ Here is the call graph for this function:

void boss_magtheridon::boss_magtheridonAI::JustReachedHome ( )
inlineoverridevirtual

Reimplemented from CreatureAI.

263  {
265  instance->SetData(DATA_COLLAPSE, false);
266  }
InstanceScript * instance
Definition: boss_magtheridon.cpp:238
virtual void SetData(uint32, uint32)
Definition: ZoneScript.h:52
Definition: InstanceScript.h:58
Definition: magtheridons_lair.h:26
Definition: magtheridons_lair.h:29

+ Here is the call graph for this function:

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

Reimplemented from ScriptedAI.

320  {
322  }
Definition: boss_magtheridon.cpp:39
void Talk(uint8 id, WorldObject const *whisperTarget=nullptr)
Definition: CreatureAI.cpp:42

+ Here is the call graph for this function:

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

Reimplemented from CreatureAI.

331 { }
void boss_magtheridon::boss_magtheridonAI::NeedCheckCubeStatus ( )
inline
289  {
290  uint32 ClickerNum = 0;
291  // now checking if every clicker has debuff from manticron(it is dispelable atm rev 6110 : S)
292  // if not - apply mind exhaustion and delete from clicker's list
293  for (CubeMap::iterator i = Cube.begin(); i != Cube.end(); ++i)
294  {
295  Unit* clicker = ObjectAccessor::GetUnit(*me, (*i).second);
296  if (!clicker || !clicker->HasAura(SPELL_SHADOW_GRASP))
297  {
298  DebuffClicker(clicker);
299  (*i).second.Clear();
300  }
301  else
302  ++ClickerNum;
303  }
304 
305  // if 5 clickers from other cubes apply shadow cage
306  if (ClickerNum >= CLICKERS_COUNT && !me->HasAura(SPELL_SHADOW_CAGE))
307  {
308  Talk(SAY_BANISH);
309  DoCast(me, SPELL_SHADOW_CAGE, true);
310  }
311  else
312  if (ClickerNum < CLICKERS_COUNT && me->HasAura(SPELL_SHADOW_CAGE))
314 
315  if (!ClickerNum)
316  NeedCheckCube = false;
317  }
bool HasAura(uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint32 reqEffMask=0) const
Definition: Unit.cpp:4240
CubeMap Cube
Definition: boss_magtheridon.cpp:236
TC_GAME_API Unit * GetUnit(WorldObject const &, ObjectGuid const &guid)
Definition: ObjectAccessor.cpp:163
Definition: boss_magtheridon.cpp:72
Definition: boss_magtheridon.cpp:71
bool NeedCheckCube
Definition: boss_magtheridon.cpp:249
void DebuffClicker(Unit *clicker)
Definition: boss_magtheridon.cpp:278
Creature *const me
Definition: CreatureAI.h:71
#define CLICKERS_COUNT
Definition: boss_magtheridon.cpp:86
uint32_t uint32
Definition: Define.h:150
void DoCast(uint32 spellId)
Definition: UnitAI.cpp:101
void Talk(uint8 id, WorldObject const *whisperTarget=nullptr)
Definition: CreatureAI.cpp:42
void RemoveAurasDueToSpell(uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, uint32 reqEffMask=0, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
Definition: Unit.cpp:3586
Definition: Unit.h:1305
Definition: boss_magtheridon.cpp:37

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void boss_magtheridon::boss_magtheridonAI::Reset ( )
inlineoverridevirtual

Reimplemented from ScriptedAI.

252  {
253  Initialize();
254 
259  DoCast(me, SPELL_SHADOW_CAGE_C, true);
260  }
Definition: Unit.h:674
void AddUnitState(uint32 f)
Definition: Unit.h:1394
void SetFlag(uint16 index, uint32 newFlag)
Definition: Object.cpp:1199
Definition: Unit.h:681
Creature *const me
Definition: CreatureAI.h:71
Definition: Unit.h:553
Definition: boss_magtheridon.cpp:75
void DoCast(uint32 spellId)
Definition: UnitAI.cpp:101
void RemoveFlag(uint16 index, uint32 oldFlag)
Definition: Object.cpp:1214
void Initialize()
Definition: boss_magtheridon.cpp:222
Definition: UpdateFields.h:109
Definition: Unit.h:698

+ Here is the call graph for this function:

void boss_magtheridon::boss_magtheridonAI::SetClicker ( ObjectGuid  cubeGUID,
ObjectGuid  clickerGUID 
)
inline
269  {
270  // to avoid multiclicks from 1 cube
271  if (!Cube[cubeGUID].IsEmpty())
273  Cube[cubeGUID] = clickerGUID;
274  NeedCheckCube = true;
275  }
CubeMap Cube
Definition: boss_magtheridon.cpp:236
TC_GAME_API Unit * GetUnit(WorldObject const &, ObjectGuid const &guid)
Definition: ObjectAccessor.cpp:163
bool NeedCheckCube
Definition: boss_magtheridon.cpp:249
void DebuffClicker(Unit *clicker)
Definition: boss_magtheridon.cpp:278
Creature *const me
Definition: CreatureAI.h:71

+ Here is the call graph for this function:

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

Reimplemented from ScriptedAI.

352  {
353  if (!me->IsInCombat())
354  {
355  if (RandChat_Timer <= diff)
356  {
357  Talk(SAY_TAUNT);
358  RandChat_Timer = 90000;
359  }
360  else
361  RandChat_Timer -= diff;
362  }
363 
364  if (!UpdateVictim())
365  return;
366 
368 
369  if (Berserk_Timer <= diff)
370  {
371  DoCast(me, SPELL_BERSERK, true);
373  Berserk_Timer = 60000;
374  }
375  else
376  Berserk_Timer -= diff;
377 
378  if (Cleave_Timer <= diff)
379  {
381  Cleave_Timer = 10000;
382  }
383  else
384  Cleave_Timer -= diff;
385 
386  if (BlastNova_Timer <= diff)
387  {
388  // to avoid earthquake interruption
390  {
393  BlastNova_Timer = 60000;
394  }
395  }
396  else
397  BlastNova_Timer -= diff;
398 
399  if (Quake_Timer <= diff)
400  {
401  // to avoid blastnova interruption
402  if (!me->IsNonMeleeSpellCast(false))
403  {
404  DoCast(me, SPELL_QUAKE_TRIGGER, true);
405  Quake_Timer = 50000;
406  }
407  }
408  else
409  Quake_Timer -= diff;
410 
411  if (Blaze_Timer <= diff)
412  {
413  if (Unit* target = SelectTarget(SELECT_TARGET_RANDOM, 0))
414  {
415  float x, y, z;
416  target->GetPosition(x, y, z);
417  Creature* summon = me->SummonCreature(NPC_ABYSSAL, x, y, z, 0, TEMPSUMMON_CORPSE_DESPAWN, 0);
418  if (summon)
419  {
420  ENSURE_AI(npc_abyssal::npc_abyssalAI, summon->AI())->SetTrigger(2);
421  DoCast(summon, SPELL_BLAZE_TARGET, true);
423  }
424  }
425  Blaze_Timer = urand(20000, 40000);
426  }
427  else
428  Blaze_Timer -= diff;
429 
430  if (!Phase3 && HealthBelowPct(30)
431  && !me->IsNonMeleeSpellCast(false) // blast nova
432  && !me->HasUnitState(UNIT_STATE_STUNNED)) // shadow cage and earthquake
433  {
434  Phase3 = true;
436  DoCast(me, SPELL_CAMERA_SHAKE, true);
438 
440  }
441 
442  if (Phase3)
443  {
444  if (Debris_Timer <= diff)
445  {
446  if (Unit* target = SelectTarget(SELECT_TARGET_RANDOM, 0))
447  {
448  float x, y, z;
449  target->GetPosition(x, y, z);
450  Creature* summon = me->SummonCreature(NPC_ABYSSAL, x, y, z, 0, TEMPSUMMON_CORPSE_DESPAWN, 0);
451  if (summon)
452  ENSURE_AI(npc_abyssal::npc_abyssalAI, summon->AI())->SetTrigger(1);
453  }
454  Debris_Timer = 10000;
455  }
456  else
457  Debris_Timer -= diff;
458  }
459 
461  }
uint32 RandChat_Timer
Definition: boss_magtheridon.cpp:246
Definition: boss_magtheridon.cpp:38
Definition: boss_magtheridon.cpp:64
uint32 Cleave_Timer
Definition: boss_magtheridon.cpp:242
bool UpdateVictim()
Definition: CreatureAI.cpp:233
void NeedCheckCubeStatus()
Definition: boss_magtheridon.cpp:288
uint32 BlastNova_Timer
Definition: boss_magtheridon.cpp:243
InstanceScript * instance
Definition: boss_magtheridon.cpp:238
bool HealthBelowPct(uint32 pct) const
Definition: ScriptedCreature.h:247
Definition: boss_magtheridon.cpp:69
bool IsInCombat() const
Definition: Unit.h:1584
Definition: boss_magtheridon.cpp:46
Definition: boss_magtheridon.cpp:62
Definition: Object.h:58
Definition: boss_magtheridon.cpp:55
bool NeedCheckCube
Definition: boss_magtheridon.cpp:249
Definition: Creature.h:467
bool IsNonMeleeSpellCast(bool withDelayed, bool skipChanneled=false, bool skipAutorepeat=false, bool isAutoshoot=false, bool skipInstant=true) const
Definition: Unit.cpp:2886
void SetFlag(uint16 index, uint32 newFlag)
Definition: Object.cpp:1199
uint32 Berserk_Timer
Definition: boss_magtheridon.cpp:240
Definition: boss_magtheridon.cpp:60
bool Phase3
Definition: boss_magtheridon.cpp:248
Creature *const me
Definition: CreatureAI.h:71
#define ENSURE_AI(a, b)
Definition: ScriptedCreature.h:29
Definition: Unit.h:553
Definition: UnitAI.h:35
Definition: boss_magtheridon.cpp:61
uint32 Blaze_Timer
Definition: boss_magtheridon.cpp:244
G3D::int16 z
Definition: Vector3int16.h:46
uint32 urand(uint32 min, uint32 max)
Definition: Random.cpp:45
virtual void SetData(uint32, uint32)
Definition: ZoneScript.h:52
CreatureAI * AI() const
Definition: Creature.h:525
Unit * SelectTarget(SelectAggroTarget targetType, uint32 position=0, float dist=0.0f, bool playerOnly=false, int32 aura=0)
Definition: UnitAI.cpp:91
uint32 Quake_Timer
Definition: boss_magtheridon.cpp:241
G3D::int16 y
Definition: Vector2int16.h:38
void DoCast(uint32 spellId)
Definition: UnitAI.cpp:101
void Talk(uint8 id, WorldObject const *whisperTarget=nullptr)
Definition: CreatureAI.cpp:42
Definition: UpdateFields.h:109
void DoMeleeAttackIfReady()
Definition: UnitAI.cpp:49
bool HasUnitState(const uint32 f) const
Definition: Unit.h:1395
void DoCastVictim(uint32 spellId, bool triggered=false)
Definition: UnitAI.cpp:159
G3D::int16 x
Definition: Vector2int16.h:37
Definition: Unit.h:1305
Definition: boss_magtheridon.cpp:34
Definition: boss_magtheridon.cpp:45
Definition: boss_magtheridon.cpp:70
Definition: boss_magtheridon.cpp:66
Definition: boss_magtheridon.cpp:99
Definition: Unit.h:698
uint32 Debris_Timer
Definition: boss_magtheridon.cpp:245
TempSummon * SummonCreature(uint32 id, Position const &pos, TempSummonType spwtype=TEMPSUMMON_MANUAL_DESPAWN, uint32 despwtime=0, uint32 vehId=0) const
Definition: Object.cpp:2346
Definition: magtheridons_lair.h:29

+ Here is the call graph for this function:

Member Data Documentation

uint32 boss_magtheridon::boss_magtheridonAI::Berserk_Timer
uint32 boss_magtheridon::boss_magtheridonAI::BlastNova_Timer
uint32 boss_magtheridon::boss_magtheridonAI::Blaze_Timer
uint32 boss_magtheridon::boss_magtheridonAI::Cleave_Timer
CubeMap boss_magtheridon::boss_magtheridonAI::Cube
uint32 boss_magtheridon::boss_magtheridonAI::Debris_Timer
InstanceScript* boss_magtheridon::boss_magtheridonAI::instance
bool boss_magtheridon::boss_magtheridonAI::NeedCheckCube
bool boss_magtheridon::boss_magtheridonAI::Phase3
uint32 boss_magtheridon::boss_magtheridonAI::Quake_Timer
uint32 boss_magtheridon::boss_magtheridonAI::RandChat_Timer

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