Core/Maps: fixed spawn groups bypassing spawnMask restrictions when tied to boss encounters
This commit is contained in:
1 parent
aff2bad534
commit
d35af4ef6c
1 file changed
+4
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user