AzerothCore 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
 Use to start attacking a target. Called just before JustEngagedWith() More...
 
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
 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)
 
 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

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
 
TaskScheduler scheduler
 
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
38 : NullCreatureAI(creature), summons(me)
39 {
41 }
Definition: PassiveAI.h:53
Creature *const me
Definition: CreatureAI.h:73
InstanceScript * GetInstanceScript() const
Definition: Object.cpp:1192
InstanceScript * pInstance
Definition: pit_of_saron.cpp:45
SummonList summons
Definition: pit_of_saron.cpp:44

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

Member Function Documentation

◆ AttackStart()

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

Reimplemented from NullCreatureAI.

374{}

◆ JustSummoned()

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

Reimplemented from CreatureAI.

365 {
366 summons.Summon(s);
367 }
void Summon(Creature const *summon)
Definition: ScriptedCreature.h:88

References SummonList::Summon(), and summons.

◆ MoveInLineOfSight()

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

Reimplemented from NullCreatureAI.

375{}

◆ Reset()

void npc_pos_leader::npc_pos_leaderAI::Reset ( )
inlineoverridevirtual

Reimplemented from UnitAI.

49 {
50 counter = 0;
51 events.Reset();
53 me->SetVisible(true);
54
55 if (pInstance)
57 {
59 me->SetVisible(false);
60 break;
61 }
62 }
@ INSTANCE_PROGRESS_NONE
Definition: pit_of_saron.h:56
@ DATA_INSTANCE_PROGRESS
Definition: trial_of_the_champion.h:33
events
Definition: boss_sartura.cpp:43
void DespawnAll(uint32 delay=0)
Definition: ScriptedCreature.cpp:71
void SetVisible(bool x)
Definition: Unit.cpp:14189
virtual uint32 GetData(uint32) const
Definition: ZoneScript.h:52
uint8 counter
Definition: pit_of_saron.cpp:46

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.

65 {
67 {
68 me->setActive(true);
69 events.RescheduleEvent(1, 0ms);
70 }
71 }
@ DATA_START_INTRO
Definition: pit_of_saron.h:51
void setActive(bool isActiveObject)
Definition: Object.cpp:1085
bool IsVisible() const
Definition: Unit.h:1481

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.

370 {
371 summons.Despawn(s);
372 }
void Despawn(Creature const *summon)
Definition: ScriptedCreature.h:89

References SummonList::Despawn(), and summons.

◆ UpdateAI()

void npc_pos_leader::npc_pos_leaderAI::UpdateAI ( uint32  )
inlineoverridevirtual

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

Todo:
This spell check is invalid
Todo:
: (Initial RP, when zoning in the instance) is not complete.

Reimplemented from NullCreatureAI.

