Core/OutdoorPvP: Refactor OutdoorPvP creation to be linked to host map creation instead of having globally accessible objects
This commit is contained in:
1 parent
51363865bc
commit
2a39dece9e
18 files changed
+92
-136
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user