mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 09:44:45 +01:00
Core/Maps: corrected spawn mask check when spawning spawn groups
closes #209
This commit is contained in:
@@ -3475,7 +3475,7 @@ 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()))
|
||||
if (!(data->spawnMask & (1 << GetSpawnMode())))
|
||||
continue;
|
||||
|
||||
// don't spawn if the grid isn't loaded (will be handled in grid loader)
|
||||
|
||||
Reference in New Issue
Block a user