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

Public Member Functions

 boss_warbringer_omroggAI (Creature *creature)
 
void Initialize ()
 
void Reset () override
 
void DoYellForThreat ()
 
void EnterCombat (Unit *) override
 
void JustSummoned (Creature *summoned) override
 
void KilledUnit (Unit *) override
 
void JustDied (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 ()
 
void JustReachedHome () override
 
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

ObjectGuid LeftHeadGUID
 
ObjectGuid RightHeadGUID
 
int iaggro
 
int ithreat
 
int ikilling
 
bool AggroYell
 
bool ThreatYell
 
bool ThreatYell2
 
bool KillingYell
 
uint32 Delay_Timer
 
uint32 BlastWave_Timer
 
uint32 BlastCount
 
uint32 Fear_Timer
 
uint32 BurningMaul_Timer
 
uint32 ThunderClap_Timer
 
uint32 ResetThreat_Timer
 

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)
 
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
 
CreatureBoundary const_boundary
 
- Protected Attributes inherited from UnitAI
Unit *const me
 

Constructor & Destructor Documentation

boss_warbringer_omrogg::boss_warbringer_omroggAI::boss_warbringer_omroggAI ( Creature creature)
inline
137  : BossAI(creature, DATA_OMROGG)
138  {
139  Initialize();
140  iaggro = 0;
141  ithreat = 0;
142  ikilling = 0;
143  }
int iaggro
Definition: boss_warbringer_omrogg.cpp:376
int ithreat
Definition: boss_warbringer_omrogg.cpp:377
Definition: shattered_halls.h:30
int ikilling
Definition: boss_warbringer_omrogg.cpp:378
void Initialize()
Definition: boss_warbringer_omrogg.cpp:145
BossAI(Creature *creature, uint32 bossId)
Definition: ScriptedCreature.cpp:444

+ Here is the call graph for this function:

Member Function Documentation

void boss_warbringer_omrogg::boss_warbringer_omroggAI::DoYellForThreat ( )
inline
182  {
185 
186  if (!LeftHead || !RightHead)
187  return;
188 
189  ithreat = rand32() % 4;
190 
191  Creature* source = (LeftHead->GetEntry() == Threat[ithreat].creature ? LeftHead : RightHead);
192 
193  source->AI()->Talk(Threat[ithreat].id);
194 
195  Delay_Timer = 3500;
196  ThreatYell = true;
197  }
ObjectGuid RightHeadGUID
Definition: boss_warbringer_omrogg.cpp:375
Definition: Creature.h:467
int ithreat
Definition: boss_warbringer_omrogg.cpp:377
uint32 creature
Definition: boss_warbringer_omrogg.cpp:73
ObjectGuid LeftHeadGUID
Definition: boss_warbringer_omrogg.cpp:374
Creature *const me
Definition: CreatureAI.h:71
CreatureAI * AI() const
Definition: Creature.h:525
static Yell Threat[]
Definition: boss_warbringer_omrogg.cpp:90
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 rand32()
Definition: Random.cpp:64
uint32 GetEntry() const
Definition: Object.h:107
bool ThreatYell
Definition: boss_warbringer_omrogg.cpp:381
uint32 Delay_Timer
Definition: boss_warbringer_omrogg.cpp:385

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void boss_warbringer_omrogg::boss_warbringer_omroggAI::EnterCombat ( Unit )
inlineoverridevirtual

Reimplemented from BossAI.

