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

Public Member Functions

 boss_brutallusAI (Creature *creature)
 
void Initialize ()
 
void Reset () override
 
void EnterCombat (Unit *) override
 
void KilledUnit (Unit *) override
 
void JustDied (Unit *) override
 
void EnterEvadeMode (EvadeReason why) override
 
void StartIntro ()
 
void EndIntro ()
 
void AttackStart (Unit *who) override
 
void DoIntro ()
 
void MoveInLineOfSight (Unit *who) 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 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
 
virtual void JustReachedHome ()
 
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

InstanceScriptinstance
 
uint32 SlashTimer
 
uint32 BurnTimer
 
uint32 StompTimer
 
uint32 BerserkTimer
 
uint32 IntroPhase
 
uint32 IntroPhaseTimer
 
uint32 IntroFrostBoltTimer
 
bool Intro
 
bool IsIntro
 
bool Enraged
 
- 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_brutallus::boss_brutallusAI::boss_brutallusAI ( Creature creature)
inline
71  : ScriptedAI(creature)
72  {
73  Initialize();
74  instance = creature->GetInstanceScript();
75  Intro = true;
76  }
ScriptedAI(Creature *creature)
Definition: ScriptedCreature.cpp:100
InstanceScript * instance
Definition: boss_brutallus.cpp:93
InstanceScript * GetInstanceScript()
Definition: Object.cpp:1540
bool Intro
Definition: boss_brutallus.cpp:104
void Initialize()
Definition: boss_brutallus.cpp:78

+ Here is the call graph for this function:

Member Function Documentation

void boss_brutallus::boss_brutallusAI::AttackStart ( Unit who)
inlineoverridevirtual

Reimplemented from ScriptedAI.

177  {
178  if (!who || Intro || IsIntro)
179  return;
181  }
void AttackStart(Unit *) override
Definition: ScriptedCreature.cpp:117
bool Intro
Definition: boss_brutallus.cpp:104
bool IsIntro
Definition: boss_brutallus.cpp:105

+ Here is the call graph for this function:

