mirror of
https://github.com/magefree/mage.git
synced 2025-12-25 13:02:06 -08:00
* Fixed a bug that modal spells did not work correctly (fixes #2397).
This commit is contained in:
parent
a5af6c3a1d
commit
1066472491
2 changed files with 111 additions and 2 deletions
|
|
@ -73,9 +73,13 @@ public class Modes extends LinkedHashMap<UUID, Mode> {
|
|||
}
|
||||
this.minModes = modes.minModes;
|
||||
this.maxModes = modes.maxModes;
|
||||
this.selectedModes.addAll(modes.getSelectedModes());
|
||||
|
||||
this.currentMode = values().iterator().next();
|
||||
selectedModes.addAll(modes.getSelectedModes());
|
||||
if (modes.getSelectedModes().isEmpty()) {
|
||||
this.currentMode = values().iterator().next();
|
||||
} else {
|
||||
this.currentMode = get(selectedModes.get(0));
|
||||
}
|
||||
this.modeChooser = modes.modeChooser;
|
||||
this.eachModeOnlyOnce = modes.eachModeOnlyOnce;
|
||||
this.eachModeMoreThanOnce = modes.eachModeMoreThanOnce;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue