Core/Spawns: prevent spawn groups from bypassing spawnMask restrictions

Port From (https://github.com/TrinityCore/TrinityCore/commit/21177487ea9476cb4db3f498353c340181d87e14)
This commit is contained in:
hondacrx
2022-05-29 16:06:09 -04:00
parent 1d2cdb0497
commit df7218cae5
+4
View File
@@ -2794,6 +2794,10 @@ namespace Game.Maps
foreach (SpawnData data in toSpawn)
{
// don't spawn if the current map difficulty is not used by the spawn
if (!data.SpawnDifficulties.Contains(GetDifficultyID()))
continue;
// don't spawn if the grid isn't loaded (will be handled in grid loader)
if (!IsGridLoaded(data.SpawnPoint))
continue;