void boss_brutallus::boss_brutallusAI::DoIntro ( )
inline
184  {
186  if (!Madrigosa)
187  return;
188 
189  switch (IntroPhase)
190  {
191  case 0:
192  Madrigosa->AI()->Talk(YELL_MADR_ICE_BARRIER);
193  IntroPhaseTimer = 7000;
194  ++IntroPhase;
195  break;
196  case 1:
197  me->SetInFront(Madrigosa);
198  Madrigosa->SetInFront(me);
199  Madrigosa->AI()->Talk(YELL_MADR_INTRO, me);
200  IntroPhaseTimer = 9000;
201  ++IntroPhase;
202  break;
203  case 2:
204  Talk(YELL_INTRO, Madrigosa);
205  IntroPhaseTimer = 13000;
206  ++IntroPhase;
207  break;
208  case 3:
210  Madrigosa->SetDisableGravity(true);
211  me->AttackStop();
212  Madrigosa->AttackStop();
213  IntroFrostBoltTimer = 3000;
214  IntroPhaseTimer = 28000;
215  ++IntroPhase;
216  break;
217  case 4:
219  IntroPhaseTimer = 6000;
220  ++IntroPhase;
221  break;
222  case 5:
223  Madrigosa->CastSpell(me, SPELL_INTRO_ENCAPSULATE_CHANELLING, false);
224  Madrigosa->AI()->Talk(YELL_MADR_TRAP);
226  IntroPhaseTimer = 11000;
227  ++IntroPhase;
228  break;
229  case 6:
231  IntroPhaseTimer = 5000;
232  ++IntroPhase;
233  break;
234  case 7:
235  me->Kill(Madrigosa);
236  Madrigosa->AI()->Talk(YELL_MADR_DEATH);
237  me->SetFullHealth();
238  me->AttackStop();
239  IntroPhaseTimer = 4000;
240  ++IntroPhase;
241  break;
242  case 8:
244  me->SetOrientation(0.14f);
245  me->StopMoving();
246  Madrigosa->setDeathState(CORPSE);
247  IntroPhaseTimer = 8000;
248  ++IntroPhase;
249  break;
250  case 9:
252  IntroPhaseTimer = 5000;
253  ++IntroPhase;
254  break;
255  case 10:
256  EndIntro();
257  break;
258  }
259  }
bool AttackStop()
Definition: Unit.cpp:7337
void Kill(Unit *victim, bool durabilityLoss=true)
Definition: Unit.cpp:13513
uint32 IntroFrostBoltTimer
Definition: boss_brutallus.cpp:102
Definition: boss_brutallus.cpp:33
InstanceScript * instance
Definition: boss_brutallus.cpp:93
void SetOrientation(float orientation)
Definition: Position.h:99
Definition: boss_brutallus.cpp:31
Definition: boss_brutallus.cpp:61
void EndIntro()
Definition: boss_brutallus.cpp:169
Definition: Creature.h:467
bool SetDisableGravity(bool disable, bool packetOnly=false)
Definition: Unit.cpp:15818
Definition: Unit.h:543
Definition: boss_brutallus.cpp:44
Definition: boss_brutallus.cpp:58
Definition: boss_brutallus.cpp:60
Definition: sunwell_plateau.h:39
Creature *const me
Definition: CreatureAI.h:71
Definition: boss_brutallus.cpp:35
virtual ObjectGuid GetGuidData(uint32 type) const override
Definition: InstanceScript.cpp:93
void setDeathState(DeathState s) override
Definition: Creature.cpp:1624
CreatureAI * AI() const
Definition: Creature.h:525
Definition: boss_brutallus.cpp:43
void DoCast(uint32 spellId)
Definition: UnitAI.cpp:101
void Talk(uint8 id, WorldObject const *whisperTarget=nullptr)
Definition: CreatureAI.cpp:42
TC_GAME_API Creature * GetCreature(WorldObject const &u, ObjectGuid const &guid)
Definition: ObjectAccessor.cpp:174
uint32 IntroPhaseTimer
Definition: boss_brutallus.cpp:101
Definition: boss_brutallus.cpp:34
void SetFullHealth()
Definition: Unit.h:1440
Definition: boss_brutallus.cpp:32
void SetInFront(WorldObject const *target)
Definition: Unit.cpp:15771
void StopMoving()
-------—End of Pet responses methods-------—
Definition: Unit.cpp:12743
uint32 IntroPhase
Definition: boss_brutallus.cpp:100
Definition: boss_brutallus.cpp:47
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_brutallus.cpp:46

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void boss_brutallus::boss_brutallusAI::EndIntro ( )
inline
170  {
172  Intro = false;
173  IsIntro = false;
174  }
Definition: Unit.h:674
Creature *const me
Definition: CreatureAI.h:71
void RemoveFlag(uint16 index, uint32 oldFlag)
Definition: Object.cpp:1214
Definition: UpdateFields.h:109
bool Intro
Definition: boss_brutallus.cpp:104
bool IsIntro
Definition: boss_brutallus.cpp:105

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void boss_brutallus::boss_brutallusAI::EnterCombat ( Unit )
inlineoverridevirtual

Reimplemented from ScriptedAI.

118  {
119  Talk(YELL_AGGRO);
120 
122  }
InstanceScript * instance
Definition: boss_brutallus.cpp:93
Definition: InstanceScript.h:59
void Talk(uint8 id, WorldObject const *whisperTarget=nullptr)
Definition: CreatureAI.cpp:42
virtual bool SetBossState(uint32 id, EncounterState state)
Definition: InstanceScript.cpp:273
Definition: boss_brutallus.cpp:37
Definition: sunwell_plateau.h:30

+ Here is the call graph for this function:

void boss_brutallus::boss_brutallusAI::EnterEvadeMode ( EvadeReason  why)
inlineoverridevirtual

Reimplemented from CreatureAI.

