mirror of
https://github.com/correl/mage.git
synced 2025-01-13 11:01:58 +00:00
temporary workaround for Rankle, Master of Pranks (still can't choose zero modes) #5979
This commit is contained in:
parent
b245b493b8
commit
3d5925826c
2 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue