From 095b4f4657bed7a24c03d6bdc1e087f0156fed7f Mon Sep 17 00:00:00 2001 From: tool4EvEr Date: Sun, 9 Jan 2022 12:42:31 +0100 Subject: [PATCH] Fix Pramikon applying when no direction was chosen --- .../game/staticability/StaticAbilityCantAttackBlock.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/forge-game/src/main/java/forge/game/staticability/StaticAbilityCantAttackBlock.java b/forge-game/src/main/java/forge/game/staticability/StaticAbilityCantAttackBlock.java index c8ce0364203..d428a9ff519 100644 --- a/forge-game/src/main/java/forge/game/staticability/StaticAbilityCantAttackBlock.java +++ b/forge-game/src/main/java/forge/game/staticability/StaticAbilityCantAttackBlock.java @@ -84,8 +84,8 @@ public class StaticAbilityCantAttackBlock { } } if (stAb.hasParam("DefenderNotNearestToYouInChosenDirection") - && hostCard.getChosenDirection() != null - && defender.equals(hostCard.getGame().getNextPlayerAfter(card.getController(), hostCard.getChosenDirection()))) { + && (hostCard.getChosenDirection() == null + || defender.equals(hostCard.getGame().getNextPlayerAfter(card.getController(), hostCard.getChosenDirection())))) { return false; } if (stAb.hasParam("UnlessDefender")) {