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) More...
 
void MoveToNextStopPoint ()
 
void MovementInform (uint32 type, uint32) override
 
void UpdateAI (uint32 diff) override
 Use to start attacking a target. Called just before JustEngagedWith() More...
 
- Public Member Functions inherited from NullCreatureAI
 NullCreatureAI (Creature *c)
 
void MoveInLineOfSight (Unit *) override
 
void AttackStart (Unit *) override
 
void UpdateAI (uint32) override
 Use to start attacking a target. Called just before JustEngagedWith() More...
 
void EnterEvadeMode (EvadeReason) override
 
void OnCharmed (bool) override
 Called when unit is charmed. More...
 
- 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)
 
WorldObjectGetSummoner () const
 Returns the summoner creature/object, if the creature is a temporary summon. More...
 
 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
 
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)
 
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

◆ npc_hor_leader_secondAI()

npc_hor_leader_second::npc_hor_leader_secondAI::npc_hor_leader_secondAI ( Creature creature)
inline
1936 : NullCreatureAI(creature)
1937 {
1939 if (!pInstance)
1940 me->IsAIEnabled = false;
1941
1942 }
Definition: PassiveAI.h:53
Creature *const me
Definition: CreatureAI.h:72
InstanceScript * GetInstanceScript() const
Definition: Object.cpp:1203
bool IsAIEnabled
Definition: Unit.h:1962
InstanceScript * pInstance
Definition: halls_of_reflection.cpp:1944

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

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.

1976 {
1977 if (dmg >= me->GetHealth())
1978 dmg = me->GetHealth() - 1;
1979 }
uint32 GetHealth() const
Definition: Unit.h:1029

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

◆ DoAction()

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

Reimplemented from UnitAI.

1955 {
1956 switch (actionId)
1957 {
1958 case ACTION_START_INTRO:
1959 events.ScheduleEvent(EVENT_LK_SAY_AGGRO, 0ms);
1960 events.ScheduleEvent(EVENT_LK_BATTLE_1, 2s +500ms);
1961 events.ScheduleEvent(EVENT_LK_BATTLE_2, 3s);
1963 break;
1965 events.ScheduleEvent(EVENT_START_RUN, 0ms);
1966 break;
1969 if (currentStopPoint == 5)
1970 events.ScheduleEvent(EVENT_SAY_OPENING, 3s);
1971 break;
1972 }
1973 }
events
Definition: boss_sartura.cpp:43
@ ACTION_INFORM_WALL_DESTROYED
Definition: halls_of_reflection.h:248
@ ACTION_START_LK_FIGHT_REAL
Definition: halls_of_reflection.h:245
@ EVENT_SYLVANAS_IMMOBILIZE_JUMP
Definition: halls_of_reflection.cpp:1630
@ EVENT_SAY_OPENING
Definition: halls_of_reflection.cpp:1645
@ EVENT_LK_BATTLE_2
Definition: halls_of_reflection.cpp:1626
@ EVENT_START_RUN
Definition: halls_of_reflection.cpp:1634
@ EVENT_JAINA_IMMOBILIZE_LK
Definition: halls_of_reflection.cpp:1629
@ EVENT_LK_SAY_AGGRO
Definition: halls_of_reflection.cpp:1624
@ EVENT_LK_BATTLE_1
Definition: halls_of_reflection.cpp:1625
@ NPC_JAINA_PART2
Definition: forge_of_souls.h:43
@ ACTION_START_INTRO
Definition: boss_nightbane.cpp:57
uint32 GetEntry() const
Definition: Object.h:115
void MoveToNextStopPoint()
Definition: halls_of_reflection.cpp:1981
uint8 currentStopPoint
Definition: halls_of_reflection.cpp:1946

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.

