From ec9c9e21c70831b71d5c039d5cb47bd5acc1ad2d Mon Sep 17 00:00:00 2001 From: Adry85 <adrya85@hotmail.it> Date: Fri, 20 Oct 2017 23:24:53 +0200 Subject: [PATCH] Reverted enemy only target type. --- .../scripts/handlers/targethandlers/EnemyOnly.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/dist/game/data/scripts/handlers/targethandlers/EnemyOnly.java b/dist/game/data/scripts/handlers/targethandlers/EnemyOnly.java index c6f03a4a51..2038d496d5 100644 --- a/dist/game/data/scripts/handlers/targethandlers/EnemyOnly.java +++ b/dist/game/data/scripts/handlers/targethandlers/EnemyOnly.java @@ -50,11 +50,11 @@ public class EnemyOnly implements ITargetTypeHandler final L2PcInstance player = activeChar.getActingPlayer(); if (target.isDead() || (!target.isAttackable() && // (player != null) && // - (player.isInPartyWith(target) || // - player.isInClanWith(target) || // - player.isInAllyWith(target) || // TODO(Zoey76): Confirm. - player.isInCommandChannelWith(target)) // TODO(Zoey76): Confirm. - && !player.checkIfPvP(target))) + !player.isInPartyWith(target) && // + !player.isInClanWith(target) && // + !player.isInAllyWith(target) && // TODO(Zoey76): Confirm. + !player.isInCommandChannelWith(target) && // TODO(Zoey76): Confirm. + !player.checkIfPvP(target))) { activeChar.sendPacket(INCORRECT_TARGET); return EMPTY_TARGET_LIST; -- GitLab