Merge branch 'temp' into 'master'

DigUntil should do nothing on 0

See merge request core-developers/forge!2390
This commit is contained in:
Michael Kamensky
2020-01-07 16:29:43 +00:00

View File

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