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

Public Member Functions

 boss_anubarak_trialAI (Creature *creature)
 
void Initialize ()
 
void Reset () override
 
void KilledUnit (Unit *who) override
 
void MoveInLineOfSight (Unit *) override
 
void JustReachedHome () override
 
void JustDied (Unit *) override
 
void JustSummoned (Creature *summoned) override
 
void EnterCombat (Unit *) override
 
void UpdateAI (uint32 diff) override
 
- Public Member Functions inherited from BossAI
 BossAI (Creature *creature, uint32 bossId)
 
virtual ~BossAI ()
 
void SummonedCreatureDespawn (Creature *summon) override
 
virtual void ExecuteEvent (uint32)
 
virtual void ScheduleTasks ()
 
bool CanAIAttack (Unit const *target) const override
 
- Public Member Functions inherited from ScriptedAI
 ScriptedAI (Creature *creature)
 
virtual ~ScriptedAI ()
 
void AttackStartNoMove (Unit *target)
 
void DamageTaken (Unit *, uint32 &) override
 
void SpellHit (Unit *, SpellInfo const *) override
 
void SpellHitTarget (Unit *, SpellInfo const *) override
 
void OnPossess (bool)
 
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 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 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)
 

Private Attributes

GuidList _burrowGUID
 
ObjectGuid _sphereGUID [6]
 
bool _intro
 
bool _reachedPhase3
 

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 ()
 
- Public Attributes inherited from BossAI
InstanceScript *const instance
 
- Public Attributes inherited from ScriptedAI
bool IsFleeing
 
- Static Public Attributes inherited from UnitAI
static AISpellInfoTypeAISpellInfo
 
- Protected Member Functions inherited from BossAI
void _Reset ()
 
void _EnterCombat ()
 
void _JustDied ()
 
void _JustReachedHome ()
 
void _DespawnAtEvade ()
 
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)
 
bool CheckBoundary (Position const *who=nullptr) const
 
void SetBoundary (CreatureBoundary const *boundary)
 
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
 
CreatureBoundary const_boundary
 
- Protected Attributes inherited from UnitAI
Unit *const me
 

Constructor & Destructor Documentation

boss_anubarak_trial::boss_anubarak_trialAI::boss_anubarak_trialAI ( Creature creature)
inline
167  : BossAI(creature, BOSS_ANUBARAK)
168  {
169  Initialize();
170  }
Definition: trial_of_the_crusader.h:17
BossAI(Creature *creature, uint32 bossId)
Definition: ScriptedCreature.cpp:444
void Initialize()
Definition: boss_anubarak_trial.cpp:172

+ Here is the call graph for this function:

Member Function Documentation

void boss_anubarak_trial::boss_anubarak_trialAI::EnterCombat ( Unit )
inlineoverridevirtual

Reimplemented from BossAI.

271  {
272  _EnterCombat();
273  Talk(SAY_AGGRO);
275 
276  // Despawn Scarab Swarms neutral
279 
280  // Spawn Burrow
281  for (int i = 0; i < 4; i++)
283 
284  // Spawn 6 Frost Spheres at start
285  for (int i = 0; i < 6; i++)
286  if (Unit* summoned = me->SummonCreature(NPC_FROST_SPHERE, SphereSpawn[i]))
287  _sphereGUID[i] = summoned->GetGUID();
288  }
void _EnterCombat()
Definition: ScriptedCreature.cpp:480
Definition: Unit.h:674
Definition: boss_anubarak_trial.cpp:34
const Position SphereSpawn[6]
Definition: boss_anubarak_trial.cpp:115
void DoAction(int32 info, Predicate &predicate, uint16 max=0)
Definition: ScriptedCreature.h:104
Creature *const me
Definition: CreatureAI.h:71
ObjectGuid _sphereGUID[6]
Definition: boss_anubarak_trial.cpp:421
Definition: boss_anubarak_trial.cpp:51
void Talk(uint8 id, WorldObject const *whisperTarget=nullptr)
Definition: CreatureAI.cpp:42
SummonList summons
Definition: ScriptedCreature.h:372
Definition: ScriptedCreature.h:126
void RemoveFlag(uint16 index, uint32 oldFlag)
Definition: Object.cpp:1214
Definition: UpdateFields.h:109
const Position AnubarakLoc[]
Definition: trial_of_the_crusader.h:131
Definition: boss_anubarak_trial.cpp:48
Definition: boss_anubarak_trial.cpp:49
Definition: Unit.h:1305
Definition: Unit.h:698
TempSummon * SummonCreature(uint32 id, Position const &pos, TempSummonType spwtype=TEMPSUMMON_MANUAL_DESPAWN, uint32 despwtime=0, uint32 vehId=0) const
Definition: Object.cpp:2346
Definition: boss_anubarak_trial.cpp:112

