- Do not allow the human to confirm a Reveal cost with 0 revealed cards if the minimum is more than zero (fixes e.g. Morph costs with "Reveal a X card" when the human player doesn't have that kind of card in hand).

This commit is contained in:
Agetian
2018-02-06 22:17:48 +03:00
parent 8b26deb477
commit c3b655f675

View File

@@ -855,6 +855,9 @@ public class HumanCostDecision extends CostDecisionMakerBase {
num = AbilityUtils.calculateAmount(source, amount, ability);
}
}
if (hand.size() < num) {
return null;
}
if (num == 0) {
return PaymentDecision.number(0);
};