public void onAction(L2Player player, boolean shift)
{
if(this != player.getTarget())
{
player.setTarget(this);
player.sendPacket(new MyTargetSelected(getObjectId(), player.getLevel() - getLevel()), new ValidateLocation(this));
if(isAutoAttackable(player))
{
player.sendPacket(makeStatusUpdate(StatusUpdate.CUR_HP, StatusUpdate.MAX_HP));
}
player.sendActionFailed();
return;
}
player.sendPacket(new MyTargetSelected(getObjectId(), player.getLevel() - getLevel()));
if(Events.onAction(player, this, shift))
{
return;
}
if(isAutoAttackable(player))