AzeorthCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
npc_pos_leader::npc_pos_leaderAI Struct Reference
Inheritance diagram for npc_pos_leader::npc_pos_leaderAI:
NullCreatureAI CreatureAI UnitAI

Public Member Functions

 npc_pos_leaderAI (Creature *creature)
 
void Reset () override
 
void SetData (uint32 type, uint32) override
 
void UpdateAI (uint32 diff) override
 
void JustSummoned (Creature *s) override
 
void SummonedCreatureDespawn (Creature *s) override
 
void AttackStart (Unit *) override
 
void MoveInLineOfSight (Unit *) override
 
- Public Member Functions inherited from NullCreatureAI
 NullCreatureAI (Creature *c)
 
void MoveInLineOfSight (Unit *) override
 
void AttackStart (Unit *) override
 
void UpdateAI (uint32) override
 
void EnterEvadeMode (EvadeReason) override
 
void OnCharmed (bool) override
 
- Public Member Functions inherited from CreatureAI
void Talk (uint8 id, WorldObject const *whisperTarget=nullptr)
 
 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 EnterCombat (Unit *)
 
virtual void JustDied (Unit *)
 
virtual void KilledUnit (Unit *)
 
virtual void JustSummoned (Creature *)
 
virtual void IsSummonedBy (Unit *)
 
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 ================== 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 *)
 
- 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, int32 aura=0)
 
template<class PREDICATE >
UnitSelectTarget (SelectTargetMethod targetType, uint32 position, PREDICATE const &predicate)
 
void SelectTargetList (std::list< Unit * > &targetList, uint32 num, SelectTargetMethod targetType, float dist=0.0f, bool playerOnly=false, int32 aura=0)
 
template<class PREDICATE >
void SelectTargetList (std::list< Unit * > &targetList, PREDICATE const &predicate, uint32 maxTargets, SelectTargetMethod targetType)
 
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)
 
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
 

Public Attributes

EventMap events
 
SummonList summons
 
InstanceScriptpInstance
 
uint8 counter
 

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
 
CreatureBoundary const * _boundary
 
bool _negateBoundary
 
- Protected Attributes inherited from UnitAI
Unit *const me
 

Detailed Description

Constructor & Destructor Documentation

◆ npc_pos_leaderAI()

npc_pos_leader::npc_pos_leaderAI::npc_pos_leaderAI ( Creature creature)
inline
36 : NullCreatureAI(creature), summons(me)
37 {
39 }
Definition: PassiveAI.h:53
Creature *const me
Definition: CreatureAI.h:72
InstanceScript * GetInstanceScript() const
Definition: Object.cpp:1194
InstanceScript * pInstance
Definition: pit_of_saron.cpp:43
SummonList summons
Definition: pit_of_saron.cpp:42

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

Member Function Documentation

◆ AttackStart()

void npc_pos_leader::npc_pos_leaderAI::AttackStart ( Unit )
inlineoverridevirtual

Reimplemented from NullCreatureAI.

372{}

◆ JustSummoned()

void npc_pos_leader::npc_pos_leaderAI::JustSummoned ( Creature s)
inlineoverridevirtual

Reimplemented from CreatureAI.

363 {
364 summons.Summon(s);
365 }
void Summon(Creature const *summon)
Definition: ScriptedCreature.h:89

References SummonList::Summon(), and summons.

◆ MoveInLineOfSight()

void npc_pos_leader::npc_pos_leaderAI::MoveInLineOfSight ( Unit )
inlineoverridevirtual

Reimplemented from NullCreatureAI.

373{}

◆ Reset()

void npc_pos_leader::npc_pos_leaderAI::Reset ( )
inlineoverridevirtual

Reimplemented from UnitAI.

