feat: Converts player deletion handling to a generated event (#2029)
This commit is contained in:
parent
059f008b48
commit
2bff1d2cbc
15 changed files with 32 additions and 17 deletions
|
|
@ -1,4 +1,6 @@
|
|||
using System.Collections.Generic;
|
||||
using ModernUO.CodeGeneratedEvents;
|
||||
using Server.Mobiles;
|
||||
|
||||
namespace Server.Spells.Fifth
|
||||
{
|
||||
|
|
@ -132,6 +134,7 @@ namespace Server.Spells.Fifth
|
|||
FinishSequence();
|
||||
}
|
||||
|
||||
[OnEvent(nameof(PlayerMobile.PlayerDeletedEvent))]
|
||||
public static void EndReflect(Mobile m)
|
||||
{
|
||||
if (!_table.Remove(m, out var mods))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue