From b073ff861712ae6f007727b8d7063d3f8e18abb8 Mon Sep 17 00:00:00 2001 From: Oleg Agafonov Date: Fri, 6 Aug 2021 18:17:13 +0400 Subject: [PATCH] Pay {0} - fixed that it doesn't work for alternative cost (related to b6a3f7edc1592861b8fd095289788736114e71f4); --- Mage/src/main/java/mage/abilities/mana/ManaOptions.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Mage/src/main/java/mage/abilities/mana/ManaOptions.java b/Mage/src/main/java/mage/abilities/mana/ManaOptions.java index 53a4577ecb0..807f3fb9a9c 100644 --- a/Mage/src/main/java/mage/abilities/mana/ManaOptions.java +++ b/Mage/src/main/java/mage/abilities/mana/ManaOptions.java @@ -610,6 +610,13 @@ public class ManaOptions extends ArrayList { * @return */ public boolean enough(Mana mana) { + // 117.5. Some costs are represented by {0}, or are reduced to {0}. The action necessary for a player to pay + // such a cost is the player’s acknowledgment that he or she is paying it. Even though such a cost requires + // no resources, it’s not automatically paid. + if (mana.count() == 0) { + return true; + } + for (Mana avail : this) { if (mana.enough(avail)) { return true;