1996 {
1997 if (type == ESCORT_MOTION_TYPE && me->movespline->Finalized())
1998 events.ScheduleEvent(EVENT_SAY_LEADER_STOP_TEXT, 1s);
1999 }
@ EVENT_SAY_LEADER_STOP_TEXT
Definition: halls_of_reflection.cpp:1636
@ ESCORT_MOTION_TYPE
Definition: MotionMaster.h:57
Movement::MoveSpline * movespline
Definition: Unit.h:1979
bool Finalized() const
Definition: MoveSpline.h:116

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
1982 {
1987 me->SetWalk(false);
1989 path.push_back(G3D::Vector3(me->GetPositionX(), me->GetPositionY(), me->GetPositionZ()));
1990 for (uint8 i = WP_STOP[currentStopPoint - 1] + (currentStopPoint == 1 ? 0 : 1); i <= WP_STOP[currentStopPoint]; ++i)
1991 path.push_back(G3D::Vector3(PathWaypoints[i].GetPositionX(), PathWaypoints[i].GetPositionY(), PathWaypoints[i].GetPositionZ()));
1993 }
std::uint8_t uint8
Definition: Define.h:109
const Position PathWaypoints[PATH_WP_COUNT]
Definition: halls_of_reflection.h:342
const uint8 WP_STOP[6]
Definition: halls_of_reflection.h:340
@ SHEATH_STATE_MELEE
Definition: UnitDefines.h:106
@ MOVE_RUN
Definition: UnitDefines.h:329
std::vector< Vector3 > PointsArray
Definition: MoveSplineInitArgs.h:28
CreatureTemplate const * GetCreatureTemplate() const
Definition: Creature.h:205
bool SetWalk(bool enable) override
Enable or disable the creature's walk mode by removing: MOVEMENTFLAG_WALKING. Infom also the client.
Definition: Creature.cpp:3191
float speed_run
Definition: CreatureData.h:201
float GetPositionZ() const
Definition: Position.h:118
float GetPositionX() const
Definition: Position.h:116
float GetPositionY() const
Definition: Position.h:117
void InterruptNonMeleeSpells(bool withDelayed, uint32 spellid=0, bool withInstant=true, bool bySelf=false)
Definition: Unit.cpp:4129
MotionMaster * GetMotionMaster()
Definition: Unit.h:1620
virtual void SetSheath(SheathState sheathed)
Definition: Unit.h:1639
void SetSpeed(UnitMoveType mtype, float rate, bool forced=false)
Definition: Unit.cpp:14429
void MoveSplinePath(Movement::PointsArray *path)
Definition: MotionMaster.cpp:454

References currentStopPoint, 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.

1949 {
1950 currentStopPoint = 0;
1951 events.Reset();
1952 }

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()

Reimplemented from NullCreatureAI.

