Skip to content

Commit baf223e

Browse files
Fixes legendary mode crash
1 parent 304c26e commit baf223e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

052_InfiniteFusion/System/GameModes/LegendaryMode.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def getNewLegendaryFusionForGymType(original_species, nb_retries = 0)
122122
echoln "gymType: #{gym_type} - body_species: #{body_species.species} head_species: #{head_species.species}, kept: #{pokemon_to_be_kept.species}"
123123

124124
legendary_species = LEGENDARIES_LIST.sample
125-
125+
return getNewLegendaryFusion(original_species, nb_retries) unless pokemon_to_be_replaced
126126
if pokemon_to_be_replaced.species == head_species.species
127127
head_species_id = legendary_species
128128
else

054_PIF_Kanto/EliteFourRematches/EliteFourRematches.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,11 +116,11 @@ def select_league_tier
116116
available_tiers.reverse!
117117
commands = []
118118
available_tiers.each do |tier_nb|
119-
commands << _INTL("Tier #{tier_nb}")
119+
commands << _INTL("Rank #{tier_nb}")
120120
end
121121
cmd_cancel = _INTL("Cancel")
122122
commands << cmd_cancel
123-
choice = pbMessage(_INTL("Which League Rematch difficulty tier will you choose?"),commands)
123+
choice = pbMessage(_INTL("Which League Rematch difficulty rank will you choose?"),commands)
124124
if commands[choice] == cmd_cancel
125125
return -1
126126
end
@@ -148,7 +148,7 @@ def unlock_new_league_tiers
148148
$game_switches[SWITCH_LEAGUE_TIER_5] = true if tiers_to_unlock.include?(5)
149149
unless currently_unlocked_tiers.include?(tier)
150150
pbMEPlay("Key item get")
151-
pbMessage(_INTL("{1} unlocked \\C[1]Tier {2} League Rematches\\C[0]!",$Trainer.name,tier))
151+
pbMessage(_INTL("{1} unlocked \\C[1]Rank {2} League Rematches\\C[0]!",$Trainer.name,tier))
152152
end
153153
end
154154
end

0 commit comments

Comments
 (0)