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

Public Member Functions

 boss_razorscaleAI (Creature *creature)
 
void Initialize ()
 
void Reset () override
 
void EnterCombat (Unit *) override
 
void JustDied (Unit *) override
 
void SpellHit (Unit *, SpellInfo const *spell) override
 
void MovementInform (uint32 type, uint32 id) override
 
uint32 GetData (uint32 type) const override
 
void UpdateAI (uint32 Diff) override
 
void EnterPermaGround ()
 
void SummonMoleMachines ()
 
void DoAction (int32 action) override
 
- Public Member Functions inherited from BossAI
 BossAI (Creature *creature, uint32 bossId)
 
virtual ~BossAI ()
 
void JustSummoned (Creature *summon) override
 
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 KilledUnit (Unit *) 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 ()
 
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 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

Phases phase
 
uint32 EnrageTimer
 
uint8 FlyCount
 
uint8 HarpoonCounter
 
bool PermaGround
 
bool Enraged
 
- Public Attributes inherited from BossAI
InstanceScript *const instance
 
- 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 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_razorscale::boss_razorscaleAI::boss_razorscaleAI ( Creature creature)
inline
328  : BossAI(creature, BOSS_RAZORSCALE)
329  {
330  Initialize();
331  // Do not let Razorscale be affected by Battle Shout buff
333  FlyCount = 0;
334  EnrageTimer = 0;
335  Enraged = false;
337  }
Definition: boss_razorscale.cpp:114
uint8 FlyCount
Definition: boss_razorscale.cpp:348
Definition: SharedDefines.h:1866
bool Enraged
Definition: boss_razorscale.cpp:351
void ApplySpellImmune(uint32 spellId, uint32 op, uint32 type, bool apply)
Definition: Unit.cpp:9615
void Initialize()
Definition: boss_razorscale.cpp:339
Definition: ulduar.h:34
Creature *const me
Definition: CreatureAI.h:71
Phases phase
Definition: boss_razorscale.cpp:345
uint32 EnrageTimer
Definition: boss_razorscale.cpp:347
BossAI(Creature *creature, uint32 bossId)
Definition: ScriptedCreature.cpp:444
Definition: boss_razorscale.cpp:97

+ Here is the call graph for this function:

Member Function Documentation

void boss_razorscale::boss_razorscaleAI::DoAction ( int32  action)
inlineoverridevirtual

Reimplemented from UnitAI.

580  {
581  switch (action)
582  {
583  case ACTION_EVENT_START:
586  DoZoneInCombat(me, 150.0f);
587  break;
588  }
589  }
Definition: Unit.h:674
Definition: Unit.h:1131
void DoZoneInCombat(Creature *creature=NULL, float maxRangeToNearestTarget=50.0f)
Definition: CreatureAI.cpp:47
Definition: boss_razorscale.cpp:104
Creature *const me
Definition: CreatureAI.h:71
void RemoveFlag(uint16 index, uint32 oldFlag)
Definition: Object.cpp:1214
Definition: UpdateFields.h:109
void SetReactState(ReactStates st)
Definition: Creature.h:502
Definition: Unit.h:698

+ Here is the call graph for this function:

void boss_razorscale::boss_razorscaleAI::EnterCombat ( Unit )
inlineoverridevirtual

Reimplemented from BossAI.

