Dead monsters should not target.
Contributed by Liamxroy.
This commit is contained in:
@@ -1747,6 +1747,11 @@ public class L2Attackable extends L2Npc
|
|||||||
@Override
|
@Override
|
||||||
public void setTarget(L2Object object)
|
public void setTarget(L2Object object)
|
||||||
{
|
{
|
||||||
|
if (isDead())
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (object == null)
|
if (object == null)
|
||||||
{
|
{
|
||||||
final L2Object target = getTarget();
|
final L2Object target = getTarget();
|
||||||
|
@@ -1693,6 +1693,11 @@ public class L2Attackable extends L2Npc
|
|||||||
@Override
|
@Override
|
||||||
public void setTarget(L2Object object)
|
public void setTarget(L2Object object)
|
||||||
{
|
{
|
||||||
|
if (isDead())
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (object == null)
|
if (object == null)
|
||||||
{
|
{
|
||||||
final L2Object target = getTarget();
|
final L2Object target = getTarget();
|
||||||
|
@@ -1693,6 +1693,11 @@ public class L2Attackable extends L2Npc
|
|||||||
@Override
|
@Override
|
||||||
public void setTarget(L2Object object)
|
public void setTarget(L2Object object)
|
||||||
{
|
{
|
||||||
|
if (isDead())
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (object == null)
|
if (object == null)
|
||||||
{
|
{
|
||||||
final L2Object target = getTarget();
|
final L2Object target = getTarget();
|
||||||
|
@@ -1693,6 +1693,11 @@ public class L2Attackable extends L2Npc
|
|||||||
@Override
|
@Override
|
||||||
public void setTarget(L2Object object)
|
public void setTarget(L2Object object)
|
||||||
{
|
{
|
||||||
|
if (isDead())
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (object == null)
|
if (object == null)
|
||||||
{
|
{
|
||||||
final L2Object target = getTarget();
|
final L2Object target = getTarget();
|
||||||
|
Reference in New Issue
Block a user