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
|
|
@ -255,6 +255,7 @@ public class AnimalForm : NinjaSpell
|
|||
}
|
||||
}
|
||||
|
||||
[OnEvent(nameof(PlayerMobile.PlayerDeletedEvent))]
|
||||
[OnEvent(nameof(PlayerMobile.PlayerDeathEvent))]
|
||||
public static void RemoveContext(Mobile m)
|
||||
{
|
||||
|
|
@ -303,6 +304,7 @@ public class AnimalForm : NinjaSpell
|
|||
|
||||
public static bool UnderTransformation(Mobile m, Type type) => GetContext(m)?.Type == type;
|
||||
|
||||
[OnEvent(nameof(PlayerMobile.PlayerDeletedEvent))]
|
||||
public static void RemoveLastAnimalForm(Mobile m) => _table.Remove(m);
|
||||
|
||||
public class AnimalFormEntry
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue