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 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
1781 : NullCreatureAI(creature)
1782 {
1784 if (!instance)
1785 me->IsAIEnabled = false;
1786
1787 }
Creature *const me
Definition CreatureAI.h:71
Definition PassiveAI.h:56
bool IsAIEnabled
Definition Unit.h:2097
InstanceScript * GetInstanceScript() const
Definition Object.cpp:1238
InstanceScript * instance
Definition halls_of_reflection.cpp:1789

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.

1821 {
1822 if (dmg >= me->GetHealth())
1823 dmg = me->GetHealth() - 1;
1824 }
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.

1800 {
1801 switch (actionId)
1802 {
1803 case ACTION_START_INTRO:
1804 events.ScheduleEvent(EVENT_LK_SAY_AGGRO, 0ms);
1805 events.ScheduleEvent(EVENT_LK_BATTLE_1, 2s + 500ms);
1806 events.ScheduleEvent(EVENT_LK_BATTLE_2, 3s);
1808 break;
1810 events.ScheduleEvent(EVENT_START_RUN, 0ms);
1811 break;
1814 if (currentStopPoint == 5)
1815 events.ScheduleEvent(EVENT_SAY_OPENING, 3s);
1816 break;
1817 }
1818 }
@ 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:1486
@ EVENT_SAY_OPENING
Definition halls_of_reflection.cpp:1501
@ EVENT_LK_BATTLE_2
Definition halls_of_reflection.cpp:1482
@ EVENT_START_RUN
Definition halls_of_reflection.cpp:1490
@ EVENT_JAINA_IMMOBILIZE_LK
Definition halls_of_reflection.cpp:1485
@ EVENT_LK_SAY_AGGRO
Definition halls_of_reflection.cpp:1480
@ EVENT_LK_BATTLE_1
Definition halls_of_reflection.cpp:1481
@ ACTION_INFORM_WALL_DESTROYED
Definition halls_of_reflection.h:254
@ ACTION_START_LK_FIGHT_REAL
Definition halls_of_reflection.h:251
void MoveToNextStopPoint()
Definition halls_of_reflection.cpp:1826
uint8 currentStopPoint
Definition halls_of_reflection.cpp:1791

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.

1841 {
1842 if (type == ESCORT_MOTION_TYPE && me->movespline->Finalized())
1843 events.ScheduleEvent(EVENT_SAY_LEADER_STOP_TEXT, 1s);
1844 }
@ ESCORT_MOTION_TYPE
Definition MotionMaster.h:57
bool Finalized() const
Definition MoveSpline.h:118
Movement::MoveSpline * movespline
Definition Unit.h:2114
@ EVENT_SAY_LEADER_STOP_TEXT
Definition halls_of_reflection.cpp:1492

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
1827 {
1832 me->SetWalk(false);
1834 path.emplace_back(me->GetPositionX(), me->GetPositionY(), me->GetPositionZ());
1835 for (uint8 i = WP_STOP[currentStopPoint - 1] + (currentStopPoint == 1 ? 0 : 1); i <= WP_STOP[currentStopPoint]; ++i)
1838 }
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:206
bool SetWalk(bool enable) override
Enable or disable the creature's walk mode by removing: MOVEMENTFLAG_WALKING. Infom also the client.
Definition Creature.cpp:3247
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:4302
MotionMaster * GetMotionMaster()
Definition Unit.h:1758
virtual void SetSheath(SheathState sheathed)
Definition Unit.h:1777
void SetSpeed(UnitMoveType mtype, float rate, bool forced=false)
Definition Unit.cpp:11270
const Position PathWaypoints[PATH_WP_COUNT]
Definition halls_of_reflection.h:353
const uint8 WP_STOP[6]
Definition halls_of_reflection.h:351
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.

1794 {
1795 currentStopPoint = 0;
1796 events.Reset();
1797 }

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.