140  {
141  if (!Intro)
143  }
virtual void EnterEvadeMode(EvadeReason why=EVADE_REASON_OTHER)
Definition: CreatureAI.cpp:168
bool Intro
Definition: boss_brutallus.cpp:104

+ Here is the call graph for this function:

void boss_brutallus::boss_brutallusAI::Initialize ( void  )
inline
79  {
80  SlashTimer = 11000;
81  StompTimer = 30000;
82  BurnTimer = 60000;
83  BerserkTimer = 360000;
84 
85  IntroPhase = 0;
86  IntroPhaseTimer = 0;
88 
89  IsIntro = false;
90  Enraged = false;
91  }
uint32 IntroFrostBoltTimer
Definition: boss_brutallus.cpp:102
uint32 BurnTimer
Definition: boss_brutallus.cpp:96
uint32 StompTimer
Definition: boss_brutallus.cpp:97
uint32 IntroPhaseTimer
Definition: boss_brutallus.cpp:101
uint32 SlashTimer
Definition: boss_brutallus.cpp:95
bool IsIntro
Definition: boss_brutallus.cpp:105
uint32 IntroPhase
Definition: boss_brutallus.cpp:100
bool Enraged
Definition: boss_brutallus.cpp:106
uint32 BerserkTimer
Definition: boss_brutallus.cpp:98

+ Here is the caller graph for this function:

void boss_brutallus::boss_brutallusAI::JustDied ( Unit )
inlineoverridevirtual

Reimplemented from ScriptedAI.

130  {
131  Talk(YELL_DEATH);
132 
134  float x, y, z;
135  me->GetPosition(x, y, z);
137  }
Definition: Object.h:61
InstanceScript * instance
Definition: boss_brutallus.cpp:93
Definition: inflate.h:49
Creature *const me
Definition: CreatureAI.h:71
Definition: sunwell_plateau.h:65
float GetOrientation() const
Definition: Position.h:107
G3D::int16 z
Definition: Vector3int16.h:46
void GetPosition(float &x, float &y) const
Definition: Position.h:109
G3D::int16 y
Definition: Vector2int16.h:38
Definition: boss_brutallus.cpp:41
void Talk(uint8 id, WorldObject const *whisperTarget=nullptr)
Definition: CreatureAI.cpp:42
virtual bool SetBossState(uint32 id, EncounterState state)
Definition: InstanceScript.cpp:273
G3D::int16 x
Definition: Vector2int16.h:37
TempSummon * SummonCreature(uint32 id, Position const &pos, TempSummonType spwtype=TEMPSUMMON_MANUAL_DESPAWN, uint32 despwtime=0, uint32 vehId=0) const
Definition: Object.cpp:2346
Definition: sunwell_plateau.h:30

+ Here is the call graph for this function:

void boss_brutallus::boss_brutallusAI::KilledUnit ( Unit )
inlineoverridevirtual

Reimplemented from ScriptedAI.

125  {
126  Talk(YELL_KILL);
127  }
Definition: boss_brutallus.cpp:38
void Talk(uint8 id, WorldObject const *whisperTarget=nullptr)
Definition: CreatureAI.cpp:42

+ Here is the call graph for this function:

void boss_brutallus::boss_brutallusAI::MoveInLineOfSight ( Unit who)
inlineoverridevirtual

Reimplemented from CreatureAI.

262  {
263  if (!me->IsValidAttackTarget(who))
264  return;
265 
266  if (Intro)
268 
269  if (Intro && !IsIntro)
270  StartIntro();
271 
272  if (!Intro)
274  }
InstanceScript * instance
Definition: boss_brutallus.cpp:93
bool IsValidAttackTarget(Unit const *target) const
Definition: Unit.cpp:10002
Creature *const me
Definition: CreatureAI.h:71
Definition: InstanceScript.h:62
void StartIntro()
Definition: boss_brutallus.cpp:145
virtual bool SetBossState(uint32 id, EncounterState state)
Definition: InstanceScript.cpp:273
virtual void MoveInLineOfSight(Unit *)
Definition: CreatureAI.cpp:128
bool Intro
Definition: boss_brutallus.cpp:104
bool IsIntro
Definition: boss_brutallus.cpp:105
Definition: sunwell_plateau.h:30

