AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
npc_hor_leader_second::npc_hor_leader_secondAI Struct Reference
Inheritance diagram for npc_hor_leader_second::npc_hor_leader_secondAI:
NullCreatureAI CreatureAI UnitAI

Public Member Functions

 npc_hor_leader_secondAI (Creature *creature)
 
void Reset () override
 
void DoAction (int32 actionId) override
 
void DamageTaken (Unit *, uint32 &dmg, DamageEffectType, SpellSchoolMask) override
 Called at any Damage from any attacker (before damage apply)
 
void MoveToNextStopPoint ()
 
void MovementInform (uint32 type, uint32) override
 
void UpdateAI (uint32 diff) override
 Use to start attacking a target. Called just before JustEngagedWith()
 
- Public Member Functions inherited from NullCreatureAI
 NullCreatureAI (Creature *c)
 
void MoveInLineOfSight (Unit *) override
 
void AttackStart (Unit *) override
 
void JustStartedThreateningMe (Unit *) override
 
void JustEnteredCombat (Unit *) override
 Called when the unit enters combat.
 
void UpdateAI (uint32) override
 Use to start attacking a target. Called just before JustEngagedWith()
 
void EnterEvadeMode (EvadeReason) override
 
void OnCharmed (bool) override
 Called when unit is charmed.
 
- Public Member Functions inherited from CreatureAI
void Talk (uint8 id, WorldObject const *whisperTarget=nullptr, Milliseconds delay=0ms)
 Causes the creature to talk/say the text assigned to their entry in the creature_text database table.
 
void Talk (uint8 id, Milliseconds delay)
 
WorldObjectGetSummoner () const
 Returns the summoner creature/object, if the creature is a temporary summon.
 
 CreatureAI (Creature *creature)
 
 ~CreatureAI () override
 
bool IsEngaged () const
 Check if creature is currently engaged in combat.
 
void MoveCircleChecks ()
 
void MoveBackwardsChecks ()
 
void MoveInLineOfSight_Safe (Unit *who)
 == Reactions At =================================
 
void TriggerAlert (Unit const *who) const
 
virtual bool CanRespawn ()
 
virtual bool IsEscortNPC (bool=true) const
 
virtual void JustEngagedWith (Unit *)
 Called for reaction when initially engaged - this happens after JustEnteredCombat.
 
void EngagementStart (Unit *who)
 
void EngagementOver ()
 
void JustExitedCombat () override
 Called when the unit leaves combat.
 
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 OnSpellStart (SpellInfo const *)
 
virtual void OnSpellCast (SpellInfo const *)
 
virtual void OnSpellFailed (SpellInfo const *)
 
virtual void OnChannelFinished (SpellInfo const *)
 
virtual void AttackedBy (Unit *)
 
virtual bool IsEscorted ()
 
virtual void JustRespawned ()
 
virtual void PathEndReached (uint32)
 
virtual void WaypointPathStarted (uint32)
 == Waypoints system =============================
 
virtual void WaypointStarted (uint32, uint32)
 
virtual void WaypointReached (uint32, uint32)
 
virtual void WaypointPathEnded (uint32, uint32)
 
virtual void JustReachedHome ()
 
void DoZoneInCombat (Creature *creature=nullptr, float maxRangeToNearestTarget=250.0f)
 
virtual void ReceiveEmote (Player *, uint32)
 
virtual void OwnerAttackedBy (Unit *attacker)
 
virtual void OwnerAttacked (Unit *target)
 
void OnOwnerCombatInteraction (Unit *target)
 
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 ()
 
int32 VisualizeBoundary (uint32 duration, Unit *owner=nullptr, bool fill=false, bool checkZ=false) const
 
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)
 
virtual void DistancingStarted ()
 
virtual void DistancingEnded ()
 
- Public Member Functions inherited from UnitAI
 UnitAI (Unit *unit)
 
virtual ~UnitAI ()
 
virtual bool CanAIAttack (Unit const *) const
 
virtual void InitializeAI ()
 
virtual uint32 GetData (uint32) const
 
virtual void SetData (uint32, uint32)
 
