Fixed some bugs from recent commits

This commit is contained in:
Maruno17
2021-11-02 18:37:48 +00:00
parent e8170a267c
commit cff6edac5b
3 changed files with 6 additions and 4 deletions

View File

@@ -207,7 +207,7 @@ class PokeBattle_Move
c += 1 if user.inHyperMode? && @type == :SHADOW
c = ratios.length-1 if c>=ratios.length
# Calculation
return true if ratio[c] == 1
return true if ratios[c] == 1
r = @battle.pbRandom(ratios[c])
return true if r == 0
if r == 1 && Settings::AFFECTION_EFFECTS && @battle.internalBattle &&