AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
boss_razorscale::boss_razorscaleAI Struct Reference
Inheritance diagram for boss_razorscale::boss_razorscaleAI:
ScriptedAI CreatureAI UnitAI

Public Member Functions

 boss_razorscaleAI (Creature *pCreature)
 
void InitializeAI () override
 
void Reset () override
 
void AttackStart (Unit *who) override
 
void JustEngagedWith (Unit *) override
 Called for reaction when initially engaged. More...
 
void JustDied (Unit *) override
 
void SpellHit (Unit *caster, SpellInfo const *spell) override
 
void DamageTaken (Unit *, uint32 &damage, DamageEffectType, SpellSchoolMask) override
 Called at any Damage from any attacker (before damage apply) More...
 
void MovementInform (uint32 type, uint32 id) override
 
void UpdateAI (uint32 diff) override
 Use to start attacking a target. Called just before JustEngagedWith() More...
 
void MoveInLineOfSight (Unit *) override
 
void JustReachedHome () override
 
void JustSummoned (Creature *s) override
 
uint32 GetData (uint32 id) const override
 
void KilledUnit (Unit *victim) override
 
void EnterEvadeMode (EvadeReason why) override
 
- Public Member Functions inherited from ScriptedAI
 ScriptedAI (Creature *creature)
 
 ~ScriptedAI () override
 
void AttackStartNoMove (Unit *target)
 
void DamageTaken (Unit *, uint32 &, DamageEffectType, SpellSchoolMask) override
 Called at any Damage from any attacker (before damage apply) More...
 
void UpdateAI (uint32 diff) override
 Use to start attacking a target. Called just before JustEngagedWith() More...
 
void JustDied (Unit *) override
 
void KilledUnit (Unit *) override
 
void JustSummoned (Creature *) override
 
void SummonedCreatureDespawn (Creature *) override
 
void SpellHit (Unit *, SpellInfo const *) override
 
void SpellHitTarget (Unit *, SpellInfo const *) override
 
void MovementInform (uint32, uint32) override
 
void OnPossess (bool)
 
bool IsInRoom (const Position *pos, Axis axis, bool above)
 
void Reset () override
 
void JustEngagedWith (Unit *) override
 Called for reaction when initially engaged. More...
 
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 DoPlayMusic (uint32 soundId, bool zone)
 
void DoAddThreat (Unit *unit, float amount)
 
void DoModifyThreatByPercent (Unit *unit, int32 pct)
 
void DoResetThreat (Unit *unit)
 
void DoResetThreatList ()
 
float DoGetThreat (Unit *unit)
 
void DoTeleportPlayer (Unit *unit, float x, float y, float z, float o)
 
void DoTeleportPlayer (Unit *unit, Position pos)
 
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 IsUniqueTimedEventDone (uint32 id) const
 
void SetUniqueTimedEventDone (uint32 id)
 
void ResetUniqueTimedEvent (uint32 id)
 
void ClearUniqueTimedEventsDone ()
 
void ScheduleTimedEvent (Milliseconds timerMin, Milliseconds timerMax, std::function< void()> exec, Milliseconds repeatMin, Milliseconds repeatMax=0s, uint32 uniqueId=0)
 
void ScheduleTimedEvent (Milliseconds timerMax, std::function< void()> exec, Milliseconds repeatMin, Milliseconds repeatMax=0s, uint32 uniqueId=0)
 
void ScheduleUniqueTimedEvent (Milliseconds timer, std::function< void()> exec, uint32 uniqueId)
 
bool HealthBelowPct (uint32 pct) const
 
bool HealthAbovePct (uint32 pct) const
 
SpellInfo const * SelectSpell (Unit *target, uint32 school, uint32 mechanic, SelectTargetType targets, uint32 powerCostMin, uint32 powerCostMax, 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)
 
virtual bool CheckEvadeIfOutOfCombatArea () 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
 
PlayerSelectTargetFromPlayerList (float maxdist, uint32 excludeAura=0, bool mustBeInLOS=false) const
 
- Public Member Functions inherited from CreatureAI
void Talk (uint8 id, WorldObject const *whisperTarget=nullptr, Milliseconds delay=0s)
 Causes the creature to talk/say the text assigned to their entry in the creature_text database table. More...
 
void Talk (uint8 id, Milliseconds delay)
 
 CreatureAI (Creature *creature)
 
 ~CreatureAI () override
 
void MoveCircleChecks ()
 
void MoveBackwardsChecks ()
 
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 JustEngagedWith (Unit *)
 Called for reaction when initially engaged. More...
 
virtual void JustDied (Unit *)
 
virtual void KilledUnit (Unit *)
 
virtual void JustSummoned (Creature *)
 
virtual void IsSummonedBy (WorldObject *)
 
virtual void SummonedCreatureDespawn (Creature *)
 
virtual void SummonedCreatureDies (Creature *, Unit *)
 
virtual void SummonedCreatureDespawnAll ()
 
virtual void SummonedCreatureEvade (Creature *)
 
virtual void SpellHit (Unit *, SpellInfo const *)
 
virtual void SpellHitTarget (Unit *, SpellInfo const *)
 
virtual void AttackedBy (Unit *)
 
virtual bool IsEscorted ()
 
virtual void JustRespawned ()
 
virtual void MovementInform (uint32, uint32)
 
virtual void PathEndReached (uint32)
 
void OnCharmed (bool apply) override
 Called when unit is charmed. More...
 
virtual void JustReachedHome ()
 