virtual void SetGUID (ObjectGuid const &, 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:
 
template<class PREDICATE >
void SelectTargetList (std::list< Unit * > &targetList, uint32 num, SelectTargetMethod targetType, uint32 position, PREDICATE const &predicate)
 
virtual void EvadeTimerExpired ()
 Called when evade timer expires (target unreachable for too long)
 
virtual void DamageDealt (Unit *, uint32 &, DamageEffectType, SpellSchoolMask)
 Called at any Damage to any victim (before damage apply)
 
virtual void HealReceived (Unit *, uint32 &)
 Called when the creature receives heal.
 
virtual void OnPowerUpdate (Powers, int32, int32, uint32)
 Called when the creature power updates.
 
virtual void HealDone (Unit *, uint32 &)
 Called when the unit heals.
 
virtual void OnCalculateMeleeDamageReceived (uint32 &, Unit *)
 Called during damage calculations.
 
virtual void OnCalculateSpellDamageReceived (int32 &, Unit *)
 
virtual void OnCalculatePeriodicTickReceived (uint32 &, Unit *)
 Called during calculation when receiving periodic healing or damage (DoT or HoT)
 
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.
 
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.
 
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.
 
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.
 
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

InstanceScriptinstance
 
EventMap events
 
uint8 currentStopPoint
 

Additional Inherited Members

- 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 NullCreatureAI
static int32 Permissible (Creature const *creature)
 
- 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)
 
bool _EnterEvadeMode (EvadeReason why=EVADE_REASON_OTHER)
 
- Protected Attributes inherited from CreatureAI
Creature *const me
 
EventMap events
 
TaskScheduler scheduler
 
CreatureBoundary const * _boundary
 
bool _negateBoundary
 
bool _isEngaged
 
- Protected Attributes inherited from UnitAI
Unit *const me
 

Detailed Description

Constructor & Destructor Documentation

◆ npc_hor_leader_secondAI()

npc_hor_leader_second::npc_hor_leader_secondAI::npc_hor_leader_secondAI ( Creature creature)
inline
1771 : NullCreatureAI(creature)
1772 {
1774 if (!instance)
1775 me->IsAIEnabled = false;
1776
1777 }
Creature *const me
Definition CreatureAI.h:71
Definition PassiveAI.h:56
bool IsAIEnabled
Definition Unit.h:2098
InstanceScript * GetInstanceScript() const
Definition Object.cpp:1238
InstanceScript * instance
Definition halls_of_reflection.cpp:1779

References WorldObject::GetInstanceScript(), instance, Unit::IsAIEnabled, and CreatureAI::me.

Member Function Documentation

◆ DamageTaken()

void npc_hor_leader_second::npc_hor_leader_secondAI::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 UnitAI.

1811 {
1812 if (dmg >= me->GetHealth())
1813 dmg = me->GetHealth() - 1;
1814 }
uint32 GetHealth() const
Definition Unit.h:1108

References Unit::GetHealth(), and CreatureAI::me.

◆ DoAction()

void npc_hor_leader_second::npc_hor_leader_secondAI::DoAction ( int32  actionId)
inlineoverridevirtual

Reimplemented from UnitAI.

1790 {
1791 switch (actionId)
1792 {
1793 case ACTION_START_INTRO:
1794 events.ScheduleEvent(EVENT_LK_SAY_AGGRO, 0ms);
1795 events.ScheduleEvent(EVENT_LK_BATTLE_1, 2s + 500ms);
1796 events.ScheduleEvent(EVENT_LK_BATTLE_2, 3s);
1798 break;
1800 events.ScheduleEvent(EVENT_START_RUN, 0ms);
1801 break;
1804 if (currentStopPoint == 5)
1805 events.ScheduleEvent(EVENT_SAY_OPENING, 3s);
1806 break;
1807 }
1808 }
@ ACTION_START_INTRO
Definition boss_nightbane.cpp:57
events
Definition boss_sartura.cpp:43
uint32 GetEntry() const
Definition Object.h:117
@ NPC_JAINA_PART2
Definition forge_of_souls.h:48
@ EVENT_SYLVANAS_IMMOBILIZE_JUMP
Definition halls_of_reflection.cpp:1483
@ EVENT_SAY_OPENING
Definition halls_of_reflection.cpp:1498
@ EVENT_LK_BATTLE_2
Definition halls_of_reflection.cpp:1479
@ EVENT_START_RUN
Definition halls_of_reflection.cpp:1487
@ EVENT_JAINA_IMMOBILIZE_LK
Definition halls_of_reflection.cpp:1482
@ EVENT_LK_SAY_AGGRO
Definition halls_of_reflection.cpp:1477
@ EVENT_LK_BATTLE_1
Definition halls_of_reflection.cpp:1478
@ ACTION_INFORM_WALL_DESTROYED
Definition halls_of_reflection.h:257
@ ACTION_START_LK_FIGHT_REAL
Definition halls_of_reflection.h:256
void MoveToNextStopPoint()
Definition halls_of_reflection.cpp:1816
uint8 currentStopPoint
Definition halls_of_reflection.cpp:1781

References ACTION_INFORM_WALL_DESTROYED, ACTION_START_INTRO, ACTION_START_LK_FIGHT_REAL, currentStopPoint, EVENT_JAINA_IMMOBILIZE_LK, EVENT_LK_BATTLE_1, EVENT_LK_BATTLE_2, EVENT_LK_SAY_AGGRO, EVENT_SAY_OPENING, EVENT_START_RUN, EVENT_SYLVANAS_IMMOBILIZE_JUMP, Object::GetEntry(), CreatureAI::me, MoveToNextStopPoint(), and NPC_JAINA_PART2.

◆ MovementInform()

void npc_hor_leader_second::npc_hor_leader_secondAI::MovementInform ( uint32  type,
uint32   
)
inlineoverridevirtual

Reimplemented from CreatureAI.

1831 {
1832 if (type == ESCORT_MOTION_TYPE && me->movespline->Finalized())
1833 events.ScheduleEvent(EVENT_SAY_LEADER_STOP_TEXT, 1s);
1834 }
@ ESCORT_MOTION_TYPE
Definition MotionMaster.h:57
bool Finalized() const
Definition MoveSpline.h:118
Movement::MoveSpline * movespline
Definition Unit.h:2115
@ EVENT_SAY_LEADER_STOP_TEXT
Definition halls_of_reflection.cpp:1489

References ESCORT_MOTION_TYPE, EVENT_SAY_LEADER_STOP_TEXT, Movement::MoveSpline::Finalized(), CreatureAI::me, and Unit::movespline.

◆ MoveToNextStopPoint()

void npc_hor_leader_second::npc_hor_leader_secondAI::MoveToNextStopPoint ( )
inline
1817 {
1822 me->SetWalk(false);
1824 path.emplace_back(me->GetPositionX(), me->GetPositionY(), me->GetPositionZ());
1825 for (uint8 i = WP_STOP[currentStopPoint - 1] + (currentStopPoint == 1 ? 0 : 1); i <= WP_STOP[currentStopPoint]; ++i)
1828 }
std::uint8_t uint8
Definition Define.h:109
@ FORCED_MOVEMENT_RUN
Definition MotionMaster.h:88
@ SHEATH_STATE_MELEE
Definition UnitDefines.h:130
@ MOVE_RUN
Definition UnitDefines.h:357
CreatureTemplate const * GetCreatureTemplate() const
Definition Creature.h:207
bool SetWalk(bool enable) override
Enable or disable the creature's walk mode by removing: MOVEMENTFLAG_WALKING. Infom also the client.
Definition Creature.cpp:3323
void MoveSplinePath(Movement::PointsArray *path, ForcedMovement forcedMovement=FORCED_MOVEMENT_NONE)
Definition MotionMaster.cpp:503
void InterruptNonMeleeSpells(bool withDelayed, uint32 spellid=0, bool withInstant=true, bool bySelf=false)
Definition Unit.cpp:4316
MotionMaster * GetMotionMaster()
Definition Unit.h:1759
virtual void SetSheath(SheathState sheathed)
Definition Unit.h:1778
void SetSpeed(UnitMoveType mtype, float rate, bool forced=false)
Definition Unit.cpp:11296
const Position PathWaypoints[PATH_WP_COUNT]
Definition halls_of_reflection.h:356
const uint8 WP_STOP[6]
Definition halls_of_reflection.h:354
std::vector< Vector3 > PointsArray
Definition MoveSplineInitArgs.h:28
float speed_run
Definition CreatureData.h:202
float GetPositionZ() const
Definition Position.h:123
float GetPositionX() const
Definition Position.h:121
float GetPositionY() const
Definition Position.h:122

References currentStopPoint, FORCED_MOVEMENT_RUN, Creature::GetCreatureTemplate(), Unit::GetMotionMaster(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), Unit::InterruptNonMeleeSpells(), CreatureAI::me, MOVE_RUN, MotionMaster::MoveSplinePath(), PathWaypoints, Unit::SetSheath(), Unit::SetSpeed(), Creature::SetWalk(), SHEATH_STATE_MELEE, CreatureTemplate::speed_run, and WP_STOP.

