Skip to content
Snippets Groups Projects
Commit ec9c9e21 authored by Adry85's avatar Adry85
Browse files

Reverted enemy only target type.

parent 67274e36
No related branches found
No related tags found
No related merge requests found
...@@ -50,11 +50,11 @@ public class EnemyOnly implements ITargetTypeHandler ...@@ -50,11 +50,11 @@ public class EnemyOnly implements ITargetTypeHandler
final L2PcInstance player = activeChar.getActingPlayer(); final L2PcInstance player = activeChar.getActingPlayer();
if (target.isDead() || (!target.isAttackable() && // if (target.isDead() || (!target.isAttackable() && //
(player != null) && // (player != null) && //
(player.isInPartyWith(target) || // !player.isInPartyWith(target) && //
player.isInClanWith(target) || // !player.isInClanWith(target) && //
player.isInAllyWith(target) || // TODO(Zoey76): Confirm. !player.isInAllyWith(target) && // TODO(Zoey76): Confirm.
player.isInCommandChannelWith(target)) // TODO(Zoey76): Confirm. !player.isInCommandChannelWith(target) && // TODO(Zoey76): Confirm.
&& !player.checkIfPvP(target))) !player.checkIfPvP(target)))
{ {
activeChar.sendPacket(INCORRECT_TARGET); activeChar.sendPacket(INCORRECT_TARGET);
return EMPTY_TARGET_LIST; 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