void DoZoneInCombat (Creature *creature=nullptr, float maxRangeToNearestTarget=250.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 bool BeforeSpellClick (Unit *)
 
virtual void OnSpellClick (Unit *, bool &)
 
virtual bool CanSeeAlways (WorldObject const *)
 
virtual bool CanBeSeen (Player const *)
 
virtual bool CanAlwaysBeDetectable (WorldObject const *)
 
virtual void PetStopAttack ()
 
virtual bool CheckInRoom ()
 
CreatureBoundary const * GetBoundary () const
 
void SetBoundary (CreatureBoundary const *boundary, bool negativeBoundaries=false)
 
bool IsInBoundary (Position const *who=nullptr) const
 
virtual void CalculateThreat (Unit *, float &, SpellInfo const *)
 
virtual bool OnTeleportUnreacheablePlayer (Player *)
 
virtual void OnAuraRemove (AuraApplication *, AuraRemoveMode)
 
- Public Member Functions inherited from UnitAI
 UnitAI (Unit *unit)
 
virtual ~UnitAI ()
 
virtual bool CanAIAttack (Unit const *) const
 
virtual void AttackStart (Unit *)
 
virtual void UpdateAI (uint32)=0
 Use to start attacking a target. Called just before JustEngagedWith() More...
 
virtual void InitializeAI ()
 
virtual void Reset ()
 
virtual void OnCharmed (bool apply)=0
 Called when unit is charmed. More...
 
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 (SelectTargetMethod targetType, uint32 position=0, float dist=0.0f, bool playerOnly=false, bool withTank=true, int32 aura=0)
 
template<class PREDICATE >
UnitSelectTarget (SelectTargetMethod targetType, uint32 position, PREDICATE const &predicate)
 
void SelectTargetList (std::list< Unit * > &targetList, uint32 num, SelectTargetMethod targetType, uint32 position=0, float dist=0.0f, bool playerOnly=false, bool withTank=true, int32 aura=0)
 Select the best (up to) <num> targets (in <targetType> order) from the threat list that fulfill the following: More...
 
template<class PREDICATE >
void SelectTargetList (std::list< Unit * > &targetList, uint32 num, SelectTargetMethod targetType, uint32 position, PREDICATE const &predicate)
 
virtual void JustEnteredCombat (Unit *)
 Called when the unit enters combat. More...
 
virtual void JustExitedCombat ()
 Called when the unit leaves combat. More...
 
virtual void DamageDealt (Unit *, uint32 &, DamageEffectType)
 Called at any Damage to any victim (before damage apply) More...
 
virtual void DamageTaken (Unit *, uint32 &, DamageEffectType, SpellSchoolMask)
 Called at any Damage from any attacker (before damage apply) More...
 
virtual void HealReceived (Unit *, uint32 &)
 Called when the creature receives heal. More...
 
virtual void OnPowerUpdate (Powers, int32, int32, uint32)
 Called when the creature power updates. More...
 
virtual void HealDone (Unit *, uint32 &)
 Called when the unit heals. More...
 
virtual void OnCalculateMeleeDamageReceived (uint32 &, Unit *)
 Called during damage calculations. More...
 
virtual void OnCalculateSpellDamageReceived (int32 &, Unit *)
 
virtual void OnCalculatePeriodicTickReceived (uint32 &, Unit *)
 Called during calculation when receiving periodic healing or damage (DoT or HoT) More...
 
void AttackStartCaster (Unit *victim, float dist)
 
SpellCastResult DoAddAuraToAllHostilePlayers (uint32 spellid)
 
SpellCastResult DoCast (uint32 spellId)
 
SpellCastResult DoCast (Unit *victim, uint32 spellId, bool triggered=false)
 
SpellCastResult DoCastSelf (uint32 spellId, bool triggered=false)
 
SpellCastResult DoCastToAllHostilePlayers (uint32 spellid, bool triggered=false)
 To specify the caster as target if the spell is self-cast. More...
 
SpellCastResult DoCastVictim (uint32 spellId, bool triggered=false)
 
SpellCastResult DoCastAOE (uint32 spellId, bool triggered=false)
 
SpellCastResult DoCastRandomTarget (uint32 spellId, uint32 threatTablePosition=0, float dist=0.0f, bool playerOnly=true, bool triggered=false, bool withTank=true)
 Cast the spell on a random unit from the threat list. More...
 
SpellCastResult DoCastMaxThreat (uint32 spellId, uint32 threatTablePosition=0, float dist=0.0f, bool playerOnly=true, bool triggered=false)
 Cast spell on the top threat target, which may not be the current victim. More...
 
float DoGetSpellMaxRange (uint32 spellId, bool positive=false)
 
void DoMeleeAttackIfReady ()
 
bool DoSpellAttackIfReady (uint32 spell)
 
void DoSpellAttackToRandomTargetIfReady (uint32 spell, uint32 threatTablePosition=0, float dist=0.f, bool playerOnly=true)
 
virtual void SummonMovementInform (Creature *, uint32, uint32)
 Called when a summon reaches a waypoint or point movement finished. More...
 
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 sQuestComplete (Player *, Quest const *)
 
virtual void sQuestReward (Player *, Quest const *, uint32)
 
virtual void sOnGameEvent (bool, uint16)
 
virtual std::string GetDebugInfo () const
 

Public Attributes

InstanceScriptpInstance
 
EventMap events
 
SummonList summons
 
ObjectGuid ExpeditionEngineerGUIDs [3]
 
ObjectGuid CommanderGUID
 
float cords [4][2]
 
bool bGroundPhase
 
bool startPath
 
uint8 flyTimes
 
- Public Attributes inherited from ScriptedAI
Creatureme
 

Additional Inherited Members

- Public Types inherited from ScriptedAI
enum class  Axis {
  AXIS_X ,
  AXIS_Y
}
 
- Public Types inherited from CreatureAI
enum  EvadeReason {
  EVADE_REASON_NO_HOSTILES ,
  EVADE_REASON_BOUNDARY ,
  EVADE_REASON_SEQUENCE_BREAK ,
  EVADE_REASON_NO_PATH ,
  EVADE_REASON_OTHER
}
 
- Static Public Member Functions inherited from CreatureAI
static bool IsInBounds (CreatureBoundary const &boundary, Position const *who)
 
- 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)
 
virtual void MoveInLineOfSight (Unit *)
 
bool _EnterEvadeMode (EvadeReason why=EVADE_REASON_OTHER)
 
- Protected Attributes inherited from CreatureAI
Creature *const me
 
EventMap events
 
TaskScheduler scheduler
 
CreatureBoundary const * _boundary
 
bool _negateBoundary
 
- Protected Attributes inherited from UnitAI
Unit *const me
 

Detailed Description

Constructor & Destructor Documentation

◆ boss_razorscaleAI()