365  {
366  _EnterCombat();
368  controller->AI()->DoAction(ACTION_HARPOON_BUILD);
369  me->SetSpeed(MOVE_FLIGHT, 3.0f, true);
373  FlyCount = 0;
374  EnrageTimer = 600000;
375  Enraged = false;
377  }
Definition: boss_razorscale.cpp:114
Definition: Unit.h:605
uint8 FlyCount
Definition: boss_razorscale.cpp:348
void _EnterCombat()
Definition: ScriptedCreature.cpp:480
void SetPhase(uint8 phase)
Definition: EventMap.cpp:27
Definition: Unit.h:1129
bool Enraged
Definition: boss_razorscale.cpp:351
Definition: boss_razorscale.cpp:124
Definition: Creature.h:467
Creature *const me
Definition: CreatureAI.h:71
virtual ObjectGuid GetGuidData(uint32 type) const override
Definition: InstanceScript.cpp:93
void ScheduleEvent(uint32 eventId, Milliseconds const &time, uint32 group=0, uint8 phase=0)
Definition: EventMap.h:123
Definition: boss_razorscale.cpp:106
TC_GAME_API Creature * GetCreature(WorldObject const &u, ObjectGuid const &guid)
Definition: ObjectAccessor.cpp:174
Phases phase
Definition: boss_razorscale.cpp:345
Definition: ulduar.h:354
EventMap events
Definition: ScriptedCreature.h:371
void SetSpeed(UnitMoveType mtype, float rate, bool forced=false)
Definition: Unit.cpp:10531
uint32 EnrageTimer
Definition: boss_razorscale.cpp:347
void SetReactState(ReactStates st)
Definition: Creature.h:502
InstanceScript *const instance
Definition: ScriptedCreature.h:340

+ Here is the call graph for this function:

void boss_razorscale::boss_razorscaleAI::EnterPermaGround ( )
inline
545  {
546  Talk(EMOTE_PERMA);
549  me->SetCanFly(false);
553  me->SetSpeed(MOVE_FLIGHT, 1.0f, true);
554  PermaGround = true;
563  }
void DoCastAOE(uint32 spellId, bool triggered=false)
Definition: UnitAI.cpp:167
Definition: Unit.h:605
Definition: Unit.h:1131
void SetPhase(uint8 phase)
Definition: EventMap.cpp:27
Definition: boss_razorscale.cpp:123
Definition: boss_razorscale.cpp:129
bool PermaGround
Definition: boss_razorscale.cpp:350
Definition: boss_razorscale.cpp:44
Definition: boss_razorscale.cpp:65
Definition: boss_razorscale.cpp:126
Creature *const me
Definition: CreatureAI.h:71
Definition: Unit.h:690
bool SetCanFly(bool enable)
Definition: Unit.cpp:15899
Definition: boss_razorscale.cpp:121
void Talk(uint8 id, WorldObject const *whisperTarget=nullptr)
Definition: CreatureAI.cpp:42
void ScheduleEvent(uint32 eventId, Milliseconds const &time, uint32 group=0, uint8 phase=0)
Definition: EventMap.h:123
Phases phase
Definition: boss_razorscale.cpp:345
void RescheduleEvent(uint32 eventId, Milliseconds const &time, uint32 group=0, uint8 phase=0)
Definition: EventMap.h:146
Definition: boss_razorscale.cpp:125
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
Definition: boss_razorscale.cpp:113
Definition: Unit.h:691
EventMap events
Definition: ScriptedCreature.h:371
void SetSpeed(UnitMoveType mtype, float rate, bool forced=false)
Definition: Unit.cpp:10531
Definition: boss_razorscale.cpp:122
void SetReactState(ReactStates st)
Definition: Creature.h:502
Definition: boss_razorscale.cpp:54
Definition: Unit.h:698

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

uint32 boss_razorscale::boss_razorscaleAI::GetData ( uint32  type) const
inlineoverridevirtual

Reimplemented from UnitAI.

403  {
404  if (type == DATA_QUICK_SHAVE)
405  if (FlyCount <= 2)
406  return 1;
407 
408  return 0;
409  }
uint8 FlyCount
Definition: boss_razorscale.cpp:348
Definition: boss_razorscale.cpp:143
void boss_razorscale::boss_razorscaleAI::Initialize ( void  )
inline
340  {
341  PermaGround = false;
342  HarpoonCounter = 0;
343  }
uint8 HarpoonCounter
Definition: boss_razorscale.cpp:349
bool PermaGround
Definition: boss_razorscale.cpp:350

+ Here is the caller graph for this function:

void boss_razorscale::boss_razorscaleAI::JustDied ( Unit )
inlineoverridevirtual