200  {
201  me->SummonCreature(NPC_LEFT_HEAD, 0.0f, 0.0f, 0.0f, 0.0f, TEMPSUMMON_DEAD_DESPAWN, 0);
202  me->SummonCreature(NPC_RIGHT_HEAD, 0.0f, 0.0f, 0.0f, 0.0f, TEMPSUMMON_DEAD_DESPAWN, 0);
203 
205  {
206  iaggro = rand32() % 3;
207 
208  LeftHead->AI()->Talk(GoCombat[iaggro].id);
209 
210  Delay_Timer = 3500;
211  AggroYell = true;
212  }
213 
215  }
int iaggro
Definition: boss_warbringer_omrogg.cpp:376
bool AggroYell
Definition: boss_warbringer_omrogg.cpp:380
Definition: Creature.h:467
Definition: Object.h:60
Definition: shattered_halls.h:30
ObjectGuid LeftHeadGUID
Definition: boss_warbringer_omrogg.cpp:374
Creature *const me
Definition: CreatureAI.h:71
Definition: InstanceScript.h:59
static Yell GoCombat[]
Definition: boss_warbringer_omrogg.cpp:76
virtual bool SetBossState(uint32 id, EncounterState state)
Definition: InstanceScript.cpp:273
TC_GAME_API Creature * GetCreature(WorldObject const &u, ObjectGuid const &guid)
Definition: ObjectAccessor.cpp:174
uint32 rand32()
Definition: Random.cpp:64
Definition: boss_warbringer_omrogg.cpp:54
uint32 Delay_Timer
Definition: boss_warbringer_omrogg.cpp:385
Definition: boss_warbringer_omrogg.cpp:55
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_warbringer_omrogg::boss_warbringer_omroggAI::Initialize ( void  )
inline
146  {
147  AggroYell = false;
148  ThreatYell = false;
149  ThreatYell2 = false;
150  KillingYell = false;
151 
152  Delay_Timer = 4000;
153  BlastWave_Timer = 0;
154  BlastCount = 0;
155  Fear_Timer = 8000;
156  BurningMaul_Timer = 25000;
157  ThunderClap_Timer = 15000;
158  ResetThreat_Timer = 30000;
159  }
uint32 ThunderClap_Timer
Definition: boss_warbringer_omrogg.cpp:390
bool AggroYell
Definition: boss_warbringer_omrogg.cpp:380
bool KillingYell
Definition: boss_warbringer_omrogg.cpp:383
bool ThreatYell2
Definition: boss_warbringer_omrogg.cpp:382
uint32 Fear_Timer
Definition: boss_warbringer_omrogg.cpp:388
uint32 BlastWave_Timer
Definition: boss_warbringer_omrogg.cpp:386
uint32 BurningMaul_Timer
Definition: boss_warbringer_omrogg.cpp:389
uint32 ResetThreat_Timer
Definition: boss_warbringer_omrogg.cpp:391
bool ThreatYell
Definition: boss_warbringer_omrogg.cpp:381
uint32 Delay_Timer
Definition: boss_warbringer_omrogg.cpp:385
uint32 BlastCount
Definition: boss_warbringer_omrogg.cpp:387

+ Here is the caller graph for this function:

void boss_warbringer_omrogg::boss_warbringer_omroggAI::JustDied ( Unit )
inlineoverridevirtual

Reimplemented from BossAI.

257  {
260 
261  _JustDied();
262 
263  if (!LeftHead || !RightHead)
264  return;
265 
266  LeftHead->AI()->Talk(YELL_DIE_L);
267 
268  RightHead->AI()->SetData(SETDATA_DATA, SETDATA_YELL);
269  }
virtual void SetData(uint32, uint32)
Definition: UnitAI.h:140
ObjectGuid RightHeadGUID
Definition: boss_warbringer_omrogg.cpp:375
Definition: boss_warbringer_omrogg.cpp:37
void _JustDied()
Definition: ScriptedCreature.cpp:471
Definition: boss_warbringer_omrogg.cpp:60
Definition: Creature.h:467
ObjectGuid LeftHeadGUID
Definition: boss_warbringer_omrogg.cpp:374
Creature *const me
Definition: CreatureAI.h:71
CreatureAI * AI() const
Definition: Creature.h:525
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
Definition: boss_warbringer_omrogg.cpp:61

+ Here is the call graph for this function:

void boss_warbringer_omrogg::boss_warbringer_omroggAI::JustSummoned ( Creature summoned)
inlineoverridevirtual

Reimplemented from BossAI.

