Skip to content
Snippets Groups Projects
Commit b76f3ed8 authored by Adry85's avatar Adry85 Committed by Zoey76
Browse files

Reverted enemy only target type.

parent 172b3ef3
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment