Fixed FriendlyNpcInstance doDie killer NPE.

This commit is contained in:
MobiusDev
2019-01-19 22:43:29 +00:00
parent 11405bf351
commit 6a0e2121db
21 changed files with 10 additions and 21 deletions

View File

@@ -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);

View File

@@ -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;

View File

@@ -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);

View File

@@ -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;

View File

@@ -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);

View File

@@ -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;

View File

@@ -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);

View File

@@ -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;

View File

@@ -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);

View File

@@ -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;

View File

@@ -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);

View File

@@ -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;

View File

@@ -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;

View File

@@ -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);

View File

@@ -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;

View File

@@ -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);

View File

@@ -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;

View File

@@ -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);

View File

@@ -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;

View File

@@ -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);

View File

@@ -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;