Fix creating token with Endure 0

This commit is contained in:
tool4EvEr
2025-04-03 11:09:00 +02:00
committed by Hans Mackowiak
parent 49d7351eac
commit ff1781b734

View File

@@ -53,6 +53,10 @@ public class EndureEffect extends TokenEffectBase {
String num = sa.getParamOrDefault("Num", "1");
int amount = AbilityUtils.calculateAmount(host, num, sa);
if (amount < 1) {
return;
}
GameEntityCounterTable table = new GameEntityCounterTable();
TokenCreateTable tokenTable = new TokenCreateTable();
for (final Card c : GameActionUtil.orderCardsByTheirOwners(game, getTargetCards(sa), ZoneType.Battlefield, sa)) {