Merge branch 'pramikon' into 'master'

Fix Pramikon applying when no direction was chosen

See merge request core-developers/forge!6031
This commit is contained in:
Michael Kamensky
2022-01-09 13:42:55 +00:00

View File

@@ -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")) {