DigUntil does nothing on 0

This commit is contained in:
Adam Pantel
2019-12-31 22:35:03 -05:00
committed by Adam Pantel
parent 8ab01cce3e
commit a27f69b1c5

View File

@@ -87,6 +87,7 @@ public class DigUntilEffect extends SpellAbilityEffect {
int untilAmount = 1;
if (sa.hasParam("Amount")) {
untilAmount = AbilityUtils.calculateAmount(host, sa.getParam("Amount"), sa);
if (untilAmount == 0) return;
}
Integer maxRevealed = null;