Referenced by DoAction(), and UpdateAI().

◆ Reset()

void npc_hor_leader_second::npc_hor_leader_secondAI::Reset ( )
inlineoverridevirtual

Reimplemented from UnitAI.

1784 {
1785 currentStopPoint = 0;
1786 events.Reset();
1787 }

References currentStopPoint.

◆ UpdateAI()

void npc_hor_leader_second::npc_hor_leader_secondAI::UpdateAI ( uint32  )
inlineoverridevirtual

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

Implements UnitAI.

1837 {
1838 events.Update(diff);
1839 switch (events.ExecuteEvent())
1840 {
1841 case EVENT_LK_SAY_AGGRO:
1843 {
1844 me->Attack(lichKing, true),
1845 lichKing->AI()->Talk(me->GetEntry() == NPC_JAINA_PART2 ? SAY_LK_AGGRO_ALLY : SAY_LK_AGGRO_HORDE);
1846 }
1847 break;
1848 case EVENT_LK_BATTLE_1:
1850 lichKing->CastSpell(lichKing, SPELL_SOUL_REAPER);
1851 break;
1852 case EVENT_LK_BATTLE_2:
1853 //horda
1855 leader->CastSpell(leader, SPELL_EVASION, true);
1857 lichKing->SetFacingToObject(me);
1859 {
1860 lichKing->SetUInt32Value(UNIT_NPC_EMOTESTATE, EMOTE_ONESHOT_ATTACK2HTIGHT);
1861 me->SetFacingToObject(lichKing);
1862 }
1863 break;
1866 {
1867 lichKing->SetUInt32Value(UNIT_NPC_EMOTESTATE, EMOTE_STATE_READY_SPELL_OMNI);
1870 events.ScheduleEvent(EVENT_SAY_LEAVE, 5s);
1871 }
1872 break;
1875 {
1876 me->AttackStop();
1878 lichKing->SetUInt32Value(UNIT_NPC_EMOTESTATE, EMOTE_STATE_READY_SPELL_OMNI);
1879 lichKing->CastSpell(me, SPELL_BLIDING_RETREAT);
1881 me->KnockbackFrom(lichKing->GetPositionX(), lichKing->GetPositionY(), 34.3f, 4.0f);
1882 events.ScheduleEvent(EVENT_SYLVANAS_DARK_BINDING, 2s +500ms);
1883 }
1884 break;
1888 events.ScheduleEvent(EVENT_SAY_LEAVE, 2s);
1889 break;
1890 case EVENT_SAY_LEAVE:
1891 {
1893 for (Map::PlayerList::const_iterator itr = pl.begin(); itr != pl.end(); ++itr)
1894 if (Player* p = itr->GetSource())
1895 p->KilledMonsterCredit(me->GetEntry()); //for quest
1898 me->SetWalk(false);
1901 events.ScheduleEvent(EVENT_ADD_GOSSIP, 7s);
1902 }
1903 break;
1904 case EVENT_ADD_GOSSIP:
1908 break;
1909 case EVENT_START_RUN:
1910 {
1912 me->setActive(true);
1915 {
1916 lichKing->setActive(true);
1917 lichKing->SetInCombatWithZone();
1919 lichKing->AI()->DoAction(ACTION_START_LK_FIGHT_REAL);
1920 }
1921 }
1922 break;
1924 {
1925 int32 textId = 0;
1926 switch (currentStopPoint)
1927 {
1928 case 1:
1929 textId = SAY_SYLVANAS_IW_1;
1930 break;
1931 case 2:
1932 textId = SAY_SYLVANAS_IW_2;
1933 break;
1934 case 3:
1935 textId = SAY_SYLVANAS_IW_3;
1936 break;
1937 case 4:
1938 textId = SAY_SYLVANAS_IW_4;
1939 break;
1940 case 5:
1942 break;
1943 }
1944 Talk(textId);
1945 if (currentStopPoint <= 4)
1947 else
1948 {
1949 me->SetFacingTo(PathWaypoints[PATH_WP_COUNT - 1].GetOrientation());
1951 }
1952 }
1953 break;
1954 case EVENT_SAY_OPENING:
1956 break;
1957 }
1959 }
std::int32_t int32
Definition Define.h:103
@ EMOTE_STATE_READY_SPELL_OMNI
Definition SharedDefines.h:2070
@ EMOTE_ONESHOT_ATTACK2HTIGHT
Definition SharedDefines.h:1931
@ EMOTE_ONESHOT_READY1H
Definition SharedDefines.h:1936
@ EMOTE_ONESHOT_NONE
Definition SharedDefines.h:1898
@ UNIT_NPC_FLAG_GOSSIP
Definition UnitDefines.h:322
@ UNIT_NPC_EMOTESTATE
Definition UpdateFields.h:140
Definition Creature.h:47
Creature * GetCreature(uint32 type)
Definition InstanceScript.cpp:116
Map * instance
Definition InstanceScript.h:149
Definition LinkedList.h:139
Definition MapRefMgr.h:26
iterator begin()
Definition MapRefMgr.h:36
iterator end()
Definition MapRefMgr.h:37
PlayerList const & GetPlayers() const
Definition Map.h:329
void MovePoint(uint32 id, const Position &pos, ForcedMovement forcedMovement=FORCED_MOVEMENT_NONE, float speed=0.f, bool generatePath=true, bool forceDestination=true, std::optional< AnimTier > animTier=std::nullopt)
Definition MotionMaster.h:240
Definition Player.h:1084
SpellCastResult DoCastAOE(uint32 spellId, bool triggered=false)
Definition UnitAI.cpp:285
void DoMeleeAttackIfReady()
Definition UnitAI.cpp:40
void SetFacingToObject(WorldObject *object, Milliseconds timed=0ms)
Definition Unit.cpp:16456
void SetFacingTo(float ori)
Definition Unit.cpp:16446
void RemoveAura(AuraApplicationMap::iterator &i, AuraRemoveMode mode=AURA_REMOVE_BY_DEFAULT)
Definition Unit.cpp:5038
bool Attack(Unit *victim, bool meleeAttack)
Definition Unit.cpp:7289
void SetNpcFlag(NPCFlags flags)
Definition Unit.h:764
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:1375
void SetUInt32Value(uint16 index, uint32 value)
Definition Unit.cpp:17358
bool AttackStop()
Force the unit to stop attacking. This will clear UNIT_STATE_MELEE_ATTACKING, Interrupt current spell...
Definition Unit.cpp:7453
void KnockbackFrom(float x, float y, float speedXY, float speedZ)
Definition Unit.cpp:15385
void setActive(bool isActiveObject)
Definition Object.cpp:1082
virtual void SetData(uint32, uint32)
Definition ZoneScript.h:52
@ NPC_SYLVANAS_PART2
Definition forge_of_souls.h:46
@ EVENT_ADD_GOSSIP
Definition halls_of_reflection.cpp:1486
@ EVENT_SYLVANAS_DARK_BINDING
Definition halls_of_reflection.cpp:1484
@ EVENT_SAY_LEAVE
Definition halls_of_reflection.cpp:1485
@ NPC_LICH_KING_BOSS
Definition halls_of_reflection.h:60
@ SPELL_EVASION
Definition halls_of_reflection.h:277
@ SPELL_BLIDING_RETREAT
Definition halls_of_reflection.h:275
@ SPELL_DESTROY_WALL_SYLVANAS
Definition halls_of_reflection.h:296
@ SPELL_JAINA_ICE_PRISON
Definition halls_of_reflection.h:291
@ SPELL_SYLVANAS_CLOAK_OF_DARKNESS
Definition halls_of_reflection.h:290
@ SPELL_SOUL_REAPER
Definition halls_of_reflection.h:276
@ SPELL_DESTROY_WALL_JAINA
Definition halls_of_reflection.h:295
@ SPELL_SYLVANAS_DARK_BINDING
Definition halls_of_reflection.h:292
@ SPELL_JAINA_ICE_BARRIER
Definition halls_of_reflection.h:289
const Position LeaderEscapePos
Definition halls_of_reflection.h:345
@ SAY_JAINA_ESCAPE_01
Definition halls_of_reflection.h:226
@ SAY_LK_AGGRO_ALLY
Definition halls_of_reflection.h:194
@ SAY_SYLVANA_AGGRO
Definition halls_of_reflection.h:206
@ SAY_JAINA_TRAP
Definition halls_of_reflection.h:227
@ SAY_SYLVANAS_IW_3
Definition halls_of_reflection.h:209
@ SAY_SYLVANA_ESCAPE_01
Definition halls_of_reflection.h:211
@ SAY_SYLVANAS_IW_2
Definition halls_of_reflection.h:208
@ SAY_JAINA_AGGRO
Definition halls_of_reflection.h:221
@ SAY_LK_AGGRO_HORDE
Definition halls_of_reflection.h:195
@ SAY_SYLVANAS_IW_4
Definition halls_of_reflection.h:210
@ SAY_SYLVANAS_IW_1
Definition halls_of_reflection.h:207
@ SAY_SYLVANA_TRAP
Definition halls_of_reflection.h:213
#define PATH_WP_COUNT
Definition halls_of_reflection.h:353
@ ACTION_START_LK_FIGHT
Definition halls_of_reflection.h:50
Talk
Definition hyjal.cpp:82
float GetOrientation() const
Definition Position.h:124

