Misc fixes

This commit is contained in:
hondacrx
2021-06-23 15:09:41 -04:00
parent 7a8b37421b
commit 44cfe32b50
3 changed files with 10 additions and 5 deletions
+2 -4
View File
@@ -58,12 +58,12 @@ namespace Game.Chat
}
Player player = handler.GetSession().GetPlayer();
if (!player.GetMap().SpawnGroupDespawn(groupId, deleteRespawnTimes))
if (!player.GetMap().SpawnGroupDespawn(groupId, deleteRespawnTimes, out int despawnedCount))
{
handler.SendSysMessage(CypherStrings.SpawngroupBadgroup, groupId);
return false;
}
handler.SendSysMessage($"Despawned a total of {despawnedCount} objects.");
return true;
}
@@ -454,8 +454,6 @@ namespace Game.Chat
}
handler.SendSysMessage(CypherStrings.SpawngroupSpawncount, creatureList.Count);
foreach (WorldObject obj in creatureList)
handler.SendSysMessage($"{obj.GetName()} ({obj.GetGUID()})");
return true;
}