47 {
48 counter = 0;
49 events.Reset();
51 me->SetVisible(true);
52
53 if (pInstance)
55 {
57 me->SetVisible(false);
58 break;
59 }
60 }
events
Definition: boss_sartura.cpp:43
@ DATA_INSTANCE_PROGRESS
Definition: trial_of_the_champion.h:32
@ INSTANCE_PROGRESS_NONE
Definition: pit_of_saron.h:54
void DespawnAll(uint32 delay=0)
Definition: ScriptedCreature.cpp:67
void SetVisible(bool x)
Definition: Unit.cpp:14973
virtual uint32 GetData(uint32) const
Definition: ZoneScript.h:52
uint8 counter
Definition: pit_of_saron.cpp:44

References counter, DATA_INSTANCE_PROGRESS, SummonList::DespawnAll(), ZoneScript::GetData(), INSTANCE_PROGRESS_NONE, CreatureAI::me, pInstance, Unit::SetVisible(), and summons.

◆ SetData()

void npc_pos_leader::npc_pos_leaderAI::SetData ( uint32  type,
uint32   
)
inlineoverridevirtual

Reimplemented from UnitAI.

63 {
65 {
66 me->setActive(true);
67 events.RescheduleEvent(1, 0);
68 }
69 }
@ DATA_START_INTRO
Definition: pit_of_saron.h:49
void setActive(bool isActiveObject)
Definition: Object.cpp:1087
bool IsVisible() const
Definition: Unit.h:2386

References counter, DATA_INSTANCE_PROGRESS, DATA_START_INTRO, ZoneScript::GetData(), INSTANCE_PROGRESS_NONE, Unit::IsVisible(), CreatureAI::me, pInstance, and WorldObject::setActive().

◆ SummonedCreatureDespawn()

void npc_pos_leader::npc_pos_leaderAI::SummonedCreatureDespawn ( Creature s)
inlineoverridevirtual

Reimplemented from CreatureAI.

368 {
369 summons.Despawn(s);
370 }
void Despawn(Creature const *summon)
Definition: ScriptedCreature.h:90

References SummonList::Despawn(), and summons.

◆ UpdateAI()

void npc_pos_leader::npc_pos_leaderAI::UpdateAI ( uint32  diff)
inlineoverridevirtual
Todo:
This spell check is invalid

Reimplemented from NullCreatureAI.

