mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
Fix creating token with Endure 0
This commit is contained in:
committed by
Hans Mackowiak
parent
49d7351eac
commit
ff1781b734
@@ -53,6 +53,10 @@ public class EndureEffect extends TokenEffectBase {
|
|||||||
String num = sa.getParamOrDefault("Num", "1");
|
String num = sa.getParamOrDefault("Num", "1");
|
||||||
int amount = AbilityUtils.calculateAmount(host, num, sa);
|
int amount = AbilityUtils.calculateAmount(host, num, sa);
|
||||||
|
|
||||||
|
if (amount < 1) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
GameEntityCounterTable table = new GameEntityCounterTable();
|
GameEntityCounterTable table = new GameEntityCounterTable();
|
||||||
TokenCreateTable tokenTable = new TokenCreateTable();
|
TokenCreateTable tokenTable = new TokenCreateTable();
|
||||||
for (final Card c : GameActionUtil.orderCardsByTheirOwners(game, getTargetCards(sa), ZoneType.Battlefield, sa)) {
|
for (final Card c : GameActionUtil.orderCardsByTheirOwners(game, getTargetCards(sa), ZoneType.Battlefield, sa)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user