Reimplemented from BossAI.

380  {
381  _JustDied();
383  controller->AI()->Reset();
384  }
void _JustDied()
Definition: ScriptedCreature.cpp:471
Definition: Creature.h:467
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: ulduar.h:354
InstanceScript *const instance
Definition: ScriptedCreature.h:340

+ Here is the call graph for this function:

void boss_razorscale::boss_razorscaleAI::MovementInform ( uint32  type,
uint32  id 
)
inlineoverridevirtual

Reimplemented from CreatureAI.

393  {
394  if (type == EFFECT_MOTION_TYPE && id == 1)
395  {
399  }
400  }
Definition: boss_razorscale.cpp:114
void SetPhase(uint8 phase)
Definition: EventMap.cpp:27
Definition: MotionMaster.h:54
void ScheduleEvent(uint32 eventId, Milliseconds const &time, uint32 group=0, uint8 phase=0)
Definition: EventMap.h:123
Phases phase
Definition: boss_razorscale.cpp:345
EventMap events
Definition: ScriptedCreature.h:371
Definition: boss_razorscale.cpp:127

+ Here is the call graph for this function:

void boss_razorscale::boss_razorscaleAI::Reset ( )
inlineoverridevirtual

Reimplemented from BossAI.

354  {
355  _Reset();
356  me->SetCanFly(true);
359  Initialize();
361  commander->AI()->DoAction(ACTION_COMMANDER_RESET);
362  }
Definition: Unit.h:1129
Definition: ulduar.h:353
Definition: Creature.h:467
void Initialize()
Definition: boss_razorscale.cpp:339
void SetFlag(uint16 index, uint32 newFlag)
Definition: Object.cpp:1199
Creature *const me
Definition: CreatureAI.h:71
virtual ObjectGuid GetGuidData(uint32 type) const override
Definition: InstanceScript.cpp:93
bool SetCanFly(bool enable)
Definition: Unit.cpp:15899
void _Reset()
Definition: ScriptedCreature.cpp:457
Definition: boss_razorscale.cpp:108
TC_GAME_API Creature * GetCreature(WorldObject const &u, ObjectGuid const &guid)
Definition: ObjectAccessor.cpp:174
Definition: UpdateFields.h:109
void SetReactState(ReactStates st)
Definition: Creature.h:502
Definition: Unit.h:698
InstanceScript *const instance
Definition: ScriptedCreature.h:340

+ Here is the call graph for this function:

void boss_razorscale::boss_razorscaleAI::SpellHit ( Unit ,
SpellInfo const spell 
)
inlineoverridevirtual

Reimplemented from ScriptedAI.

387  {
388  if (spell->Id == SPELL_HARPOON_TRIGGER)
389  ++HarpoonCounter;
390  }
uint8 HarpoonCounter
Definition: boss_razorscale.cpp:349
Definition: boss_razorscale.cpp:65
void boss_razorscale::boss_razorscaleAI::SummonMoleMachines ( )
inline
566  {
567  // Adds will come in waves from mole machines. One mole can spawn a Dark Rune Watcher
568  // with 1-2 Guardians, or a lone Sentinel. Up to 4 mole machines can spawn adds at any given time.
569  uint8 random = urand(2, 4);
570  for (uint8 n = 0; n < random; n++)
571  {
572  float x = float(irand(540, 640)); // Safe range is between 500 and 650
573  float y = float(irand(-230, -195)); // Safe range is between -235 and -145
574  float z = GROUND_Z; // Ground level
576  }
577  }
int32 irand(int32 min, int32 max)
Definition: Random.cpp:39
Creature *const me
Definition: CreatureAI.h:71
Definition: boss_razorscale.cpp:83
Definition: Object.h:56
G3D::int16 z
Definition: Vector3int16.h:46
uint32 urand(uint32 min, uint32 max)
Definition: Random.cpp:45
G3D::int16 y
Definition: Vector2int16.h:38
uint8_t uint8
Definition: Define.h:152
G3D::int16 x
Definition: Vector2int16.h:37
#define GROUND_Z
Definition: boss_razorscale.cpp:138
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:

