Core/Map: New Map::ForceRespawn to override objections and force a respawn (equivalent to force = true). Use this to fix various GM commands.
Port From (https://github.com/TrinityCore/TrinityCore/commit/8b7728f82e6e7c326b7945efd719218179e9767a)
This commit is contained in:
@@ -2555,6 +2555,13 @@ namespace Game.Maps
|
||||
_respawnTimes.Remove(info);
|
||||
}
|
||||
|
||||
public void ForceRespawn(SpawnObjectType type, ulong spawnId)
|
||||
{
|
||||
RespawnInfo info = GetRespawnInfo(type, spawnId);
|
||||
if (info != null)
|
||||
Respawn(info, true);
|
||||
}
|
||||
|
||||
public void RemoveRespawnTime(RespawnInfo info, bool doRespawn = false, SQLTransaction dbTrans = null)
|
||||
{
|
||||
PreparedStatement stmt;
|
||||
|
||||
Reference in New Issue
Block a user