summaryrefslogtreecommitdiff
path: root/src/com/sneed/pkrandom/newgui/NewRandomizerGUI.java
diff options
context:
space:
mode:
authortom-overton <tom.overton@outlook.com>2023-01-02 22:55:08 -0800
committerRafael Marçalo <raroma09@gmail.com>2023-01-03 14:57:31 +0000
commitd09c29c4cb529b74d7fdc69dff21d29d78bdbfa5 (patch)
tree2f212f53032b80b98ef4617eb2aa1c40b3ab5c04 /src/com/sneed/pkrandom/newgui/NewRandomizerGUI.java
parente3c249eba6830c46af44f4786969e24c2ce1d370 (diff)
Fix issue where you could enable Swap Mega Evolvables w/ Type Themed E4/Gyms when you've limited a ton of Pokemon (fixes #590)
Diffstat (limited to 'src/com/sneed/pkrandom/newgui/NewRandomizerGUI.java')
-rw-r--r--src/com/sneed/pkrandom/newgui/NewRandomizerGUI.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/sneed/pkrandom/newgui/NewRandomizerGUI.java b/src/com/sneed/pkrandom/newgui/NewRandomizerGUI.java
index 882e485..b9effa8 100644
--- a/src/com/sneed/pkrandom/newgui/NewRandomizerGUI.java
+++ b/src/com/sneed/pkrandom/newgui/NewRandomizerGUI.java
@@ -3158,7 +3158,8 @@ public class NewRandomizerGUI {
tpNoEarlyWonderGuardCheckBox.setEnabled(true);
tpAllowAlternateFormesCheckBox.setEnabled(true);
if (currentRestrictions == null || currentRestrictions.allowTrainerSwapMegaEvolvables(
- romHandler.forceSwapStaticMegaEvos(), isTrainerSetting(TRAINER_TYPE_THEMED))) {
+ romHandler.forceSwapStaticMegaEvos(), isTrainerSetting(TRAINER_TYPE_THEMED) ||
+ isTrainerSetting(TRAINER_TYPE_THEMED_ELITE4_GYMS))) {
tpSwapMegaEvosCheckBox.setEnabled(true);
} else {
tpSwapMegaEvosCheckBox.setEnabled(false);