RequestTargetActionMenu should only target auto attackable targets.
This commit is contained in:
parent
088abfeb24
commit
362d5852a3
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user