mirror of
https://github.com/magefree/mage.git
synced 2025-12-26 05:22:02 -08: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
|
|
@ -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…
Add table
Add a link
Reference in a new issue