72 {
73 events.Update(diff);
74 switch(events.ExecuteEvent())
75 {
76 case 0:
77 break;
78 case 1:
79 {
80 if (counter == 0)
81 {
82 me->SetVisible(true);
84 }
85
86 uint8 idx = 0;
87 if (pInstance)
89 if (introPositions[counter].entry[idx] != 0)
90 {
92 {
93 summon->RemoveUnitMovementFlag(MOVEMENTFLAG_WALKING);
94 summon->SetSpeed(MOVE_RUN, 0.8f);
95 summon->GetMotionMaster()->MovePoint(1, introPositions[counter].endPosition);
96 summon->SetUInt32Value(UNIT_NPC_EMOTESTATE, EMOTE_STATE_READY1H);
97 }
98
99 ++counter;
100 events.RepeatEvent(150);
101 }
102 else
103 {
104 events.RescheduleEvent(2, 2500);
105 }
106 }
107 break;
108 case 2:
109 if (pInstance)
111 {
112 c->setActive(true);
113 c->AI()->Talk(SAY_TYRANNUS_INTRO_1);
114 }
115
116 events.RescheduleEvent(3, 7000);
117 break;
118 case 3:
119 if (pInstance)
121 c->AI()->Talk(SAY_TYRANNUS_INTRO_2);
122
123 events.RescheduleEvent(4, 14000);
124 break;
125 case 4:
126 if (pInstance)
127 {
130 if (n1 && n2)
131 {
132 if (!n1->IsInCombat() && n1->IsAlive())
133 {
137 }
138 if (!n2->IsInCombat() && n2->IsAlive())
139 {
143 }
145 // if (SPELL_NECROLYTE_CHANNELING)
146 // {
149 // }
150
151 for (SummonList::iterator itr = summons.begin(); itr != summons.end(); ++itr)
152 if (Creature* c = pInstance->instance->GetCreature(*itr))
153 {
154 if (c->GetPositionX() < 440.0f)
155 continue;
156 if (c->GetPositionY() > 215.0f)
157 c->GetMotionMaster()->MoveChase(n2, 0.0f, rand_norm() * 2 * M_PI);
158 else
159 c->GetMotionMaster()->MoveChase(n1, 0.0f, rand_norm() * 2 * M_PI);
160 }
161 }
162 }
163
164 events.RescheduleEvent(5, 1);
165 break;
166 case 5:
168
169 events.RescheduleEvent(6, 1000);
170 break;
171 case 6:
172 if (pInstance)
174 c->AI()->Talk(SAY_TYRANNUS_INTRO_3);
175
176 events.RescheduleEvent(7, 5000);
177 break;
178 case 7:
179 if (pInstance)
180 {
182 n1->AI()->DoAction(1337); // remove invincibility
184 n2->AI()->DoAction(1337); // remove invincibility
185
186 for (SummonList::iterator itr = summons.begin(); itr != summons.end(); ++itr)
187 if (Creature* c = pInstance->instance->GetCreature(*itr))
188 {
189 if (c->GetPositionX() < 450.0f)
190 continue;
191 c->AddUnitState(UNIT_STATE_NO_ENVIRONMENT_UPD);
192 c->GetMotionMaster()->Clear(false);
193 c->GetMotionMaster()->MoveIdle();
194 c->StopMoving();
195 c->CastSpell(c, 69413, true);
196 c->SetCanFly(true);
197 c->SetDisableGravity(true);
198 c->SendMovementFlagUpdate();
199 float dist = rand_norm() * 2.0f;
200 float angle = rand_norm() * 2 * M_PI;
201 c->GetMotionMaster()->MoveTakeoff(0, c->GetPositionX() + dist * cos(angle), c->GetPositionY() + dist * std::sin(angle), c->GetPositionZ() + 6.0f + (float)urand(0, 4), 1.5f + frand(0.0f, 1.5f));
202 }
203 }
204
205 events.RescheduleEvent(8, 7000);
206 break;
207 case 8:
208 if (pInstance)
210 c->CastSpell(c, 69753, false);
211
212 events.RescheduleEvent(9, 400);
213 break;
214 case 9:
215 if (pInstance)
216 for (SummonList::iterator itr = summons.begin(); itr != summons.end(); ++itr)
217 if (Creature* c = pInstance->instance->GetCreature(*itr))
218 {
219 if (c->GetPositionX() < 450.0f)
220 continue;
221 Unit::Kill(c, c);
222 c->RemoveAllAuras();
223 c->GetMotionMaster()->MoveFall(0, true);
224 }
225
226 events.RescheduleEvent(10, 1000);
227 break;
228 case 10:
230
231 events.RescheduleEvent(11, 1000);
232 break;
233 case 11:
234 if (pInstance)
235 for (SummonList::iterator itr = summons.begin(); itr != summons.end(); ++itr)
236 if (Creature* c = pInstance->instance->GetCreature(*itr))
237 {
238 if (c->GetPositionX() < 450.0f)
239 continue;
240 c->SetCanFly(false);
241 c->SetDisableGravity(false);
242 c->SendMovementFlagUpdate();
243 c->CastSpell(c, 69350, true);
244 }
245
246 events.RescheduleEvent(12, 2000);
247 break;
248 case 12:
249 if (pInstance)
250 {
252 c->AI()->Talk(SAY_TYRANNUS_INTRO_4);
253
254 for (SummonList::iterator itr = summons.begin(); itr != summons.end(); ++itr)
255 if (Creature* c = pInstance->instance->GetCreature(*itr))
256 {
257 if (c->GetPositionX() < 450.0f)
258 continue;
259 c->SetHomePosition(c->GetPositionX(), c->GetPositionY(), c->GetPositionZ(), c->GetOrientation());
260 c->Respawn(true);
261 c->UpdateEntry(36796, 0, false);
262 c->SetFacingTo(M_PI);
263 c->SetReactState(REACT_PASSIVE);
264 }
265 }
266
267 events.RescheduleEvent(13, 3000);
268 break;
269 case 13:
270 if (pInstance)
271 {
272 for (SummonList::iterator itr = summons.begin(); itr != summons.end(); ++itr)
273 if (Creature* c = pInstance->instance->GetCreature(*itr))
274 {
275 if (c->GetPositionX() < 450.0f)
276 continue;
277 c->RemoveUnitMovementFlag(MOVEMENTFLAG_WALKING);
278 float dist = rand_norm();
279 float angle = rand_norm() * 2 * M_PI;
280 c->SetSpeed(MOVE_RUN, 0.8f);
281 c->SetInCombatWithZone();
282 c->GetMotionMaster()->MoveChase(me, dist, angle);
283 c->SetHomePosition(me->GetPositionX() + dist * cos(angle), me->GetPositionY() + dist * std::sin(angle), me->GetPositionZ(), 0.0f);
284 }
285 }
286
287 events.RescheduleEvent(14, 2000);
288 break;
289 case 14:
290 if (pInstance)
291 {
292 if (me->GetEntry() == NPC_JAINA_PART1)
293 {
295 me->CastSpell(me, 70132, false);
296 }
297 else
298 {
299 me->CastSpell(me, 59514, false);
300 for (uint8 i = 0; i < 2; ++i)
302 c->CastSpell(c, 70513, false);
303 }
304 }
305
306 events.RescheduleEvent(15, 2000);
307 break;
308 case 15:
309 if (pInstance)
310 {
312 c->GetMotionMaster()->MovePoint(0, SBSTyrannusStartPos);
313
314 if (me->GetEntry() == NPC_JAINA_PART1)
315 {
316 for (uint8 i = 0; i < 2; ++i)
318 c->CastSpell(c, 70464, false);
319 }
320 }
321
322 events.RescheduleEvent(16, 3000);
323 break;
324 case 16:
326 if (pInstance)
327 {
328 for (uint8 i = 0; i < 2; ++i)
330 c->SetUInt32Value(UNIT_NPC_EMOTESTATE, 0);
331
332 for (SummonList::iterator itr = summons.begin(); itr != summons.end(); ++itr)
333 if (Creature* c = pInstance->instance->GetCreature(*itr))
334 {
335 if (c->IsAlive())
336 {
337 if (c->GetEntry() == NPC_KALIRA || c->GetEntry() == NPC_ELANDRA || c->GetEntry() == NPC_LORALEN || c->GetEntry() == NPC_KORELN)
338 continue;
339
340 Unit::Kill(c, c, false);
341 }
342 c->DespawnOrUnsummon(10000);
343 }
345 }
346
347 events.RescheduleEvent(17, 5000);
348 break;
349 case 17:
350 me->setActive(false);
352
353 break;
354 }
355
356 if (!UpdateVictim())
357 return;
358
360 }
std::uint8_t uint8
Definition: Define.h:110
float frand(float min, float max)
Definition: Random.cpp:57
uint32 urand(uint32 min, uint32 max)
Definition: Random.cpp:44
double rand_norm()
Definition: Random.cpp:77
@ UNIT_NPC_EMOTESTATE
Definition: UpdateFields.h:140
@ MOVEMENTFLAG_WALKING
Definition: Unit.h:560
@ REACT_PASSIVE
Definition: Unit.h:1023
@ UNIT_STATE_NO_ENVIRONMENT_UPD
Definition: Unit.h:353
@ MOVE_RUN
Definition: Unit.h:379
@ DATA_TEAMID_IN_INSTANCE
Definition: trial_of_the_champion.h:43
@ SAY_JAINA_INTRO_4
Definition: forge_of_souls.cpp:30
@ SAY_SYLVANAS_INTRO_3
Definition: forge_of_souls.cpp:38
@ SAY_JAINA_INTRO_5
Definition: forge_of_souls.cpp:31
@ SAY_SYLVANAS_INTRO_4
Definition: forge_of_souls.cpp:39
@ SAY_JAINA_INTRO_2
Definition: forge_of_souls.cpp:28
@ SAY_JAINA_INTRO_1
Definition: forge_of_souls.cpp:27
@ SAY_SYLVANAS_INTRO_2
Definition: forge_of_souls.cpp:37
@ SAY_JAINA_INTRO_3
Definition: forge_of_souls.cpp:29
@ SAY_SYLVANAS_INTRO_1
Definition: forge_of_souls.cpp:36
@ NPC_JAINA_PART1
Definition: forge_of_souls.h:40
@ NPC_KALIRA
Definition: forge_of_souls.h:42
@ NPC_KORELN
Definition: forge_of_souls.h:45
@ NPC_LORALEN
Definition: forge_of_souls.h:44
@ NPC_ELANDRA
Definition: forge_of_souls.h:43
const Position LeaderIntroPos
Definition: pit_of_saron.h:164
const Position NecrolytePos2
Definition: pit_of_saron.h:166
@ SAY_TYRANNUS_INTRO_3
Definition: pit_of_saron.h:152
@ SAY_TYRANNUS_INTRO_2
Definition: pit_of_saron.h:151
@ SAY_TYRANNUS_INTRO_1
Definition: pit_of_saron.h:148
@ SAY_TYRANNUS_INTRO_4
Definition: pit_of_saron.h:155
const Position NecrolytePos1
Definition: pit_of_saron.h:165
const Position SBSTyrannusStartPos
Definition: pit_of_saron.h:237
const ChampionPosition introPositions[]
Definition: pit_of_saron.h:174
@ SPELL_NECROLYTE_CHANNELING
Definition: pit_of_saron.h:130
@ INSTANCE_PROGRESS_FINISHED_INTRO
Definition: pit_of_saron.h:55
const Position PortalPos
Definition: pit_of_saron.h:163
@ DATA_GUARD_1_GUID
Definition: pit_of_saron.h:38
@ DATA_NECROLYTE_1_GUID
Definition: pit_of_saron.h:36
@ DATA_TYRANNUS_EVENT_GUID
Definition: pit_of_saron.h:35
@ DATA_NECROLYTE_2_GUID
Definition: pit_of_saron.h:37
Talk
Definition: boss_fathomlord_karathress.cpp:23
@ EMOTE_STATE_READY1H
Definition: SharedDefines.h:1938
@ TEAM_ALLIANCE
Definition: SharedDefines.h:732
virtual void DoAction(int32)
Definition: UnitAI.h:196
void DoMeleeAttackIfReady()
Definition: UnitAI.cpp:40
bool UpdateVictim()
Definition: CreatureAI.cpp:268
iterator begin()
Definition: ScriptedCreature.h:49
iterator end()
Definition: ScriptedCreature.h:59
StorageType::iterator iterator
Definition: ScriptedCreature.h:37
Definition: Creature.h:46
CreatureAI * AI() const
Definition: Creature.h:134
uint32 GetEntry() const
Definition: Object.h:109
void SetUInt32Value(uint16 index, uint32 value)
Definition: Object.cpp:652
TempSummon * SummonCreature(uint32 id, const Position &pos, TempSummonType spwtype=TEMPSUMMON_MANUAL_DESPAWN, uint32 despwtime=0, uint32 vehId=0, SummonPropertiesEntry const *properties=nullptr) const
Definition: Object.cpp:2303
float GetPositionZ() const
Definition: Position.h:119
float GetPositionX() const
Definition: Position.h:117
float GetPositionY() const
Definition: Position.h:118
void RemoveAura(AuraApplicationMap::iterator &i, AuraRemoveMode mode=AURA_REMOVE_BY_DEFAULT)
Definition: Unit.cpp:5447
static void Kill(Unit *killer, Unit *victim, bool durabilityLoss=true, WeaponAttackType attackType=BASE_ATTACK, SpellInfo const *spellProto=nullptr, Spell const *spell=nullptr)
Definition: Unit.cpp:18608
MotionMaster * GetMotionMaster()
Definition: Unit.h:2530
bool IsAlive() const
Definition: Unit.h:2024
void AddUnitMovementFlag(uint32 f)
Definition: Unit.h:2540
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:1428
bool IsInCombat() const
Definition: Unit.h:1724
ObjectGuid GetGuidData(uint32 type) const override
Definition: InstanceScript.cpp:93
Map * instance
Definition: InstanceScript.h:146
Creature * GetCreature(ObjectGuid const guid)
Definition: Map.cpp:3290
virtual void SetData(uint32, uint32)
Definition: ZoneScript.h:53
void MovePoint(uint32 id, const Position &pos, bool generatePath=true, bool forceDestination=true)
Definition: MotionMaster.h:210
uint32 entry[2]
Definition: pit_of_saron.h:170

