Core/Battlefields: Refactor Battlefield creation to be linked to host map creation instead of having globally accessible objects
This commit is contained in:
1 parent
28ad85c160
commit
265c2fa508
22 files changed
+253
-192
No files matched your search
@@ -4559,7 +4559,7 @@ void Player::RepopAtGraveyard()
|
||||
ClosestGrave = bg->GetClosestGraveyard(this);
|
||||
else
|
||||
{
|
||||
if (Battlefield* bf = sBattlefieldMgr->GetBattlefieldToZoneId(GetZoneId()))
|
||||
if (Battlefield* bf = sBattlefieldMgr->GetBattlefieldToZoneId(GetMap(), GetZoneId()))
|
||||
ClosestGrave = bf->GetClosestGraveyard(this);
|
||||
else
|
||||
ClosestGrave = sObjectMgr->GetClosestGraveyard(*this, GetTeam(), this);
|
||||
|
||||
Reference in new issue
Block a user