Core/Map: Load the grid of TempSummons owned by Players
Port From (https://github.com/TrinityCore/TrinityCore/commit/e6ac3316b73d68d1ce776e5c740cafd3b7b0bad6)
This commit is contained in:
@@ -1442,6 +1442,10 @@ namespace Game.Maps
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Creature c = obj.ToCreature();
|
||||||
|
if (c != null && c.GetCharmerOrOwnerGUID().IsPlayer())
|
||||||
|
EnsureGridLoaded(new_cell);
|
||||||
|
|
||||||
// in diff. loaded grid normal creature
|
// in diff. loaded grid normal creature
|
||||||
var grid = new GridCoord(new_cell.GetGridX(), new_cell.GetGridY());
|
var grid = new GridCoord(new_cell.GetGridX(), new_cell.GetGridY());
|
||||||
if (IsGridLoaded(grid))
|
if (IsGridLoaded(grid))
|
||||||
|
|||||||
Reference in New Issue
Block a user