Core/Spawning: Actually check spawn group state before processing a respawn. It feels like that is something that should've been noticed at some point.

Also remove CreatureScript::CanSpawn since nobody uses it, and spawn groups do the same thing.

(cherry picked from commit 94b5d9bfa1)
This commit is contained in:
Treeston
2018-02-22 20:31:42 +01:00
committed by funjoker
parent 5e7a11f88d
commit 5c80f50734
7 changed files with 45 additions and 81 deletions

View File

@@ -271,7 +271,7 @@ void InstanceScript::UpdateSpawnGroups()
if (doSpawn)
instance->SpawnGroupSpawn(groupId);
else // otherwise, set it as inactive so it no longer respawns (but don't despawn it)
instance->SetSpawnGroupActive(groupId, false);
instance->SetSpawnGroupInactive(groupId);
}
}