+ Here is the call graph for this function:

void boss_anubarak_trial::boss_anubarak_trialAI::Initialize ( void  )
inline
173  {
174  _intro = true;
175  _reachedPhase3 = false;
176  }
bool _intro
Definition: boss_anubarak_trial.cpp:422
bool _reachedPhase3
Definition: boss_anubarak_trial.cpp:423

+ Here is the caller graph for this function:

void boss_anubarak_trial::boss_anubarak_trialAI::JustDied ( Unit )
inlineoverridevirtual

Reimplemented from BossAI.

233  {
234  _JustDied();
235  Talk(SAY_DEATH);
236 
237  // despawn frostspheres and Burrowers on death
238  std::list<Creature*> AddList;
241  if (!AddList.empty())
242  for (std::list<Creature*>::iterator itr = AddList.begin(); itr != AddList.end(); ++itr)
243  (*itr)->DespawnOrUnsummon();
244  }
Definition: boss_anubarak_trial.cpp:50
void _JustDied()
Definition: ScriptedCreature.cpp:471
Definition: boss_anubarak_trial.cpp:41
void GetCreatureListWithEntryInGrid(std::list< Creature * > &lList, uint32 uiEntry, float fMaxSearchRange) const
Definition: Object.cpp:2483
Creature *const me
Definition: CreatureAI.h:71
void Talk(uint8 id, WorldObject const *whisperTarget=nullptr)
Definition: CreatureAI.cpp:42
Definition: boss_anubarak_trial.cpp:48

+ Here is the call graph for this function:

void boss_anubarak_trial::boss_anubarak_trialAI::JustReachedHome ( )
inlineoverridevirtual

Reimplemented from BossAI.

221  {
223  //Summon Scarab Swarms neutral at random places
224  for (int i = 0; i < 10; i++)
226  {
227  temp->setFaction(31);
228  temp->GetMotionMaster()->MoveRandom(10);
229  }
230  }
Definition: trial_of_the_crusader.h:17
Definition: Creature.h:467
Definition: InstanceScript.h:60
Creature *const me
Definition: CreatureAI.h:71
Definition: boss_anubarak_trial.cpp:51
float GetPositionY() const
Definition: Position.h:105
uint32 urand(uint32 min, uint32 max)
Definition: Random.cpp:45
float GetPositionZ() const
Definition: Position.h:106
virtual bool SetBossState(uint32 id, EncounterState state)
Definition: InstanceScript.cpp:273
const Position AnubarakLoc[]
Definition: trial_of_the_crusader.h:131
float GetPositionX() const
Definition: Position.h:104
TempSummon * SummonCreature(uint32 id, Position const &pos, TempSummonType spwtype=TEMPSUMMON_MANUAL_DESPAWN, uint32 despwtime=0, uint32 vehId=0) const
Definition: Object.cpp:2346
InstanceScript *const instance
Definition: ScriptedCreature.h:340

+ Here is the call graph for this function:

void boss_anubarak_trial::boss_anubarak_trialAI::JustSummoned ( Creature summoned)
inlineoverridevirtual

Reimplemented from BossAI.

