Scripts/Commands: .npc delete and .gobj delete now work while the specified guid is despawned.

Port From (https://github.com/TrinityCore/TrinityCore/commit/2924ae08038314e3c935a132cc56a4135d9f103c)
This commit is contained in:
hondacrx
2020-08-24 19:09:32 -04:00
parent 679dbcfb67
commit a27c86a385
2 changed files with 7 additions and 1 deletions
+3
View File
@@ -879,6 +879,9 @@ namespace Game.Chat
if (!ulong.TryParse(cId, out ulong guidLow) || guidLow == 0)
return false;
// force respawn to make sure we find something
handler.GetSession().GetPlayer().GetMap().RemoveRespawnTime(SpawnObjectType.Creature, guidLow, true);
// then try to find it
creature = handler.GetCreatureFromPlayerMapByDbGuid(guidLow);
}
else