Core/OutdoorPvP: Refactor OutdoorPvP creation to be linked to host map creation instead of having globally accessible objects

This commit is contained in:
Shauren authored and Ovahlord committed 2022-12-26 12:33:45 +01:00
1 parent 51363865bc
commit 2a39dece9e
18 files changed
+92 -136

No files matched your search

+1 -1
View File
@@ -2154,7 +2154,7 @@ ZoneScript* WorldObject::FindZoneScript() const
if (Battlefield* bf = sBattlefieldMgr->GetBattlefieldToZoneId(GetZoneId()))
return bf;
else
return sOutdoorPvPMgr->GetZoneScript(GetZoneId());
return sOutdoorPvPMgr->GetOutdoorPvPToZoneId(map, GetZoneId());
}
}
return nullptr;