+ Here is the call graph for this function:

void boss_brutallus::boss_brutallusAI::Reset ( )
inlineoverridevirtual

Reimplemented from ScriptedAI.

109  {
110  Initialize();
111 
112  DoCast(me, SPELL_DUAL_WIELD, true);
113 
115  }
Definition: boss_brutallus.cpp:56
InstanceScript * instance
Definition: boss_brutallus.cpp:93
Creature *const me
Definition: CreatureAI.h:71
Definition: InstanceScript.h:58
void DoCast(uint32 spellId)
Definition: UnitAI.cpp:101
virtual bool SetBossState(uint32 id, EncounterState state)
Definition: InstanceScript.cpp:273
void Initialize()
Definition: boss_brutallus.cpp:78
Definition: sunwell_plateau.h:30

+ Here is the call graph for this function:

void boss_brutallus::boss_brutallusAI::StartIntro ( )
inline
146  {
147  if (!Intro || IsIntro)
148  return;
149 
151  {
152  Madrigosa->Respawn();
153  Madrigosa->setActive(true);
154  IsIntro = true;
155  Madrigosa->SetMaxHealth(me->GetMaxHealth());
156  Madrigosa->SetHealth(me->GetMaxHealth());
158  me->Attack(Madrigosa, true);
159  Madrigosa->Attack(me, true);
160  }
161  else
162  {
163  // Madrigosa not found, end intro
164  TC_LOG_ERROR("scripts", "Madrigosa was not found");
165  EndIntro();
166  }
167  }
bool Attack(Unit *victim, bool meleeAttack)
Definition: Unit.cpp:7222
uint32 GetMaxHealth() const
Definition: Unit.h:1427
Definition: Unit.h:674
InstanceScript * instance
Definition: boss_brutallus.cpp:93
void EndIntro()
Definition: boss_brutallus.cpp:169
Definition: Creature.h:467
void SetFlag(uint16 index, uint32 newFlag)
Definition: Object.cpp:1199
Definition: sunwell_plateau.h:39
Creature *const me
Definition: CreatureAI.h:71
virtual ObjectGuid GetGuidData(uint32 type) const override
Definition: InstanceScript.cpp:93
TC_GAME_API Creature * GetCreature(WorldObject const &u, ObjectGuid const &guid)
Definition: ObjectAccessor.cpp:174
Definition: UpdateFields.h:109
bool Intro
Definition: boss_brutallus.cpp:104
#define TC_LOG_ERROR(filterType__,...)
Definition: Log.h:207
bool IsIntro
Definition: boss_brutallus.cpp:105

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void boss_brutallus::boss_brutallusAI::UpdateAI ( uint32  diff)
inlineoverridevirtual

Reimplemented from ScriptedAI.

