DigEffect WithCounterNum for Throne of the Dead Three (Undercity)

This commit is contained in:
Northmoc
2022-05-25 22:04:12 -04:00
parent 2fa38e2ecf
commit faea325473

View File

@@ -417,7 +417,9 @@ public class DigEffect extends SpellAbilityEffect {
c.setTapped(true);
}
if (destZone1.equals(ZoneType.Battlefield) && sa.hasParam("WithCounter")) {
c.addEtbCounter(CounterType.getType(sa.getParam("WithCounter")), 1, player);
final int numCtr = AbilityUtils.calculateAmount(host,
sa.getParamOrDefault("WithCounterNum", "1"), sa);
c.addEtbCounter(CounterType.getType(sa.getParam("WithCounter")), numCtr, player);
}
c = game.getAction().moveTo(zone, c, sa, moveParams);
if (destZone1.equals(ZoneType.Battlefield)) {