boss_razorscale::boss_razorscaleAI::boss_razorscaleAI ( Creature pCreature)
inline
160 : ScriptedAI(pCreature), summons(me)
161 {
163 startPath = true;
164 }
Definition: ScriptedCreature.h:190
Creature * me
Definition: ScriptedCreature.h:280
InstanceScript * GetInstanceScript() const
Definition: Object.cpp:1192
InstanceScript * pInstance
Definition: boss_razorscale.cpp:166
bool startPath
Definition: boss_razorscale.cpp:173
SummonList summons
Definition: boss_razorscale.cpp:168

References WorldObject::GetInstanceScript(), ScriptedAI::me, pInstance, and startPath.

Member Function Documentation

◆ AttackStart()

void boss_razorscale::boss_razorscaleAI::AttackStart ( Unit who)
inlineoverridevirtual

Reimplemented from ScriptedAI.

205 {
206 if (who && me->Attack(who, true) && bGroundPhase)
208 }
MotionMaster * GetMotionMaster()
Definition: Unit.h:1615
bool Attack(Unit *victim, bool meleeAttack)
Definition: Unit.cpp:10241
void MoveChase(Unit *target, std::optional< ChaseRange > dist={}, std::optional< ChaseAngle > angle={})
Force the unit to chase this target. Doesn't work with UNIT_FLAG_DISABLE_MOVE.
Definition: MotionMaster.cpp:313
bool bGroundPhase
Definition: boss_razorscale.cpp:172

References Unit::Attack(), bGroundPhase, Unit::GetMotionMaster(), ScriptedAI::me, and MotionMaster::MoveChase().

Referenced by UpdateAI().

◆ DamageTaken()

void boss_razorscale::boss_razorscaleAI::DamageTaken ( Unit ,
uint32 ,
DamageEffectType  ,
SpellSchoolMask   
)
inlineoverridevirtual

Called at any Damage from any attacker (before damage apply)

Note
It use for recalculation damage or special reaction at damage for attack reaction use AttackedBy called for non DOT damage in Unit::DealDamage also

Reimplemented from ScriptedAI.

311 {
312 if (me->GetPositionZ() > 440.0f) // protection, razorscale is attackable (so harpoons can hit him, etc.), but should not receive dmg while in air
313 damage = 0;
314 else if (!bGroundPhase && ((me->GetHealth() * 100) / me->GetMaxHealth() < 50) && me->HasAura(62794)) // already below 50%, but still in chains and stunned
315 events.RescheduleEvent(EVENT_WARN_DEEP_BREATH, 0ms);
316 }
@ EVENT_WARN_DEEP_BREATH
Definition: boss_razorscale.cpp:104
events
Definition: boss_sartura.cpp:43
float GetPositionZ() const
Definition: Position.h:119
uint32 GetMaxHealth() const
Definition: Unit.h:870
bool HasAura(uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint8 reqEffMask=0) const
Definition: Unit.cpp:5676
uint32 GetHealth() const
Definition: Unit.h:869

References bGroundPhase, EVENT_WARN_DEEP_BREATH, Unit::GetHealth(), Unit::GetMaxHealth(), Position::GetPositionZ(), Unit::HasAura(), and ScriptedAI::me.

◆ EnterEvadeMode()

void boss_razorscale::boss_razorscaleAI::EnterEvadeMode ( EvadeReason  why)
inlineoverridevirtual

Reimplemented from CreatureAI.

625 {
626 me->SetDisableGravity(true);
628 me->DisableRotate(false);
630 }
@ UNIT_STATE_ROOT
Definition: UnitDefines.h:159
virtual void EnterEvadeMode(EvadeReason why=EVADE_REASON_OTHER)
Definition: CreatureAI.cpp:197
bool SetDisableGravity(bool disable, bool packetOnly=false, bool updateAnimationTier=true) override
Enable or disable the creature's fly mode by adding or removing: MOVEMENTFLAG_FLYING....
Definition: Creature.cpp:3204
void DisableRotate(bool apply)
Definition: Unit.cpp:18240
void SetControlled(bool apply, UnitState state, Unit *source=nullptr, bool isFear=false)
Definition: Unit.cpp:17999

References Unit::DisableRotate(), CreatureAI::EnterEvadeMode(), ScriptedAI::me, Unit::SetControlled(), Creature::SetDisableGravity(), and UNIT_STATE_ROOT.

◆ GetData()

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

Reimplemented from UnitAI.

611 {
612 if (id == 1)
613 return (flyTimes <= 1 ? 1 : 0);
614 return 0;
615 }
uint8 flyTimes
Definition: boss_razorscale.cpp:174

References flyTimes.

◆ InitializeAI()

void boss_razorscale::boss_razorscaleAI::InitializeAI ( )
inlineoverridevirtual

Reimplemented from UnitAI.

177 {
178 me->SetDisableGravity(true);
179 me->setActive(true);
180 Reset();
181 }
void setActive(bool isActiveObject)
Definition: Object.cpp:1085
void Reset() override
Definition: boss_razorscale.cpp:183

References ScriptedAI::me, Reset(), WorldObject::setActive(), and Creature::SetDisableGravity().

◆ JustDied()

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

Reimplemented from ScriptedAI.

241 {
243
244 if (pInstance)
246 }
@ DONE
Definition: InstanceScript.h:60
@ TYPE_RAZORSCALE
Definition: ulduar.h:34
void DespawnAll(uint32 delay=0)
Definition: ScriptedCreature.cpp:71
virtual void SetData(uint32, uint32)
Definition: ZoneScript.h:53

References SummonList::DespawnAll(), DONE, pInstance, ZoneScript::SetData(), summons, and TYPE_RAZORSCALE.

◆ JustEngagedWith()

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

Called for reaction when initially engaged.

Reimplemented from ScriptedAI.

