mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 11:48:02 +00:00
MakeCardEffect update "Amount" to allow for X
This commit is contained in:
@@ -29,7 +29,8 @@ public class MakeCardEffect extends SpellAbilityEffect {
|
||||
name = AbilityUtils.getDefinedCards(source, sa.getParam("DefinedName"), sa).getFirst().getName();
|
||||
}
|
||||
final ZoneType zone = ZoneType.smartValueOf(sa.getParamOrDefault("Zone", "Library"));
|
||||
int amount = sa.hasParam("Amount") ? Integer.parseInt(sa.getParam("Amount")) : 1;
|
||||
int amount = sa.hasParam("Amount") ?
|
||||
AbilityUtils.calculateAmount(sa.getHostCard(), sa.getParam("Amount"), sa) : 1;
|
||||
|
||||
CardCollection cards = new CardCollection();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user