247  {
248  switch (summoned->GetEntry())
249  {
250  case NPC_BURROW:
251  _burrowGUID.push_back(summoned->GetGUID());
252  summoned->SetReactState(REACT_PASSIVE);
253  summoned->CastSpell(summoned, SPELL_CHURNING_GROUND, false);
254  summoned->SetDisplayId(summoned->GetCreatureTemplate()->Modelid2);
255  break;
256  case NPC_SPIKE:
257  summoned->SetDisplayId(summoned->GetCreatureTemplate()->Modelid1);
258  if (Unit* target = SelectTarget(SELECT_TARGET_RANDOM, 0, 0.0f, true))
259  {
260  summoned->CombatStart(target);
261  Talk(EMOTE_SPIKE, target);
262  }
263  break;
264  default:
265  break;
266  }
267  summons.Summon(summoned);
268  }
Definition: boss_anubarak_trial.cpp:71
Definition: Unit.h:1129
Definition: boss_anubarak_trial.cpp:43
void Summon(Creature const *summon)
Definition: ScriptedCreature.h:92
CreatureTemplate const * GetCreatureTemplate() const
Definition: Creature.h:558
GuidList _burrowGUID
Definition: boss_anubarak_trial.cpp:420
Definition: UnitAI.h:35
Unit * SelectTarget(SelectAggroTarget targetType, uint32 position=0, float dist=0.0f, bool playerOnly=false, int32 aura=0)
Definition: UnitAI.cpp:91
void Talk(uint8 id, WorldObject const *whisperTarget=nullptr)
Definition: CreatureAI.cpp:42
SummonList summons
Definition: ScriptedCreature.h:372
ObjectGuid const & GetGUID() const
Definition: Object.h:105
uint32 Modelid1
Definition: Creature.h:84
void SetDisplayId(uint32 modelId) override
Definition: Creature.cpp:2664
uint32 Modelid2
Definition: Creature.h:85
void CombatStart(Unit *target, bool initialAggro=true)
Definition: Unit.cpp:9862
uint32 GetEntry() const
Definition: Object.h:107
Definition: boss_anubarak_trial.cpp:49
Definition: Unit.h:1305
void SetReactState(ReactStates st)
Definition: Creature.h:502
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
Definition: boss_anubarak_trial.cpp:52

+ Here is the call graph for this function:

void boss_anubarak_trial::boss_anubarak_trialAI::KilledUnit ( Unit who)
inlineoverridevirtual

Reimplemented from ScriptedAI.

206  {
207  if (who->GetTypeId() == TYPEID_PLAYER)
209  }
TypeID GetTypeId() const
Definition: Object.h:113
Definition: boss_anubarak_trial.cpp:40
void Talk(uint8 id, WorldObject const *whisperTarget=nullptr)
Definition: CreatureAI.cpp:42
Definition: ObjectGuid.h:33

+ Here is the call graph for this function:

void boss_anubarak_trial::boss_anubarak_trialAI::MoveInLineOfSight ( Unit )
inlineoverridevirtual

Reimplemented from CreatureAI.

212  {
213  if (!_intro)
214  {
215  Talk(SAY_INTRO);
216  _intro = false;
217  }
218  }
Definition: boss_anubarak_trial.cpp:33
bool _intro
Definition: boss_anubarak_trial.cpp:422
void Talk(uint8 id, WorldObject const *whisperTarget=nullptr)
Definition: CreatureAI.cpp:42

+ Here is the call graph for this function:

void boss_anubarak_trial::boss_anubarak_trialAI::Reset ( )
inlineoverridevirtual

Reimplemented from BossAI.

179  {
180  _Reset();
187  if (IsHeroic())
189 
190  if (!IsHeroic())
191  events.ScheduleEvent(EVENT_SUMMON_FROST_SPHERE, 20*IN_MILLISECONDS);
192 
193  Initialize();
195  // clean up spawned Frost Spheres
196  std::list<Creature*> FrostSphereList;
197  me->GetCreatureListWithEntryInGrid(FrostSphereList, NPC_FROST_SPHERE, 150.0f);
198  if (!FrostSphereList.empty())
199  for (std::list<Creature*>::iterator itr = FrostSphereList.begin(); itr != FrostSphereList.end(); ++itr)
200  (*itr)->DespawnOrUnsummon();
201 
202  _burrowGUID.clear();
203  }
Definition: Unit.h:674
void SetPhase(uint8 phase)
Definition: EventMap.cpp:27
bool IsHeroic() const
Definition: ScriptedCreature.h:268
Definition: Common.h:97
void GetCreatureListWithEntryInGrid(std::list< Creature * > &lList, uint32 uiEntry, float fMaxSearchRange) const
Definition: Object.cpp:2483
Creature *const me
Definition: CreatureAI.h:71
GuidList _burrowGUID
Definition: boss_anubarak_trial.cpp:420
Definition: boss_anubarak_trial.cpp:156
Definition: boss_anubarak_trial.cpp:150
Definition: boss_anubarak_trial.cpp:145
void _Reset()
Definition: ScriptedCreature.cpp:457
void ScheduleEvent(uint32 eventId, Milliseconds const &time, uint32 group=0, uint8 phase=0)
Definition: EventMap.h:123
void RemoveFlag(uint16 index, uint32 oldFlag)
Definition: Object.cpp:1214
Definition: boss_anubarak_trial.cpp:141
Definition: UpdateFields.h:109
Definition: Common.h:103
EventMap events
Definition: ScriptedCreature.h:371
Definition: boss_anubarak_trial.cpp:48
Definition: boss_anubarak_trial.cpp:149
Definition: boss_anubarak_trial.cpp:142
Definition: boss_anubarak_trial.cpp:144
void Initialize()
Definition: boss_anubarak_trial.cpp:172
Definition: Unit.h:698
Definition: boss_anubarak_trial.cpp:143

