Fixed FriendlyNpcInstance doDie killer NPE.
This commit is contained in:
@@ -94,7 +94,7 @@ public class FriendlyNpcInstance extends L2Attackable
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (killer.isAttackable())
|
if ((killer != null) && killer.isAttackable())
|
||||||
{
|
{
|
||||||
// Delayed notification
|
// Delayed notification
|
||||||
EventDispatcher.getInstance().notifyEventAsync(new OnAttackableKill(null, this, false), this);
|
EventDispatcher.getInstance().notifyEventAsync(new OnAttackableKill(null, this, false), this);
|
||||||
|
@@ -84,7 +84,6 @@ public class L2FortCommanderInstance extends L2DefenderInstance
|
|||||||
if (getFort().getSiege().isInProgress())
|
if (getFort().getSiege().isInProgress())
|
||||||
{
|
{
|
||||||
getFort().getSiege().killedCommander(this);
|
getFort().getSiege().killedCommander(this);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
@@ -94,7 +94,7 @@ public class FriendlyNpcInstance extends L2Attackable
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (killer.isAttackable())
|
if ((killer != null) && killer.isAttackable())
|
||||||
{
|
{
|
||||||
// Delayed notification
|
// Delayed notification
|
||||||
EventDispatcher.getInstance().notifyEventAsync(new OnAttackableKill(null, this, false), this);
|
EventDispatcher.getInstance().notifyEventAsync(new OnAttackableKill(null, this, false), this);
|
||||||
|
@@ -84,7 +84,6 @@ public class L2FortCommanderInstance extends L2DefenderInstance
|
|||||||
if (getFort().getSiege().isInProgress())
|
if (getFort().getSiege().isInProgress())
|
||||||
{
|
{
|
||||||
getFort().getSiege().killedCommander(this);
|
getFort().getSiege().killedCommander(this);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
@@ -94,7 +94,7 @@ public class FriendlyNpcInstance extends L2Attackable
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (killer.isAttackable())
|
if ((killer != null) && killer.isAttackable())
|
||||||
{
|
{
|
||||||
// Delayed notification
|
// Delayed notification
|
||||||
EventDispatcher.getInstance().notifyEventAsync(new OnAttackableKill(null, this, false), this);
|
EventDispatcher.getInstance().notifyEventAsync(new OnAttackableKill(null, this, false), this);
|
||||||
|
@@ -84,7 +84,6 @@ public class L2FortCommanderInstance extends L2DefenderInstance
|
|||||||
if (getFort().getSiege().isInProgress())
|
if (getFort().getSiege().isInProgress())
|
||||||
{
|
{
|
||||||
getFort().getSiege().killedCommander(this);
|
getFort().getSiege().killedCommander(this);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
@@ -94,7 +94,7 @@ public class FriendlyNpcInstance extends L2Attackable
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (killer.isAttackable())
|
if ((killer != null) && killer.isAttackable())
|
||||||
{
|
{
|
||||||
// Delayed notification
|
// Delayed notification
|
||||||
EventDispatcher.getInstance().notifyEventAsync(new OnAttackableKill(null, this, false), this);
|
EventDispatcher.getInstance().notifyEventAsync(new OnAttackableKill(null, this, false), this);
|
||||||
|
@@ -84,7 +84,6 @@ public class L2FortCommanderInstance extends L2DefenderInstance
|
|||||||
if (getFort().getSiege().isInProgress())
|
if (getFort().getSiege().isInProgress())
|
||||||
{
|
{
|
||||||
getFort().getSiege().killedCommander(this);
|
getFort().getSiege().killedCommander(this);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
@@ -94,7 +94,7 @@ public class FriendlyNpcInstance extends L2Attackable
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (killer.isAttackable())
|
if ((killer != null) && killer.isAttackable())
|
||||||
{
|
{
|
||||||
// Delayed notification
|
// Delayed notification
|
||||||
EventDispatcher.getInstance().notifyEventAsync(new OnAttackableKill(null, this, false), this);
|
EventDispatcher.getInstance().notifyEventAsync(new OnAttackableKill(null, this, false), this);
|
||||||
|
@@ -84,7 +84,6 @@ public class L2FortCommanderInstance extends L2DefenderInstance
|
|||||||
if (getFort().getSiege().isInProgress())
|
if (getFort().getSiege().isInProgress())
|
||||||
{
|
{
|
||||||
getFort().getSiege().killedCommander(this);
|
getFort().getSiege().killedCommander(this);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
@@ -94,7 +94,7 @@ public class FriendlyNpcInstance extends L2Attackable
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (killer.isAttackable())
|
if ((killer != null) && killer.isAttackable())
|
||||||
{
|
{
|
||||||
// Delayed notification
|
// Delayed notification
|
||||||
EventDispatcher.getInstance().notifyEventAsync(new OnAttackableKill(null, this, false), this);
|
EventDispatcher.getInstance().notifyEventAsync(new OnAttackableKill(null, this, false), this);
|
||||||
|
@@ -84,7 +84,6 @@ public class L2FortCommanderInstance extends L2DefenderInstance
|
|||||||
if (getFort().getSiege().isInProgress())
|
if (getFort().getSiege().isInProgress())
|
||||||
{
|
{
|
||||||
getFort().getSiege().killedCommander(this);
|
getFort().getSiege().killedCommander(this);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
@@ -90,7 +90,6 @@ public class L2FortCommanderInstance extends L2DefenderInstance
|
|||||||
if (getFort().getSiege().isInProgress())
|
if (getFort().getSiege().isInProgress())
|
||||||
{
|
{
|
||||||
getFort().getSiege().killedCommander(this);
|
getFort().getSiege().killedCommander(this);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
@@ -94,7 +94,7 @@ public class FriendlyNpcInstance extends L2Attackable
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (killer.isAttackable())
|
if ((killer != null) && killer.isAttackable())
|
||||||
{
|
{
|
||||||
// Delayed notification
|
// Delayed notification
|
||||||
EventDispatcher.getInstance().notifyEventAsync(new OnAttackableKill(null, this, false), this);
|
EventDispatcher.getInstance().notifyEventAsync(new OnAttackableKill(null, this, false), this);
|
||||||
|
@@ -84,7 +84,6 @@ public class L2FortCommanderInstance extends L2DefenderInstance
|
|||||||
if (getFort().getSiege().isInProgress())
|
if (getFort().getSiege().isInProgress())
|
||||||
{
|
{
|
||||||
getFort().getSiege().killedCommander(this);
|
getFort().getSiege().killedCommander(this);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
@@ -94,7 +94,7 @@ public class FriendlyNpcInstance extends L2Attackable
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (killer.isAttackable())
|
if ((killer != null) && killer.isAttackable())
|
||||||
{
|
{
|
||||||
// Delayed notification
|
// Delayed notification
|
||||||
EventDispatcher.getInstance().notifyEventAsync(new OnAttackableKill(null, this, false), this);
|
EventDispatcher.getInstance().notifyEventAsync(new OnAttackableKill(null, this, false), this);
|
||||||
|
@@ -84,7 +84,6 @@ public class L2FortCommanderInstance extends L2DefenderInstance
|
|||||||
if (getFort().getSiege().isInProgress())
|
if (getFort().getSiege().isInProgress())
|
||||||
{
|
{
|
||||||
getFort().getSiege().killedCommander(this);
|
getFort().getSiege().killedCommander(this);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
@@ -94,7 +94,7 @@ public class FriendlyNpcInstance extends L2Attackable
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (killer.isAttackable())
|
if ((killer != null) && killer.isAttackable())
|
||||||
{
|
{
|
||||||
// Delayed notification
|
// Delayed notification
|
||||||
EventDispatcher.getInstance().notifyEventAsync(new OnAttackableKill(null, this, false), this);
|
EventDispatcher.getInstance().notifyEventAsync(new OnAttackableKill(null, this, false), this);
|
||||||
|
@@ -84,7 +84,6 @@ public class L2FortCommanderInstance extends L2DefenderInstance
|
|||||||
if (getFort().getSiege().isInProgress())
|
if (getFort().getSiege().isInProgress())
|
||||||
{
|
{
|
||||||
getFort().getSiege().killedCommander(this);
|
getFort().getSiege().killedCommander(this);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
@@ -94,7 +94,7 @@ public class FriendlyNpcInstance extends L2Attackable
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (killer.isAttackable())
|
if ((killer != null) && killer.isAttackable())
|
||||||
{
|
{
|
||||||
// Delayed notification
|
// Delayed notification
|
||||||
EventDispatcher.getInstance().notifyEventAsync(new OnAttackableKill(null, this, false), this);
|
EventDispatcher.getInstance().notifyEventAsync(new OnAttackableKill(null, this, false), this);
|
||||||
|
@@ -84,7 +84,6 @@ public class L2FortCommanderInstance extends L2DefenderInstance
|
|||||||
if (getFort().getSiege().isInProgress())
|
if (getFort().getSiege().isInProgress())
|
||||||
{
|
{
|
||||||
getFort().getSiege().killedCommander(this);
|
getFort().getSiege().killedCommander(this);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
Reference in New Issue
Block a user