Core/Scripts: dynamic_spawning follow-up, I had forgotten JustRespawned existed.

Port From (https://github.com/TrinityCore/TrinityCore/commit/129dd7c9091d3fafc0f5e10b795224bc9418d006)
This commit is contained in:
hondacrx
2020-08-24 11:26:27 -04:00
parent 1b33551fab
commit 08ef556a36
14 changed files with 26 additions and 28 deletions
+1 -1
View File
@@ -661,7 +661,7 @@ namespace Game.Chat.Commands
Map map = player.GetMap();
uint mapId = map.GetId();
bool showAll = map.IsBattlegroundOrArena() || map.IsDungeon();
handler.SendSysMessage("Listing all spawn points in map %u (%s)%s:", mapId, map.GetMapName(), showAll ? "" : " within 5000yd");
handler.SendSysMessage($"Listing all spawn points in map {mapId} ({map.GetMapName()}){(showAll ? "" : " within 5000yd")}:");
foreach (var pair in Global.ObjectMgr.GetAllCreatureData())
{
+2 -2
View File
@@ -222,8 +222,8 @@ namespace Game.Chat
}
// Attempting creature load from DB data
CreatureData data = Global.ObjectMgr.GetCreatureData(lowguid);
// Attempting creature load from DB data
CreatureData data = Global.ObjectMgr.GetCreatureData(lowguid);
if (data == null)
{
handler.SendSysMessage(CypherStrings.CommandCreatguidnotfound, lowguid);