218  {
219  if (summoned->GetEntry() == NPC_LEFT_HEAD)
220  LeftHeadGUID = summoned->GetGUID();
221 
222  if (summoned->GetEntry() == NPC_RIGHT_HEAD)
223  RightHeadGUID = summoned->GetGUID();
224 
225  //summoned->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE);
226  //summoned->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE);
227  summoned->SetVisible(false);
228  }
ObjectGuid RightHeadGUID
Definition: boss_warbringer_omrogg.cpp:375
ObjectGuid LeftHeadGUID
Definition: boss_warbringer_omrogg.cpp:374
void SetVisible(bool x)
Definition: Unit.cpp:10368
ObjectGuid const & GetGUID() const
Definition: Object.h:105
Definition: boss_warbringer_omrogg.cpp:54
uint32 GetEntry() const
Definition: Object.h:107
Definition: boss_warbringer_omrogg.cpp:55

+ Here is the call graph for this function:

void boss_warbringer_omrogg::boss_warbringer_omroggAI::KilledUnit ( Unit )
inlineoverridevirtual

Reimplemented from ScriptedAI.

231  {
234 
235  if (!LeftHead || !RightHead)
236  return;
237 
238  ikilling = rand32() % 2;
239 
240  Creature* source = (LeftHead->GetEntry() == Killing[ikilling].creature ? LeftHead : RightHead);
241 
242  switch (ikilling)
243  {
244  case 0:
245  source->AI()->Talk(Killing[ikilling].id);
246  Delay_Timer = 3500;
247  KillingYell = true;
248  break;
249  case 1:
250  source->AI()->Talk(Killing[ikilling].id);
251  KillingYell = false;
252  break;
253  }
254  }
ObjectGuid RightHeadGUID
Definition: boss_warbringer_omrogg.cpp:375
Definition: Creature.h:467
bool KillingYell
Definition: boss_warbringer_omrogg.cpp:383
uint32 creature
Definition: boss_warbringer_omrogg.cpp:73
ObjectGuid LeftHeadGUID
Definition: boss_warbringer_omrogg.cpp:374
Creature *const me
Definition: CreatureAI.h:71
int ikilling
Definition: boss_warbringer_omrogg.cpp:378
CreatureAI * AI() const
Definition: Creature.h:525
static Yell Killing[]
Definition: boss_warbringer_omrogg.cpp:114
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 rand32()
Definition: Random.cpp:64
uint32 GetEntry() const
Definition: Object.h:107
uint32 Delay_Timer
Definition: boss_warbringer_omrogg.cpp:385

+ Here is the call graph for this function:

void boss_warbringer_omrogg::boss_warbringer_omroggAI::Reset ( )
inlineoverridevirtual

Reimplemented from BossAI.

162  {
163  _Reset();
164  if (Unit* LeftHead = ObjectAccessor::GetUnit(*me, LeftHeadGUID))
165  {
166  LeftHead->setDeathState(JUST_DIED);
168  }
169 
170  if (Unit* RightHead = ObjectAccessor::GetUnit(*me, RightHeadGUID))
171  {
172  RightHead->setDeathState(JUST_DIED);
174  }
175 
176  Initialize();
177 
178  instance->SetData(DATA_OMROGG, NOT_STARTED); //End boss can use this later. O'mrogg must be defeated(DONE) or he will come to aid.
179  }
ObjectGuid RightHeadGUID
Definition: boss_warbringer_omrogg.cpp:375
TC_GAME_API Unit * GetUnit(WorldObject const &, ObjectGuid const &guid)
Definition: ObjectAccessor.cpp:163
Definition: Unit.h:542
Definition: shattered_halls.h:30
ObjectGuid LeftHeadGUID
Definition: boss_warbringer_omrogg.cpp:374
Creature *const me
Definition: CreatureAI.h:71
virtual void SetData(uint32, uint32)
Definition: ZoneScript.h:52
Definition: InstanceScript.h:58
void _Reset()
Definition: ScriptedCreature.cpp:457
void Clear()
Definition: ObjectGuid.h:215
void Initialize()
Definition: boss_warbringer_omrogg.cpp:145
Definition: Unit.h:1305
InstanceScript *const instance
Definition: ScriptedCreature.h:340

