OnAttackableKill should trigger when killer is a player symbol or trap.
Contributed by Sahar.
This commit is contained in:
@@ -316,7 +316,7 @@ public class Attackable extends Npc
|
||||
return false;
|
||||
}
|
||||
|
||||
if ((killer != null) && killer.isPlayable())
|
||||
if ((killer != null) && (killer.getActingPlayer() != null))
|
||||
{
|
||||
// Delayed notification
|
||||
EventDispatcher.getInstance().notifyEventAsyncDelayed(new OnAttackableKill(killer.getActingPlayer(), this, killer.isSummon()), this, _onKillDelay);
|
||||
@@ -337,6 +337,7 @@ public class Attackable extends Npc
|
||||
mob.getMinionList().onMasterDie(false);
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user