211 {
213 events.Reset();
214 events.ScheduleEvent(EVENT_COMMANDER_SAY_AGGRO, 5s);
215 events.ScheduleEvent(EVENT_EE_SAY_MOVE_OUT, 10s);
216 events.ScheduleEvent(EVENT_ENRAGE, 10min);
217 events.ScheduleEvent(EVENT_SPELL_FIREBALL, 6s);
218 events.ScheduleEvent(EVENT_SPELL_DEVOURING_FLAME, 13s);
219 events.ScheduleEvent(EVENT_SUMMON_MOLE_MACHINES, 11s);
220
221 std::list<Creature*> eeList;
223 uint8 i = 0;
224 for( std::list<Creature*>::iterator itr = eeList.begin(); itr != eeList.end(); ++itr )
225 {
226 if (i > 2)
227 break;
228 ExpeditionEngineerGUIDs[i] = (*itr)->GetGUID();
229 if (!i)
230 (*itr)->AI()->Talk(SAY_EE_AGGRO);
231 ++i;
232 }
234 CommanderGUID = c->GetGUID();
235
236 if (pInstance)
238 }
std::uint8_t uint8
Definition: Define.h:109
@ IN_PROGRESS
Definition: InstanceScript.h:58
@ EVENT_SPELL_FIREBALL
Definition: boss_razorscale.cpp:100
@ EVENT_COMMANDER_SAY_AGGRO
Definition: boss_razorscale.cpp:97
@ EVENT_ENRAGE
Definition: boss_razorscale.cpp:99
@ EVENT_SUMMON_MOLE_MACHINES
Definition: boss_razorscale.cpp:102
@ EVENT_SPELL_DEVOURING_FLAME
Definition: boss_razorscale.cpp:101
@ EVENT_EE_SAY_MOVE_OUT
Definition: boss_razorscale.cpp:98
@ NPC_EXPEDITION_COMMANDER
Definition: boss_razorscale.cpp:80
@ NPC_EXPEDITION_ENGINEER
Definition: boss_razorscale.cpp:79
@ SAY_EE_AGGRO
Definition: boss_razorscale.cpp:127
Definition: Creature.h:46
void SetInCombatWithZone()
Set in combat all units in the dungeon/raid. Affect only units with IsAIEnabled.
Definition: Creature.cpp:2810
Creature * FindNearestCreature(uint32 entry, float range, bool alive=true) const
Definition: Object.cpp:2446
void GetCreaturesWithEntryInRange(std::list< Creature * > &creatureList, float radius, uint32 entry)
Definition: Object.cpp:3086
ObjectGuid CommanderGUID
Definition: boss_razorscale.cpp:170
ObjectGuid ExpeditionEngineerGUIDs[3]
Definition: boss_razorscale.cpp:169

References CommanderGUID, EVENT_COMMANDER_SAY_AGGRO, EVENT_EE_SAY_MOVE_OUT, EVENT_ENRAGE, EVENT_SPELL_DEVOURING_FLAME, EVENT_SPELL_FIREBALL, EVENT_SUMMON_MOLE_MACHINES, ExpeditionEngineerGUIDs, WorldObject::FindNearestCreature(), WorldObject::GetCreaturesWithEntryInRange(), IN_PROGRESS, ScriptedAI::me, NPC_EXPEDITION_COMMANDER, NPC_EXPEDITION_ENGINEER, pInstance, SAY_EE_AGGRO, ZoneScript::SetData(), Creature::SetInCombatWithZone(), and TYPE_RAZORSCALE.

◆ JustReachedHome()

void boss_razorscale::boss_razorscaleAI::JustReachedHome ( )
inlineoverridevirtual

Reimplemented from CreatureAI.

601 {
602 startPath = true;
603 }

References startPath.

◆ JustSummoned()

void boss_razorscale::boss_razorscaleAI::JustSummoned ( Creature s)
inlineoverridevirtual

Reimplemented from ScriptedAI.

606 {
607 summons.Summon(s);
608 }
void Summon(Creature const *summon)
Definition: ScriptedCreature.h:88

References SummonList::Summon(), and summons.

◆ KilledUnit()

void boss_razorscale::boss_razorscaleAI::KilledUnit ( Unit victim)
inlineoverridevirtual

Reimplemented from ScriptedAI.

618 {
619 if (victim && victim->GetEntry() == NPC_DARK_RUNE_GUARDIAN)
620 if (pInstance)
622 }
@ NPC_DARK_RUNE_GUARDIAN
Definition: boss_razorscale.cpp:77
@ ACHIEVEMENT_CRITERIA_TYPE_KILL_CREATURE
Definition: DBCEnums.h:122
uint32 GetEntry() const
Definition: Object.h:112
void DoUpdateAchievementCriteria(AchievementCriteriaTypes type, uint32 miscValue1=0, uint32 miscValue2=0, Unit *unit=nullptr)
Definition: InstanceScript.cpp:612

References ACHIEVEMENT_CRITERIA_TYPE_KILL_CREATURE, InstanceScript::DoUpdateAchievementCriteria(), Object::GetEntry(), ScriptedAI::me, NPC_DARK_RUNE_GUARDIAN, and pInstance.

◆ MoveInLineOfSight()

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

Reimplemented from CreatureAI.

598{}

◆ MovementInform()

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

Reimplemented from ScriptedAI.

319 {
320 if (type == POINT_MOTION_TYPE && id == POINT_RAZORSCALE_INIT)
321 {
322 me->SetFacingTo(1.6f);
323 return;
324 }
325 else if (type == ESCORT_MOTION_TYPE && me->movespline->Finalized() && !me->IsInCombat())
326 {
327 startPath = true;
328 return;
329 }
330
331 if (type != EFFECT_MOTION_TYPE)
332 return;
333 if (id == 0) // landed
334 {
336 me->DisableRotate(true);
337 me->SetOrientation((float)(M_PI + 0.01) / 2);
338 me->SetFacingTo(M_PI / 2);
339 me->SetDisableGravity(false);
340 me->CastSpell(me, 62794, true);
341 events.ScheduleEvent(EVENT_WARN_DEEP_BREATH, 30s);
342 }
343 else if (id == 1) // flied up
344 {
345 events.ScheduleEvent(EVENT_SPELL_FIREBALL, 2s);
346 events.ScheduleEvent(EVENT_SPELL_DEVOURING_FLAME, 4s);
347 events.ScheduleEvent(EVENT_SUMMON_MOLE_MACHINES, 5s);
348 }
349 }
@ ESCORT_MOTION_TYPE
Definition: MotionMaster.h:55
@ POINT_MOTION_TYPE
Definition: MotionMaster.h:46
@ EFFECT_MOTION_TYPE
Definition: MotionMaster.h:54
@ POINT_RAZORSCALE_INIT
Definition: boss_razorscale.cpp:137
void SetOrientation(float orientation)
Definition: Position.h:112
void SetFacingTo(float ori)
Definition: Unit.cpp:20502
Movement::MoveSpline * movespline
Definition: Unit.h:1835
SpellCastResult CastSpell(SpellCastTargets const &targets, SpellInfo const *spellInfo, CustomSpellValues const *value, TriggerCastFlags triggerFlags=TRIGGERED_NONE, Item *castItem=nullptr, AuraEffect const *triggeredByAura=nullptr, ObjectGuid originalCaster=ObjectGuid::Empty)
Definition: Unit.cpp:1167
bool IsInCombat() const
Definition: Unit.h:820
bool Finalized() const
Definition: MoveSpline.h:116