References ACTION_START_LK_FIGHT, ACTION_START_LK_FIGHT_REAL, Unit::Attack(), Unit::AttackStop(), MapRefMgr::begin(), Unit::CastSpell(), currentStopPoint, UnitAI::DoCastAOE(), UnitAI::DoMeleeAttackIfReady(), EMOTE_ONESHOT_ATTACK2HTIGHT, EMOTE_ONESHOT_NONE, EMOTE_ONESHOT_READY1H, EMOTE_STATE_READY_SPELL_OMNI, MapRefMgr::end(), EVENT_ADD_GOSSIP, EVENT_JAINA_IMMOBILIZE_LK, EVENT_LK_BATTLE_1, EVENT_LK_BATTLE_2, EVENT_LK_SAY_AGGRO, EVENT_SAY_LEADER_STOP_TEXT, EVENT_SAY_LEAVE, EVENT_SAY_OPENING, EVENT_START_RUN, EVENT_SYLVANAS_DARK_BINDING, EVENT_SYLVANAS_IMMOBILIZE_JUMP, InstanceScript::GetCreature(), Creature::GetCreatureTemplate(), Object::GetEntry(), Unit::GetMotionMaster(), Position::GetOrientation(), Map::GetPlayers(), InstanceScript::instance, instance, Unit::KnockbackFrom(), LeaderEscapePos, CreatureAI::me, MOVE_RUN, MotionMaster::MovePoint(), MoveToNextStopPoint(), NPC_JAINA_PART2, NPC_LICH_KING_BOSS, NPC_SYLVANAS_PART2, PATH_WP_COUNT, PathWaypoints, Unit::RemoveAura(), SAY_JAINA_AGGRO, SAY_JAINA_ESCAPE_01, SAY_JAINA_TRAP, SAY_LK_AGGRO_ALLY, SAY_LK_AGGRO_HORDE, SAY_SYLVANA_AGGRO, SAY_SYLVANA_ESCAPE_01, SAY_SYLVANA_TRAP, SAY_SYLVANAS_IW_1, SAY_SYLVANAS_IW_2, SAY_SYLVANAS_IW_3, SAY_SYLVANAS_IW_4, WorldObject::setActive(), ZoneScript::SetData(), Unit::SetFacingTo(), Unit::SetFacingToObject(), Unit::SetNpcFlag(), Unit::SetSheath(), Unit::SetSpeed(), Unit::SetUInt32Value(), Creature::SetWalk(), SHEATH_STATE_MELEE, CreatureTemplate::speed_run, SPELL_BLIDING_RETREAT, SPELL_DESTROY_WALL_JAINA, SPELL_DESTROY_WALL_SYLVANAS, SPELL_EVASION, SPELL_JAINA_ICE_BARRIER, SPELL_JAINA_ICE_PRISON, SPELL_SOUL_REAPER, SPELL_SYLVANAS_CLOAK_OF_DARKNESS, SPELL_SYLVANAS_DARK_BINDING, UNIT_NPC_EMOTESTATE, and UNIT_NPC_FLAG_GOSSIP.

Member Data Documentation

◆ currentStopPoint

uint8 npc_hor_leader_second::npc_hor_leader_secondAI::currentStopPoint

◆ events

EventMap npc_hor_leader_second::npc_hor_leader_secondAI::events

◆ instance

InstanceScript* npc_hor_leader_second::npc_hor_leader_secondAI::instance

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