+ Here is the caller graph for this function:

void boss_razorscale::boss_razorscaleAI::UpdateAI ( uint32  Diff)
inlineoverridevirtual

Reimplemented from BossAI.

412  {
413  if (!UpdateVictim())
414  return;
415 
416  events.Update(Diff);
417 
418  if (HealthBelowPct(50) && !PermaGround)
420 
421  if (EnrageTimer <= Diff && !Enraged)
422  {
424  Enraged = true;
425  }
426  else
427  EnrageTimer -= Diff;
428 
429  if (HarpoonCounter == RAID_MODE(2, 4))
430  {
431  HarpoonCounter = 0;
433  }
434 
435  if (phase == PHASE_GROUND)
436  {
437  while (uint32 eventId = events.ExecuteEvent())
438  {
439  switch (eventId)
440  {
441  case EVENT_FLIGHT:
444  me->SetCanFly(true);
447  me->AttackStop();
452  ++FlyCount;
453  return;
454  case EVENT_LAND:
455  me->SetCanFly(false);
459  commander->AI()->DoAction(ACTION_GROUND_PHASE);
463  return;
464  case EVENT_BREATH:
466  me->RemoveAllAuras();
471  return;
472  case EVENT_BUFFET:
475  controller->CastSpell(controller, SPELL_FLAMED, true);
477  return;
478  }
479  }
480  }
481  if (phase == PHASE_PERMAGROUND)
482  {
483  while (uint32 eventId = events.ExecuteEvent())
484  {
485  switch (eventId)
486  {
487  case EVENT_FLAME:
490  return;
491  case EVENT_BREATH:
495  return;
496  case EVENT_FIREBALL:
497  if (Unit* target = SelectTarget(SELECT_TARGET_RANDOM, 0, 200.0f, true))
498  DoCast(target, SPELL_FIREBALL);
500  return;
501  case EVENT_DEVOURING:
502  if (Unit* target = SelectTarget(SELECT_TARGET_RANDOM, 0, 200.0f, true))
503  DoCast(target, SPELL_DEVOURING_FLAME);
505  return;
506  case EVENT_BUFFET:
509  return;
510  case EVENT_FUSE:
513  return;
514  }
515  }
516 
518  }
519  else
520  {
521  if (uint32 eventId = events.ExecuteEvent())
522  {
523  switch (eventId)
524  {
525  case EVENT_FIREBALL:
526  if (Unit* target = SelectTarget(SELECT_TARGET_RANDOM, 0, 200.0f, true))
527  DoCast(target, SPELL_FIREBALL);
529  return;
530  case EVENT_DEVOURING:
531  if (Unit* target = SelectTarget(SELECT_TARGET_RANDOM, 0, 200.0f, true))
532  me->CastSpell(target->GetPositionX(), target->GetPositionY(), target->GetPositionZ(), SPELL_DEVOURING_FLAME, true);
534  return;
535  case EVENT_SUMMON:
538  return;
539  }
540  }
541  }
542  }
Definition: boss_razorscale.cpp:114
bool AttackStop()
Definition: Unit.cpp:7337
void RemoveAllAuras()
Definition: Unit.cpp:3920
void DoCastAOE(uint32 spellId, bool triggered=false)
Definition: UnitAI.cpp:167
uint8 FlyCount
Definition: boss_razorscale.cpp:348
bool UpdateVictim()
Definition: CreatureAI.cpp:233
Definition: Unit.h:1131
Definition: boss_razorscale.cpp:53
Definition: boss_razorscale.cpp:45
void SetPhase(uint8 phase)
Definition: EventMap.cpp:27
Definition: boss_razorscale.cpp:123
Definition: Unit.h:1129
bool HealthBelowPct(uint32 pct) const
Definition: ScriptedCreature.h:247
Definition: boss_razorscale.cpp:130
bool Enraged
Definition: boss_razorscale.cpp:351
uint8 HarpoonCounter
Definition: boss_razorscale.cpp:349
Definition: ulduar.h:353
Definition: boss_razorscale.cpp:124
Definition: boss_razorscale.cpp:129
MotionMaster * GetMotionMaster()
Definition: Unit.h:2101
bool PermaGround
Definition: boss_razorscale.cpp:350
void CancelEvent(uint32 eventId)
Definition: EventMap.cpp:89
Definition: Creature.h:467
Definition: boss_razorscale.cpp:105
const Position RazorGround
Definition: boss_razorscale.cpp:180
Definition: boss_razorscale.cpp:51
void SetFlag(uint16 index, uint32 newFlag)
Definition: Object.cpp:1199
Definition: boss_razorscale.cpp:126
Creature *const me
Definition: CreatureAI.h:71
Definition: boss_razorscale.cpp:55
Definition: Unit.h:690
Definition: boss_razorscale.cpp:115
virtual ObjectGuid GetGuidData(uint32 type) const override
Definition: InstanceScript.cpp:93
Definition: boss_razorscale.cpp:56
Definition: boss_razorscale.cpp:50
Definition: UnitAI.h:35
Definition: boss_razorscale.cpp:61
Unit * SelectTarget(SelectAggroTarget targetType, uint32 position=0, float dist=0.0f, bool playerOnly=false, int32 aura=0)
Definition: UnitAI.cpp:91
bool SetCanFly(bool enable)
Definition: Unit.cpp:15899
Definition: boss_razorscale.cpp:121
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 EnterPermaGround()
Definition: boss_razorscale.cpp:544
void ScheduleEvent(uint32 eventId, Milliseconds const &time, uint32 group=0, uint8 phase=0)
Definition: EventMap.h:123
TC_GAME_API Creature * GetCreature(WorldObject const &u, ObjectGuid const &guid)
Definition: ObjectAccessor.cpp:174
void Update(uint32 time)
Definition: EventMap.h:54
void MoveLand(uint32 id, Position const &pos)
Definition: MotionMaster.cpp:299
Phases phase
Definition: boss_razorscale.cpp:345
const T & RAID_MODE(const T &normal10, const T &normal25) const
Definition: ScriptedCreature.h:293
Definition: boss_razorscale.cpp:125
void RemoveFlag(uint16 index, uint32 oldFlag)
Definition: Object.cpp:1214
Definition: UpdateFields.h:109
Definition: boss_razorscale.cpp:113
uint32 ExecuteEvent()
Definition: EventMap.cpp:46
void DoMeleeAttackIfReady()
Definition: UnitAI.cpp:49
Definition: ulduar.h:354
Definition: Unit.h:691
EventMap events
Definition: ScriptedCreature.h:371
void SummonMoleMachines()
Definition: boss_razorscale.cpp:565
Definition: boss_razorscale.cpp:122
void DoCastVictim(uint32 spellId, bool triggered=false)
Definition: UnitAI.cpp:159
void MoveTakeoff(uint32 id, Position const &pos)
Definition: MotionMaster.cpp:313
const Position RazorFlight
Definition: boss_razorscale.cpp:179
Definition: boss_razorscale.cpp:58
Definition: Unit.h:1305
uint32 EnrageTimer
Definition: boss_razorscale.cpp:347
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_razorscale.cpp:54
Definition: Unit.h:698
InstanceScript *const instance
Definition: ScriptedCreature.h:340
Definition: boss_razorscale.cpp:127

+ Here is the call graph for this function:

Member Data Documentation

bool boss_razorscale::boss_razorscaleAI::Enraged
uint32 boss_razorscale::boss_razorscaleAI::EnrageTimer
uint8 boss_razorscale::boss_razorscaleAI::FlyCount
uint8 boss_razorscale::boss_razorscaleAI::HarpoonCounter
bool boss_razorscale::boss_razorscaleAI::PermaGround
Phases boss_razorscale::boss_razorscaleAI::phase

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