DB/Shattered Halls: Migrate linked_respawn to spawn groups

(cherry picked from commit f982e566a7)
This commit is contained in:
Shauren
2022-09-20 16:24:31 +02:00
parent 224d764ded
commit b596cf2452
3 changed files with 39 additions and 5 deletions

View File

@@ -135,6 +135,12 @@ class instance_shattered_halls : public InstanceMapScript
}
}
void OnUnitDeath(Unit* unit) override
{
if (unit->GetEntry() == NPC_BLOOD_GUARD_PORUNG)
SetBossState(DATA_PORUNG, DONE);
}
bool SetBossState(uint32 type, EncounterState state) override
{
if (!InstanceScript::SetBossState(type, state))

View File

@@ -30,13 +30,14 @@ uint32 const VictimCount = 3;
enum SHDataTypes
{
DATA_NETHEKURSE = 0,
DATA_OMROGG = 1,
DATA_KARGATH = 2,
DATA_PORUNG = 1,
DATA_OMROGG = 2,
DATA_KARGATH = 3,
DATA_SHATTERED_EXECUTIONER = 3,
DATA_PRISONERS_EXECUTED = 4,
DATA_SHATTERED_EXECUTIONER = 4,
DATA_PRISONERS_EXECUTED = 5,
DATA_TEAM_IN_INSTANCE = 5,
DATA_TEAM_IN_INSTANCE = 6,
DATA_FIRST_PRISONER,
DATA_SECOND_PRISONER,
@@ -46,6 +47,7 @@ enum SHDataTypes
enum SHCreatureIds
{
NPC_GRAND_WARLOCK_NETHEKURSE = 16807,
NPC_BLOOD_GUARD_PORUNG = 20923,
NPC_KARGATH_BLADEFIST = 16808,
NPC_SHATTERED_EXECUTIONER = 17301,