1847 {
1848 events.Update(diff);
1849 switch (events.ExecuteEvent())
1850 {
1851 case EVENT_LK_SAY_AGGRO:
1853 {
1854 me->Attack(lichKing, true),
1855 lichKing->AI()->Talk(me->GetEntry() == NPC_JAINA_PART2 ? SAY_LK_AGGRO_ALLY : SAY_LK_AGGRO_HORDE);
1856 }
1857 break;
1858 case EVENT_LK_BATTLE_1:
1860 lichKing->CastSpell(lichKing, SPELL_SOUL_REAPER);
1861 break;
1862 case EVENT_LK_BATTLE_2:
1863 //horda
1865 leader->CastSpell(leader, SPELL_EVASION, true);
1867 lichKing->SetFacingToObject(me);
1869 {
1870 lichKing->SetUInt32Value(UNIT_NPC_EMOTESTATE, EMOTE_ONESHOT_ATTACK2HTIGHT);
1871 me->SetFacingToObject(lichKing);
1872 }
1873 break;
1876 {
1877 lichKing->SetUInt32Value(UNIT_NPC_EMOTESTATE, EMOTE_STATE_READY_SPELL_OMNI);
1880 events.ScheduleEvent(EVENT_SAY_LEAVE, 5s);
1881 }
1882 break;
1885 {
1886 me->AttackStop();
1888 lichKing->SetUInt32Value(UNIT_NPC_EMOTESTATE, EMOTE_STATE_READY_SPELL_OMNI);
1889 lichKing->CastSpell(me, SPELL_BLIDING_RETREAT);
1891 me->KnockbackFrom(lichKing->GetPositionX(), lichKing->GetPositionY(), 34.3f, 4.0f);
1892 events.ScheduleEvent(EVENT_SYLVANAS_DARK_BINDING, 2s +500ms);
1893 }
1894 break;
1898 events.ScheduleEvent(EVENT_SAY_LEAVE, 2s);
1899 break;
1900 case EVENT_SAY_LEAVE:
1901 {
1903 for (Map::PlayerList::const_iterator itr = pl.begin(); itr != pl.end(); ++itr)
1904 if (Player* p = itr->GetSource())
1905 p->KilledMonsterCredit(me->GetEntry()); //for quest
1908 me->SetWalk(false);
1911 events.ScheduleEvent(EVENT_ADD_GOSSIP, 7s);
1912 }
1913 break;
1914 case EVENT_ADD_GOSSIP:
1918 break;
1919 case EVENT_START_RUN:
1920 {
1922 me->setActive(true);
1925 {
1926 lichKing->setActive(true);
1927 lichKing->SetInCombatWithZone();
1929 lichKing->AI()->DoAction(ACTION_START_LK_FIGHT_REAL);
1930 }
1931 }
1932 break;
1934 {
1935 int32 textId = 0;
1936 switch (currentStopPoint)
1937 {
1938 case 1:
1939 textId = SAY_SYLVANAS_IW_1;
1940 break;
1941 case 2:
1942 textId = SAY_SYLVANAS_IW_2;
1943 break;
1944 case 3:
1945 textId = SAY_SYLVANAS_IW_3;
1946 break;
1947 case 4:
1948 textId = SAY_SYLVANAS_IW_4;
1949 break;
1950 case 5:
1952 break;
1953 }
1954 Talk(textId);
1955 if (currentStopPoint <= 4)
1957 else
1958 {
1959 me->SetFacingTo(PathWaypoints[PATH_WP_COUNT - 1].GetOrientation());
1961 }
1962 }
1963 break;
1964 case EVENT_SAY_OPENING:
1966 break;
1967 }
1969 }
std::int32_t int32
Definition Define.h:103
@ EMOTE_STATE_READY_SPELL_OMNI
Definition SharedDefines.h:2072
@ EMOTE_ONESHOT_ATTACK2HTIGHT
Definition SharedDefines.h:1933
@ EMOTE_ONESHOT_READY1H
Definition SharedDefines.h:1938
@ EMOTE_ONESHOT_NONE
Definition SharedDefines.h:1900
@ 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:115
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:326
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:16421
void SetFacingTo(float ori)
Definition Unit.cpp:16411
void RemoveAura(AuraApplicationMap::iterator &i, AuraRemoveMode mode=AURA_REMOVE_BY_DEFAULT)
Definition Unit.cpp:5024
bool Attack(Unit *victim, bool meleeAttack)
Definition Unit.cpp:7272
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:1350
void SetUInt32Value(uint16 index, uint32 value)
Definition Unit.cpp:17323
bool AttackStop()
Force the unit to stop attacking. This will clear UNIT_STATE_MELEE_ATTACKING, Interrupt current spell...
Definition Unit.cpp:7436
void KnockbackFrom(float x, float y, float speedXY, float speedZ)
Definition Unit.cpp:15356
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:1489
@ EVENT_SYLVANAS_DARK_BINDING
Definition halls_of_reflection.cpp:1487
@ EVENT_SAY_LEAVE
Definition halls_of_reflection.cpp:1488
@ NPC_LICH_KING_BOSS
Definition halls_of_reflection.h:55
@ SPELL_EVASION
Definition halls_of_reflection.h:274
@ SPELL_BLIDING_RETREAT
Definition halls_of_reflection.h:272
@ SPELL_DESTROY_WALL_SYLVANAS
Definition halls_of_reflection.h:293
@ SPELL_JAINA_ICE_PRISON
Definition halls_of_reflection.h:288
@ SPELL_SYLVANAS_CLOAK_OF_DARKNESS
Definition halls_of_reflection.h:287
@ SPELL_SOUL_REAPER
Definition halls_of_reflection.h:273
@ SPELL_DESTROY_WALL_JAINA
Definition halls_of_reflection.h:292
@ SPELL_SYLVANAS_DARK_BINDING
Definition halls_of_reflection.h:289
@ SPELL_JAINA_ICE_BARRIER
Definition halls_of_reflection.h:286
const Position LeaderEscapePos
Definition halls_of_reflection.h:342
@ SAY_JAINA_ESCAPE_01
Definition halls_of_reflection.h:221
@ SAY_LK_AGGRO_ALLY
Definition halls_of_reflection.h:189
@ SAY_SYLVANA_AGGRO
Definition halls_of_reflection.h:201
@ SAY_JAINA_TRAP
Definition halls_of_reflection.h:222
@ SAY_SYLVANAS_IW_3
Definition halls_of_reflection.h:204
@ SAY_SYLVANA_ESCAPE_01
Definition halls_of_reflection.h:206
@ SAY_SYLVANAS_IW_2
Definition halls_of_reflection.h:203
@ SAY_JAINA_AGGRO
Definition halls_of_reflection.h:216
@ SAY_LK_AGGRO_HORDE
Definition halls_of_reflection.h:190
@ SAY_SYLVANAS_IW_4
Definition halls_of_reflection.h:205
@ SAY_SYLVANAS_IW_1
Definition halls_of_reflection.h:202
@ SAY_SYLVANA_TRAP
Definition halls_of_reflection.h:208
#define PATH_WP_COUNT
Definition halls_of_reflection.h:350
@ ACTION_START_LK_FIGHT
Definition halls_of_reflection.h:42
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: