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

@@ -9,12 +9,12 @@ module Battle::PokeBallEffects
def self.isUnconditional?(ball, battle, battler)
ret = IsUnconditional.trigger(ball, battle, battler)
return (ret != nil) ? ret : false
return (!ret.nil?) ? ret : false
end
def self.modifyCatchRate(ball, catchRate, battle, battler)
ret = ModifyCatchRate.trigger(ball, catchRate, battle, battler)
return (ret != nil) ? ret : catchRate
return (!ret.nil?) ? ret : catchRate
end
def self.onCatch(ball, battle, pkmn)