Dead monsters should not target.

Contributed by Liamxroy.
This commit is contained in:
MobiusDev
2017-09-27 00:09:29 +00:00
parent daa2a71a01
commit b3d4fcf3d3
4 changed files with 20 additions and 0 deletions

View File

@@ -1747,6 +1747,11 @@ public class L2Attackable extends L2Npc
@Override
public void setTarget(L2Object object)
{
if (isDead())
{
return;
}
if (object == null)
{
final L2Object target = getTarget();

View File

@@ -1693,6 +1693,11 @@ public class L2Attackable extends L2Npc
@Override
public void setTarget(L2Object object)
{
if (isDead())
{
return;
}
if (object == null)
{
final L2Object target = getTarget();

View File

@@ -1693,6 +1693,11 @@ public class L2Attackable extends L2Npc
@Override
public void setTarget(L2Object object)
{
if (isDead())
{
return;
}
if (object == null)
{
final L2Object target = getTarget();

View File

@@ -1693,6 +1693,11 @@ public class L2Attackable extends L2Npc
@Override
public void setTarget(L2Object object)
{
if (isDead())
{
return;
}
if (object == null)
{
final L2Object target = getTarget();