2002 {
2003 events.Update(diff);
2004 switch (events.ExecuteEvent())
2005 {
2006 case EVENT_LK_SAY_AGGRO:
2008 {
2009 me->Attack(lkboss, true),
2010 lkboss->AI()->Talk(me->GetEntry() == NPC_JAINA_PART2 ? SAY_LK_AGGRO_ALLY : SAY_LK_AGGRO_HORDE);
2011 }
2012 break;
2013 case EVENT_LK_BATTLE_1:
2015 {
2016 lkboss->CastSpell(lkboss, SPELL_SOUL_REAPER, false);
2017 }
2018 break;
2019 case EVENT_LK_BATTLE_2:
2020 //horda
2022 {
2023 leader->CastSpell(leader, SPELL_EVASION, true);
2024 }
2026 {
2027 lkboss->SetFacingToObject(me);
2028 }
2030 {
2031 lkboss->SetUInt32Value(UNIT_NPC_EMOTESTATE, EMOTE_ONESHOT_ATTACK2HTIGHT);
2032 me->SetFacingToObject(lkboss);
2033 }
2034 break;
2037 {
2038 lkboss->SetUInt32Value(UNIT_NPC_EMOTESTATE, EMOTE_STATE_READY_SPELL_OMNI);
2040 me->CastSpell(lkboss, SPELL_JAINA_ICE_PRISON, false);
2041 events.ScheduleEvent(EVENT_SAY_LEAVE, 5s);
2042 }
2043 break;
2046 {
2047 me->AttackStop();
2049 lkboss->SetUInt32Value(UNIT_NPC_EMOTESTATE, EMOTE_STATE_READY_SPELL_OMNI);
2050 lkboss->CastSpell(me, SPELL_BLIDING_RETREAT, false);
2052 me->KnockbackFrom(lkboss->GetPositionX(), lkboss->GetPositionY(), 34.3f, 4.0f);
2053 events.ScheduleEvent(EVENT_SYLVANAS_DARK_BINDING, 2s +500ms);
2054 }
2055 break;
2058 me->CastSpell(lkboss, SPELL_SYLVANAS_DARK_BINDING, false);
2059 events.ScheduleEvent(EVENT_SAY_LEAVE, 2s);
2060 break;
2061 case EVENT_SAY_LEAVE:
2062 {
2064 for (Map::PlayerList::const_iterator itr = pl.begin(); itr != pl.end(); ++itr)
2065 if (Player* p = itr->GetSource())
2066 p->KilledMonsterCredit(me->GetEntry()); //for quest
2069 me->SetWalk(false);
2072 events.ScheduleEvent(EVENT_ADD_GOSSIP, 7s);
2073 }
2074 break;
2075 case EVENT_ADD_GOSSIP:
2079 break;
2080 case EVENT_START_RUN:
2081 {
2083 me->setActive(true);
2086 {
2087 lkboss->setActive(true);
2088 lkboss->SetInCombatWithZone();
2090 lkboss->AI()->DoAction(ACTION_START_LK_FIGHT_REAL);
2091 }
2092 }
2093 break;
2095 {
2096 int32 textId = 0;
2097 switch (currentStopPoint)
2098 {
2099 case 1:
2100 textId = SAY_SYLVANAS_IW_1;
2101 break;
2102 case 2:
2103 textId = SAY_SYLVANAS_IW_2;
2104 break;
2105 case 3:
2106 textId = SAY_SYLVANAS_IW_3;
2107 break;
2108 case 4:
2109 textId = SAY_SYLVANAS_IW_4;
2110 break;
2111 case 5:
2113 break;
2114 }
2115 Talk(textId);
2116 if (currentStopPoint <= 4)
2118 else
2119 {
2120 me->SetFacingTo(PathWaypoints[PATH_WP_COUNT - 1].GetOrientation());
2122 }
2123 }
2124 break;
2125 case EVENT_SAY_OPENING:
2127 break;
2128 }
2130 }
std::int32_t int32
Definition: Define.h:103
Talk
Definition: hyjal.cpp:82
@ NPC_LICH_KING_BOSS
Definition: halls_of_reflection.h:54
@ SPELL_EVASION
Definition: halls_of_reflection.h:268
@ SPELL_BLIDING_RETREAT
Definition: halls_of_reflection.h:266
@ SPELL_DESTROY_WALL_SYLVANAS
Definition: halls_of_reflection.h:287
@ SPELL_JAINA_ICE_PRISON
Definition: halls_of_reflection.h:282
@ SPELL_SYLVANAS_CLOAK_OF_DARKNESS
Definition: halls_of_reflection.h:281
@ SPELL_SOUL_REAPER
Definition: halls_of_reflection.h:267
@ SPELL_DESTROY_WALL_JAINA
Definition: halls_of_reflection.h:286
@ SPELL_SYLVANAS_DARK_BINDING
Definition: halls_of_reflection.h:283
@ SPELL_JAINA_ICE_BARRIER
Definition: halls_of_reflection.h:280
const Position LeaderEscapePos
Definition: halls_of_reflection.h:331
@ SAY_JAINA_ESCAPE_01
Definition: halls_of_reflection.h:215
@ SAY_LK_AGGRO_ALLY
Definition: halls_of_reflection.h:183
@ SAY_SYLVANA_AGGRO
Definition: halls_of_reflection.h:195
@ SAY_JAINA_TRAP
Definition: halls_of_reflection.h:216
@ SAY_SYLVANAS_IW_3
Definition: halls_of_reflection.h:198
@ SAY_SYLVANA_ESCAPE_01
Definition: halls_of_reflection.h:200
@ SAY_SYLVANAS_IW_2
Definition: halls_of_reflection.h:197
@ SAY_JAINA_AGGRO
Definition: halls_of_reflection.h:210
@ SAY_LK_AGGRO_HORDE
Definition: halls_of_reflection.h:184
@ SAY_SYLVANAS_IW_4
Definition: halls_of_reflection.h:199
@ SAY_SYLVANAS_IW_1
Definition: halls_of_reflection.h:196
@ SAY_SYLVANA_TRAP
Definition: halls_of_reflection.h:202
#define PATH_WP_COUNT
Definition: halls_of_reflection.h:339
@ ACTION_START_LK_FIGHT
Definition: halls_of_reflection.h:42
@ EVENT_ADD_GOSSIP
Definition: halls_of_reflection.cpp:1633
@ EVENT_SYLVANAS_DARK_BINDING
Definition: halls_of_reflection.cpp:1631
@ EVENT_SAY_LEAVE
Definition: halls_of_reflection.cpp:1632
@ NPC_SYLVANAS_PART2
Definition: forge_of_souls.h:41
@ EMOTE_STATE_READY_SPELL_OMNI
Definition: SharedDefines.h:2066
@ EMOTE_ONESHOT_ATTACK2HTIGHT
Definition: SharedDefines.h:1927
@ EMOTE_ONESHOT_READY1H
Definition: SharedDefines.h:1932
@ EMOTE_ONESHOT_NONE
Definition: SharedDefines.h:1894
@ UNIT_NPC_EMOTESTATE
Definition: UpdateFields.h:140
@ UNIT_NPC_FLAG_GOSSIP
Definition: UnitDefines.h:294
Definition: LinkedList.h:139
void DoMeleeAttackIfReady()
Definition: UnitAI.cpp:39
Definition: Creature.h:43
void setActive(bool isActiveObject)
Definition: Object.cpp:1094
float GetOrientation() const
Definition: Position.h:119
Definition: Player.h:1081
Definition: Unit.h:630
void SetFacingTo(float ori)
Definition: Unit.cpp:20527
void RemoveAura(AuraApplicationMap::iterator &i, AuraRemoveMode mode=AURA_REMOVE_BY_DEFAULT)
Definition: Unit.cpp:4776
void SetFacingToObject(WorldObject *object)
Definition: Unit.cpp:20537
bool Attack(Unit *victim, bool meleeAttack)
Definition: Unit.cpp:10272
void SetNpcFlag(NPCFlags flags)
Definition: Unit.h:726
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
void SetUInt32Value(uint16 index, uint32 value)
Definition: Unit.cpp:21316
bool AttackStop()
Force the unit to stop attacking. This will clear UNIT_STATE_MELEE_ATTACKING, Interrupt current spell...
Definition: Unit.cpp:10403
void KnockbackFrom(float x, float y, float speedXY, float speedZ)
Definition: Unit.cpp:19143
ObjectGuid GetGuidData(uint32 type) const override
Definition: InstanceScript.cpp:98
Map * instance
Definition: InstanceScript.h:148
Creature * GetCreature(ObjectGuid const guid)
Definition: Map.cpp:3317
PlayerList const & GetPlayers() const
Definition: Map.h:484
Definition: MapRefMgr.h:26
iterator begin()
Definition: MapRefMgr.h:36
iterator end()
Definition: MapRefMgr.h:37
virtual void SetData(uint32, uint32)
Definition: ZoneScript.h:52
void MovePoint(uint32 id, const Position &pos, bool generatePath=true, bool forceDestination=true)
Definition: MotionMaster.h:213

References ACTION_START_LK_FIGHT, ACTION_START_LK_FIGHT_REAL, Unit::Attack(), Unit::AttackStop(), MapRefMgr::begin(), Unit::CastSpell(), currentStopPoint, 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, Map::GetCreature(), Creature::GetCreatureTemplate(), Object::GetEntry(), InstanceScript::GetGuidData(), Unit::GetMotionMaster(), Position::GetOrientation(), Map::GetPlayers(), InstanceScript::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, pInstance, 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

◆ pInstance

InstanceScript* npc_hor_leader_second::npc_hor_leader_secondAI::pInstance