mirror of
https://gitcode.com/GitHub_Trending/az/azerothcore-wotlk.git
synced 2026-10-10 07:06:38 +08:00
fix(Scripts/Ulduar): Despawn Salvaged Chopper Tar on FL Defeat (#27327)
This commit is contained in:
@@ -96,6 +96,7 @@ enum GosNpcs
|
||||
NPC_FLAME_LEVIATHAN_TURRET = 33139,
|
||||
NPC_SEAT = 33114,
|
||||
NPC_LIQUID = 33189,
|
||||
NPC_POOL_OF_TAR = 33090,
|
||||
|
||||
// Starting event
|
||||
NPC_BRANN_RADIO = 34054,
|
||||
@@ -624,6 +625,11 @@ void boss_flame_leviathan::JustDied(Unit*)
|
||||
summons.DoAction(ACTION_DESPAWN_ADDS);
|
||||
summons.DespawnAll();
|
||||
|
||||
std::list<Creature*> tarPools;
|
||||
me->GetCreatureListWithEntryInGrid(tarPools, NPC_POOL_OF_TAR, 500.0f);
|
||||
for (Creature* creature : tarPools)
|
||||
creature->DespawnOrUnsummon();
|
||||
|
||||
instance->SetBossState(BOSS_LEVIATHAN, DONE);
|
||||
instance->SetData(DATA_VEHICLE_SPAWN, VEHICLE_POS_NONE);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user