References Unit::CastSpell(), Unit::DisableRotate(), EFFECT_MOTION_TYPE, ESCORT_MOTION_TYPE, EVENT_SPELL_DEVOURING_FLAME, EVENT_SPELL_FIREBALL, EVENT_SUMMON_MOLE_MACHINES, EVENT_WARN_DEEP_BREATH, Movement::MoveSpline::Finalized(), Unit::IsInCombat(), ScriptedAI::me, Unit::movespline, POINT_MOTION_TYPE, POINT_RAZORSCALE_INIT, Unit::SetControlled(), Creature::SetDisableGravity(), Unit::SetFacingTo(), Position::SetOrientation(), startPath, and UNIT_STATE_ROOT.

◆ Reset()

void boss_razorscale::boss_razorscaleAI::Reset ( )
inlineoverridevirtual

Reimplemented from ScriptedAI.

184 {
185 events.Reset();
187
188 for (uint8 i = 0; i < 3; ++i)
189 ExpeditionEngineerGUIDs[i].Clear();
190
191 // Show gossip icon if previously hidden
193 if (!commander->HasNpcFlag(UNIT_NPC_FLAG_GOSSIP))
194 commander->SetNpcFlag(UNIT_NPC_FLAG_GOSSIP);
195
197 bGroundPhase = false;
198 flyTimes = 0;
199
200 if (pInstance)
202 }
@ NOT_STARTED
Definition: InstanceScript.h:57
@ UNIT_NPC_FLAG_GOSSIP
Definition: UnitDefines.h:294
Creature * GetCreature(WorldObject const &u, ObjectGuid const guid)
Definition: ObjectAccessor.cpp:210
void Clear()
Definition: ObjectGuid.h:138

References bGroundPhase, ObjectGuid::Clear(), CommanderGUID, SummonList::DespawnAll(), ExpeditionEngineerGUIDs, flyTimes, ObjectAccessor::GetCreature(), ScriptedAI::me, NOT_STARTED, pInstance, ZoneScript::SetData(), summons, TYPE_RAZORSCALE, and UNIT_NPC_FLAG_GOSSIP.

Referenced by InitializeAI().

◆ SpellHit()

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

Reimplemented from ScriptedAI.

249 {
250 if (!caster || !pInstance)
251 return;
252
253 switch (spell->Id)
254 {
256 {
257 uint32 spellId = SPELL_CHAIN_4;
258
260 {
261 spellId = SPELL_CHAIN_1;
262 }
264 {
265 spellId = SPELL_CHAIN_2;
266 }
268 {
269 spellId = SPELL_CHAIN_3;
270 }
271
272 caster->CastSpell(me, spellId, true);
273 }
274 break;
275 case SPELL_CHAIN_1:
276 case SPELL_CHAIN_2:
277 case SPELL_CHAIN_3:
278 case SPELL_CHAIN_4:
279 {
280 uint8 count = 0;
282 count++;
284 count++;
285 if (RAID_MODE(0, 1))
286 {
288 count++;
290 count++;
291 }
292 if (count >= REQ_CHAIN_COUNT)
293 {
295 commander->AI()->Talk(SAY_COMMANDER_GROUND_PHASE);
296
298 events.CancelEvent(EVENT_SPELL_FIREBALL);
301 me->SetTarget();
304 }
305 }
306 break;
307 }
308 }
std::uint32_t uint32
Definition: Define.h:107
const Position CORDS_GROUND
Definition: boss_razorscale.cpp:145
@ SPELL_CHAIN_2
Definition: boss_razorscale.cpp:46
@ SPELL_CHAIN_3
Definition: boss_razorscale.cpp:47
@ SPELL_CHAIN_1
Definition: boss_razorscale.cpp:45
@ SPELL_LAUNCH_CHAIN
Definition: boss_razorscale.cpp:49
@ SPELL_CHAIN_4
Definition: boss_razorscale.cpp:48
@ SAY_COMMANDER_GROUND_PHASE
Definition: boss_razorscale.cpp:123
#define REQ_CHAIN_COUNT
Definition: boss_razorscale.cpp:72
@ DATA_HARPOON_FIRE_STATE_1
Definition: ulduar.h:62
@ DATA_HARPOON_FIRE_STATE_2
Definition: ulduar.h:63
@ DATA_HARPOON_FIRE_STATE_3
Definition: ulduar.h:64
const T & RAID_MODE(const T &normal10, const T &normal25) const
Definition: ScriptedCreature.h:404
void SetTarget(ObjectGuid guid=ObjectGuid::Empty) override
Definition: Creature.cpp:3544
static ObjectGuid GetGUID(Object const *o)
Definition: Object.h:109
void InterruptNonMeleeSpells(bool withDelayed, uint32 spellid=0, bool withInstant=true, bool bySelf=false)
Definition: Unit.cpp:4110
Unit * GetVictim() const
Definition: Unit.h:789
void SendMeleeAttackStop(Unit *victim=nullptr)
Send to the client SMSG_ATTACKSTOP but doesn't clear UNIT_STATE_MELEE_ATTACKING on server side or int...
Definition: Unit.cpp:3060
ObjectGuid GetGuidData(uint32 type) const override
Definition: InstanceScript.cpp:95
void MoveLand(uint32 id, Position const &pos, float speed=0.0f)
Use to move the unit from the air to the ground. Doesn't work with UNIT_FLAG_DISABLE_MOVE.
Definition: MotionMaster.cpp:488

