OnAttackableKill should trigger when killer is a player symbol or trap.

Contributed by Sahar.
This commit is contained in:
MobiusDevelopment
2019-12-25 11:53:23 +00:00
parent d36521724d
commit 2f8f708fd1
17 changed files with 19 additions and 17 deletions

View File

@ -297,7 +297,7 @@ public class Attackable extends Npc
return false;
}
if ((killer != null) && killer.isPlayable())
if ((killer != null) && (killer.getActingPlayer() != null))
{
// Delayed notification
EventDispatcher.getInstance().notifyEventAsync(new OnAttackableKill(killer.getActingPlayer(), this, killer.isSummon()), this);