References Unit::AddUnitMovementFlag(), SummonList::begin(), Unit::CastSpell(), counter, DATA_GUARD_1_GUID, DATA_INSTANCE_PROGRESS, DATA_NECROLYTE_1_GUID, DATA_NECROLYTE_2_GUID, DATA_TEAMID_IN_INSTANCE, DATA_TYRANNUS_EVENT_GUID, UnitAI::DoMeleeAttackIfReady(), EMOTE_STATE_READY1H, SummonList::end(), ChampionPosition::entry, frand(), Map::GetCreature(), ZoneScript::GetData(), Object::GetEntry(), InstanceScript::GetGuidData(), Unit::GetMotionMaster(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), InstanceScript::instance, INSTANCE_PROGRESS_FINISHED_INTRO, introPositions, Unit::IsAlive(), Unit::IsInCombat(), Unit::Kill(), LeaderIntroPos, CreatureAI::me, MOVE_RUN, MOVEMENTFLAG_WALKING, MotionMaster::MovePoint(), NecrolytePos1, NecrolytePos2, NPC_ELANDRA, NPC_JAINA_PART1, NPC_KALIRA, NPC_KORELN, NPC_LORALEN, pInstance, PortalPos, rand_norm(), REACT_PASSIVE, Unit::RemoveAura(), SAY_JAINA_INTRO_1, SAY_JAINA_INTRO_2, SAY_JAINA_INTRO_3, SAY_JAINA_INTRO_4, SAY_JAINA_INTRO_5, SAY_SYLVANAS_INTRO_1, SAY_SYLVANAS_INTRO_2, SAY_SYLVANAS_INTRO_3, SAY_SYLVANAS_INTRO_4, SAY_TYRANNUS_INTRO_1, SAY_TYRANNUS_INTRO_2, SAY_TYRANNUS_INTRO_3, SAY_TYRANNUS_INTRO_4, SBSTyrannusStartPos, WorldObject::setActive(), ZoneScript::SetData(), Object::SetUInt32Value(), Unit::SetVisible(), SPELL_NECROLYTE_CHANNELING, WorldObject::SummonCreature(), summons, TEAM_ALLIANCE, UNIT_NPC_EMOTESTATE, UNIT_STATE_NO_ENVIRONMENT_UPD, CreatureAI::UpdateVictim(), and urand().

Member Data Documentation

◆ counter

uint8 npc_pos_leader::npc_pos_leaderAI::counter

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

◆ events

EventMap npc_pos_leader::npc_pos_leaderAI::events

◆ pInstance

InstanceScript* npc_pos_leader::npc_pos_leaderAI::pInstance

◆ summons

SummonList npc_pos_leader::npc_pos_leaderAI::summons