Core/Map: Load the grid of TempSummons owned by Players

Port From (https://github.com/TrinityCore/TrinityCore/commit/e6ac3316b73d68d1ce776e5c740cafd3b7b0bad6)
This commit is contained in:
hondacrx
2022-01-05 20:27:45 -05:00
parent 47cfd6d419
commit 13f73adf73
+4
View File
@@ -1442,6 +1442,10 @@ namespace Game.Maps
return true;
}
Creature c = obj.ToCreature();
if (c != null && c.GetCharmerOrOwnerGUID().IsPlayer())
EnsureGridLoaded(new_cell);
// in diff. loaded grid normal creature
var grid = new GridCoord(new_cell.GetGridX(), new_cell.GetGridY());
if (IsGridLoaded(grid))