277  {
278  if (IsIntro)
279  {
280  if (IntroPhaseTimer <= diff)
281  DoIntro();
282  else IntroPhaseTimer -= diff;
283 
284  if (IntroPhase == 3 + 1)
285  {
286  if (IntroFrostBoltTimer <= diff)
287  {
289  {
290  Madrigosa->CastSpell(me, SPELL_INTRO_FROSTBOLT, true);
291  IntroFrostBoltTimer = 2000;
292  }
293  }
294  else
295  IntroFrostBoltTimer -= diff;
296  }
297 
298  if (!UpdateVictim())
299  return;
300 
302  }
303 
304  if (!UpdateVictim() || IsIntro)
305  return;
306 
307  if (SlashTimer <= diff)
308  {
310  SlashTimer = 11000;
311  } else SlashTimer -= diff;
312 
313  if (StompTimer <= diff)
314  {
315  Talk(YELL_LOVE);
317  StompTimer = 30000;
318  } else StompTimer -= diff;
319 
320  if (BurnTimer <= diff)
321  {
322  std::list<Unit*> targets;
323  SelectTargetList(targets, 10, SELECT_TARGET_RANDOM, 100, true);
324  for (std::list<Unit*>::const_iterator i = targets.begin(); i != targets.end(); ++i)
325  if (!(*i)->HasAura(SPELL_BURN))
326  {
327  (*i)->CastSpell((*i), SPELL_BURN, true);
328  break;
329  }
330  BurnTimer = urand(60000, 180000);
331  } else BurnTimer -= diff;
332 
333  if (BerserkTimer < diff && !Enraged)
334  {
337  Enraged = true;
338  } else BerserkTimer -= diff;
339 
341  }
Definition: boss_brutallus.cpp:39
uint32 IntroFrostBoltTimer
Definition: boss_brutallus.cpp:102
bool UpdateVictim()
Definition: CreatureAI.cpp:233
InstanceScript * instance
Definition: boss_brutallus.cpp:93
void DoIntro()
Definition: boss_brutallus.cpp:183
Definition: boss_brutallus.cpp:55
Definition: Creature.h:467
Definition: boss_brutallus.cpp:52
uint32 BurnTimer
Definition: boss_brutallus.cpp:96
Definition: sunwell_plateau.h:39
Creature *const me
Definition: CreatureAI.h:71
virtual ObjectGuid GetGuidData(uint32 type) const override
Definition: InstanceScript.cpp:93
Definition: boss_brutallus.cpp:54
Definition: UnitAI.h:35
Definition: boss_brutallus.cpp:59
uint32 urand(uint32 min, uint32 max)
Definition: Random.cpp:45
void SelectTargetList(std::list< Unit * > &targetList, uint32 num, SelectAggroTarget targetType, float dist=0.0f, bool playerOnly=false, int32 aura=0)
Definition: UnitAI.cpp:96
void DoCast(uint32 spellId)
Definition: UnitAI.cpp:101
void Talk(uint8 id, WorldObject const *whisperTarget=nullptr)
Definition: CreatureAI.cpp:42
TC_GAME_API Creature * GetCreature(WorldObject const &u, ObjectGuid const &guid)
Definition: ObjectAccessor.cpp:174
uint32 StompTimer
Definition: boss_brutallus.cpp:97
uint32 IntroPhaseTimer
Definition: boss_brutallus.cpp:101
void DoMeleeAttackIfReady()
Definition: UnitAI.cpp:49
void DoCastVictim(uint32 spellId, bool triggered=false)
Definition: UnitAI.cpp:159
uint32 SlashTimer
Definition: boss_brutallus.cpp:95
Definition: boss_brutallus.cpp:40
Definition: boss_brutallus.cpp:53
bool IsIntro
Definition: boss_brutallus.cpp:105
uint32 IntroPhase
Definition: boss_brutallus.cpp:100
bool Enraged
Definition: boss_brutallus.cpp:106
uint32 BerserkTimer
Definition: boss_brutallus.cpp:98

+ Here is the call graph for this function:

Member Data Documentation

uint32 boss_brutallus::boss_brutallusAI::BerserkTimer
uint32 boss_brutallus::boss_brutallusAI::BurnTimer
bool boss_brutallus::boss_brutallusAI::Enraged
InstanceScript* boss_brutallus::boss_brutallusAI::instance
bool boss_brutallus::boss_brutallusAI::Intro
uint32 boss_brutallus::boss_brutallusAI::IntroFrostBoltTimer
uint32 boss_brutallus::boss_brutallusAI::IntroPhase
uint32 boss_brutallus::boss_brutallusAI::IntroPhaseTimer
bool boss_brutallus::boss_brutallusAI::IsIntro
uint32 boss_brutallus::boss_brutallusAI::SlashTimer
uint32 boss_brutallus::boss_brutallusAI::StompTimer

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