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