References Unit::CastSpell(), CommanderGUID, CORDS_GROUND, DATA_HARPOON_FIRE_STATE_1, DATA_HARPOON_FIRE_STATE_2, DATA_HARPOON_FIRE_STATE_3, EVENT_SPELL_DEVOURING_FLAME, EVENT_SPELL_FIREBALL, EVENT_SUMMON_MOLE_MACHINES, ObjectAccessor::GetCreature(), Object::GetGUID(), InstanceScript::GetGuidData(), Unit::GetMotionMaster(), Unit::GetVictim(), Unit::HasAura(), SpellInfo::Id, Unit::InterruptNonMeleeSpells(), ScriptedAI::me, MotionMaster::MoveLand(), pInstance, ScriptedAI::RAID_MODE(), REQ_CHAIN_COUNT, SAY_COMMANDER_GROUND_PHASE, Unit::SendMeleeAttackStop(), Creature::SetTarget(), SPELL_CHAIN_1, SPELL_CHAIN_2, SPELL_CHAIN_3, SPELL_CHAIN_4, and SPELL_LAUNCH_CHAIN.

◆ UpdateAI()

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

Use to start attacking a target. Called just before JustEngagedWith()

Reimplemented from ScriptedAI.

352 {
353 if (startPath)
354 {
355 me->StopMoving();
356 startPath = false;
357 if (WaypointPath const* i_path = sWaypointMgr->GetPath(me->GetWaypointPath()))
358 {
359 Movement::PointsArray pathPoints;
360 pathPoints.push_back(G3D::Vector3(me->GetPositionX(), me->GetPositionY(), me->GetPositionZ()));
361 for (uint8 i = 0; i < i_path->size(); ++i)
362 {
363 WaypointData const* node = i_path->at(i);
364 pathPoints.push_back(G3D::Vector3(node->x, node->y, node->z));
365 }
366 me->GetMotionMaster()->MoveSplinePath(&pathPoints);
367 }
368 }
369
370 if (!UpdateVictim())
371 return;
372
373 events.Update(diff);
374
376 return;
377
378 switch (events.ExecuteEvent())
379 {
380 case 0:
381 break;
382 case EVENT_ENRAGE:
384 me->CastSpell(me, SPELL_BERSERK, true);
385 break;
388 commander->AI()->Talk(SAY_COMMANDER_AGGRO);
389 break;
391 for (uint8 i = 0; i < 3; ++i)
393 {
394 if (!i)
395 c->AI()->Talk(SAY_EE_START_REPAIR);
396 c->AI()->SetData(1, 0); // start repairing
397 }
398 break;
400 if (Unit* pTarget = SelectTarget(SelectTargetMethod::Random, 0, 200.0f, true))
401 me->CastSpell(pTarget, SPELL_FIREBALL, false);
402 events.Repeat(4s);
403 break;
405 if (Unit* pTarget = SelectTarget(SelectTargetMethod::Random, 0, 200.0f, true))
406 me->CastSpell(pTarget, SPELL_DEVOURINGFLAME, false);
407 events.Repeat(13s);
408 break;
410 {
411 memset(cords, '\0', sizeof(cords));
412 uint8 num = RAID_MODE( urand(2, 3), urand(2, 4));
413 for( int i = 0; i < num; ++i )
414 {
415 // X: (550, 625) Y: (-185, -230)
416 cords[i][0] = urand(550, 625);
417 cords[i][1] = -230 + rand() % 45;
418 if (GameObject* drill = me->SummonGameObject(GO_DRILL, cords[i][0], cords[i][1], 391.1f, M_PI / 4, 0.0f, 0.0f, 0.0f, 0.0f, 8))
419 {
420 //drill->SetGoAnimProgress(0);
421 //drill->SetLootState(GO_READY);
422 //drill->UseDoorOrButton(8);
423 //drill->SetGoState(GO_STATE_READY);
424 drill->SetGoState(GO_STATE_ACTIVE);
425 drill->SetGoAnimProgress(0);
426 }
427 }
428 events.Repeat(45s);
429 events.RescheduleEvent(EVENT_SUMMON_ADDS, 4s);
430 }
431 break;
433 for( int i = 0; i < 4; ++i )
434 {
435 if (!cords[i][0])
436 break;
437
438 uint8 opt;
439 uint8 r = urand(1, 100);
440 if (r <= 30) opt = 1;
441 else if (r <= 65) opt = 2;
442 else opt = 3;
443
444 for( int j = 0; j < 4; ++j )
445 {
446 float x = cords[i][0] + 4.0f * cos(j * M_PI / 2);
447 float y = cords[i][1] + 4.0f * std::sin(j * M_PI / 2);
448
449 uint32 npc_entry = 0;
450 switch (opt)
451 {
452 case 1:
453 if (j == 1) npc_entry = NPC_DARK_RUNE_SENTINEL;
454 break;
455 case 2:
456 switch (j)
457 {
458 case 1:
459 npc_entry = NPC_DARK_RUNE_WATCHER;
460 break;
461 case 2:
462 npc_entry = NPC_DARK_RUNE_GUARDIAN;
463 break;
464 }
465 break;
466 default: // case 3:
467 switch (j)
468 {
469 case 1:
470 npc_entry = NPC_DARK_RUNE_WATCHER;
471 break;
472 case 2:
473 npc_entry = NPC_DARK_RUNE_GUARDIAN;
474 break;
475 case 3:
476 npc_entry = NPC_DARK_RUNE_GUARDIAN;
477 break;
478 }
479 break;
480 }
481
482 if (npc_entry)
483 if (Creature* c = me->SummonCreature(npc_entry, x, y, 391.1f, j * M_PI / 2, TEMPSUMMON_CORPSE_TIMED_DESPAWN, 5000))
485 }
486 }
487 break;
490 me->RemoveAura(62794);
491 events.ScheduleEvent(EVENT_PHASE2_FLAME_BREATH, 2500ms);
492 break;
495 events.ScheduleEvent(EVENT_FLY_UP, 2s);
496 break;
497 case EVENT_FLY_UP:
498 me->SetInCombatWithZone(); // just in case
499 if (pInstance)
500 for( int i = 0; i < 4; ++i )
502 if (Creature* hfs = ObjectAccessor::GetCreature(*me, guid))
503 {
504 me->SummonCreature(34188, hfs->GetPositionX(), hfs->GetPositionY(), hfs->GetPositionZ(), 0, TEMPSUMMON_TIMED_DESPAWN, 22000);
505 hfs->AI()->SetData(1, 0);
506 }
507
511 if (RAID_MODE(0, 1))
512 {
515 }
517
518 if ((me->GetHealth() * 100) / me->GetMaxHealth() < 50 ) // start phase 3
519 {
522 me->DisableRotate(false);
524 Unit* target = SelectTarget(SelectTargetMethod::MaxDistance, 0, 0.0, true);
525 if (!target)
526 target = me->SelectNearestPlayer(200.0f);
527 if (target)
528 {
529 AttackStart(target);
530 me->GetMotionMaster()->MoveChase(target);
531 }
532 bGroundPhase = true;
533 events.CancelEvent(EVENT_SPELL_FIREBALL);
536
537 events.ScheduleEvent(EVENT_SPELL_FLAME_BREATH, 20s);
539 events.ScheduleEvent(EVENT_SPELL_FUSE_ARMOR, 10s);
540 events.ScheduleEvent(EVENT_SPELL_FLAME_BUFFET, 3s);
541
542 break;
543 }
544 else
545 {
546 ++flyTimes;
548 me->DisableRotate(false);
551 me->StopMoving();
552 me->SetDisableGravity(true);
554 events.ScheduleEvent(EVENT_RESUME_FIXING, 22s);
555 }
556
557 break;
559 for (uint8 i = 0; i < 3; ++i)
561 {
562 if (!i)
563 c->AI()->Talk(SAY_EE_REBUILD_TURRETS);
564 c->AI()->SetData(1, 0); // start repairing
565 }
566 break;
569 events.Repeat(20s);
570 break;
573 events.Repeat(13s);
574 break;
576 if (Unit* victim = me->GetVictim())
577 if (me->IsWithinMeleeRange(victim))
578 {
579 me->CastSpell(victim, SPELL_FUSEARMOR, false);
580 if (Aura* aur = victim->GetAura(SPELL_FUSEARMOR))
581 if (aur->GetStackAmount() == 5)
582 victim->CastSpell(victim, SPELL_FUSED_ARMOR, true);
583 events.Repeat(10s);
584 break;
585 }
586 events.Repeat(2s);
587 break;
590 events.Repeat(7s);
591 break;
592 }
593
594 if (bGroundPhase)
596 }
uint32 urand(uint32 min, uint32 max)
Definition: Random.cpp:44
std::vector< WaypointData * > WaypointPath
Definition: WaypointMgr.h:47
#define sWaypointMgr
Definition: WaypointMgr.h:78
@ UNIT_STATE_CASTING
Definition: UnitDefines.h:164
@ TEMPSUMMON_TIMED_DESPAWN
Definition: Object.h:47
@ TEMPSUMMON_CORPSE_TIMED_DESPAWN
Definition: Object.h:50
@ GO_STATE_ACTIVE
Definition: GameObjectData.h:689
@ GO_DRILL
Definition: boss_razorscale.cpp:86
@ EVENT_SPELL_FLAME_BREATH
Definition: boss_razorscale.cpp:108
@ EVENT_FLY_UP
Definition: boss_razorscale.cpp:106
@ EVENT_PHASE2_FLAME_BREATH
Definition: boss_razorscale.cpp:105
@ EVENT_SPELL_FLAME_BUFFET
Definition: boss_razorscale.cpp:111
@ EVENT_SPELL_DEVOURING_FLAME_GROUND
Definition: boss_razorscale.cpp:109
@ EVENT_SUMMON_ADDS
Definition: boss_razorscale.cpp:103
@ EVENT_RESUME_FIXING
Definition: boss_razorscale.cpp:107
@ EVENT_SPELL_FUSE_ARMOR
Definition: boss_razorscale.cpp:110
const Position CORDS_AIR
Definition: boss_razorscale.cpp:146
@ SPELL_DEVOURINGFLAME
Definition: boss_razorscale.cpp:41
@ SPELL_FUSEARMOR
Definition: boss_razorscale.cpp:39
@ SPELL_FIREBALL
Definition: boss_razorscale.cpp:35
@ SPELL_FUSED_ARMOR
Definition: boss_razorscale.cpp:40
@ SPELL_BERSERK
Definition: boss_razorscale.cpp:42
@ SPELL_WINGBUFFET
Definition: boss_razorscale.cpp:36
@ NPC_DARK_RUNE_SENTINEL
Definition: boss_razorscale.cpp:76
@ NPC_DARK_RUNE_WATCHER
Definition: boss_razorscale.cpp:78
#define SPELL_FLAMEBREATH
Definition: boss_razorscale.cpp:68
@ EMOTE_PERMA_GROUND
Definition: boss_razorscale.cpp:117
@ SAY_COMMANDER_AGGRO
Definition: boss_razorscale.cpp:122
@ SAY_EE_REBUILD_TURRETS
Definition: boss_razorscale.cpp:129
@ EMOTE_BREATH
Definition: boss_razorscale.cpp:118
@ SAY_EE_START_REPAIR
Definition: boss_razorscale.cpp:128
@ EMOTE_BERSERK
Definition: boss_razorscale.cpp:119
#define SPELL_FLAMEBUFFET
Definition: boss_razorscale.cpp:67
Talk
Definition: hyjal.cpp:82
std::vector< Vector3 > PointsArray
Definition: MoveSplineInitArgs.h:28
virtual void SetData(uint32, uint32)
Definition: UnitAI.h:214
void DoMeleeAttackIfReady()
Definition: UnitAI.cpp:39
Unit * SelectTarget(SelectTargetMethod targetType, uint32 position=0, float dist=0.0f, bool playerOnly=false, bool withTank=true, int32 aura=0)
Definition: UnitAI.cpp:110
bool UpdateVictim()
Definition: CreatureAI.cpp:269
void DoZoneInCombat(Creature *creature=nullptr, float maxRangeToNearestTarget=250.0f)
Definition: CreatureAI.cpp:95
void DoResetThreatList()
Definition: ScriptedCreature.cpp:436
uint32 GetWaypointPath() const
Definition: Creature.h:349
CreatureAI * AI() const
Definition: Creature.h:143
Definition: GameObject.h:121
TempSummon * SummonCreature(uint32 id, const Position &pos, TempSummonType spwtype=TEMPSUMMON_MANUAL_DESPAWN, uint32 despwtime=0, uint32 vehId=0, SummonPropertiesEntry const *properties=nullptr, bool visibleBySummonerOnly=false) const
Definition: Object.cpp:2355
Player * SelectNearestPlayer(float distance=0) const
Definition: Object.cpp:2473
GameObject * SummonGameObject(uint32 entry, float x, float y, float z, float ang, float rotation0, float rotation1, float rotation2, float rotation3, uint32 respawnTime, bool checkTransport=true, GOSummonType summonType=GO_SUMMON_TIMED_OR_CORPSE_DESPAWN)
Definition: Object.cpp:2369
Definition: ObjectGuid.h:118
float GetPositionX() const
Definition: Position.h:117
float GetPositionY() const
Definition: Position.h:118
Definition: Unit.h:630
void RemoveAura(AuraApplicationMap::iterator &i, AuraRemoveMode mode=AURA_REMOVE_BY_DEFAULT)
Definition: Unit.cpp:4757
void StopMoving()
Definition: Unit.cpp:16615
bool IsWithinMeleeRange(Unit const *obj, float dist=0.f) const
Definition: Unit.cpp:664
bool HasUnitState(const uint32 f) const
Definition: Unit.h:673
void MoveTakeoff(uint32 id, Position const &pos, float speed=0.0f, bool skipAnimation=false)
Use to move the unit from the ground to the air. Doesn't work with UNIT_FLAG_DISABLE_MOVE.
Definition: MotionMaster.cpp:523
void MoveSplinePath(Movement::PointsArray *path)
Definition: MotionMaster.cpp:454
void MoveIdle()
Definition: MotionMaster.cpp:232
Definition: WaypointMgr.h:37
float z
Definition: WaypointMgr.h:39
float x
Definition: WaypointMgr.h:39
float y
Definition: WaypointMgr.h:39
Definition: SpellAuras.h:87
float cords[4][2]
Definition: boss_razorscale.cpp:171
void AttackStart(Unit *who) override
Definition: boss_razorscale.cpp:204

