Skip to content

Commit 283f03b

Browse files
authored
fix(Scripts/HoL): Killing Volkhan should despawn all Slags (#23581)
1 parent 57daeed commit 283f03b

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

src/server/scripts/Northrend/Ulduar/HallsOfLightning/boss_volkhan.cpp

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ enum VolkhanOther
4141
NPC_VOLKHAN_ANVIL = 28823,
4242
NPC_MOLTEN_GOLEM = 28695,
4343
NPC_BRITTLE_GOLEM = 28681,
44+
NPC_SLAG = 28585,
4445

4546
// Misc
4647
ACTION_SHATTER = 1,
@@ -77,7 +78,7 @@ enum Yells
7778

7879
struct boss_volkhan : public BossAI
7980
{
80-
boss_volkhan(Creature* creature) : BossAI(creature, DATA_VOLKHAN), summons(creature) { }
81+
boss_volkhan(Creature* creature) : BossAI(creature, DATA_VOLKHAN) { }
8182

8283
void Reset() override
8384
{
@@ -104,6 +105,18 @@ struct boss_volkhan : public BossAI
104105
{
105106
_JustDied();
106107
Talk(SAY_DEATH);
108+
109+
std::list<Creature*> slags;
110+
GetCreatureListWithEntryInGrid(slags, me, NPC_SLAG, 100.0f);
111+
112+
if (!slags.empty())
113+
{
114+
for (Creature* slag : slags)
115+
{
116+
if (slag)
117+
slag->DespawnOrUnsummon();
118+
}
119+
}
107120
}
108121

109122
void GetNextPos()
@@ -286,8 +299,6 @@ struct boss_volkhan : public BossAI
286299
}
287300

288301
private:
289-
EventMap events;
290-
SummonList summons;
291302
float x, y, z;
292303
uint8 PointID;
293304
uint8 ShatteredCount;

0 commit comments

Comments
 (0)