+ Here is the call graph for this function:

void boss_warbringer_omrogg::boss_warbringer_omroggAI::UpdateAI ( uint32  diff)
inlineoverridevirtual

Reimplemented from BossAI.

272  {
273  if (Delay_Timer <= diff)
274  {
275  Delay_Timer = 3500;
276 
279 
280  if (!LeftHead || !RightHead)
281  return;
282 
283  if (AggroYell)
284  {
285  RightHead->AI()->Talk(GoCombatDelay[iaggro].id);
286  AggroYell = false;
287  }
288 
289  if (ThreatYell2)
290  {
291  Creature* source = (LeftHead->GetEntry() == ThreatDelay2[ithreat].creature ? LeftHead : RightHead);
292 
293  source->AI()->Talk(ThreatDelay2[ithreat].id);
294  ThreatYell2 = false;
295  }
296 
297  if (ThreatYell)
298  {
299  Creature* source = (LeftHead->GetEntry() == ThreatDelay1[ithreat].creature ? LeftHead : RightHead);
300 
301  source->AI()->Talk(ThreatDelay1[ithreat].id);
302  ThreatYell = false;
303  ThreatYell2 = true;
304  }
305 
306  if (KillingYell)
307  {
308  Creature* source = (LeftHead->GetEntry() == KillingDelay[ikilling].creature ? LeftHead : RightHead);
309 
310  source->AI()->Talk(KillingDelay[ikilling].id);
311  KillingYell = false;
312  }
313  } else Delay_Timer -= diff;
314 
315  if (!UpdateVictim())
316  return;
317 
318  if (BlastCount && BlastWave_Timer <= diff)
319  {
321  BlastWave_Timer = 5000;
322  ++BlastCount;
323 
324  if (BlastCount == 3)
325  BlastCount = 0;
326  }
327  else
328  BlastWave_Timer -= diff;
329 
330  if (BurningMaul_Timer <= diff)
331  {
334  BurningMaul_Timer = 40000;
335  BlastWave_Timer = 16000;
336  BlastCount = 1;
337  }
338  else
339  BurningMaul_Timer -= diff;
340 
341  if (ResetThreat_Timer <= diff)
342  {
343  if (Unit* target = SelectTarget(SELECT_TARGET_RANDOM, 0))
344  {
345  DoYellForThreat();
346  DoResetThreat();
347  me->AddThreat(target, 0.0f);
348  }
349  ResetThreat_Timer = 25000 + rand32() % 15000;
350  }
351  else
352  ResetThreat_Timer -= diff;
353 
354  if (Fear_Timer <= diff)
355  {
356  DoCast(me, SPELL_FEAR);
357  Fear_Timer = 15000 + rand32() % 20000;
358  }
359  else
360  Fear_Timer -= diff;
361 
362  if (ThunderClap_Timer <= diff)
363  {
365  ThunderClap_Timer = 15000 + rand32() % 15000;
366  }
367  else
368  ThunderClap_Timer -= diff;
369 
371  }
uint32 ThunderClap_Timer
Definition: boss_warbringer_omrogg.cpp:390
ObjectGuid RightHeadGUID
Definition: boss_warbringer_omrogg.cpp:375
void AddThreat(Unit *victim, float fThreat, SpellSchoolMask schoolMask=SPELL_SCHOOL_MASK_NORMAL, SpellInfo const *threatSpell=NULL)
Definition: Unit.cpp:10691
bool UpdateVictim()
Definition: CreatureAI.cpp:233
static Yell ThreatDelay1[]
Definition: boss_warbringer_omrogg.cpp:98
Definition: boss_warbringer_omrogg.cpp:39
int iaggro
Definition: boss_warbringer_omrogg.cpp:376
Definition: boss_warbringer_omrogg.cpp:46
bool AggroYell
Definition: boss_warbringer_omrogg.cpp:380
Definition: Creature.h:467
bool KillingYell
Definition: boss_warbringer_omrogg.cpp:383
int ithreat
Definition: boss_warbringer_omrogg.cpp:377
bool ThreatYell2
Definition: boss_warbringer_omrogg.cpp:382
uint32 creature
Definition: boss_warbringer_omrogg.cpp:73
Definition: boss_warbringer_omrogg.cpp:44
void DoYellForThreat()
Definition: boss_warbringer_omrogg.cpp:181
ObjectGuid LeftHeadGUID
Definition: boss_warbringer_omrogg.cpp:374
Creature *const me
Definition: CreatureAI.h:71
Definition: UnitAI.h:35
Definition: boss_warbringer_omrogg.cpp:48
int ikilling
Definition: boss_warbringer_omrogg.cpp:378
uint32 Fear_Timer
Definition: boss_warbringer_omrogg.cpp:388
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
void DoCast(uint32 spellId)
Definition: UnitAI.cpp:101
static Yell GoCombatDelay[]
Definition: boss_warbringer_omrogg.cpp:83
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
void DoResetThreat()
Definition: ScriptedCreature.cpp:248
static Yell KillingDelay[]
Definition: boss_warbringer_omrogg.cpp:120
static Yell ThreatDelay2[]
Definition: boss_warbringer_omrogg.cpp:106
uint32 BlastWave_Timer
Definition: boss_warbringer_omrogg.cpp:386
uint32 rand32()
Definition: Random.cpp:64
uint32 BurningMaul_Timer
Definition: boss_warbringer_omrogg.cpp:389
void DoMeleeAttackIfReady()
Definition: UnitAI.cpp:49
uint32 GetEntry() const
Definition: Object.h:107
uint32 ResetThreat_Timer
Definition: boss_warbringer_omrogg.cpp:391
bool ThreatYell
Definition: boss_warbringer_omrogg.cpp:381
Definition: Unit.h:1305
uint32 Delay_Timer
Definition: boss_warbringer_omrogg.cpp:385
uint32 BlastCount
Definition: boss_warbringer_omrogg.cpp:387
Definition: boss_warbringer_omrogg.cpp:45

