AzerothCore 3.3.5a
OpenSource WoW Emulator
No Matches
npc_general_andorov Struct Reference
Inheritance diagram for npc_general_andorov:
npc_escortAI ScriptedAI CreatureAI UnitAI

Public Member Functions

 npc_general_andorov (Creature *creature)
void sGossipSelect (Player *player, uint32, uint32 uiAction) override
void InitializeAI () override
void JustSummoned (Creature *summon) override
void JustEngagedWith (Unit *) override
 Called for reaction when initially engaged.
void WaypointReached (uint32 waypointId) override
void JustDied (Unit *killer) override
void KilledUnit (Unit *victim) override
void MoveInLineOfSight (Unit *who) override
uint32 GetData (uint32 type) const override
void UpdateEscortAI (uint32 diff) override
- Public Member Functions inherited from npc_escortAI
 npc_escortAI (Creature *creature)
 ~npc_escortAI () override
void AttackStart (Unit *who) override
void MoveInLineOfSight (Unit *who) override
void JustDied (Unit *) override
void JustRespawned () override
void ReturnToLastPoint ()
void EnterEvadeMode (EvadeReason=EVADE_REASON_OTHER) override
void UpdateAI (uint32 diff) override
virtual void UpdateEscortAI (uint32 diff)
void MovementInform (uint32, uint32) override
void AddWaypoint (uint32 id, float x, float y, float z, uint32 waitTime=0)
bool SetNextWaypoint (uint32 pointId, float x, float y, float z, float orientation)
bool SetNextWaypoint (uint32 pointId, bool setPosition=true)
bool GetWaypointPosition (uint32 pointId, float &x, float &y, float &z)
void GenerateWaypointArray (Movement::PointsArray *points)
virtual void WaypointReached (uint32 pointId)=0
virtual void WaypointStart (uint32)
void Start (bool isActiveAttacker=true, bool run=false, ObjectGuid playerGUID=ObjectGuid::Empty, Quest const *quest=nullptr, bool instantRespawn=false, bool canLoopPath=false, bool resetWaypoints=true)
void SetRun (bool on=true)
void SetEscortPaused (bool on)
bool HasEscortState (uint32 escortState)
bool IsEscorted () override
void SetMaxPlayerDistance (float newMax)
float GetMaxPlayerDistance ()
void SetDespawnAtEnd (bool despawn)
void SetDespawnAtFar (bool despawn)
bool GetAttack ()
void SetCanAttack (bool attack)
ObjectGuid GetEventStarterGUID ()
void AddEscortState (uint32 escortState)
void RemoveEscortState (uint32 escortState)
- Public Member Functions inherited from ScriptedAI
 ScriptedAI (Creature *creature)
 ~ScriptedAI () override
void AttackStartNoMove (Unit *target)
void DamageTaken (Unit *, uint32 &, DamageEffectType, SpellSchoolMask) override
void UpdateAI (uint32 diff) override
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.
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 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 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)
void SetCombatMovement (bool allowMovement)
bool IsCombatMovementAllowed () const
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.
void Talk (uint8 id, Milliseconds delay)
 CreatureAI (Creature *creature)
 ~CreatureAI () override
void MoveCircleChecks ()
void MoveBackwardsChecks ()
void MoveInLineOfSight_Safe (Unit *who)
 == Reactions At =================================
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.
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 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
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 ==================
virtual void PassengerBoarded (Unit *, int8, bool)
 == Fields =======================================
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 *)
- 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
virtual void InitializeAI ()
virtual void Reset ()
virtual void OnCharmed (bool apply)=0
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)
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 (NOTE: Creature engage logic should NOT be here, but in JustEngagedWith, which happens once threat is established!)
virtual void JustExitedCombat ()
 Called when the unit leaves combat.
virtual void DamageDealt (Unit *, uint32 &, DamageEffectType)
virtual void DamageTaken (Unit *, uint32 &, DamageEffectType, SpellSchoolMask)
virtual void HealReceived (Unit *, uint32 &)
virtual void HealDone (Unit *, uint32 &)
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)
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)
SpellCastResult DoCastMaxThreat (uint32 spellId, uint32 threatTablePosition=0, float dist=0.0f, bool playerOnly=true, bool triggered=false)
 Cast spell on the max threat target, which may not always be the current victim.
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)
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

Private Attributes

EventMap events
SummonList _summons
uint32 _initialAttackTimer
bool Endwaypoint
bool _paused

Additional Inherited Members