+ Here is the call graph for this function:

void boss_anubarak_trial::boss_anubarak_trialAI::UpdateAI ( uint32  diff)
inlineoverridevirtual

Reimplemented from BossAI.

291  {
292  if (!UpdateVictim())
293  return;
294 
296  return;
297 
298  events.Update(diff);
299 
300  while (uint32 eventId = events.ExecuteEvent())
301  {
302  switch (eventId)
303  {
304  case EVENT_FREEZE_SLASH:
307  return;
311  return;
313  if (IsHeroic() || !_reachedPhase3)
316  return;
318  {
322  break;
323  }
324  case EVENT_SUBMERGE:
326  {
335  }
336  break;
339  break;
340  case EVENT_SUMMON_SCARAB:
341  {
342  /* WORKAROUND
343  * - The correct implementation is more likely the comment below but it needs spell knowledge
344  */
345  GuidList::iterator i = _burrowGUID.begin();
346  uint32 at = urand(0, _burrowGUID.size()-1);
347  for (uint32 k = 0; k < at; k++)
348  ++i;
349  if (Creature* pBurrow = ObjectAccessor::GetCreature(*me, *i))
350  pBurrow->CastSpell(pBurrow, 66340, false);
351 
353 
354  /*It seems that this spell have something more that needs to be taken into account
355  //Need more sniff info
356  DoCast(SPELL_SUMMON_BEATLES);
357  // Just to make sure it won't happen again in this phase
358  m_uiSummonScarabTimer = 90*IN_MILLISECONDS;*/
359  break;
360  }
361  case EVENT_EMERGE:
373  if (IsHeroic())
375  return;
377  {
378  uint8 startAt = urand(0, 5);
379  uint8 i = startAt;
380  do
381  {
382  if (Unit* pSphere = ObjectAccessor::GetCreature(*me, _sphereGUID[i]))
383  {
384  if (!pSphere->HasAura(SPELL_FROST_SPHERE))
385  {
387  _sphereGUID[i] = summon->GetGUID();
388  break;
389  }
390  }
391  i = (i + 1) % 6;
392  }
393  while
394  (i != startAt);
396  break;
397  }
398  case EVENT_BERSERK:
400  break;
401  default:
402  break;
403  }
404 
405  }
406 
408  {
409  _reachedPhase3 = true;
413  }
414 
417  }
Definition: boss_anubarak_trial.cpp:39
bool HasAura(uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint32 reqEffMask=0) const
Definition: Unit.cpp:4240
Definition: boss_anubarak_trial.cpp:66
void DoCastAOE(uint32 spellId, bool triggered=false)
Definition: UnitAI.cpp:167
Definition: Unit.h:674
bool UpdateVictim()
Definition: CreatureAI.cpp:233
Definition: boss_anubarak_trial.cpp:58
Definition: Unit.h:163
Definition: Unit.h:565
void SetPhase(uint8 phase)
Definition: EventMap.cpp:27
Definition: boss_anubarak_trial.cpp:68
Definition: boss_anubarak_trial.cpp:57
bool HealthBelowPct(uint32 pct) const
Definition: ScriptedCreature.h:247
Definition: boss_anubarak_trial.cpp:89
const Position SphereSpawn[6]
Definition: boss_anubarak_trial.cpp:115
Definition: boss_anubarak_trial.cpp:50
void DoAction(int32 info, Predicate &predicate, uint16 max=0)
Definition: ScriptedCreature.h:104
void DespawnEntry(uint32 entry)
Definition: ScriptedCreature.cpp:49
Definition: boss_anubarak_trial.cpp:157
Definition: boss_anubarak_trial.cpp:147
bool IsHeroic() const
Definition: ScriptedCreature.h:268
Definition: Creature.h:467
Definition: boss_anubarak_trial.cpp:146
void SetFlag(uint16 index, uint32 newFlag)
Definition: Object.cpp:1199
bool IsInPhase(uint8 phase) const
Definition: EventMap.h:290
Definition: Common.h:97
Definition: boss_anubarak_trial.cpp:36
Creature *const me
Definition: CreatureAI.h:71
ObjectGuid _sphereGUID[6]
Definition: boss_anubarak_trial.cpp:421
GuidList _burrowGUID
Definition: boss_anubarak_trial.cpp:420
Definition: boss_anubarak_trial.cpp:111
Definition: boss_anubarak_trial.cpp:65
Definition: boss_anubarak_trial.cpp:38
Definition: boss_anubarak_trial.cpp:156
Definition: boss_anubarak_trial.cpp:150
Definition: boss_anubarak_trial.cpp:145
uint32 urand(uint32 min, uint32 max)
Definition: Random.cpp:45
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
Definition: boss_anubarak_trial.cpp:92
void ScheduleEvent(uint32 eventId, Milliseconds const &time, uint32 group=0, uint8 phase=0)
Definition: EventMap.h:123
SummonList summons
Definition: ScriptedCreature.h:372
TC_GAME_API Creature * GetCreature(WorldObject const &u, ObjectGuid const &guid)
Definition: ObjectAccessor.cpp:174
void Update(uint32 time)
Definition: EventMap.h:54
const T & RAID_MODE(const T &normal10, const T &normal25) const
Definition: ScriptedCreature.h:293
Definition: ScriptedCreature.h:126
void RemoveFlag(uint16 index, uint32 oldFlag)
Definition: Object.cpp:1214
Definition: boss_anubarak_trial.cpp:63
void RemoveAurasDueToSpell(uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, uint32 reqEffMask=0, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
Definition: Unit.cpp:3586
Definition: boss_anubarak_trial.cpp:104
Definition: boss_anubarak_trial.cpp:141
Definition: boss_anubarak_trial.cpp:59
Definition: UpdateFields.h:109
Definition: Common.h:103
bool _reachedPhase3
Definition: boss_anubarak_trial.cpp:423
uint32 ExecuteEvent()
Definition: EventMap.cpp:46
Definition: boss_anubarak_trial.cpp:148
void DoMeleeAttackIfReady()
Definition: UnitAI.cpp:49
bool HasUnitState(const uint32 f) const
Definition: Unit.h:1395
uint8_t uint8
Definition: Define.h:152
EventMap events
Definition: ScriptedCreature.h:371
Definition: boss_anubarak_trial.cpp:48
Definition: boss_anubarak_trial.cpp:149
void DoCastVictim(uint32 spellId, bool triggered=false)
Definition: UnitAI.cpp:159
Definition: boss_anubarak_trial.cpp:64
Definition: Unit.h:1305
Definition: boss_anubarak_trial.cpp:142
Definition: boss_anubarak_trial.cpp:144
Definition: Unit.h:698
Definition: boss_anubarak_trial.cpp:143
Definition: boss_anubarak_trial.cpp:52
void CastCustomSpell(Unit *victim, uint32 spellId, int32 const *bp0, int32 const *bp1, int32 const *bp2, bool triggered, Item *castItem=NULL, AuraEffect const *triggeredByAura=NULL, ObjectGuid originalCaster=ObjectGuid::Empty)
Definition: Unit.cpp:920
TempSummon * SummonCreature(uint32 id, Position const &pos, TempSummonType spwtype=TEMPSUMMON_MANUAL_DESPAWN, uint32 despwtime=0, uint32 vehId=0) const
Definition: Object.cpp:2346

+ Here is the call graph for this function:

Member Data Documentation

GuidList boss_anubarak_trial::boss_anubarak_trialAI::_burrowGUID
private
bool boss_anubarak_trial::boss_anubarak_trialAI::_intro
private
bool boss_anubarak_trial::boss_anubarak_trialAI::_reachedPhase3
private
ObjectGuid boss_anubarak_trial::boss_anubarak_trialAI::_sphereGUID[6]
private

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