Skip to content
Snippets Groups Projects
Commit 869c1a5e authored by Zoey76's avatar Zoey76
Browse files

Updating Area Friendly restrictions to prevent siege enemies from being

targeted

Fix #293
parent 95ad62d7
No related branches found
No related tags found
No related merge requests found
......@@ -36,6 +36,7 @@ import com.l2jserver.gameserver.model.zone.ZoneId;
import com.l2jserver.gameserver.network.SystemMessageId;
/**
* Area Friendly target handler implementation.
* @author Adry_85
*/
public class AreaFriendly implements ITargetTypeHandler
......@@ -107,7 +108,7 @@ public class AreaFriendly implements ITargetTypeHandler
return false;
}
if ((target == null) || target.isAlikeDead() || target.isDoor() || (target instanceof L2SiegeFlagInstance) || target.isMonster())
if ((target == null) || target.isAlikeDead() || target.isDoor() || !activeChar.isOnSameSiegeSideWith(target) || (target instanceof L2SiegeFlagInstance) || target.isMonster())
{
return false;
}
......
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