TrinityCore
Loading...
Searching...
No Matches
boss_leotheras_the_blind.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/*
19 * Timers requires to be revisited (timers seems to be different in different expansions or patches)
20 * Many parts of this encounter requires sniff verification
21 * Spell SPELL_STUN_SELF is guessed, based on effects received in packets
22 */
23
24#include "ScriptMgr.h"
25#include "Containers.h"
26#include "InstanceScript.h"
27#include "Map.h"
28#include "MotionMaster.h"
29#include "Player.h"
30#include "ScriptedCreature.h"
31#include "serpent_shrine.h"
32#include "SpellAuraEffects.h"
33#include "SpellInfo.h"
34#include "SpellMgr.h"
35#include "SpellScript.h"
36#include "TemporarySummon.h"
37
52
54{
55 // Leotheras the Blind - Initial
56 SPELL_BANISH = 37546,
57
58 // Leotheras the Blind - Combat
64
65 // Leotheras the Blind - Combat - Misc
69
70 // Greyheart Spellbinder
74
75 // Inner Demon
80
81 // Shadow of Leotheras
82 SPELL_SHRINK = 37780,
83
84 // Scripts
93};
94
114
123
134
141
148
149static constexpr std::array<uint32, 5> ForceReactionSpells =
150{
156};
157
166
167// 21215 - Leotheras the Blind
169{
172
173 void Reset() override
174 {
175 _Reset();
176
177 _isStartedTransition = false;
178
179 me->SetUninteractible(false);
182 me->SetCanDualWield(true);
183 SetEquipmentSlots(true);
184 }
185
186 void JustAppeared() override
187 {
189
193
195 me->GetMap()->SpawnGroupSpawn(group, true);
196 }
197
208
209 void AttackStart(Unit* who) override
210 {
212 BossAI::AttackStartCaster(who, 40.0f);
213 else
215 }
216
217 void OnSpellCast(SpellInfo const* spellInfo) override
218 {
219 if (spellInfo->Id == SPELL_INSIDIOUS_WHISPER)
221 }
222
223 void DamageTaken(Unit* /*attacker*/, uint32& damage, DamageEffectType /*damageType*/, SpellInfo const* /*spellInfo = nullptr*/) override
224 {
225 if (!_isStartedTransition && me->HealthBelowPctDamaged(15, damage))
226 {
229 }
230 }
231
232 void DoAction(int32 action) override
233 {
234 switch (action)
235 {
237 {
239
241 {
246 }
247 break;
248 }
252 me->GetMap()->SpawnGroupSpawn(group, true);
253 break;
259
263 break;
265 SetEquipmentSlots(true);
267
269
270 // Without this AttackStartCaster gets stuck if Leotheras uses Consuming Madness. Investigate this
271 if (Unit* victim = me->GetVictim())
272 me->GetMotionMaster()->MoveChase(victim);
273
277 break;
278 default:
279 break;
280 }
281 }
282
283 void EnterEvadeMode(EvadeReason why) override
284 {
286
288 }
289
302
303 void KilledUnit(Unit* victim) override
304 {
305 if (victim->GetTypeId() != TYPEID_PLAYER)
306 return;
307
309 }
310
311 void JustDied(Unit* /*killer*/) override
312 {
313 _JustDied();
315
317 }
318
319 void UpdateAI(uint32 diff) override
320 {
321 if (!UpdateVictim())
322 {
323 events.Update(diff);
324
325 while (uint32 eventId = events.ExecuteEvent())
326 {
327 if (eventId == EVENT_FORCE_CHANNEL)
328 {
329 std::vector<Creature*> spellbinders;
331 for (Creature* spellbinder : spellbinders)
332 spellbinder->AI()->DoAction(ACTION_START_CHANNELING);
333
334 events.Repeat(15s, 25s);
335 }
336 }
337
338 return;
339 }
340
341 events.Update(diff);
342
344 return;
345
346 while (uint32 eventId = events.ExecuteEvent())
347 {
348 switch (eventId)
349 {
350 // Combat
351 case EVENT_WHIRLWIND:
353 events.Repeat(25s, 35s);
354 break;
357 events.Repeat(120s);
358 break;
361 events.Repeat(2400ms);
362 break;
365 break;
366 case EVENT_BERSERK:
368 break;
369
370 // Transition
374 me->SetUninteractible(true);
376
378
380
381 SetEquipmentSlots(true);
382
387
389 break;
394 break;
398 break;
402 break;
405 me->SetUninteractible(false);
408 break;
409 default:
410 break;
411 }
412
414 return;
415 }
416 }
417
418private:
421};
422
423// 21875 - Shadow of Leotheras
425{
427
428 void JustAppeared() override
429 {
430 _scheduler.Schedule(0s, [this](TaskContext& task)
431 {
432 switch (task.GetRepeatCounter())
433 {
434 case 0:
435 me->SetReactState(REACT_PASSIVE);
436 DoCastSelf(SPELL_SHRINK);
437 task.Repeat(3s);
438 break;
439 case 1:
440 me->RemoveAurasDueToSpell(SPELL_SHRINK);
441 task.Repeat(2s);
442 break;
443 case 2:
444 Talk(SAY_DEMON_FREE);
445 DoZoneInCombat();
446 me->SetReactState(REACT_AGGRESSIVE);
447 me->SetUninteractible(false);
448 break;
449 default:
450 break;
451 }
452 });
453 }
454
455 void Reset() override
456 {
458 }
459
460 void JustEngagedWith(Unit* /*who*/) override
461 {
462 _scheduler.Schedule(0s, [this](TaskContext& task)
463 {
465 task.Repeat(2400ms);
466 });
467 }
468
469 void AttackStart(Unit* who) override
470 {
472 }
473
474 void UpdateAI(uint32 diff) override
475 {
476 _scheduler.Update(diff);
477
478 UpdateVictim();
479 }
480
481private:
483};
484
485// 21806 - Greyheart Spellbinder
487{
488 npc_greyheart_spellbinder(Creature* creature) : ScriptedAI(creature), _instance(me->GetInstanceScript()) { }
489
490 void JustAppeared() override
491 {
493 }
494
495 void Reset() override
496 {
498 }
499
500 void JustEngagedWith(Unit* /*who*/) override
501 {
503
505 .SetValidator([this]
506 {
508 })
509 .Schedule(10s, 20s, [this](TaskContext& task)
510 {
511 if (Unit* target = SelectTarget(SelectTargetMethod::Random, 0, 20.0f))
512 DoCast(target, SPELL_MIND_BLAST);
513 task.Repeat(15s, 25s);
514 })
515 .Schedule(5s, 10s, [this](TaskContext& task)
516 {
517 std::vector<Player*> playerList;
518 GetPlayerListInGrid(playerList, me, 45.0f);
519 for (Player* player : playerList)
520 {
521 if (player->IsNonMeleeSpellCast(false))
522 {
523 DoCast(player, SPELL_SPELL_SHOCK);
524 break;
525 }
526 }
527 task.Repeat(10s, 15s);
528 });
529 }
530
531 void DoAction(int32 action) override
532 {
533 if (action == ACTION_START_CHANNELING && me->IsAlive() && !me->IsInCombat() && !me->IsInEvadeMode())
535 }
536
537 void EnterEvadeMode(EvadeReason why) override
538 {
540
542 leotheras->AI()->DoAction(ACTION_RESET_ENCOUNTER);
543 }
544
545 void JustReachedHome() override
546 {
548 }
549
550 void JustDied(Unit* /*killer*/) override
551 {
553 leotheras->AI()->DoAction(ACTION_SPELLBINDER_DIES);
554 }
555
556 void UpdateAI(uint32 diff) override
557 {
558 if (!UpdateVictim())
559 return;
560
561 _scheduler.Update(diff);
562 }
563
564private:
567};
568
569// 21857 - Inner Demon
571{
573
574 void InitializeAI() override
575 {
577
578 if (TempSummon* summon = me->ToTempSummon())
579 if (Unit* summoner = summon->GetSummonerUnit())
580 for (auto [spellId, factionTemplateId] : DemonFaction)
581 if (summoner->HasAura(spellId))
582 me->SetFaction(factionTemplateId);
583 }
584
585 void JustAppeared() override
586 {
590
591 if (TempSummon* summon = me->ToTempSummon())
592 {
593 if (Unit* summoner = summon->GetSummonerUnit())
594 {
595 AddThreat(summoner, 50000.0f);
596 AttackStart(summoner);
597 }
598 }
599 }
600
601 void Reset() override
602 {
604 }
605
606 void JustEngagedWith(Unit* /*who*/) override
607 {
608 _scheduler.Schedule(5s, 10s, [this](TaskContext& task)
609 {
611 task.Repeat(5s, 10s);
612 });
613 }
614
615 void JustDied(Unit* killer) override
616 {
618 }
619
620 void UpdateAI(uint32 diff) override
621 {
622 if (!UpdateVictim())
623 return;
624
625 _scheduler.Update(diff);
626 }
627
628private:
630};
631
632// 37640 - Whirlwind
634{
636 {
637 Creature* caster = GetCaster()->ToCreature();
638 if (!caster)
639 return;
640
642 if (Unit* target = caster->AI()->SelectTarget(SelectTargetMethod::Random, 0, 0.0f, true))
643 caster->GetThreatManager().AddThreat(target, 100000.0f);
644 }
645
650};
651
652// 37641 - Whirlwind
654{
655 void HandleScript(SpellEffIndex /*effIndex*/)
656 {
657 Creature* caster = GetCaster()->ToCreature();
658 if (!caster)
659 return;
660
661 SpellInfo const* spellInfo = GetTriggeringSpell();
662 if (!spellInfo)
663 return;
664
665 if (AuraEffect const* eff = caster->GetAuraEffect(spellInfo->Id, EFFECT_0))
666 {
667 if (eff->GetTickNumber() != eff->GetSpellEffectInfo().GetPeriodicTickCount())
668 {
669 if (roll_chance(50))
670 {
672 if (Unit* target = caster->AI()->SelectTarget(SelectTargetMethod::Random, 0, 0.0f, true))
673 caster->GetThreatManager().AddThreat(target, 100000.0f);
674 }
675 }
676 else
678 }
679 }
680
685};
686
687// 37673 - Metamorphosis
689{
690 void AfterApply(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/)
691 {
692 if (Creature* target = GetTarget()->ToCreature())
693 target->AI()->DoAction(ACTION_METAMORPHOSIS_APPLIED);
694 }
695
696 void AfterRemove(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/)
697 {
698 if (GetTargetApplication()->GetRemoveMode() != AURA_REMOVE_BY_EXPIRE)
699 return;
700
701 if (Creature* target = GetTarget()->ToCreature())
702 target->AI()->DoAction(ACTION_METAMORPHOSIS_REMOVED);
703 }
704
710};
711
712// 37674 - Chaos Blast
714{
715 bool Validate(SpellInfo const* /*spellInfo*/) override
716 {
718 }
719
720 void HandleDummy(SpellEffIndex /*effIndex*/)
721 {
722 SpellInfo const* spellInfo = sSpellMgr->AssertSpellInfo(SPELL_CHAOS_BLAST_DAMAGE, GetCastDifficulty());
723
725 .SetTriggerFlags(TRIGGERED_FULL_MASK)
726 .AddSpellMod(SPELLVALUE_BASE_POINT0, spellInfo->GetEffect(EFFECT_1).CalcValue()));
727 }
728
733};
734
735// 37676 - Insidious Whisper
737{
738public:
739 bool Validate(SpellInfo const* /*spellInfo*/) override
740 {
742 }
743
744 void FilterTargets(std::list<WorldObject*>& targets)
745 {
746 targets.remove(GetCaster()->GetVictim());
748 }
749
750 void HandleEffect(SpellEffIndex /*effIndex*/)
751 {
753 _targetCount++;
754 }
755
761
762private:
763 std::size_t _targetCount = 0;
764};
765
767{
768 bool Validate(SpellInfo const* /*spellInfo*/) override
769 {
771 }
772
773 void AfterRemove(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/)
774 {
775 Unit* target = GetTarget();
776
777 for (uint32 spell : ForceReactionSpells)
778 target->RemoveAurasDueToSpell(spell);
779
781 return;
782
783 if (Unit* caster = GetCaster())
784 caster->CastSpell(target, SPELL_CONSUMING_MADNESS, true);
785 }
786
791};
792
793/* 37725 - Target 1
794 37726 - Target 2
795 37731 - Target 3
796 37732 - Target 4
797 37733 - Target 5 */
815
816// 37750 - Clear Consuming Madness
835
836// 37716 - Demon Link
838{
839 bool Validate(SpellInfo const* spellInfo) override
840 {
841 return ValidateSpellEffect({ { spellInfo->Id, EFFECT_0 } })
842 && ValidateSpellInfo({ spellInfo->GetEffect(EFFECT_0).TriggerSpell });
843 }
844
845 void OnPeriodic(AuraEffect const* aurEff)
846 {
848
849 Unit* target = GetTarget();
850 Unit* victim = target->GetVictim();
851 if (victim)
852 target->CastSpell(victim, aurEff->GetSpellEffectInfo().TriggerSpell, true);
853 }
854
859};
860
@ EQUIP_UNEQUIP
Definition CreatureAI.h:57
@ EQUIP_NO_CHANGE
Definition CreatureAI.h:56
uint8_t uint8
Definition Define.h:156
int32_t int32
Definition Define.h:150
uint32_t uint32
Definition Define.h:154
@ TYPEID_PLAYER
Definition ObjectGuid.h:44
bool roll_chance(float chance, PseudoRandomDistributionState &state)
Definition Random.cpp:131
#define RegisterSpellAndAuraScriptPair(script_1, script_2)
Definition ScriptMgr.h:1381
#define RegisterSpellScript(spell_script)
Definition ScriptMgr.h:1383
void GetCreatureListWithEntryInGrid(Container &container, WorldObject *source, uint32 entry, float maxSearchRange)
void GetPlayerListInGrid(Container &container, WorldObject *source, float maxSearchRange, bool alive=true)
SpellEffIndex
@ EFFECT_1
@ EFFECT_0
@ EFFECT_2
@ SPELL_EFFECT_DUMMY
@ SPELL_EFFECT_SCRIPT_EFFECT
@ SPELL_EFFECT_APPLY_AURA
@ TARGET_UNIT_SRC_AREA_ENEMY
@ MECHANIC_BANISH
@ IMMUNITY_MECHANIC
AuraEffectHandleModes
@ AURA_EFFECT_HANDLE_REAL
@ AURA_REMOVE_BY_EXPIRE
@ SPELL_AURA_DUMMY
@ SPELL_AURA_TRANSFORM
@ SPELL_AURA_PERIODIC_TRIGGER_SPELL
@ TRIGGERED_FULL_MASK
Used when doing CastSpell with triggered == true.
@ SPELLVALUE_BASE_POINT0
#define sSpellMgr
Definition SpellMgr.h:812
#define SpellEffectFn(F, I, N)
#define SpellObjectAreaTargetSelectFn(F, I, N)
#define AuraEffectPeriodicFn(F, I, N)
#define SpellCastFn(F)
#define AuraEffectApplyFn(F, I, N, M)
#define AuraEffectRemoveFn(F, I, N, M)
EvadeReason
@ REACT_PASSIVE
@ REACT_AGGRESSIVE
@ UNIT_STAND_STATE_KNEEL
Definition UnitDefines.h:50
@ UNIT_STAND_STATE_STAND
Definition UnitDefines.h:42
DamageEffectType
@ UNIT_STATE_CASTING
Definition Unit.h:290
static constexpr std::array< uint32, 5 > ForceReactionSpells
@ SAY_NIGHT_ELF_FINAL_FORM
@ SPELL_CONSUMING_MADNESS
@ SPELL_CHAOS_BLAST_DAMAGE
@ SPELL_DEMONIC_ALIGNMENT
@ SPELL_SUMMON_INNER_DEMON
@ SPELL_CLEAR_CONSUMING_MADNESS
@ SPELL_INSIDIOUS_WHISPER
@ FACTION_LEOTHERAS_DEMON_1
@ FACTION_LEOTHERAS_DEMON_2
@ FACTION_LEOTHERAS_DEMON_3
@ NPC_GREYHEART_SPELLBINDER
@ FACTION_LEOTHERAS_DEMON_4
@ FACTION_LEOTHERAS_DEMON_5
@ ACTION_METAMORPHOSIS_REMOVED
@ ACTION_METAMORPHOSIS_APPLIED
@ SPAWN_GROUP_SPELLBINDER_1
@ SPAWN_GROUP_SPELLBINDER_2
@ SPAWN_GROUP_SPELLBINDER_3
static constexpr std::pair< uint32, uint32 > DemonFaction[5]
static constexpr std::array< uint32, 3 > SpellbindersSpawnGroupsData
void AddSC_boss_leotheras_the_blind()
AuraRemoveMode GetRemoveMode() const
Definition SpellAuras.h:96
SpellEffectInfo const & GetSpellEffectInfo() const
void PreventDefaultAction()
AuraApplication const * GetTargetApplication() const
HookList< EffectApplyHandler > AfterEffectRemove
HookList< EffectPeriodicHandler > OnEffectPeriodic
HookList< EffectApplyHandler > AfterEffectApply
Unit * GetCaster() const
Unit * GetTarget() const
TypeID GetTypeId() const
Definition BaseEntity.h:166
void _JustReachedHome()
void JustEngagedWith(Unit *who) override
EventMap events
void DoZoneInCombat()
Definition CreatureAI.h:169
virtual void EnterEvadeMode(EvadeReason why=EvadeReason::Other)
bool UpdateVictim()
Creature *const me
Definition CreatureAI.h:63
void SetReactState(ReactStates st)
Definition Creature.h:180
void SetCanDualWield(bool value) override
bool IsInEvadeMode() const
Definition Creature.h:224
CreatureAI * AI() const
Definition Creature.h:235
void Update(uint32 time)
Definition EventMap.h:77
void Repeat(Milliseconds time)
Definition EventMap.cpp:67
EventId ExecuteEvent()
Definition EventMap.cpp:77
void CancelEvent(EventId eventId)
Definition EventMap.cpp:156
void ScheduleEvent(EventId eventId, Milliseconds time, GroupIndex group=0u, PhaseIndex phase=0u)
Definition EventMap.cpp:40
Creature * GetCreature(uint32 type)
bool SpawnGroupSpawn(uint32 groupId, bool ignoreRespawn=false, bool force=false, std::vector< WorldObject * > *spawnedObjects=nullptr)
Definition Map.cpp:2360
void MoveChase(Unit *target, Optional< ChaseRange > dist={}, Optional< ChaseAngle > angle={})
Creature * ToCreature()
Definition Object.h:121
SpellEffectValue CalcValue(WorldObject const *caster=nullptr, SpellEffectValue const *basePoints=nullptr, Unit const *target=nullptr, float *variance=nullptr, uint32 castItemId=0, int32 itemLevel=-1) const
uint32 TriggerSpell
Definition SpellInfo.h:234
uint32 const Id
Definition SpellInfo.h:328
SpellEffectInfo const & GetEffect(SpellEffIndex index) const
Definition SpellInfo.h:590
static bool ValidateSpellInfo(std::initializer_list< uint32 > spellIds)
static bool ValidateSpellEffect(std::initializer_list< std::pair< uint32, SpellEffIndex > > effects)
HookList< CastHandler > AfterCast
Unit * GetCaster() const
HookList< EffectHandler > OnEffectHit
SpellInfo const * GetTriggeringSpell() const
Unit * GetHitUnit() const
HookList< EffectHandler > OnEffectHitTarget
Difficulty GetCastDifficulty() const
HookList< ObjectAreaTargetSelectHandler > OnObjectAreaTargetSelect
TaskScheduler::repeated_t GetRepeatCounter() const
Returns the repeat counter which increases every time the task is repeated.
TaskContext & Repeat(TaskScheduler::duration_t duration)
TaskScheduler & CancelAll()
TaskScheduler & Schedule(duration_t time, task_handler_t task)
TaskScheduler & SetValidator(P &&predicate)
Sets a validator which is asked if tasks are allowed to be executed.
TaskScheduler & Update()
Update the scheduler to the current time.
void AddThreat(Unit *target, float amount, SpellInfo const *spell=nullptr, bool ignoreModifiers=false, bool ignoreRedirects=false)
== AFFECT MY THREAT LIST ==
void AttackStartCaster(Unit *victim, float dist)
Definition UnitAI.cpp:47
SpellCastResult DoCastSelf(uint32 spellId, CastSpellExtraArgs const &args={})
Definition UnitAI.h:160
virtual void AttackStart(Unit *victim)
Definition UnitAI.cpp:29
virtual void InitializeAI()
Definition UnitAI.cpp:35
SpellCastResult DoCastVictim(uint32 spellId, CastSpellExtraArgs const &args={})
Definition UnitAI.cpp:172
Unit * SelectTarget(SelectTargetMethod targetType, uint32 offset=0, float dist=0.0f, bool playerOnly=false, bool withTank=true, int32 aura=0)
Definition UnitAI.cpp:71
SpellCastResult DoCast(uint32 spellId)
Definition UnitAI.cpp:81
Definition Unit.h:647
void ApplySpellImmune(uint32 spellId, SpellImmunity op, uint32 type, bool apply)
Definition Unit.cpp:8261
void SetStandState(UnitStandStateType state, uint32 animKitID=0)
Definition Unit.cpp:10804
ThreatManager & GetThreatManager()
Definition Unit.h:1093
void SetFaction(uint32 faction) override
Definition Unit.h:887
void InterruptNonMeleeSpells(bool withDelayed, uint32 spellid=0, bool withInstant=true)
Definition Unit.cpp:3253
MotionMaster * GetMotionMaster()
Definition Unit.h:1750
AuraEffect * GetAuraEffect(uint32 spellId, uint8 effIndex, ObjectGuid casterGUID=ObjectGuid::Empty) const
Definition Unit.cpp:4622
bool IsAlive() const
Definition Unit.h:1205
TempSummon * ToTempSummon()
Definition Unit.h:1844
void SetUninteractible(bool apply)
Definition Unit.cpp:8583
bool HealthBelowPctDamaged(float pct, uint32 damage) const
Definition Unit.h:805
Unit * GetVictim() const
Definition Unit.h:738
bool HasUnitState(const uint32 f) const
Definition Unit.h:755
bool HasAura(uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint32 reqEffMask=0) const
Definition Unit.cpp:4822
void RemoveAurasDueToSpell(uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, uint32 reqEffMask=0, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
Definition Unit.cpp:3992
bool IsInCombat() const
Definition Unit.h:1073
void SetIsCombatDisallowed(bool apply)
Definition Unit.h:1886
Map * GetMap() const
Definition Object.h:411
SpellCastResult CastSpell(CastSpellTargetArg const &targets, uint32 spellId, CastSpellExtraArgs const &args={ })
Definition Object.cpp:2222
void AfterRemove(AuraEffect const *, AuraEffectHandleModes)
void FilterTargets(std::list< WorldObject * > &targets)
void AfterApply(AuraEffect const *, AuraEffectHandleModes)
void AfterRemove(AuraEffect const *, AuraEffectHandleModes)
void RandomResize(C &container, std::size_t requestedSize)
Definition Containers.h:67
@ BOSS_LEOTHERAS_THE_BLIND
#define RegisterSerpentshrineCavernCreatureAI(ai_name)
void SetEquipmentSlots(bool loadDefault, int32 mainHand=EQUIP_NO_CHANGE, int32 offHand=EQUIP_NO_CHANGE, int32 ranged=EQUIP_NO_CHANGE)
void AttackStart(Unit *) override
== Triggered Actions Requested ==================
ScriptedAI(Creature *creature, uint32 scriptId=0) noexcept
void ResetThreatList(Unit *who=nullptr)
void AddThreat(Unit *victim, float amount, Unit *who=nullptr)
void OnSpellCast(SpellInfo const *spellInfo) override
void AttackStart(Unit *who) override
void DoAction(int32 action) override
void UpdateAI(uint32 diff) override
void JustEngagedWith(Unit *who) override
boss_leotheras_the_blind(Creature *creature)
void EnterEvadeMode(EvadeReason why) override
void KilledUnit(Unit *victim) override
void DamageTaken(Unit *, uint32 &damage, DamageEffectType, SpellInfo const *) override
void DoAction(int32 action) override
npc_greyheart_spellbinder(Creature *creature)
void UpdateAI(uint32 diff) override
void EnterEvadeMode(EvadeReason why) override
void JustDied(Unit *killer) override
void UpdateAI(uint32 diff) override
void JustEngagedWith(Unit *) override
void AttackStart(Unit *who) override
== Triggered Actions Requested ==================
void UpdateAI(uint32 diff) override
void JustEngagedWith(Unit *) override