mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 11:48:02 +00:00
Clean up
This commit is contained in:
@@ -243,5 +243,4 @@ public class CharmEffect extends SpellAbilityEffect {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -99,7 +99,7 @@ public class CopyPermanentEffect extends TokenEffectBase {
|
|||||||
if (sa.hasParam("RandomCopied")) {
|
if (sa.hasParam("RandomCopied")) {
|
||||||
List<PaperCard> copysource = Lists.newArrayList(cards);
|
List<PaperCard> copysource = Lists.newArrayList(cards);
|
||||||
List<Card> choice = Lists.newArrayList();
|
List<Card> choice = Lists.newArrayList();
|
||||||
final String num = sa.hasParam("RandomNum") ? sa.getParam("RandomNum") : "1";
|
final String num = sa.getParamOrDefault("RandomNum","1");
|
||||||
int ncopied = AbilityUtils.calculateAmount(host, num, sa);
|
int ncopied = AbilityUtils.calculateAmount(host, num, sa);
|
||||||
while (ncopied > 0 && !copysource.isEmpty()) {
|
while (ncopied > 0 && !copysource.isEmpty()) {
|
||||||
final PaperCard cp = Aggregates.random(copysource);
|
final PaperCard cp = Aggregates.random(copysource);
|
||||||
|
|||||||
Reference in New Issue
Block a user