22 lines
509 B
C#
22 lines
509 B
C#
using ModernUO.CodeGeneratedEvents;
|
|
using Server.Custom.ExileHunterBestiary.Hooks;
|
|
using Server.Mobiles;
|
|
|
|
namespace Server.Custom.ExileHunterBestiary;
|
|
|
|
public static class HunterCreatureDeathEvent
|
|
{
|
|
[OnEvent(nameof(CreatureEvents.CreatureDeathEvent))]
|
|
public static void OnCreatureDeath(BaseCreature creature)
|
|
{
|
|
if (creature == null)
|
|
{
|
|
return;
|
|
}
|
|
|
|
HunterDeathHook.OnCreatureDeath(
|
|
creature,
|
|
creature.LastKiller
|
|
);
|
|
}
|
|
}
|