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