RequestTargetActionMenu should only target auto attackable targets.
This commit is contained in:
@@ -49,8 +49,11 @@ public class RequestTargetActionMenu implements IClientIncomingPacket
|
||||
for (WorldObject object : World.getInstance().getVisibleObjects(player, WorldObject.class))
|
||||
{
|
||||
if (_objectId == object.getObjectId())
|
||||
{
|
||||
if (object.isAutoAttackable(player))
|
||||
{
|
||||
player.setTarget(object);
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@@ -49,8 +49,11 @@ public class RequestTargetActionMenu implements IClientIncomingPacket
|
||||
for (WorldObject object : World.getInstance().getVisibleObjects(player, WorldObject.class))
|
||||
{
|
||||
if (_objectId == object.getObjectId())
|
||||
{
|
||||
if (object.isAutoAttackable(player))
|
||||
{
|
||||
player.setTarget(object);
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@@ -49,8 +49,11 @@ public class RequestTargetActionMenu implements IClientIncomingPacket
|
||||
for (WorldObject object : World.getInstance().getVisibleObjects(player, WorldObject.class))
|
||||
{
|
||||
if (_objectId == object.getObjectId())
|
||||
{
|
||||
if (object.isAutoAttackable(player))
|
||||
{
|
||||
player.setTarget(object);
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@@ -49,8 +49,11 @@ public class RequestTargetActionMenu implements IClientIncomingPacket
|
||||
for (WorldObject object : World.getInstance().getVisibleObjects(player, WorldObject.class))
|
||||
{
|
||||
if (_objectId == object.getObjectId())
|
||||
{
|
||||
if (object.isAutoAttackable(player))
|
||||
{
|
||||
player.setTarget(object);
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@@ -49,8 +49,11 @@ public class RequestTargetActionMenu implements IClientIncomingPacket
|
||||
for (WorldObject object : World.getInstance().getVisibleObjects(player, WorldObject.class))
|
||||
{
|
||||
if (_objectId == object.getObjectId())
|
||||
{
|
||||
if (object.isAutoAttackable(player))
|
||||
{
|
||||
player.setTarget(object);
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@@ -49,8 +49,11 @@ public class RequestTargetActionMenu implements IClientIncomingPacket
|
||||
for (WorldObject object : World.getInstance().getVisibleObjects(player, WorldObject.class))
|
||||
{
|
||||
if (_objectId == object.getObjectId())
|
||||
{
|
||||
if (object.isAutoAttackable(player))
|
||||
{
|
||||
player.setTarget(object);
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@@ -49,8 +49,11 @@ public class RequestTargetActionMenu implements IClientIncomingPacket
|
||||
for (WorldObject object : World.getInstance().getVisibleObjects(player, WorldObject.class))
|
||||
{
|
||||
if (_objectId == object.getObjectId())
|
||||
{
|
||||
if (object.isAutoAttackable(player))
|
||||
{
|
||||
player.setTarget(object);
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@@ -49,8 +49,11 @@ public class RequestTargetActionMenu implements IClientIncomingPacket
|
||||
for (WorldObject object : World.getInstance().getVisibleObjects(player, WorldObject.class))
|
||||
{
|
||||
if (_objectId == object.getObjectId())
|
||||
{
|
||||
if (object.isAutoAttackable(player))
|
||||
{
|
||||
player.setTarget(object);
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user