More Rubocop changes

This commit is contained in:
Maruno17
2022-02-13 00:57:54 +00:00
parent cca5989746
commit f68e699cc9
108 changed files with 708 additions and 808 deletions

View File

@@ -137,7 +137,7 @@ class Battle::Scene
a[2] = true if a[1].animDone?
end
pbUpdate
if !inPartyAnimation? && !sendOutAnims.any? { |a| !a[2] }
if !inPartyAnimation? && sendOutAnims.none? { |a| !a[2] }
break
end
end
@@ -515,7 +515,7 @@ class Battle::Scene
return if !animations
animations.each do |a|
next if !a || a.name != "Common:" + animName
pbAnimationCore(a, user, (target != nil) ? target : user)
pbAnimationCore(a, user, target || user)
return
end
end