mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-17 03:08:26 +00:00
Move player corpses on instance shutdown
Moves corpses to graveyard when an expired instance shuts down. Zones without a graveyard move them to non-instance version instead. Fixes player corpses being left inside instances that expire before graveyards process or in instances without a graveyard
This commit is contained in:
+4
-1
@@ -1497,7 +1497,10 @@ bool Zone::Process() {
|
||||
{
|
||||
expedition->RemoveAllMembers(false); // entity list will teleport clients out immediately
|
||||
}
|
||||
// todo: move corpses to non-instanced version of dz at same coords (if no graveyard)
|
||||
|
||||
// instance shutting down, move corpses to graveyard or non-instanced zone at same coords
|
||||
entity_list.MovePlayerCorpsesToGraveyard(true);
|
||||
|
||||
entity_list.GateAllClientsToSafeReturn();
|
||||
database.DeleteInstance(GetInstanceID());
|
||||
Instance_Shutdown_Timer = new Timer(20000); //20 seconds
|
||||
|
||||
Reference in New Issue
Block a user