mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-10 06:34:59 +00:00
Many more Rubocop-inspired code improvements
This commit is contained in:
@@ -22,7 +22,7 @@ class Battle::Battler
|
||||
idxOther = (@index + 2) % 4
|
||||
when 3
|
||||
if @index != 2 && @index != 3 # If not in middle spot already
|
||||
idxOther = ((@index % 2) == 0) ? 2 : 3
|
||||
idxOther = (@index.even?) ? 2 : 3
|
||||
end
|
||||
end
|
||||
if idxOther >= 0
|
||||
|
||||
Reference in New Issue
Block a user