TrinityCore
Loading...
Searching...
No Matches
boss_lady_vashj.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
20 * Spells SPELL_ROOT_SELF and SPELL_PACIFY_SELF are guessed, based on effects received in packets
21 * Everything related to Sporebats requires sniff verification
22 * After looting Tainted Core, spell SPELL_PARALYZE should be casted by player
23 * Is SPELL_REMOVE_TAINTED_CORES used in correct place?
24 * Creature 15384 at position X: 29.875898 Y: -923.3916 Z: 42.985214 is spawned when second phase
25 starts. Despawns when second phase is finished. Currently spawned permanently
26 * Critical bug: SPELL_SURGE doesn't get applied because of SPELL_MAGIC_BARRIER immunity
27 * Critical bug: SPELL_MAGIC_BARRIER doesn't stack because of immunity, only one channel is active,
28 it is enough to deactivate generator with channeled spell to kill boss, skipping phase 3 entirely
29 */
30
31#include "ScriptMgr.h"
32#include "Containers.h"
33#include "GameObject.h"
34#include "GameObjectAI.h"
35#include "InstanceScript.h"
36#include "MotionMaster.h"
37#include "ObjectMgr.h"
38#include "Player.h"
39#include "ScriptedCreature.h"
40#include "serpent_shrine.h"
41#include "SpellInfo.h"
42#include "SpellScript.h"
43
54
56{
57 // Phase 1 & 3
58 SPELL_SHOOT = 38295,
63
64 // Transition
67
68 // Phase 2
70
75
79
80 // Phase 3
82
83 // World Trigger (Tiny)
85
86 // Enchanted Elemental
87 SPELL_SURGE = 38044,
88
89 // Tainted Elemental
91
92 // Toxic Sporebat
94
95 // Scripts
100
105
109
111
113
114 // Misc
118
144
152
163
173
181
182Position const CenterPos = { 29.8326f, -923.274f, 42.901886f, 0.0f };
183
191
192// 21212 - Lady Vashj
193struct boss_lady_vashj : public BossAI
194{
198
213
214 void AttackStart(Unit* who) override
215 {
217 }
218
219 void DamageTaken(Unit* /*attacker*/, uint32& damage, DamageEffectType /*damageType*/, SpellInfo const* /*spellInfo = nullptr*/) override
220 {
222 {
225 }
226 }
227
228 void MovementInform(uint32 type, uint32 pointId) override
229 {
230 if (type == POINT_MOTION_TYPE && pointId == POINT_CENTER)
232 }
233
235 {
236 std::vector<Creature*> spawns;
237
244
245 for (Creature* spawn : spawns)
246 spawn->DespawnOrUnsummon();
247 }
248
250 {
251 if (Creature* trigger = me->FindNearestCreatureWithOptions(100.0f, { .StringId = "LadyVashjTriggerWaveA1" }))
252 trigger->RemoveAurasDueToSpell(SPELL_WAVE_A_1_PERIODIC);
253
254 if (Creature* trigger = me->FindNearestCreatureWithOptions(100.0f, { .StringId = "LadyVashjTriggerWaveA2" }))
255 trigger->RemoveAurasDueToSpell(SPELL_WAVE_A_2_PERIODIC);
256
257 if (Creature* trigger = me->FindNearestCreatureWithOptions(100.0f, { .StringId = "LadyVashjTriggerWaveA3" }))
258 trigger->RemoveAurasDueToSpell(SPELL_WAVE_A_3_PERIODIC);
259
260 if (Creature* trigger = me->FindNearestCreatureWithOptions(100.0f, { .StringId = "LadyVashjTriggerWaveA4" }))
261 trigger->RemoveAurasDueToSpell(SPELL_WAVE_A_4_PERIODIC);
262 }
263
264 void EnterEvadeMode(EvadeReason /*why*/) override
265 {
266 for (uint32 data : ShieldGeneratorData)
267 if (GameObject* generator = instance->GetGameObject(data))
268 generator->ActivateObject(GameObjectActions(GameObjectActions::MakeInert));
269
272
274 }
275
276 void OnSpellCast(SpellInfo const* spellInfo) override
277 {
278 switch (spellInfo->Id)
279 {
280 case SPELL_SHOOT:
281 if (roll_chance_i(10))
283 break;
284 case SPELL_MULTI_SHOT:
285 if (roll_chance_i(50))
287 break;
288 default:
289 break;
290 }
291 }
292
293 void DoAction(int32 action) override
294 {
295 if (!me->IsAlive())
296 return;
297
298 switch (action)
299 {
302 {
304 _introIsTriggered = true;
305 }
306 break;
310 break;
314 break;
316 {
318
319 if (me->HealthAbovePct(5))
321 else
322 me->SetHealth(1);
323
325
327 {
330
332
334
336
338
343
350 }
351 break;
352 }
353 default:
354 break;
355 }
356 }
357
358 void KilledUnit(Unit* /*victim*/) override
359 {
360 Talk(SAY_SLAY);
361 }
362
363 void JustDied(Unit* /*killer*/) override
364 {
368 _JustDied();
369 }
370
371 void UpdateAI(uint32 diff) override
372 {
373 if (!UpdateVictim())
374 {
375 events.Update(diff);
376
377 while (uint32 eventId = events.ExecuteEvent())
378 {
379 switch (eventId)
380 {
381 case EVENT_INTRO:
383 break;
384 default:
385 break;
386 }
387 }
388 return;
389 }
390
391 events.Update(diff);
392
394 return;
395
396 while (uint32 eventId = events.ExecuteEvent())
397 {
398 switch (eventId)
399 {
400 // Phase 1 & 3
401 case EVENT_SHOOT:
403 events.Repeat(2s, 4s);
404 break;
405 case EVENT_MULTI_SHOT:
407 DoCast(target, SPELL_MULTI_SHOT);
408 events.Repeat(10s, 20s);
409 break;
411 if (Unit* target = SelectTarget(SelectTargetMethod::Random, 0, 100.0f, true, true, -SPELL_STATIC_CHARGE))
413 events.Repeat(5s, 25s);
414 break;
415 case EVENT_ENTANGLE:
417 events.Repeat(15s, 35s);
418 break;
421 events.Repeat(10s, 30s);
422 break;
423
424 // Transition
427
433
436 break;
438 {
441
443
444 std::vector<Creature*> triggers;
446 for (Creature* trigger : triggers)
447 trigger->CastSpell(trigger, SPELL_MAGIC_BARRIER);
448
449 if (Creature* trigger = me->FindNearestCreatureWithOptions(100.0f, { .StringId = "LadyVashjTriggerWaveA1" }))
450 trigger->CastSpell(trigger, SPELL_WAVE_A_1_PERIODIC);
451
452 if (Creature* trigger = me->FindNearestCreatureWithOptions(100.0f, { .StringId = "LadyVashjTriggerWaveA2" }))
453 trigger->CastSpell(trigger, SPELL_WAVE_A_2_PERIODIC);
454
455 if (Creature* trigger = me->FindNearestCreatureWithOptions(100.0f, { .StringId = "LadyVashjTriggerWaveA3" }))
456 trigger->CastSpell(trigger, SPELL_WAVE_A_3_PERIODIC);
457
458 if (Creature* trigger = me->FindNearestCreatureWithOptions(100.0f, { .StringId = "LadyVashjTriggerWaveA4" }))
459 trigger->CastSpell(trigger, SPELL_WAVE_A_4_PERIODIC);
460
461 for (uint32 data : ShieldGeneratorData)
462 if (GameObject* generator = instance->GetGameObject(data))
463 generator->ActivateObject(GameObjectActions(GameObjectActions::MakeActive));
464
466
471 break;
472 }
473
474 // Phase 2
478 events.Repeat(2s, 10s);
479 break;
482 break;
485 events.Repeat(40s, 50s);
486 break;
489 events.Repeat(60s, 65s);
490 break;
491
492 // Phase 3
495
496 if (_summonSporebatStaticTimer > 5000ms)
498 else
500
502 break;
503 default:
504 break;
505 }
506
508 return;
509 }
510
512 }
513
514private:
520};
521
522// 21958 - Enchanted Elemental
524{
525 npc_enchanted_elemental(Creature* creature) : ScriptedAI(creature), _instance(creature->GetInstanceScript()) { }
526
527 void InitializeAI() override
528 {
530 me->SetCorpseDelay(4, true);
532 }
533
534 void JustAppeared() override
535 {
537 me->SetSpeedRate(MOVE_RUN, 0.5f);
538
541 me->GetMotionMaster()->MoveFollow(vashj, 5.0f, 0.0f);
542
543 _scheduler.Schedule(1s, [this](TaskContext task)
544 {
546 {
548 if (me->IsWithinDistInMap(vashj, 6.0f))
549 DoCastSelf(SPELL_SURGE);
550 }
551 task.Repeat();
552 });
553 }
554
555 void Reset() override
556 {
558 }
559
560 void UpdateAI(uint32 diff) override
561 {
562 UpdateVictim();
563
564 _scheduler.Update(diff);
565 }
566
567private:
570};
571
572// 22009 - Tainted Elemental
574{
575 npc_tainted_elemental(Creature* creature) : ScriptedAI(creature), _instance(creature->GetInstanceScript()) { }
576
577 void InitializeAI() override
578 {
581 }
582
583 void JustAppeared() override
584 {
586
588 .SetValidator([this]
589 {
591 })
592 .Schedule(0s, [this](TaskContext task)
593 {
595 DoCast(target, SPELL_POISON_BOLT);
596 task.Repeat(2s);
597 })
598 .Schedule(15s, 20s, [this](TaskContext /*task*/)
599 {
601 vashj->AI()->DoAction(ACTION_TAINTED_ELEMENTAL_DESPAWNED);
602
604 });
605 }
606
607 void Reset() override
608 {
610 }
611
612 void JustDied(Unit* /*killer*/) override
613 {
615 vashj->AI()->DoAction(ACTION_TAINTED_ELEMENTAL_DIES);
616 }
617
618 void UpdateAI(uint32 diff) override
619 {
620 UpdateVictim();
621
622 _scheduler.Update(diff);
623 }
624
625private:
628};
629
630// 22140 - Toxic Sporebat
632{
633 npc_toxic_sporebat(Creature* creature) : ScriptedAI(creature) { }
634
635 void InitializeAI() override
636 {
639 }
640
641 void JustAppeared() override
642 {
644
646 {
649 break;
652 break;
655 break;
656 default:
657 break;
658 }
659 }
660
665};
666
667// 184568 - Lady Vashj Bridge Console
669{
670 go_bridge_console(GameObject* go) : GameObjectAI(go), _instance(go->GetInstanceScript()) { }
671
672 bool OnGossipHello(Player* /*player*/) override
673 {
676
679
682
684 vashj->AI()->DoAction(ACTION_INTRO_EVENT_TRIGGERED);
685
686 return false;
687 }
688
689private:
691};
692
693// 185051, 185052, 185053, 185054 - Shield Generator
695{
696 go_shield_generator(GameObject* go) : GameObjectAI(go), _instance(go->GetInstanceScript()) { }
697
698 bool OnGossipHello(Player* /*player*/) override
699 {
701 trigger->InterruptNonMeleeSpells(false);
702
704 vashj->AI()->DoAction(ACTION_SHIELD_GENERATOR_DEACTIVATED);
705
707
708 return false;
709 }
710
711private:
713};
714
715/* 38017 - Wave A - 1
716 38037 - Wave A - 2
717 38038 - Wave A - 3
718 38039 - Wave A - 4
719 38248 - Summon Wave B Mob Trigger
720 38241 - Summon Wave C Mob Trigger
721 38140 - Summon Wave D Mob Trigger */
723{
725
726 bool Validate(SpellInfo const* /*spellInfo*/) override
727 {
728 return ValidateSpellInfo(
729 {
734 });
735 }
736
737 void FilterTargets(std::list<WorldObject*>& targets)
738 {
740 }
741
765
771};
772
773// 38494 - Summon Wave E Mob
798
799// 38573 - Spore Drop Effect
825
826// 39495 - Remove Tainted Cores
846
847// 39496 - Remove Tainted Cores
849{
851
852 bool Validate(SpellInfo const* /*spellInfo*/) override
853 {
854 return sObjectMgr->GetItemTemplate(ITEM_TAINTED_CORE);
855 }
856
857 void HandleDummy(SpellEffIndex /*effIndex*/)
858 {
859 if (Player* caster = GetCaster()->ToPlayer())
860 caster->DestroyItemCount(ITEM_TAINTED_CORE, 1, true);
861 }
862
867};
868
870{
871public:
872 item_tainted_core() : ItemScript("item_tainted_core") { }
873
874 bool OnRemove(Player* player, Item* /*item*/) override
875 {
877 return false;
878 }
879};
880
First const & RAND(First const &first, Second const &second, Rest const &... rest)
uint8_t uint8
Definition Define.h:135
int32_t int32
Definition Define.h:129
uint32_t uint32
Definition Define.h:133
std::chrono::milliseconds Milliseconds
Milliseconds shorthand typedef.
Definition Duration.h:24
GameObjectActions
@ POINT_MOTION_TYPE
#define sObjectMgr
Definition ObjectMgr.h:1721
bool roll_chance_i(int chance)
Definition Random.h:59
#define RegisterSpellScript(spell_script)
Definition ScriptMgr.h:1128
void GetCreatureListWithEntryInGrid(Container &container, WorldObject *source, uint32 entry, float maxSearchRange)
Creature * GetClosestCreatureWithEntry(WorldObject *source, uint32 entry, float maxSearchRange, bool alive=true)
SpellEffIndex
@ EFFECT_0
@ SPELL_EFFECT_DUMMY
@ SPELL_EFFECT_SCRIPT_EFFECT
@ TARGET_UNIT_SRC_AREA_ENTRY
@ TARGET_UNIT_SRC_AREA_ENEMY
#define SpellEffectFn(F, I, N)
#define SpellObjectAreaTargetSelectFn(F, I, N)
@ REACT_PASSIVE
@ REACT_AGGRESSIVE
@ MOVE_RUN
@ UNIT_STATE_CASTING
Definition Unit.h:235
DamageEffectType
Definition Unit.h:352
@ UNIT_CREATED_BY_SPELL
VashjCreatures
@ NPC_ENCHANTED_ELEMENTAL
@ NPC_TAINTED_ELEMENTAL
@ NPC_TOXIC_SPOREBAT
@ NPC_SPORE_DROP_TRIGGER
@ NPC_COILFANG_ELITE
@ NPC_COILFANG_STRIDER
@ NPC_WORLD_TRIGGER_TINY
void AddSC_boss_lady_vashj()
@ SAY_DEATH
@ SAY_AGGRO
@ SAY_PHASE_2
@ SAY_BOWSHOT
@ SAY_PHASE_3
@ SAY_SLAY
@ SAY_INTRO
@ MAX_DEACTIVATED_GENERATORS
@ SPELL_VISUAL_KIT
@ POINT_CENTER
@ ITEM_TAINTED_CORE
static constexpr std::array< uint32, 4 > ShieldGeneratorData
@ ACTION_SHIELD_GENERATOR_DEACTIVATED
@ ACTION_INTRO_EVENT_TRIGGERED
@ ACTION_TAINTED_ELEMENTAL_DESPAWNED
@ ACTION_TAINTED_ELEMENTAL_DIES
VashjSpells
@ SPELL_SUMMON_WAVE_A_MOB_TRIGGER_1
@ SPELL_SUMMON_WAVE_C_MOB
@ SPELL_SUMMON_WAVE_B_MOB
@ SPELL_SHOOT
@ SPELL_WAVE_A_1_PERIODIC
@ SPELL_SHOCK_BLAST
@ SPELL_SUMMON_WAVE_A_MOB_TRIGGER_2
@ SPELL_SUMMON_WAVE_C_MOB_TRIGGER
@ SPELL_SUMMON_WAVE_D_MOB_TRIGGER
@ SPELL_SPORE_DROP
@ SPELL_SUMMON_WAVE_A_MOB
@ SPELL_SUMMON_WAVE_A_MOB_TRIGGER_4
@ SPELL_POISON_BOLT
@ SPELL_SUMMON_WAVE_B_MOB_TRIGGER
@ SPELL_WAVE_A_4_PERIODIC
@ SPELL_MAGIC_BARRIER
@ SPELL_TOXIC_SPORES
@ SPELL_ROOT_SELF
@ SPELL_SUMMON_WAVE_A_MOB_TRIGGER_3
@ SPELL_REMOVE_TAINTED_CORES
@ SPELL_SUMMON_WAVE_E_MOB_3
@ SPELL_PACIFY_SELF
@ SPELL_ENTANGLE
@ SPELL_SUMMON_WAVE_E_MOB_2
@ SPELL_PARALYZE
@ SPELL_WAVE_A_2_PERIODIC
@ SPELL_MULTI_SHOT
@ SPELL_SUMMON_WAVE_D_MOB
@ SPELL_REMOVE_TAINTED_CORES_EFFECT
@ SPELL_STATIC_CHARGE
@ SPELL_WAVE_A_3_PERIODIC
@ SPELL_SUMMON_WAVE_E_MOB_TRIGGER
@ SPELL_SUMMON_WAVE_E_MOB_1
@ SPELL_SURGE
@ SPELL_FORKED_LIGHTNING
@ EVENT_STATIC_CHARGE
@ EVENT_SUMMON_TAINTED_ELEMENTAL
@ EVENT_SUMMON_COILFANG_STRIDER
@ EVENT_SHOOT
@ EVENT_SHOCK_BLAST
@ EVENT_TRANSITION_1
@ EVENT_MULTI_SHOT
@ EVENT_SUMMON_SPOREBAT
@ EVENT_FORKED_LIGHTNING
@ EVENT_ENTANGLE
@ EVENT_TRANSITION_2
@ EVENT_INTRO
@ EVENT_SUMMON_COILFANG_ELITE
Position const CenterPos
@ PATH_SPOREBAT_LOOP_2
@ PATH_SPOREBAT_LOOP_3
@ PATH_SPOREBAT_LOOP_1
@ PATH_SPOREBAT_INTRO_2
@ PATH_SPOREBAT_INTRO_3
@ PATH_SPOREBAT_INTRO_1
InstanceScript *const instance
void JustEngagedWith(Unit *who) override
void _DespawnAtEvade(Seconds delayToRespawn=30s, Creature *who=nullptr)
EventMap events
void DoZoneInCombat(Creature *creature=nullptr)
bool UpdateVictim()
Creature *const me
Definition CreatureAI.h:82
void SetReactState(ReactStates st)
Definition Creature.h:119
void DespawnOrUnsummon(Milliseconds timeToDespawn=0s, Seconds forceRespawnTime=0s)
void SetCorpseDelay(uint32 delay, bool ignoreCorpseDecayRatio=false)
Definition Creature.h:89
void Update(uint32 time)
Definition EventMap.h:67
void Repeat(Milliseconds time)
Definition EventMap.cpp:63
EventId ExecuteEvent()
Definition EventMap.cpp:73
void CancelEvent(EventId eventId)
Definition EventMap.cpp:151
void ScheduleEvent(EventId eventId, Milliseconds time, GroupIndex group=0u, PhaseIndex phase=0u)
Definition EventMap.cpp:36
GameObject *const me
void ActivateObject(GameObjectActions action, WorldObject *spellCaster=nullptr, uint32 spellId=0, int32 effectIndex=-1)
Creature * GetCreature(uint32 type)
void HandleGameObject(ObjectGuid guid, bool open, GameObject *go=nullptr)
GameObject * GetGameObject(uint32 type)
Definition Item.h:62
void MovePoint(uint32 id, Position const &pos, bool generatePath=true, Optional< float > finalOrient={})
void MovePath(uint32 pathId, bool repeatable)
void MoveFollow(Unit *target, float dist, ChaseAngle angle, MovementSlot slot=MOTION_SLOT_ACTIVE)
static ObjectGuid const Empty
Definition ObjectGuid.h:140
uint32 GetUInt32Value(uint16 index) const
Definition Object.cpp:249
uint32 Id
Definition SpellInfo.h:289
Unit * GetCaster() const
HookList< EffectHandler > OnEffectHit
Unit * GetHitUnit() const
HookList< EffectHandler > OnEffectHitTarget
SpellInfo const * GetSpellInfo() const
HookList< ObjectAreaTargetSelectHandler > OnObjectAreaTargetSelect
TaskContext & Repeat(std::chrono::duration< _Rep, _Period > const &duration)
TaskScheduler & CancelAll()
TaskScheduler & Schedule(std::chrono::duration< _Rep, _Period > const &time, task_handler_t const &task)
TaskScheduler & Update(success_t const &callback=EmptyCallback)
TaskScheduler & SetValidator(P &&predicate)
Sets a validator which is asked if tasks are allowed to be executed.
void AttackStartCaster(Unit *victim, float dist)
Definition UnitAI.cpp:48
void DoMeleeAttackIfReady()
Definition UnitAI.cpp:54
SpellCastResult DoCastSelf(uint32 spellId, CastSpellExtraArgs const &args={})
Definition UnitAI.h:241
virtual void InitializeAI()
Definition UnitAI.cpp:36
SpellCastResult DoCastVictim(uint32 spellId, CastSpellExtraArgs const &args={})
Definition UnitAI.cpp:166
Unit * SelectTarget(SelectTargetMethod targetType, uint32 offset=0, float dist=0.0f, bool playerOnly=false, bool withTank=true, int32 aura=0)
Definition UnitAI.cpp:96
SpellCastResult DoCast(uint32 spellId)
Definition UnitAI.cpp:106
Definition Unit.h:769
bool HealthAbovePct(int32 pct) const
Definition Unit.h:919
MotionMaster * GetMotionMaster()
Definition Unit.h:1667
bool IsAlive() const
Definition Unit.h:1234
void SetHealth(uint32 val)
Definition Unit.cpp:9361
uint32 GetHealth() const
Definition Unit.h:913
void SendPlaySpellVisualKit(uint32 id, uint32 type) const
Definition Unit.cpp:12019
void RemoveAurasDueToSpell(uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, uint8 reqEffMask=0, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
Definition Unit.cpp:3784
void SetSpeedRate(UnitMoveType mtype, float rate)
Definition Unit.cpp:8678
bool HasUnitState(const uint32 f) const
Definition Unit.h:876
uint32 CountPctFromMaxHealth(int32 pct) const
Definition Unit.h:922
bool HealthBelowPctDamaged(int32 pct, uint32 damage) const
Definition Unit.h:918
Creature * FindNearestCreatureWithOptions(float range, FindCreatureOptions const &options) const
Definition Object.cpp:2108
SpellCastResult CastSpell(CastSpellTargetArg const &targets, uint32 spellId, CastSpellExtraArgs const &args={ })
Definition Object.cpp:2832
static bool ValidateSpellInfo(std::initializer_list< uint32 > spellIds)
bool OnRemove(Player *player, Item *) override
bool Validate(SpellInfo const *) override
PrepareSpellScript(spell_lady_vashj_remove_tainted_cores_effect)
PrepareSpellScript(spell_lady_vashj_remove_tainted_cores)
bool Validate(SpellInfo const *) override
PrepareSpellScript(spell_lady_vashj_spore_drop_effect)
bool Validate(SpellInfo const *) override
void FilterTargets(std::list< WorldObject * > &targets)
PrepareSpellScript(spell_lady_vashj_summon_wave_e_mob_trigger)
bool Validate(SpellInfo const *) override
PrepareSpellScript(spell_lady_vashj_summon_wave_mob_trigger)
bool Validate(SpellInfo const *) override
void FilterTargets(std::list< WorldObject * > &targets)
void RandomResize(C &container, std::size_t requestedSize)
Definition Containers.h:66
@ DATA_SHIELD_GENERATOR_1
@ DATA_SHIELD_GENERATOR_2
@ DATA_BRIDGE_PART_2
@ DATA_BRIDGE_PART_1
@ DATA_SHIELD_GENERATOR_3
@ DATA_BRIDGE_PART_3
@ DATA_SHIELD_GENERATOR_4
#define RegisterSerpentshrineCavernGameObjectAI(ai_name)
@ BOSS_LADY_VASHJ
#define RegisterSerpentshrineCavernCreatureAI(ai_name)
void ResetThreatList(Unit *who=nullptr)
void KilledUnit(Unit *) override
Milliseconds _summonSporebatStaticTimer
void JustEngagedWith(Unit *who) override
void JustDied(Unit *) override
boss_lady_vashj(Creature *creature)
void DoAction(int32 action) override
void AttackStart(Unit *who) override
void EnterEvadeMode(EvadeReason) override
void UpdateAI(uint32 diff) override
void DamageTaken(Unit *, uint32 &damage, DamageEffectType, SpellInfo const *) override
void OnSpellCast(SpellInfo const *spellInfo) override
void MovementInform(uint32 type, uint32 pointId) override
go_bridge_console(GameObject *go)
bool OnGossipHello(Player *) override
InstanceScript * _instance
go_shield_generator(GameObject *go)
bool OnGossipHello(Player *) override
InstanceScript * _instance
void UpdateAI(uint32 diff) override
npc_enchanted_elemental(Creature *creature)
void UpdateAI(uint32 diff) override
npc_tainted_elemental(Creature *creature)
void JustDied(Unit *) override
void InitializeAI() override
InstanceScript * _instance
void JustAppeared() override
void WaypointPathEnded(uint32, uint32) override
void InitializeAI() override
npc_toxic_sporebat(Creature *creature)
void JustAppeared() override