- Public Types inherited from ScriptedAI
enum class  Axis {
  AXIS_X ,
- Public Types inherited from CreatureAI
enum  EvadeReason {
- 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 ()
- Public Attributes inherited from ScriptedAI
bool IsFleeing
- Static Public Attributes inherited from UnitAI
static AISpellInfoTypeAISpellInfo
- Protected Member Functions inherited from npc_escortAI
PlayerGetPlayerForEscort ()
- 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
CreatureBoundary const * _boundary
bool _negateBoundary
- Protected Attributes inherited from UnitAI
Unit *const me

Detailed Description

Constructor & Destructor Documentation

◆ npc_general_andorov()

npc_general_andorov::npc_general_andorov ( Creature creature)
174 : npc_escortAI(creature), _summons(me)
175 {
176 instance = creature->GetInstanceScript();
177 SetDespawnAtEnd(false);
178 SetDespawnAtFar(false);
179 }
Creature * me
Definition: ScriptedCreature.h:282
Definition: ScriptedEscortAI.h:53
void SetDespawnAtFar(bool despawn)
Definition: ScriptedEscortAI.h:105
void SetDespawnAtEnd(bool despawn)
Definition: ScriptedEscortAI.h:104
InstanceScript * GetInstanceScript() const
Definition: Object.cpp:1192
SummonList _summons
Definition: boss_rajaxx.cpp:372
InstanceScript * instance
Definition: boss_rajaxx.cpp:370

References WorldObject::GetInstanceScript(), instance, npc_escortAI::SetDespawnAtEnd(), and npc_escortAI::SetDespawnAtFar().

Member Function Documentation

◆ GetData()

uint32 npc_general_andorov::GetData ( uint32  type) const

Reimplemented from UnitAI.

297 {
298 if (type == DATA_ANDOROV)
299 {
300 return Endwaypoint;
301 }
303 return 0;
304 }
Definition: ruins_of_ahnqiraj.h:45
bool Endwaypoint
Definition: boss_rajaxx.cpp:374

References DATA_ANDOROV, and Endwaypoint.

◆ InitializeAI()

void npc_general_andorov::InitializeAI ( )

Reimplemented from UnitAI.

192 {
195 for (uint8 i = 0; i < 4; ++i)
196 {
197 if (Creature* kaldoreielitist = me->SummonCreature(NPC_KALDOREI_ELITE, *me))
198 {
199 kaldoreielitist->SetImmuneToNPC(true);
200 kaldoreielitist->SetUnitFlag(UNIT_FLAG_NON_ATTACKABLE);
201 kaldoreielitist->SetReactState(REACT_PASSIVE);
202 CAST_AI(SmartAI, kaldoreielitist->AI())->SetFollow(me, 2.5f, 0.f + i * (M_PI / 2));
203 }
204 }
207 Endwaypoint = false;
209 _paused = false;
211 Start(false, true);
213 me->SetImmuneToNPC(true);
215 }
constexpr auto IN_MILLISECONDS
Definition: Common.h:62
std::uint8_t uint8
Definition: Define.h:110
#define CAST_AI(a, b)
Definition: ScriptedCreature.h:28
Definition: Unit.h:1035
Definition: Unit.h:449
Definition: boss_rajaxx.cpp:152
Definition: ruins_of_ahnqiraj.h:77
void Start(bool isActiveAttacker=true, bool run=false, ObjectGuid playerGUID=ObjectGuid::Empty, Quest const *quest=nullptr, bool instantRespawn=false, bool canLoopPath=false, bool resetWaypoints=true)
Definition: ScriptedEscortAI.cpp:450
Definition: SmartAI.h:45
Definition: Creature.h:46
void SetReactState(ReactStates st)
Definition: Creature.h:89
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:2343
void SetFaction(uint32 faction)
Definition: Unit.cpp:10056
void SetImmuneToNPC(bool apply, bool keepCombat=false)
Definition: Unit.cpp:13602
void SetUnitFlag(UnitFlags flags)
Definition: Unit.h:1493
uint32 _initialAttackTimer
Definition: boss_rajaxx.cpp:373
bool _paused
Definition: boss_rajaxx.cpp:375

References _initialAttackTimer, _paused, CAST_AI, Endwaypoint, FACTION_ANDOROV_ESCORT, IN_MILLISECONDS, ScriptedAI::me, NPC_KALDOREI_ELITE, REACT_PASSIVE, Unit::SetFaction(), Unit::SetImmuneToNPC(), Creature::SetReactState(), Unit::SetUnitFlag(), npc_escortAI::Start(), WorldObject::SummonCreature(), and UNIT_FLAG_NON_ATTACKABLE.

◆ JustDied()

void npc_general_andorov::JustDied ( Unit killer)

Reimplemented from npc_escortAI.

265 {
268 if (killer->GetEntry() == NPC_RAJAXX)
269 {
271 {
272 rajaxx->AI()->Talk(SAY_KILLS_ANDOROV);
273 }
274 }
275 }
Definition: boss_rajaxx.cpp:31
Definition: ruins_of_ahnqiraj.h:55
Definition: ruins_of_ahnqiraj.h:29
void DespawnAll(uint32 delay=0)
Definition: ScriptedCreature.cpp:67
uint32 GetEntry() const
Definition: Object.h:109
Creature * GetCreature(uint32 type)
Definition: InstanceScript.cpp:99

References _summons, DATA_RAJAXX, SummonList::DespawnAll(), InstanceScript::GetCreature(), Object::GetEntry(), instance, NPC_RAJAXX, and SAY_KILLS_ANDOROV.

◆ JustEngagedWith()

void npc_general_andorov::JustEngagedWith ( Unit )

Called for reaction when initially engaged.

Reimplemented from ScriptedAI.

223 {
224 events.ScheduleEvent(EVENT_BASH, 8s, 11s);
225 events.ScheduleEvent(EVENT_COMMAND_AURA, 1s, 3s);
226 events.ScheduleEvent(EVENT_STRIKE, 2s, 5s);
227 }
Definition: boss_rajaxx.cpp:168
Definition: boss_rajaxx.cpp:167
Definition: boss_rajaxx.cpp:169
Definition: boss_sartura.cpp:43


◆ JustSummoned()

void npc_general_andorov::JustSummoned ( Creature summon)

Reimplemented from ScriptedAI.

218 {
219 _summons.Summon(summon);
220 }
void Summon(Creature const *summon)
Definition: ScriptedCreature.h:90

References _summons, and SummonList::Summon().

◆ KilledUnit()

void npc_general_andorov::KilledUnit ( Unit victim)

Reimplemented from ScriptedAI.

278 {
279 if (victim->GetEntry() == NPC_RAJAXX)
280 {
282 }
283 }
Definition: boss_rajaxx.cpp:161
Definition: boss_fathomlord_karathress.cpp:23

References Object::GetEntry(), NPC_RAJAXX, and SAY_ANDOROV_ATTACK.

◆ MoveInLineOfSight()

void npc_general_andorov::MoveInLineOfSight ( Unit who)

Reimplemented from npc_escortAI.

286 {
287 // If Rajaxx is in range attack him
288 if (who->GetEntry() == NPC_RAJAXX && me->IsWithinDistInMap(who, 50.0f))
289 {
290 AttackStart(who);
291 }
294 }
virtual void MoveInLineOfSight(Unit *)
Definition: CreatureAI.cpp:158
void AttackStart(Unit *who) override
Definition: ScriptedEscortAI.cpp:52
bool IsWithinDistInMap(WorldObject const *obj, float dist2compare, bool is3D=true, bool useBoundingRadius=true) const
Definition: Object.cpp:1321

References npc_escortAI::AttackStart(), Object::GetEntry(), WorldObject::IsWithinDistInMap(), ScriptedAI::me, CreatureAI::MoveInLineOfSight(), and NPC_RAJAXX.

◆ sGossipSelect()

void npc_general_andorov::sGossipSelect ( Player player,
uint32  ,
uint32  uiAction 

Reimplemented from UnitAI.

182 {
183 if (uiAction)
184 {
185 CloseGossipMenuFor(player);
187 SetEscortPaused(false);
188 }
189 }
void CloseGossipMenuFor(Player *player)
Definition: ScriptedGossip.cpp:56
Definition: Unit.h:516
void SetEscortPaused(bool on)
Definition: ScriptedEscortAI.cpp:524
void RemoveNpcFlag(NPCFlags flags)
Definition: Unit.h:1660

References CloseGossipMenuFor(), ScriptedAI::me, Unit::RemoveNpcFlag(), npc_escortAI::SetEscortPaused(), and UNIT_NPC_FLAG_GOSSIP.

◆ UpdateEscortAI()

void npc_general_andorov::UpdateEscortAI ( uint32  diff)

Reimplemented from npc_escortAI.

307 {
309 {
310 me->SetFacingTo(2.8772139f);
312 if (_initialAttackTimer <= diff)
313 {
317 {
318 queez->AI()->AttackStart(me);
319 }
320 }
321 else
322 {
323 _initialAttackTimer -= diff;
324 }
325 }
327 if (_paused)
328 {
329 _paused = false;
330 me->SetFacingTo(5.63741350f);
331 }
333 if (!UpdateVictim())
334 {
335 return;
336 }
338 events.Update(diff);
341 {
342 return;
343 }
345 while (uint32 eventId = events.ExecuteEvent())
346 {
347 switch (eventId)
348 {
349 case EVENT_BASH:
351 events.ScheduleEvent(EVENT_BASH, 25s, 38s);
352 break;
355 events.ScheduleEvent(EVENT_COMMAND_AURA, 10s, 20s);
356 break;
357 case EVENT_STRIKE:
359 events.ScheduleEvent(EVENT_STRIKE, 4s, 6s);
360 break;
361 default:
362 break;
363 }
364 }
367 }
std::uint32_t uint32
Definition: Define.h:108
Definition: Unit.h:340
Definition: boss_rajaxx.cpp:157
Definition: boss_rajaxx.cpp:156
Definition: boss_rajaxx.cpp:155
Definition: ruins_of_ahnqiraj.h:38
void DoMeleeAttackIfReady()
Definition: UnitAI.cpp:40
SpellCastResult DoCastVictim(uint32 spellId, bool triggered=false)
Definition: UnitAI.cpp:241
SpellCastResult DoCastSelf(uint32 spellId, bool triggered=false)
Definition: UnitAI.h:369
bool UpdateVictim()
Definition: CreatureAI.cpp:269
void SetFacingTo(float ori)
Definition: Unit.cpp:20868
bool HasUnitState(const uint32 f) const
Definition: Unit.h:1410

References _initialAttackTimer, _paused, DATA_QUUEZ, UnitAI::DoCastSelf(), UnitAI::DoCastVictim(), UnitAI::DoMeleeAttackIfReady(), Endwaypoint, EVENT_BASH, EVENT_COMMAND_AURA, EVENT_STRIKE, InstanceScript::GetCreature(), Unit::HasUnitState(), instance, ScriptedAI::me, Unit::SetFacingTo(), SPELL_AURA_OF_COMMAND, SPELL_BASH, SPELL_STRIKE, UNIT_STATE_CASTING, and CreatureAI::UpdateVictim().

◆ WaypointReached()

void npc_general_andorov::WaypointReached ( uint32  waypointId)

Implements npc_escortAI.

230 {
231 switch (waypointId)
232 {
233 case 10:
235 SetEscortPaused(true);
237 _paused = true;
238 break;
239 case 14:
240 SetEscortPaused(true);
241 if (!Endwaypoint)
242 {
243 Endwaypoint = true;
246 me->SetImmuneToNPC(false);
250 for (ObjectGuid const& guid : _summons)
251 {
252 if (Creature* kaldoreielitist = ObjectAccessor::GetCreature(*me, guid))
253 {
254 kaldoreielitist->SetImmuneToNPC(false);
255 kaldoreielitist->RemoveUnitFlag(UNIT_FLAG_NON_ATTACKABLE);
256 kaldoreielitist->SetReactState(REACT_AGGRESSIVE);
257 }
258 }
259 }
260 break;
261 }
262 }
Definition: Unit.h:1037
Definition: boss_rajaxx.cpp:160
Definition: SharedDefines.h:1870
Creature * GetCreature(WorldObject const &u, ObjectGuid const guid)
Definition: ObjectAccessor.cpp:215
Definition: ObjectGuid.h:120
void SetNpcFlag(NPCFlags flags)
Definition: Unit.h:1659
void HandleEmoteCommand(uint32 emoteId)
Definition: Unit.cpp:1970
void RemoveUnitFlag(UnitFlags flags)
Definition: Unit.h:1494

References _paused, _summons, EMOTE_ONESHOT_CHEER, Endwaypoint, ObjectAccessor::GetCreature(), Unit::HandleEmoteCommand(), ScriptedAI::me, REACT_AGGRESSIVE, Unit::RemoveUnitFlag(), SAY_ANDOROV_INTRO, npc_escortAI::SetEscortPaused(), Unit::SetImmuneToNPC(), Unit::SetNpcFlag(), Creature::SetReactState(), UNIT_FLAG_NON_ATTACKABLE, and UNIT_NPC_FLAG_GOSSIP.

Member Data Documentation

◆ _initialAttackTimer

uint32 npc_general_andorov::_initialAttackTimer

Referenced by InitializeAI(), and UpdateEscortAI().

◆ _paused

bool npc_general_andorov::_paused

◆ _summons

SummonList npc_general_andorov::_summons

◆ Endwaypoint

bool npc_general_andorov::Endwaypoint

◆ events

EventMap npc_general_andorov::events

◆ instance

InstanceScript* npc_general_andorov::instance