TrinityCore
boss_reliquary_of_souls.cpp
Go to the documentation of this file.
1/*
2 * This file is part of the TrinityCore Project. See AUTHORS file for Copyright information
3 *
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms of the GNU General Public License as published by the
6 * Free Software Foundation; either version 2 of the License, or (at your
7 * option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
12 * more details.
13 *
14 * You should have received a copy of the GNU General Public License along
15 * with this program. If not, see <http://www.gnu.org/licenses/>.
16 */
17
18#include "ScriptMgr.h"
19#include "black_temple.h"
20#include "Containers.h"
21#include "InstanceScript.h"
22#include "MotionMaster.h"
23#include "Player.h"
24#include "ScriptedCreature.h"
25#include "SpellAuraEffects.h"
26#include "SpellScript.h"
27#include "TemporarySummon.h"
28
29enum Says
30{
31 // Essence of Suffering
36 //SUFF_SAY_AFTER = 4,
38
39 // Essence of Desire
44 //DESI_SAY_AFTER = 4,
45
46 // Essence of Anger
51 //ANGER_SAY_SPEC = 4,
53 //ANGER_SAY_DEATH = 6
54};
55
57{
58 // Reliquary
63
64 // Essence of Suffering
67 SPELL_FRENZY = 41305,
68
69 // Essence of Desire
73 SPELL_DEADEN = 41410,
75
76 // Essence of Anger
79 SPELL_SPITE = 41376,
81 SPELL_SEETHE = 41364,
82
83 // Enslaved Soul
86
87 // World Trigger
89};
90
91enum Misc
92{
99};
100
102{
107
109{
124
125Position const DespawnPoint = { 497.4939f, 183.2081f, 94.53341f };
126
128{
129 public: EnslavedSoulEvent(Creature* owner) : _owner(owner) { }
130
131 bool Execute(uint64 /*time*/, uint32 /*diff*/) override
132 {
134 return true;
135 }
136
137 private:
139};
140
142{
144
145 void Reset() override
146 {
147 _Reset();
149 _inCombat = false;
151 }
152
153 void JustSummoned(Creature* summon) override
154 {
155 summons.Summon(summon);
156 summon->AI()->DoZoneInCombat();
157 }
158
160 {
167 else //Should never happen
168 return 0;
169 }
170
171 void DoAction(int32 actionId) override
172 {
173 switch (actionId)
174 {
180 break;
186 break;
187 case ACTION_KILL_SELF:
188 me->KillSelf();
190 combatTrigger->AI()->DoAction(ACTION_KILL_SELF);
191 break;
193 _inCombat = true;
196 break;
197 default:
198 break;
199 }
200 }
201
203 {
204 std::vector<Creature*> _worldTriggerList;
206
207 if (_worldTriggerList.empty())
208 return;
209
210 //Get random creatures
211 Trinity::Containers::RandomShuffle(_worldTriggerList);
212 _worldTriggerList.resize(21);
213
214 for (uint8 i = 0; i < 21; i++)
215 {
216 Creature* wTrigger = _worldTriggerList[i];
217 if (i < 3)
218 wTrigger->m_Events.AddEventAtOffset(new EnslavedSoulEvent(wTrigger), 4s);
219 else if (i < 6)
220 wTrigger->m_Events.AddEventAtOffset(new EnslavedSoulEvent(wTrigger), 8s);
221 else if (i < 9)
222 wTrigger->m_Events.AddEventAtOffset(new EnslavedSoulEvent(wTrigger), 12s);
223 else if (i < 12)
224 wTrigger->m_Events.AddEventAtOffset(new EnslavedSoulEvent(wTrigger), 16s);
225 else if (i < 15)
226 wTrigger->m_Events.AddEventAtOffset(new EnslavedSoulEvent(wTrigger), 20s);
227 else if (i < 18)
228 wTrigger->m_Events.AddEventAtOffset(new EnslavedSoulEvent(wTrigger), 24s);
229 else
230 wTrigger->m_Events.AddEventAtOffset(new EnslavedSoulEvent(wTrigger), 28s);
231 }
232 }
233
235 {
236 std::vector<Creature*> _worldTriggerList;
238
239 if (_worldTriggerList.empty())
240 return;
241
242 for (Creature* trigger : _worldTriggerList)
243 trigger->m_Events.KillAllEvents(true);
244 }
245
246 void EnterEvadeMode(EvadeReason /*why*/) override
247 {
248 events.Reset();
252 }
253
254 void JustDied(Unit* /*killer*/) override
255 {
256 events.Reset();
258 }
259
260 void UpdateAI(uint32 diff) override
261 {
262 if (!_inCombat)
263 return;
264
265 events.Update(diff);
266
268 return;
269
270 while (uint32 eventId = events.ExecuteEvent())
271 {
272 if (eventId == EVENT_SUBMERGE)
273 {
278 }
279 }
280 }
281
282private:
284};
285
287{
289 {
291 }
292
293 void Reset() override
294 {
296 events.Reset();
297 _dead = false;
298 }
299
300 void MovementInform(uint32 motionType, uint32 pointId) override
301 {
302 if (motionType != POINT_MOTION_TYPE)
303 return;
304
305 if (pointId == RELIQUARY_DESPAWN_WAYPOINT)
306 {
308 reliquary->AI()->DoAction(ACTION_ESSENCE_OF_SUFFERING_DEAD);
309
312 }
313 }
314
315 void DamageTaken(Unit* /*done_by*/, uint32& damage, DamageEffectType /*damageType*/, SpellInfo const* /*spellInfo = nullptr*/) override
316 {
317 if (damage >= me->GetHealth())
318 {
319 damage = 0;
320 if (!_dead)
321 {
322 _dead = true;
324 me->AttackStop();
326 events.Reset();
329 }
330 }
331 }
332
333 void JustEngagedWith(Unit* /*who*/) override
334 {
336 me->setActive(true);
337
341 }
342
343 void KilledUnit(Unit* victim) override
344 {
345 if (victim->GetTypeId() == TYPEID_PLAYER)
347 }
348
349 void UpdateAI(uint32 diff) override
350 {
351 if (!UpdateVictim())
352 return;
353
355 return;
356
357 events.Update(diff);
358
359 while (uint32 eventId = events.ExecuteEvent())
360 {
361 switch (eventId)
362 {
363 case EVENT_SOUL_DRAIN:
365 events.Repeat(Seconds(30), Seconds(35));
366 break;
367 case EVENT_FRENZY:
370 events.Repeat(Seconds(45), Seconds(50));
371 break;
372 default:
373 break;
374 }
375
377 return;
378 }
379 }
380private:
381 bool _dead;
382};
383
385{
387 {
389 }
390
391 void Reset() override
392 {
394 events.Reset();
395 _dead = false;
396 }
397
398 void JustEngagedWith(Unit* /*who*/) override
399 {
403
405 me->setActive(true);
407 }
408
409 void MovementInform(uint32 motionType, uint32 pointId) override
410 {
411 if (motionType != POINT_MOTION_TYPE)
412 return;
413
414 if (pointId == RELIQUARY_DESPAWN_WAYPOINT)
415 {
417 reliquary->AI()->DoAction(ACTION_ESSENCE_OF_DESIRE_DEAD);
418
421 }
422 }
423
424 void DamageTaken(Unit* /*done_by*/, uint32& damage, DamageEffectType /*damageType*/, SpellInfo const* /*spellInfo = nullptr*/) override
425 {
426 if (damage >= me->GetHealth())
427 {
428 damage = 0;
429 if (!_dead)
430 {
431 _dead = true;
433 me->AttackStop();
435 events.Reset();
438 }
439 }
440 }
441
442 void KilledUnit(Unit* victim) override
443 {
444 if (victim->GetTypeId() == TYPEID_PLAYER)
446 }
447
448 void UpdateAI(uint32 diff) override
449 {
450 if (!UpdateVictim())
451 return;
452
454 return;
455
456 events.Update(diff);
457
458 while (uint32 eventId = events.ExecuteEvent())
459 {
460 switch (eventId)
461 {
464 events.Repeat(Seconds(10), Seconds(15));
465 break;
468 events.Repeat(Seconds(16));
469 break;
470 case EVENT_DEADEN:
473 events.Repeat(Seconds(31));
474 break;
475 default:
476 break;
477 }
478
480 return;
481 }
482 }
483private:
484 bool _dead;
485};
486
488{
490 {
492 }
493
494 void Reset() override
495 {
496 events.Reset();
499 }
500
501 void JustEngagedWith(Unit* /*who*/) override
502 {
504
509
511 me->setActive(true);
512 }
513
514 void JustDied(Unit* /*killer*/) override
515 {
518 reliquary->AI()->DoAction(ACTION_KILL_SELF);
519 }
520
521 void UpdateAI(uint32 diff) override
522 {
523 if (!UpdateVictim())
524 return;
525
527 return;
528
529 events.Update(diff);
530
531 while (uint32 eventId = events.ExecuteEvent())
532 {
533 switch (eventId)
534 {
536 {
537 Unit* target = me->GetVictim();
538 if (!_targetGUID || !target)
539 return;
540
541 if (target->GetGUID() != _targetGUID)
542 {
545 _targetGUID = target->GetGUID();
547 }
548 break;
549 }
552 events.Repeat(Seconds(11));
553 break;
554 case EVENT_SPITE:
557 events.Repeat(Seconds(20));
558 break;
560 if (Unit* target = me->GetVictim())
561 {
562 _targetGUID = target->GetGUID();
564 }
565 else
567 break;
568 case EVENT_FREED_2:
570 break;
571 default:
572 break;
573 }
574
576 return;
577 }
578 }
579
580private:
582};
583
585{
586 npc_enslaved_soul(Creature* creature) : ScriptedAI(creature), _instance(creature->GetInstanceScript()), _dead(false) { }
587
588 void Reset() override
589 {
592 reliquary->AI()->JustSummoned(me);
593
595
596 _scheduler.Schedule(Seconds(3), [this](TaskContext /*context*/)
597 {
600 });
601 _dead = false;
602 }
603
604 void DoAction(int32 actionId) override
605 {
606 if (actionId == ACTION_KILL_SELF)
608 }
609
611 {
613 me->AttackStop();
616 me->m_Events.AddEventAtOffset([this]() { me->KillSelf(); }, 500ms);
617 }
618
619 void DamageTaken(Unit* /*done_by*/, uint32& damage, DamageEffectType /*damageType*/, SpellInfo const* /*spellInfo = nullptr*/) override
620 {
621 if (damage >= me->GetHealth())
622 {
623 damage = 0;
624 if (!_dead)
625 {
626 _dead = true;
628 }
629 }
630 }
631
632 void UpdateAI(uint32 diff) override
633 {
634 if (!UpdateVictim())
635 return;
636
637 _scheduler.Update(diff);
638 }
639
640private:
643 bool _dead;
644};
645
647{
648 npc_reliquary_combat_trigger(Creature* creature) : ScriptedAI(creature), _instance(creature->GetInstanceScript())
649 {
650 SetCombatMovement(false);
651 creature->m_SightDistance = 70.0f;
653 }
654
655 bool CanAIAttack(Unit const* who) const override
656 {
657 return ScriptedAI::CanAIAttack(who) && IsInBoundary(who);
658 }
659
660 void Reset() override
661 {
665 }
666
667 void MoveInLineOfSight(Unit* who) override
668 {
669 if (!me->IsEngaged() && who->GetTypeId() == TYPEID_PLAYER && !who->ToPlayer()->IsGameMaster() && CanAIAttack(who))
670 {
672 {
674 reliquary->AI()->DoAction(ACTION_START_COMBAT);
675 }
676 }
677 }
678
679 void DamageTaken(Unit* /*done_by*/, uint32& damage, DamageEffectType /*damageType*/, SpellInfo const* /*spellInfo = nullptr*/) override
680 {
681 damage = 0;
682 }
683
684 void EnterEvadeMode(EvadeReason why) override
685 {
688 reliquary->AI()->EnterEvadeMode(why);
689 }
690
691 void DoAction(int32 actionId) override
692 {
693 if (actionId == ACTION_KILL_SELF)
694 me->KillSelf();
695 }
696
697 void UpdateAI(uint32 /*diff*/) override
698 {
699 if (!UpdateVictim())
700 return;
701 }
702
703private:
705};
706
707// 41350 - Aura of Desire
709{
710 bool Validate(SpellInfo const* /*spellInfo*/) override
711 {
713 }
714
715 void OnProcSpell(AuraEffect* aurEff, ProcEventInfo& eventInfo)
716 {
718 DamageInfo* damageInfo = eventInfo.GetDamageInfo();
719 if (!damageInfo || !damageInfo->GetDamage())
720 return;
721
722 Unit* caster = eventInfo.GetActor();
723 caster->CastSpell(caster, SPELL_AURA_OF_DESIRE_DAMAGE, CastSpellExtraArgs(aurEff).AddSpellBP0(damageInfo->GetDamage() / 2));
724 }
725
726 void UpdateAmount(AuraEffect* /*aurEff*/)
727 {
728 if (AuraEffect* effect = GetAura()->GetEffect(EFFECT_1))
729 effect->ChangeAmount(effect->GetAmount() - 5);
730 }
731
732 void Register() override
733 {
736 }
737};
738
739// 41337 - Aura of Anger
741{
743 {
744 if (AuraEffect* aurEff1 = aurEff->GetBase()->GetEffect(EFFECT_1))
745 aurEff1->ChangeAmount(aurEff1->GetAmount() + 5);
746 aurEff->SetAmount(100 * aurEff->GetTickNumber());
747 }
748
749 void Register() override
750 {
752 }
753};
754
755// 28819 - Submerge Visual
757{
758 void OnApply(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/)
759 {
761 }
762
763 void OnRemove(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/)
764 {
766 }
767
768 void Register() override
769 {
772 }
773};
774
775// 41376 - Spite
777{
778 bool Validate(SpellInfo const* /*spellInfo*/) override
779 {
781 }
782
783 void OnRemove(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/)
784 {
785 if (Unit* caster = GetCaster())
786 caster->CastSpell(GetTarget(), SPELL_SPITE_DAMAGE, true);
787 }
788
789 void Register() override
790 {
792 }
793};
794
795// 41305 - Frenzy
797{
799 {
800 if (Creature* caster = GetCaster()->ToCreature())
801 caster->AI()->Talk(SUFF_EMOTE_ENRAGE, caster);
802 }
803
804 void Register() override
805 {
807 }
808};
809
811{
823}
uint8_t uint8
Definition: Define.h:144
int32_t int32
Definition: Define.h:138
uint64_t uint64
Definition: Define.h:141
uint32_t uint32
Definition: Define.h:142
std::chrono::seconds Seconds
Seconds shorthand typedef.
Definition: Duration.h:32
std::chrono::minutes Minutes
Minutes shorthand typedef.
Definition: Duration.h:35
@ DONE
@ POINT_MOTION_TYPE
@ TYPEID_PLAYER
Definition: ObjectGuid.h:41
Spells
Definition: PlayerAI.cpp:32
#define RegisterSpellScript(spell_script)
Definition: ScriptMgr.h:1369
@ EFFECT_1
Definition: SharedDefines.h:31
@ EFFECT_0
Definition: SharedDefines.h:30
@ EFFECT_2
Definition: SharedDefines.h:32
AuraEffectHandleModes
@ AURA_EFFECT_HANDLE_REAL
@ SPELL_AURA_PERIODIC_DAMAGE
@ SPELL_AURA_DUMMY
@ SPELL_AURA_MOD_HEALING_PCT
@ SPELL_AURA_DAMAGE_IMMUNITY
@ SPELL_AURA_PERIODIC_TRIGGER_SPELL
@ SPELLVALUE_MAX_TARGETS
Definition: SpellDefines.h:230
#define AuraEffectProcFn(F, I, N)
Definition: SpellScript.h:2160
#define AuraEffectUpdatePeriodicFn(F, I, N)
Definition: SpellScript.h:2052
#define SpellCastFn(F)
Definition: SpellScript.h:825
#define AuraEffectApplyFn(F, I, N, M)
Definition: SpellScript.h:2029
#define AuraEffectRemoveFn(F, I, N, M)
Definition: SpellScript.h:2040
EvadeReason
Definition: UnitAICommon.h:30
@ REACT_PASSIVE
Definition: UnitDefines.h:506
@ REACT_AGGRESSIVE
Definition: UnitDefines.h:508
@ UNIT_STAND_STATE_SUBMERGED
Definition: UnitDefines.h:51
@ UNIT_STAND_STATE_STAND
Definition: UnitDefines.h:42
DamageEffectType
Definition: UnitDefines.h:131
@ UNIT_STATE_CASTING
Definition: Unit.h:270
#define RegisterBlackTempleCreatureAI(ai_name)
Definition: black_temple.h:149
@ DATA_ESSENCE_OF_SUFFERING
Definition: black_temple.h:53
@ DATA_RELIQUARY_COMBAT_TRIGGER
Definition: black_temple.h:58
@ DATA_ESSENCE_OF_ANGER
Definition: black_temple.h:55
@ DATA_ESSENCE_OF_DESIRE
Definition: black_temple.h:54
@ DATA_RELIQUARY_OF_SOULS
Definition: black_temple.h:36
@ NPC_ENSLAVED_SOUL
Definition: black_temple.h:91
@ NPC_RELIQUARY_WORLD_TRIGGER
Definition: black_temple.h:90
Says
@ ANGER_EMOTE_SEETHE
@ ACTION_ESSENCE_OF_DESIRE_DEAD
@ ANGER_SOUND_ID_DEATH
@ ACTION_START_COMBAT
@ RELIQUARY_DESPAWN_WAYPOINT
@ ACTION_ESSENCE_OF_SUFFERING_DEAD
void AddSC_boss_reliquary_of_souls()
@ SPELL_ENSLAVED_SOUL_PASSIVE
@ SPELL_SUMMON_ESSENCE_OF_DESIRE
@ SPELL_SUMMON_ESSENCE_OF_SUFFERING
@ SPELL_SOUL_RELEASE
@ SPELL_AURA_OF_DESIRE_DAMAGE
@ SPELL_SPIRIT_SHOCK
@ SPELL_AURA_OF_ANGER
@ SPELL_SPITE_DAMAGE
@ SPELL_SUMMON_ESSENCE_OF_ANGER
@ SPELL_SUBMERGE_VISUAL
@ SPELL_AURA_OF_SUFFERING
@ SUMMON_ENSLAVED_SOUL
@ SPELL_AURA_OF_DESIRE
@ PHASE_ESSENCE_OF_SUFFERING
@ PHASE_ESSENCE_OF_DESIRE
@ PHASE_ESSENCE_OF_ANGER
Position const DespawnPoint
@ EVENT_START_CHECK_TANKER
@ EVENT_SUMMON_ESSENCE
uint32 GetTickNumber() const
void SetAmount(int32 amount)
Aura * GetBase() const
void PreventDefaultAction()
HookList< EffectApplyHandler > AfterEffectRemove
Definition: SpellScript.h:2039
HookList< EffectApplyHandler > AfterEffectApply
Definition: SpellScript.h:2028
Unit * GetCaster() const
HookList< EffectUpdatePeriodicHandler > OnEffectUpdatePeriodic
Definition: SpellScript.h:2051
AuraEffect * GetEffect(uint8 effIndex) const
Aura * GetAura() const
Unit * GetTarget() const
HookList< EffectProcHandler > OnEffectProc
Definition: SpellScript.h:2155
AuraEffect * GetEffect(uint32 index) const
Definition: SpellAuras.cpp:529
InstanceScript *const instance
void _DespawnAtEvade(Seconds delayToRespawn=30s, Creature *who=nullptr)
SummonList summons
EventMap events
void DoZoneInCombat()
Definition: CreatureAI.h:161
virtual void EnterEvadeMode(EvadeReason why=EvadeReason::Other)
Definition: CreatureAI.cpp:219
void Talk(uint8 id, WorldObject const *whisperTarget=nullptr)
Definition: CreatureAI.cpp:56
bool IsInBoundary(Position const *who=nullptr) const
Definition: CreatureAI.cpp:426
bool UpdateVictim()
Definition: CreatureAI.cpp:245
void SetBoundary(CreatureBoundary const *boundary, bool negativeBoundaries=false)
Definition: CreatureAI.cpp:446
Creature *const me
Definition: CreatureAI.h:61
void SetCombatPulseDelay(uint32 delay)
Definition: Creature.h:345
bool IsEngaged() const override
Definition: Creature.cpp:3601
void SetReactState(ReactStates st)
Definition: Creature.h:160
float m_SightDistance
Definition: Creature.h:412
void DespawnOrUnsummon(Milliseconds timeToDespawn=0s, Seconds forceRespawnTime=0s)
Definition: Creature.cpp:2415
CreatureAI * AI() const
Definition: Creature.h:214
uint32 GetDamage() const
Definition: Unit.h:446
EnslavedSoulEvent(Creature *owner)
bool Execute(uint64, uint32) override
uint32 ExecuteEvent()
Definition: EventMap.cpp:73
void Update(uint32 time)
Definition: EventMap.h:56
void Repeat(Milliseconds time)
Definition: EventMap.cpp:63
void ScheduleEvent(uint32 eventId, Milliseconds time, uint32 group=0, uint8 phase=0)
Definition: EventMap.cpp:36
bool IsInPhase(uint8 phase) const
Definition: EventMap.h:217
void SetPhase(uint8 phase)
Definition: EventMap.cpp:28
void Reset()
Definition: EventMap.cpp:21
void AddEventAtOffset(BasicEvent *event, Milliseconds offset)
virtual bool SetBossState(uint32 id, EncounterState state)
Creature * GetCreature(uint32 type)
CreatureBoundary const * GetBossBoundary(uint32 id) const
EncounterState GetBossState(uint32 id) const
void MovePoint(uint32 id, Position const &pos, bool generatePath=true, Optional< float > finalOrient={}, Optional< float > speed={}, MovementWalkRunSpeedSelectionMode speedSelectionMode=MovementWalkRunSpeedSelectionMode::Default, Optional< float > closeEnoughDistance={})
void Clear()
Definition: ObjectGuid.h:286
TypeID GetTypeId() const
Definition: Object.h:173
static ObjectGuid GetGUID(Object const *o)
Definition: Object.h:159
static Player * ToPlayer(Object *o)
Definition: Object.h:213
bool IsGameMaster() const
Definition: Player.h:1178
DamageInfo * GetDamageInfo() const
Definition: Unit.h:505
Unit * GetActor() const
Definition: Unit.h:493
static bool ValidateSpellInfo(std::initializer_list< uint32 > spellIds)
Definition: SpellScript.h:162
HookList< CastHandler > AfterCast
Definition: SpellScript.h:824
Unit * GetCaster() const
void Summon(Creature const *summon)
void DoAction(int32 info, Predicate &&predicate, uint16 max=0)
TaskScheduler & Schedule(std::chrono::duration< Rep, Period > time, task_handler_t task)
TaskScheduler & Update(success_t const &callback=nullptr)
SpellCastResult DoCastSelf(uint32 spellId, CastSpellExtraArgs const &args={})
Definition: UnitAI.h:159
virtual bool CanAIAttack(Unit const *) const
Definition: UnitAI.h:57
SpellCastResult DoCastVictim(uint32 spellId, CastSpellExtraArgs const &args={})
Definition: UnitAI.cpp:180
SpellCastResult DoCastAOE(uint32 spellId, CastSpellExtraArgs const &args={})
Definition: UnitAI.h:161
Definition: Unit.h:627
void SetStandState(UnitStandStateType state, uint32 animKitID=0)
Definition: Unit.cpp:10100
void InterruptNonMeleeSpells(bool withDelayed, uint32 spellid=0, bool withInstant=true)
Definition: Unit.cpp:3089
MotionMaster * GetMotionMaster()
Definition: Unit.h:1652
uint64 GetHealth() const
Definition: Unit.h:776
Unit * GetVictim() const
Definition: Unit.h:715
bool HasUnitState(const uint32 f) const
Definition: Unit.h:732
void KillSelf(bool durabilityLoss=true, bool skipSettingDeathState=false)
Definition: Unit.h:921
bool AttackStop()
Definition: Unit.cpp:5781
void RemoveAurasDueToSpell(uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, uint32 reqEffMask=0, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
Definition: Unit.cpp:3831
void GetCreatureListWithEntryInGrid(Container &creatureContainer, uint32 entry, float maxSearchRange=250.0f) const
Definition: Object.cpp:3312
SpellCastResult CastSpell(CastSpellTargetArg const &targets, uint32 spellId, CastSpellExtraArgs const &args={ })
Definition: Object.cpp:2896
void setActive(bool isActiveObject)
Definition: Object.cpp:922
EventProcessor m_Events
Definition: Object.h:777
void OnProcSpell(AuraEffect *aurEff, ProcEventInfo &eventInfo)
void OnRemove(AuraEffect const *, AuraEffectHandleModes)
bool Validate(SpellInfo const *) override
void OnApply(AuraEffect const *, AuraEffectHandleModes)
void OnRemove(AuraEffect const *, AuraEffectHandleModes)
void RandomShuffle(Iterator begin, Iterator end)
Reorder the elements of the iterator range randomly.
Definition: Containers.h:170
void SetCombatMovement(bool allowMovement)
void DoPlaySoundToSet(WorldObject *source, uint32 soundId)
void UpdateAI(uint32 diff) override
boss_essence_of_anger(Creature *creature)
void JustEngagedWith(Unit *) override
void JustDied(Unit *) override
boss_essence_of_desire(Creature *creature)
void MovementInform(uint32 motionType, uint32 pointId) override
void KilledUnit(Unit *victim) override
void DamageTaken(Unit *, uint32 &damage, DamageEffectType, SpellInfo const *) override
void JustEngagedWith(Unit *) override
void UpdateAI(uint32 diff) override
void UpdateAI(uint32 diff) override
void JustEngagedWith(Unit *) override
boss_essence_of_suffering(Creature *creature)
void KilledUnit(Unit *victim) override
void MovementInform(uint32 motionType, uint32 pointId) override
void DamageTaken(Unit *, uint32 &damage, DamageEffectType, SpellInfo const *) override
boss_reliquary_of_souls(Creature *creature)
void UpdateAI(uint32 diff) override
void JustSummoned(Creature *summon) override
void EnterEvadeMode(EvadeReason) override
void DoAction(int32 actionId) override
void DamageTaken(Unit *, uint32 &damage, DamageEffectType, SpellInfo const *) override
npc_enslaved_soul(Creature *creature)
void DoAction(int32 actionId) override
void UpdateAI(uint32 diff) override
void DoAction(int32 actionId) override
void DamageTaken(Unit *, uint32 &damage, DamageEffectType, SpellInfo const *) override
bool CanAIAttack(Unit const *who) const override
void MoveInLineOfSight(Unit *who) override
npc_reliquary_combat_trigger(Creature *creature)
void EnterEvadeMode(EvadeReason why) override