More Rubocopping

This commit is contained in:
Maruno17
2021-12-20 17:18:21 +00:00
parent db4acd3369
commit 33fcbf623b
154 changed files with 1388 additions and 1420 deletions

View File

@@ -281,7 +281,7 @@ class Battle
# on the given side of battle.
def pbNumPositions(side, idxTrainer)
ret = 0
for i in 0...pbSideSize(side)
pbSideSize(side).times do |i|
t = pbGetOwnerIndexFromBattlerIndex((i * 2) + side)
next if t != idxTrainer
ret += 1
@@ -618,7 +618,7 @@ class Battle
PBEffects::SkyDrop,
PBEffects::TrappingUser]
allBattlers.each do |b|
for i in effectsToSwap
effectsToSwap.each do |i|
next if b.effects[i] != idxA && b.effects[i] != idxB
b.effects[i] = (b.effects[i] == idxA) ? idxB : idxA
end