temporary workaround for Rankle, Master of Pranks (still can't choose zero modes) #5979

This commit is contained in:
Evan Kranzler 2019-09-24 22:26:28 -04:00
parent b245b493b8
commit 3d5925826c
2 changed files with 3 additions and 3 deletions

View file

@ -51,8 +51,9 @@ public final class RankleMasterOfPranks extends CardImpl {
// Each player sacrifices a creature.
ability.addMode(new Mode(new SacrificeAllEffect(StaticFilters.FILTER_CONTROLLED_CREATURE_SHORT_TEXT)));
ability.getModes().setMinModes(0);
ability.getModes().setMinModes(1);
ability.getModes().setMaxModes(3);
ability.getModes().setChooseText("choose any number —");
this.addAbility(ability);
}

View file

@ -170,8 +170,7 @@ public class Modes extends LinkedHashMap<UUID, Mode> {
this.duplicateModes.clear();
if (this.isRandom) {
List<Mode> modes = getAvailableModes(source, game);
int r = RandomUtil.nextInt(modes.size());
this.addSelectedMode(modes.get(r).getId());
this.addSelectedMode(modes.get(RandomUtil.nextInt(modes.size())).getId());
return true;
}
// check if mode modifying abilities exist