74 {
75 events.Update(diff);
76 switch (events.ExecuteEvent())
77 {
78 case 0:
79 break;
80 case 1:
81 {
82 if (counter == 0)
83 {
84 me->SetVisible(true);
86 }
87
88 uint8 idx = 0;
89 if (pInstance)
91 if (introPositions[counter].entry[idx] != 0)
92 {
94 {
95 summon->RemoveUnitMovementFlag(MOVEMENTFLAG_WALKING);
96 summon->SetSpeed(MOVE_RUN, 0.8f);
97 summon->GetMotionMaster()->MovePoint(1, introPositions[counter].endPosition);
98 summon->SetUInt32Value(UNIT_NPC_EMOTESTATE, EMOTE_STATE_READY1H);
99 }
100
101 ++counter;
102 events.Repeat(150ms);
103 }
104 else
105 {
106 events.RescheduleEvent(2, 2500ms);
107 }
108 }
109 break;
110 case 2:
111 if (pInstance)
113 {
114 c->setActive(true);
115 c->AI()->Talk(SAY_TYRANNUS_INTRO_1);
116 }
117
118 events.RescheduleEvent(3, 7s);
119 break;
120 case 3:
121 if (pInstance)
123 c->AI()->Talk(SAY_TYRANNUS_INTRO_2);
124
125 events.RescheduleEvent(4, 14s);
126 break;
127 case 4:
128 if (pInstance)
129 {
132 if (n1 && n2)
133 {
134 if (!n1->IsInCombat() && n1->IsAlive())
135 {
139 }
140 if (!n2->IsInCombat() && n2->IsAlive())
141 {
145 }
147 // if (SPELL_NECROLYTE_CHANNELING)
148 // {
151 // }
152
153 for (SummonList::iterator itr = summons.begin(); itr != summons.end(); ++itr)
154 if (Creature* c = pInstance->instance->GetCreature(*itr))
155 {
156 if (c->GetPositionX() < 440.0f)
157 continue;
158 if (c->GetPositionY() > 215.0f)
159 c->GetMotionMaster()->MoveChase(n2, 0.0f, rand_norm() * 2 * M_PI);
160 else
161 c->GetMotionMaster()->MoveChase(n1, 0.0f, rand_norm() * 2 * M_PI);
162 }
163 }
164 }
165
166 events.RescheduleEvent(5, 1ms);
167 break;
168 case 5:
170
171 events.RescheduleEvent(6, 1s);
172 break;
173 case 6:
174 if (pInstance)
176 c->AI()->Talk(SAY_TYRANNUS_INTRO_3);
177
178 events.RescheduleEvent(7, 5s);
179 break;
180 case 7:
181 if (pInstance)
182 {
184 n1->AI()->DoAction(1337); // remove invincibility
186 n2->AI()->DoAction(1337); // remove invincibility
187
188 for (SummonList::iterator itr = summons.begin(); itr != summons.end(); ++itr)
189 if (Creature* c = pInstance->instance->GetCreature(*itr))
190 {
191 if (c->GetPositionX() < 450.0f)
192 continue;
193 c->AddUnitState(UNIT_STATE_NO_ENVIRONMENT_UPD);
194 c->GetMotionMaster()->Clear(false);
195 c->GetMotionMaster()->MoveIdle();
196 c->StopMoving();
197 c->CastSpell(c, 69413, true);
198 c->SetCanFly(true);
199 c->SetDisableGravity(true);
200 c->SendMovementFlagUpdate();
201 float dist = rand_norm() * 2.0f;
202 float angle = rand_norm() * 2 * M_PI;
203 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));
204 }
205 }
206
207 events.RescheduleEvent(8, 7s);
208 break;
209 case 8:
210 if (pInstance)
212 c->CastSpell(c, 69753, false);
213
214 events.RescheduleEvent(9, 400ms);
215 break;
216 case 9:
217 if (pInstance)
218 for (SummonList::iterator itr = summons.begin(); itr != summons.end(); ++itr)
219 if (Creature* c = pInstance->instance->GetCreature(*itr))
220 {
221 if (c->GetPositionX() < 450.0f)
222 continue;
223 Unit::Kill(c, c);
224 c->RemoveAllAuras();
225 c->GetMotionMaster()->MoveFall(0, true);
226 }
227
228 events.RescheduleEvent(10, 1s);
229 break;
230 case 10:
232
233 events.RescheduleEvent(11, 1s);
234 break;
235 case 11:
236 if (pInstance)
237 for (SummonList::iterator itr = summons.begin(); itr != summons.end(); ++itr)
238 if (Creature* c = pInstance->instance->GetCreature(*itr))
239 {
240 if (c->GetPositionX() < 450.0f)
241 continue;
242 c->SetCanFly(false);
243 c->SetDisableGravity(false);
244 c->SendMovementFlagUpdate();
245 c->CastSpell(c, 69350, true);
246 }
247
248 events.RescheduleEvent(12, 2s);
249 break;
250 case 12:
251 if (pInstance)
252 {
254 c->AI()->Talk(SAY_TYRANNUS_INTRO_4);
255
256 for (SummonList::iterator itr = summons.begin(); itr != summons.end(); ++itr)
257 if (Creature* c = pInstance->instance->GetCreature(*itr))
258 {
259 if (c->GetPositionX() < 450.0f)
260 continue;
261 c->SetHomePosition(c->GetPositionX(), c->GetPositionY(), c->GetPositionZ(), c->GetOrientation());
262 c->Respawn(true);
263 c->UpdateEntry(36796, 0, false);
264 c->SetFacingTo(M_PI);
265 c->SetReactState(REACT_PASSIVE);
266 }
267 }
268
269 events.RescheduleEvent(13, 3s);
270 break;
271 case 13:
272 if (pInstance)
273 {
274 for (SummonList::iterator itr = summons.begin(); itr != summons.end(); ++itr)
275 if (Creature* c = pInstance->instance->GetCreature(*itr))
276 {
277 if (c->GetPositionX() < 450.0f)
278 continue;
279 c->RemoveUnitMovementFlag(MOVEMENTFLAG_WALKING);
280 float dist = rand_norm();
281 float angle = rand_norm() * 2 * M_PI;
282 c->SetSpeed(MOVE_RUN, 0.8f);
283 c->SetInCombatWithZone();
284 c->GetMotionMaster()->MoveChase(me, dist, angle);
285 c->SetHomePosition(me->GetPositionX() + dist * cos(angle), me->GetPositionY() + dist * std::sin(angle), me->GetPositionZ(), 0.0f);
286 }
287 }
288
289 events.RescheduleEvent(14, 2s);
290 break;
291 case 14:
292 if (pInstance)
293 {
294 if (me->GetEntry() == NPC_JAINA_PART1)
295 {
297 me->CastSpell(me, 70132, false);
298 }
299 else
300 {
301 me->CastSpell(me, 59514, false);
302 for (uint8 i = 0; i < 2; ++i)
304 c->CastSpell(c, 70513, false);
305 }
306 }
307
308 events.RescheduleEvent(15, 2s);
309 break;
310 case 15:
311 if (pInstance)
312 {
314 c->GetMotionMaster()->MovePoint(0, SBSTyrannusStartPos);
315
316 if (me->GetEntry() == NPC_JAINA_PART1)
317 {
318 for (uint8 i = 0; i < 2; ++i)
320 c->CastSpell(c, 70464, false);
321 }
322 }
323
324 events.RescheduleEvent(16, 3s);
325 break;
326 case 16:
328 if (pInstance)
329 {
330 for (uint8 i = 0; i < 2; ++i)
332 c->SetUInt32Value(UNIT_NPC_EMOTESTATE, 0);
333
334 for (SummonList::iterator itr = summons.begin(); itr != summons.end(); ++itr)
335 if (Creature* c = pInstance->instance->GetCreature(*itr))
336 {
337 if (c->IsAlive())
338 {
339 if (c->GetEntry() == NPC_KALIRA || c->GetEntry() == NPC_ELANDRA || c->GetEntry() == NPC_LORALEN || c->GetEntry() == NPC_KORELN)
340 continue;
341
342 Unit::Kill(c, c, false);
343 }
344 c->DespawnOrUnsummon(10000);
345 }
347 }
348
349 events.RescheduleEvent(17, 5s);
350 break;
351 case 17:
352 me->setActive(false);
354
355 break;
356 }
357
358 if (!UpdateVictim())
359 return;
360
362 }
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
std::uint8_t uint8
Definition: Define.h:109
@ REACT_PASSIVE
Definition: Unit.h:548
@ MOVEMENTFLAG_WALKING
Definition: UnitDefines.h:352
@ UNIT_STATE_NO_ENVIRONMENT_UPD
Definition: UnitDefines.h:177
@ MOVE_RUN
Definition: UnitDefines.h:329
@ UNIT_NPC_EMOTESTATE
Definition: UpdateFields.h:140
@ NPC_JAINA_PART1
Definition: forge_of_souls.h:42
@ NPC_KALIRA
Definition: forge_of_souls.h:44
@ NPC_KORELN
Definition: forge_of_souls.h:47
@ NPC_LORALEN
Definition: forge_of_souls.h:46
@ NPC_ELANDRA
Definition: forge_of_souls.h:45
@ SAY_JAINA_INTRO_4
Definition: forge_of_souls.cpp:31
@ SAY_SYLVANAS_INTRO_3
Definition: forge_of_souls.cpp:39
@ SAY_JAINA_INTRO_5
Definition: forge_of_souls.cpp:32
@ SAY_SYLVANAS_INTRO_4
Definition: forge_of_souls.cpp:40
@ SAY_JAINA_INTRO_2
Definition: forge_of_souls.cpp:29
@ SAY_JAINA_INTRO_1
Definition: forge_of_souls.cpp:28
@ SAY_SYLVANAS_INTRO_2
Definition: forge_of_souls.cpp:38
@ SAY_JAINA_INTRO_3
Definition: forge_of_souls.cpp:30
@ SAY_SYLVANAS_INTRO_1
Definition: forge_of_souls.cpp:37
const Position LeaderIntroPos
Definition: pit_of_saron.h:167
const Position NecrolytePos2
Definition: pit_of_saron.h:169
@ SAY_TYRANNUS_INTRO_3
Definition: pit_of_saron.h:155
@ SAY_TYRANNUS_INTRO_2
Definition: pit_of_saron.h:154
@ SAY_TYRANNUS_INTRO_1
Definition: pit_of_saron.h:151
@ SAY_TYRANNUS_INTRO_4
Definition: pit_of_saron.h:158
const Position NecrolytePos1
Definition: pit_of_saron.h:168
const Position SBSTyrannusStartPos
Definition: pit_of_saron.h:240
const ChampionPosition introPositions[]
Definition: pit_of_saron.h:177
@ SPELL_NECROLYTE_CHANNELING
Definition: pit_of_saron.h:132
@ INSTANCE_PROGRESS_FINISHED_INTRO
Definition: pit_of_saron.h:57
const Position PortalPos
Definition: pit_of_saron.h:166
@ DATA_GUARD_1_GUID
Definition: pit_of_saron.h:40
@ DATA_NECROLYTE_1_GUID
Definition: pit_of_saron.h:38
@ DATA_TYRANNUS_EVENT_GUID
Definition: pit_of_saron.h:37
@ DATA_NECROLYTE_2_GUID
Definition: pit_of_saron.h:39
@ DATA_TEAMID_IN_INSTANCE
Definition: trial_of_the_champion.h:44
Talk
Definition: hyjal.cpp:82
@ EMOTE_STATE_READY1H
Definition: SharedDefines.h:1966
@ TEAM_ALLIANCE
Definition: SharedDefines.h:760
virtual void DoAction(int32)
Definition: UnitAI.h:212
void DoMeleeAttackIfReady()
Definition: UnitAI.cpp:39
bool UpdateVictim()
Definition: CreatureAI.cpp:269
iterator begin()
Definition: ScriptedCreature.h:48
iterator end()
Definition: ScriptedCreature.h:58
StorageType::iterator iterator
Definition: ScriptedCreature.h:36
Definition: Creature.h:46
CreatureAI * AI() const
Definition: Creature.h:143
uint32 GetEntry() const
Definition: Object.h:112
TempSummon * SummonCreature(uint32 id, const Position &pos, TempSummonType spwtype=TEMPSUMMON_MANUAL_DESPAWN, uint32 despwtime=0, uint32 vehId=0, SummonPropertiesEntry const *properties=nullptr, bool visibleBySummonerOnly=false) const
Definition: Object.cpp:2355
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:4758
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:17658
MotionMaster * GetMotionMaster()
Definition: Unit.h:1601
bool IsAlive() const
Definition: Unit.h:1204
void AddUnitMovementFlag(uint32 f)
Definition: Unit.h:1611
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:1168
void SetUInt32Value(uint16 index, uint32 value)
Definition: Unit.cpp:21256
bool IsInCombat() const
Definition: Unit.h:820
ObjectGuid GetGuidData(uint32 type) const override
Definition: InstanceScript.cpp:95
Map * instance
Definition: InstanceScript.h:148
Creature * GetCreature(ObjectGuid const guid)
Definition: Map.cpp:3314
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:211
uint32 entry[2]
Definition: pit_of_saron.h:173

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(), Unit::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