References Creature::AI(), AttackStart(), bGroundPhase, Unit::CastSpell(), CommanderGUID, cords, CORDS_AIR, DATA_HARPOON_FIRE_STATE_1, Unit::DisableRotate(), UnitAI::DoMeleeAttackIfReady(), ScriptedAI::DoResetThreatList(), CreatureAI::DoZoneInCombat(), EMOTE_BERSERK, EMOTE_BREATH, EMOTE_PERMA_GROUND, EVENT_COMMANDER_SAY_AGGRO, EVENT_EE_SAY_MOVE_OUT, EVENT_ENRAGE, EVENT_FLY_UP, EVENT_PHASE2_FLAME_BREATH, EVENT_RESUME_FIXING, EVENT_SPELL_DEVOURING_FLAME, EVENT_SPELL_DEVOURING_FLAME_GROUND, EVENT_SPELL_FIREBALL, EVENT_SPELL_FLAME_BREATH, EVENT_SPELL_FLAME_BUFFET, EVENT_SPELL_FUSE_ARMOR, EVENT_SUMMON_ADDS, EVENT_SUMMON_MOLE_MACHINES, EVENT_WARN_DEEP_BREATH, ExpeditionEngineerGUIDs, flyTimes, ObjectAccessor::GetCreature(), InstanceScript::GetGuidData(), Unit::GetHealth(), Unit::GetMaxHealth(), Unit::GetMotionMaster(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), Unit::GetVictim(), Creature::GetWaypointPath(), GO_DRILL, GO_STATE_ACTIVE, Unit::HasUnitState(), Unit::IsWithinMeleeRange(), ScriptedAI::me, MotionMaster::MoveChase(), MotionMaster::MoveIdle(), MotionMaster::MoveSplinePath(), MotionMaster::MoveTakeoff(), NPC_DARK_RUNE_GUARDIAN, NPC_DARK_RUNE_SENTINEL, NPC_DARK_RUNE_WATCHER, pInstance, ScriptedAI::RAID_MODE(), Unit::RemoveAura(), SAY_COMMANDER_AGGRO, SAY_EE_REBUILD_TURRETS, SAY_EE_START_REPAIR, WorldObject::SelectNearestPlayer(), UnitAI::SelectTarget(), Unit::SendMeleeAttackStop(), Unit::SetControlled(), UnitAI::SetData(), Creature::SetDisableGravity(), Creature::SetInCombatWithZone(), SPELL_BERSERK, SPELL_CHAIN_1, SPELL_CHAIN_2, SPELL_CHAIN_3, SPELL_CHAIN_4, SPELL_DEVOURINGFLAME, SPELL_FIREBALL, SPELL_FLAMEBREATH, SPELL_FLAMEBUFFET, SPELL_FUSEARMOR, SPELL_FUSED_ARMOR, SPELL_LAUNCH_CHAIN, SPELL_WINGBUFFET, startPath, Unit::StopMoving(), WorldObject::SummonCreature(), WorldObject::SummonGameObject(), sWaypointMgr, TEMPSUMMON_CORPSE_TIMED_DESPAWN, TEMPSUMMON_TIMED_DESPAWN, UNIT_STATE_CASTING, UNIT_STATE_ROOT, CreatureAI::UpdateVictim(), urand(), WaypointData::x, WaypointData::y, and WaypointData::z.

Member Data Documentation

◆ bGroundPhase

bool boss_razorscale::boss_razorscaleAI::bGroundPhase

◆ CommanderGUID

ObjectGuid boss_razorscale::boss_razorscaleAI::CommanderGUID

◆ cords

float boss_razorscale::boss_razorscaleAI::cords[4][2]

Referenced by UpdateAI().

◆ events

EventMap boss_razorscale::boss_razorscaleAI::events

◆ ExpeditionEngineerGUIDs

ObjectGuid boss_razorscale::boss_razorscaleAI::ExpeditionEngineerGUIDs[3]

Referenced by JustEngagedWith(), Reset(), and UpdateAI().

◆ flyTimes

uint8 boss_razorscale::boss_razorscaleAI::flyTimes

Referenced by GetData(), Reset(), and UpdateAI().

◆ pInstance

InstanceScript* boss_razorscale::boss_razorscaleAI::pInstance

◆ startPath

bool boss_razorscale::boss_razorscaleAI::startPath

◆ summons

SummonList boss_razorscale::boss_razorscaleAI::summons

Referenced by JustDied(), JustSummoned(), and Reset().