mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-10 14:44:58 +00:00
Many more Rubocop-inspired code improvements
This commit is contained in:
@@ -11,8 +11,8 @@ class Battle
|
||||
when 2
|
||||
idxOther = (idxBattler + 2) % 4
|
||||
when 3
|
||||
return false if idxBattler == 2 || idxBattler == 3 # In middle spot already
|
||||
idxOther = ((idxBattler % 2) == 0) ? 2 : 3
|
||||
return false if [2, 3].include?(idxBattler) # In middle spot already
|
||||
idxOther = (idxBattler.even?) ? 2 : 3
|
||||
end
|
||||
return false if pbGetOwnerIndexFromBattlerIndex(idxBattler) != pbGetOwnerIndexFromBattlerIndex(idxOther)
|
||||
return true
|
||||
|
||||
Reference in New Issue
Block a user