fixes type experts not removing randomized gym type

This commit is contained in:
infinitefusion
2024-12-25 14:38:14 -05:00
parent 099af82e47
commit 5e07802681
2 changed files with 2 additions and 1 deletions

1
.gitignore vendored
View File

@@ -1,7 +1,6 @@
Graphics/CustomBattlers/* Graphics/CustomBattlers/*
Graphics/Battlers/* Graphics/Battlers/*
Graphics/Pokemon/FusionIcons/* Graphics/Pokemon/FusionIcons/*
Data/sprites/* Data/sprites/*
Data/VERSION Data/VERSION

View File

@@ -131,6 +131,7 @@ def type_expert_battle(type_id)
PokemonSelection.restore PokemonSelection.restore
$game_switches[Settings::OVERRIDE_BATTLE_LEVEL_SWITCH]=false $game_switches[Settings::OVERRIDE_BATTLE_LEVEL_SWITCH]=false
$game_switches[SWITCH_DONT_RANDOMIZE]=false $game_switches[SWITCH_DONT_RANDOMIZE]=false
pbSet(VAR_CURRENT_GYM_TYPE, -1)
return true return true
end end
else else
@@ -141,6 +142,7 @@ def type_expert_battle(type_id)
PokemonSelection.restore PokemonSelection.restore
$game_switches[Settings::OVERRIDE_BATTLE_LEVEL_SWITCH]=false $game_switches[Settings::OVERRIDE_BATTLE_LEVEL_SWITCH]=false
$game_switches[SWITCH_DONT_RANDOMIZE]=false $game_switches[SWITCH_DONT_RANDOMIZE]=false
pbSet(VAR_CURRENT_GYM_TYPE, -1)
return false return false
end end