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

Updating EnemyOnly target type.

parent fd793a35
No related branches found
No related tags found
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