Core/Maps: fixed spawn groups bypassing spawnMask restrictions when tied to boss encounters

This commit is contained in:
Ovahlord committed 2020-11-25 10:14:17 +01:00
1 parent aff2bad534
commit d35af4ef6c
1 file changed
+4
+4
View File
@@ -3474,6 +3474,10 @@ bool Map::SpawnGroupSpawn(uint32 groupId, bool ignoreRespawn, bool force, std::v
for (SpawnData const* data : toSpawn)
{
// don't spawn if the current map difficulty is not used by the spawn
if (!(data->spawnMask & GetSpawnMode()))
continue;
// don't spawn if the grid isn't loaded (will be handled in grid loader)
if (!IsGridLoaded(data->spawnPoint))
continue;