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 */
27
28#include "ScriptMgr.h"
29#include "Containers.h"
30#include "GameObject.h"
31#include "GameObjectAI.h"
32#include "InstanceScript.h"
33#include "MotionMaster.h"
34#include "ObjectMgr.h"
35#include "Player.h"
36#include "ScriptedCreature.h"
37#include "serpent_shrine.h"
38#include "SpellInfo.h"
39#include "SpellScript.h"
40
51
53{
54 // Phase 1 & 3
55 SPELL_SHOOT = 38295,
60
61 // Transition
64
65 // Phase 2
67
72
76
77 // Phase 3
79
80 // World Trigger (Tiny)
82
83 // Enchanted Elemental
84 SPELL_SURGE = 38044,
85
86 // Tainted Elemental
88
89 // Toxic Sporebat
91
92 // Scripts
97
102
106
108
110
111 // Misc
115
141
149
160
170
178
179Position const CenterPos = { 29.8326f, -923.274f, 42.901886f, 0.0f };
180
188
189// 21212 - Lady Vashj
190struct boss_lady_vashj : public BossAI
191{
195
210
211 void AttackStart(Unit* who) override
212 {
214 }
215
216 void DamageTaken(Unit* /*attacker*/, uint32& damage, DamageEffectType /*damageType*/, SpellInfo const* /*spellInfo = nullptr*/) override
217 {
219 {
222 }
223 }
224
225 void MovementInform(uint32 type, uint32 pointId) override
226 {
227 if (type == POINT_MOTION_TYPE && pointId == POINT_CENTER)
229 }
230
232 {
233 std::vector<Creature*> spawns;
234
241
242 for (Creature* spawn : spawns)
243 spawn->DespawnOrUnsummon();
244 }
245
247 {
248 if (Creature* trigger = me->FindNearestCreatureWithOptions(100.0f, { .StringId = "LadyVashjTriggerWaveA1" }))
249 trigger->RemoveAurasDueToSpell(SPELL_WAVE_A_1_PERIODIC);
250
251 if (Creature* trigger = me->FindNearestCreatureWithOptions(100.0f, { .StringId = "LadyVashjTriggerWaveA2" }))
252 trigger->RemoveAurasDueToSpell(SPELL_WAVE_A_2_PERIODIC);
253
254 if (Creature* trigger = me->FindNearestCreatureWithOptions(100.0f, { .StringId = "LadyVashjTriggerWaveA3" }))
255 trigger->RemoveAurasDueToSpell(SPELL_WAVE_A_3_PERIODIC);
256
257 if (Creature* trigger = me->FindNearestCreatureWithOptions(100.0f, { .StringId = "LadyVashjTriggerWaveA4" }))
258 trigger->RemoveAurasDueToSpell(SPELL_WAVE_A_4_PERIODIC);
259 }
260
261 void EnterEvadeMode(EvadeReason /*why*/) override
262 {
263 for (uint32 data : ShieldGeneratorData)
264 if (GameObject* generator = instance->GetGameObject(data))
265 generator->ActivateObject(GameObjectActions::MakeInert, 0);
266
269
271 }
272
273 void OnSpellCast(SpellInfo const* spellInfo) override
274 {
275 switch (spellInfo->Id)
276 {
277 case SPELL_SHOOT:
278 if (roll_chance(10))
280 break;
281 case SPELL_MULTI_SHOT:
282 if (roll_chance(50))
284 break;
285 default:
286 break;
287 }
288 }
289
290 void DoAction(int32 action) override
291 {
292 if (!me->IsAlive())
293 return;
294
295 switch (action)
296 {
299 {
301 _introIsTriggered = true;
302 }
303 break;
307 break;
311 break;
313 {
315
316 if (me->HealthAbovePct(5))
318 else
319 me->SetHealth(1);
320
322
324 {
327
329
331
333
335
340
347 }
348 break;
349 }
350 default:
351 break;
352 }
353 }
354
355 void KilledUnit(Unit* /*victim*/) override
356 {
357 Talk(SAY_SLAY);
358 }
359
360 void JustDied(Unit* /*killer*/) override
361 {
365 _JustDied();
366 }
367
368 void UpdateAI(uint32 diff) override
369 {
370 if (!UpdateVictim())
371 {
372 events.Update(diff);
373
374 while (uint32 eventId = events.ExecuteEvent())
375 {
376 switch (eventId)
377 {
378 case EVENT_INTRO:
380 break;
381 default:
382 break;
383 }
384 }
385 return;
386 }
387
388 events.Update(diff);
389
391 return;
392
393 while (uint32 eventId = events.ExecuteEvent())
394 {
395 switch (eventId)
396 {
397 // Phase 1 & 3
398 case EVENT_SHOOT:
400 events.Repeat(2s, 4s);
401 break;
402 case EVENT_MULTI_SHOT:
404 DoCast(target, SPELL_MULTI_SHOT);
405 events.Repeat(10s, 20s);
406 break;
408 if (Unit* target = SelectTarget(SelectTargetMethod::Random, 0, 100.0f, true, true, -SPELL_STATIC_CHARGE))
410 events.Repeat(5s, 25s);
411 break;
412 case EVENT_ENTANGLE:
414 events.Repeat(15s, 35s);
415 break;
418 events.Repeat(10s, 30s);
419 break;
420
421 // Transition
424
430
433 break;
435 {
438
440
441 std::vector<Creature*> triggers;
443 for (Creature* trigger : triggers)
444 trigger->CastSpell(trigger, SPELL_MAGIC_BARRIER);
445
446 if (Creature* trigger = me->FindNearestCreatureWithOptions(100.0f, { .StringId = "LadyVashjTriggerWaveA1" }))
447 trigger->CastSpell(trigger, SPELL_WAVE_A_1_PERIODIC);
448
449 if (Creature* trigger = me->FindNearestCreatureWithOptions(100.0f, { .StringId = "LadyVashjTriggerWaveA2" }))
450 trigger->CastSpell(trigger, SPELL_WAVE_A_2_PERIODIC);
451
452 if (Creature* trigger = me->FindNearestCreatureWithOptions(100.0f, { .StringId = "LadyVashjTriggerWaveA3" }))
453 trigger->CastSpell(trigger, SPELL_WAVE_A_3_PERIODIC);
454
455 if (Creature* trigger = me->FindNearestCreatureWithOptions(100.0f, { .StringId = "LadyVashjTriggerWaveA4" }))
456 trigger->CastSpell(trigger, SPELL_WAVE_A_4_PERIODIC);
457
458 for (uint32 data : ShieldGeneratorData)
459 if (GameObject* generator = instance->GetGameObject(data))
460 generator->ActivateObject(GameObjectActions::MakeActive, 0);
461
463
468 break;
469 }
470
471 // Phase 2
475 events.Repeat(2s, 10s);
476 break;
479 break;
482 events.Repeat(40s, 50s);
483 break;
486 events.Repeat(60s, 65s);
487 break;
488
489 // Phase 3
492
493 if (_summonSporebatStaticTimer > 5000ms)
495 else
497
499 break;
500 default:
501 break;
502 }
503
505 return;
506 }
507 }
508
509private:
515};
516
517// 21958 - Enchanted Elemental
519{
520 npc_enchanted_elemental(Creature* creature) : ScriptedAI(creature), _instance(creature->GetInstanceScript()) { }
521
522 void InitializeAI() override
523 {
525 me->SetCorpseDelay(4, true);
527 }
528
529 void JustAppeared() override
530 {
532 me->SetSpeedRate(MOVE_RUN, 0.5f);
533
536 me->GetMotionMaster()->MoveFollow(vashj, 5.0f, 0.0f);
537
538 _scheduler.Schedule(1s, [this](TaskContext& task)
539 {
541 {
543 if (me->IsWithinDistInMap(vashj, 6.0f))
544 DoCastSelf(SPELL_SURGE);
545 }
546 task.Repeat();
547 });
548 }
549
550 void Reset() override
551 {
553 }
554
555 void UpdateAI(uint32 diff) override
556 {
557 UpdateVictim();
558
559 _scheduler.Update(diff);
560 }
561
562private:
565};
566
567// 22009 - Tainted Elemental
569{
570 npc_tainted_elemental(Creature* creature) : ScriptedAI(creature), _instance(creature->GetInstanceScript()) { }
571
572 void InitializeAI() override
573 {
576 }
577
578 void JustAppeared() override
579 {
581
583 .SetValidator([this]
584 {
586 })
587 .Schedule(0s, [this](TaskContext& task)
588 {
590 DoCast(target, SPELL_POISON_BOLT);
591 task.Repeat(2s);
592 })
593 .Schedule(15s, 20s, [this](TaskContext const& /*task*/)
594 {
596 vashj->AI()->DoAction(ACTION_TAINTED_ELEMENTAL_DESPAWNED);
597
599 });
600 }
601
602 void Reset() override
603 {
605 }
606
607 void JustDied(Unit* /*killer*/) override
608 {
610 vashj->AI()->DoAction(ACTION_TAINTED_ELEMENTAL_DIES);
611 }
612
613 void UpdateAI(uint32 diff) override
614 {
615 UpdateVictim();
616
617 _scheduler.Update(diff);
618 }
619
620private:
623};
624
625// 22140 - Toxic Sporebat
627{
628 npc_toxic_sporebat(Creature* creature) : ScriptedAI(creature) { }
629
630 void InitializeAI() override
631 {
634 }
635
636 void JustAppeared() override
637 {
639
640 switch (*me->m_unitData->CreatedBySpell)
641 {
644 break;
647 break;
650 break;
651 default:
652 break;
653 }
654 }
655
660};
661
662// 184568 - Lady Vashj Bridge Console
664{
665 go_bridge_console(GameObject* go) : GameObjectAI(go), _instance(go->GetInstanceScript()) { }
666
667 bool OnGossipHello(Player* /*player*/) override
668 {
671
674
677
679 vashj->AI()->DoAction(ACTION_INTRO_EVENT_TRIGGERED);
680
681 return false;
682 }
683
684private:
686};
687
688// 185051, 185052, 185053, 185054 - Shield Generator
690{
691 go_shield_generator(GameObject* go) : GameObjectAI(go), _instance(go->GetInstanceScript()) { }
692
693 bool OnGossipHello(Player* /*player*/) override
694 {
696 trigger->InterruptNonMeleeSpells(false);
697
699 vashj->AI()->DoAction(ACTION_SHIELD_GENERATOR_DEACTIVATED);
700
702
703 return false;
704 }
705
706private:
708};
709
710/* 38017 - Wave A - 1
711 38037 - Wave A - 2
712 38038 - Wave A - 3
713 38039 - Wave A - 4
714 38248 - Summon Wave B Mob Trigger
715 38241 - Summon Wave C Mob Trigger
716 38140 - Summon Wave D Mob Trigger */
718{
719 bool Validate(SpellInfo const* /*spellInfo*/) override
720 {
721 return ValidateSpellInfo(
722 {
727 });
728 }
729
730 void FilterTargets(std::list<WorldObject*>& targets)
731 {
733 }
734
758
764};
765
766// 38494 - Summon Wave E Mob
789
790// 38573 - Spore Drop Effect
814
815// 39495 - Remove Tainted Cores
833
834// 39496 - Remove Tainted Cores
836{
837 bool Validate(SpellInfo const* /*spellInfo*/) override
838 {
839 return sObjectMgr->GetItemTemplate(ITEM_TAINTED_CORE);
840 }
841
842 void HandleDummy(SpellEffIndex /*effIndex*/)
843 {
844 if (Player* caster = GetCaster()->ToPlayer())
845 caster->DestroyItemCount(ITEM_TAINTED_CORE, 1, true);
846 }
847
852};
853
855{
856public:
857 item_tainted_core() : ItemScript("item_tainted_core") { }
858
859 bool OnRemove(Player* player, Item* /*item*/) override
860 {
862 return false;
863 }
864};
865
First const & RAND(First const &first, Second const &second, Rest const &... rest)
uint8_t uint8
Definition Define.h:156
int32_t int32
Definition Define.h:150
uint32_t uint32
Definition Define.h:154
std::chrono::milliseconds Milliseconds
Milliseconds shorthand typedef.
Definition Duration.h:24
@ POINT_MOTION_TYPE
#define sObjectMgr
Definition ObjectMgr.h:1873
bool roll_chance(float chance, PseudoRandomDistributionState &state)
Definition Random.cpp:131
#define RegisterSpellScript(spell_script)
Definition ScriptMgr.h:1383
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)
EvadeReason
@ MOVE_RUN
@ REACT_PASSIVE
@ REACT_AGGRESSIVE
DamageEffectType
@ UNIT_STATE_CASTING
Definition Unit.h:290
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()
Definition CreatureAI.h:169
bool UpdateVictim()
Creature *const me
Definition CreatureAI.h:63
void SetReactState(ReactStates st)
Definition Creature.h:180
void DespawnOrUnsummon(Milliseconds timeToDespawn=0s, Seconds forceRespawnTime=0s)
void SetCorpseDelay(uint32 delay, bool ignoreCorpseDecayRatio=false)
Definition Creature.h:118
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
GameObject *const me
void ActivateObject(GameObjectActions action, int32 param, 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:185
void MoveFollow(Unit *target, float dist, Optional< ChaseAngle > angle={}, Optional< Milliseconds > duration={}, bool ignoreTargetWalk=false, MovementSlot slot=MOTION_SLOT_ACTIVE, Scripting::v2::ActionResultSetter< MovementStopReason > &&scriptResult={})
void MovePoint(uint32 id, Position const &pos, bool generatePath=true, Optional< float > finalOrient={}, Optional< float > speed={}, MovementWalkRunSpeedSelectionMode speedSelectionMode=MovementWalkRunSpeedSelectionMode::Default, Optional< float > closeEnoughDistance={}, Optional< MovementFadeObject > fadeObject={}, Scripting::v2::ActionResultSetter< MovementStopReason > &&scriptResult={})
void MovePath(uint32 pathId, bool repeatable, Optional< Milliseconds > duration={}, Optional< float > speed={}, MovementWalkRunSpeedSelectionMode speedSelectionMode=MovementWalkRunSpeedSelectionMode::Default, Optional< std::pair< Milliseconds, Milliseconds > > waitTimeRangeAtPathEnd={}, Optional< float > wanderDistanceAtPathEnds={}, Optional< bool > followPathBackwardsFromEndToStart={}, Optional< bool > exactSplinePath={}, bool generatePath=true, Optional< MovementFadeObject > fadeObject={}, Scripting::v2::ActionResultSetter< MovementStopReason > &&scriptResult={})
static ObjectGuid const Empty
Definition ObjectGuid.h:314
uint32 const Id
Definition SpellInfo.h:328
static bool ValidateSpellInfo(std::initializer_list< uint32 > spellIds)
Unit * GetCaster() const
HookList< EffectHandler > OnEffectHit
Unit * GetHitUnit() const
HookList< EffectHandler > OnEffectHitTarget
SpellInfo const * GetSpellInfo() const
HookList< ObjectAreaTargetSelectHandler > OnObjectAreaTargetSelect
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 AttackStartCaster(Unit *victim, float dist)
Definition UnitAI.cpp:47
SpellCastResult DoCastSelf(uint32 spellId, CastSpellExtraArgs const &args={})
Definition UnitAI.h:160
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 SetHealth(uint64 val)
Definition Unit.cpp:10041
uint64 CountPctFromMaxHealth(float pct) const
Definition Unit.h:809
MotionMaster * GetMotionMaster()
Definition Unit.h:1750
bool IsAlive() const
Definition Unit.h:1205
uint64 GetHealth() const
Definition Unit.h:800
bool HealthBelowPctDamaged(float pct, uint32 damage) const
Definition Unit.h:805
UF::UpdateField< UF::UnitData, int32(WowCS::EntityFragment::CGObject), TYPEID_UNIT > m_unitData
Definition Unit.h:1897
void SetSpeedRate(UnitMoveType mtype, float rate)
Definition Unit.cpp:8961
bool HealthAbovePct(float pct) const
Definition Unit.h:806
bool HasUnitState(const uint32 f) const
Definition Unit.h:755
void SendPlaySpellVisualKit(uint32 id, uint32 type, uint32 duration) const
Definition Unit.cpp:12437
void RemoveAurasDueToSpell(uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, uint32 reqEffMask=0, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
Definition Unit.cpp:3992
Creature * FindNearestCreatureWithOptions(float range, FindCreatureOptions const &options) const
Definition Object.cpp:1531
SpellCastResult CastSpell(CastSpellTargetArg const &targets, uint32 spellId, CastSpellExtraArgs const &args={ })
Definition Object.cpp:2222
bool OnRemove(Player *player, Item *) override
bool Validate(SpellInfo const *) override
bool Validate(SpellInfo const *) override
bool Validate(SpellInfo const *) override
void FilterTargets(std::list< WorldObject * > &targets)
bool Validate(SpellInfo const *) override
bool Validate(SpellInfo const *) override
void FilterTargets(std::list< WorldObject * > &targets)
void RandomResize(C &container, std::size_t requestedSize)
Definition Containers.h:67
@ 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