mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-09 22:24:58 +00:00
More Rubocop changes
This commit is contained in:
@@ -60,10 +60,11 @@ class Battle
|
||||
end
|
||||
sideCounts.each_with_index do |_count, i|
|
||||
if !requireds[i] || requireds[i] == 0
|
||||
if side == 0
|
||||
case side
|
||||
when 0
|
||||
raise _INTL("Player-side trainer {1} has no battler position for their Pokémon to go (trying {2}v{3} battle)",
|
||||
i + 1, @sideSizes[0], @sideSizes[1])
|
||||
elsif side == 1
|
||||
when 1
|
||||
raise _INTL("Opposing trainer {1} has no battler position for their Pokémon to go (trying {2}v{3} battle)",
|
||||
i + 1, @sideSizes[0], @sideSizes[1])
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user