+ Here is the call graph for this function:

Member Data Documentation

bool boss_warbringer_omrogg::boss_warbringer_omroggAI::AggroYell
private
uint32 boss_warbringer_omrogg::boss_warbringer_omroggAI::BlastCount
private
uint32 boss_warbringer_omrogg::boss_warbringer_omroggAI::BlastWave_Timer
private
uint32 boss_warbringer_omrogg::boss_warbringer_omroggAI::BurningMaul_Timer
private
uint32 boss_warbringer_omrogg::boss_warbringer_omroggAI::Delay_Timer
private
uint32 boss_warbringer_omrogg::boss_warbringer_omroggAI::Fear_Timer
private
int boss_warbringer_omrogg::boss_warbringer_omroggAI::iaggro
private
int boss_warbringer_omrogg::boss_warbringer_omroggAI::ikilling
private
int boss_warbringer_omrogg::boss_warbringer_omroggAI::ithreat
private
bool boss_warbringer_omrogg::boss_warbringer_omroggAI::KillingYell
private
ObjectGuid boss_warbringer_omrogg::boss_warbringer_omroggAI::LeftHeadGUID
private
uint32 boss_warbringer_omrogg::boss_warbringer_omroggAI::ResetThreat_Timer
private
ObjectGuid boss_warbringer_omrogg::boss_warbringer_omroggAI::RightHeadGUID
private
bool boss_warbringer_omrogg::boss_warbringer_omroggAI::ThreatYell
private
bool boss_warbringer_omrogg::boss_warbringer_omroggAI::ThreatYell2
private
uint32 boss_warbringer_omrogg::boss_warbringer_omroggAI::ThunderClap_Timer
private

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