Core/OutdoorPvP: Move remaining outdoorpvp spawns to db

Port From (https://github.com/TrinityCore/TrinityCore/commit/195341c807fa98e76608fb9449979f6be8b5362e)
This commit is contained in:
hondacrx
2022-07-19 11:47:09 -04:00
parent 9961b71f17
commit 2f1b3dae37
3 changed files with 59 additions and 31 deletions
+1 -1
View File
@@ -2969,7 +2969,7 @@ namespace Game.Maps
if (shouldBeActive)
SpawnGroupSpawn(spawnGroupId);
else if (GetSpawnGroupData(spawnGroupId).flags.HasFlag(SpawnGroupFlags.DespawnOnConditionFailure))
SpawnGroupDespawn(spawnGroupId);
SpawnGroupDespawn(spawnGroupId, true);
else
SetSpawnGroupInactive(spawnGroupId);
}