mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-09 22:24:58 +00:00
More Rubocop
This commit is contained in:
@@ -61,8 +61,9 @@ class Battle::Battler
|
||||
case @battle.field.terrain
|
||||
when :Electric
|
||||
if newStatus == :SLEEP
|
||||
@battle.pbDisplay(_INTL("{1} surrounds itself with electrified terrain!",
|
||||
pbThis(true))) if showMessages
|
||||
if showMessages
|
||||
@battle.pbDisplay(_INTL("{1} surrounds itself with electrified terrain!", pbThis(true)))
|
||||
end
|
||||
return false
|
||||
end
|
||||
when :Misty
|
||||
|
||||
@@ -14,8 +14,10 @@ class Battle::Battler
|
||||
end
|
||||
# Check the stat stage
|
||||
if statStageAtMax?(stat)
|
||||
@battle.pbDisplay(_INTL("{1}'s {2} won't go any higher!",
|
||||
pbThis, GameData::Stat.get(stat).name)) if showFailMsg
|
||||
if showFailMsg
|
||||
@battle.pbDisplay(_INTL("{1}'s {2} won't go any higher!",
|
||||
pbThis, GameData::Stat.get(stat).name))
|
||||
end
|
||||
return false
|
||||
end
|
||||
return true
|
||||
@@ -162,8 +164,10 @@ class Battle::Battler
|
||||
end
|
||||
# Check the stat stage
|
||||
if statStageAtMin?(stat)
|
||||
@battle.pbDisplay(_INTL("{1}'s {2} won't go any lower!",
|
||||
pbThis, GameData::Stat.get(stat).name)) if showFailMsg
|
||||
if showFailMsg
|
||||
@battle.pbDisplay(_INTL("{1}'s {2} won't go any lower!",
|
||||
pbThis, GameData::Stat.get(stat).name))
|
||||
end
|
||||
return false
|
||||
end
|
||||
return true
|
||||
|
||||
@@ -468,7 +468,7 @@ class Battle::Battler
|
||||
@battle.pbHideAbilitySplash(b) if b.damageState.magicBounce
|
||||
newChoice = choice.clone
|
||||
newChoice[3] = user.index
|
||||
newTargets = pbFindTargets(newChoice ,move, b)
|
||||
newTargets = pbFindTargets(newChoice, move, b)
|
||||
newTargets = pbChangeTargets(move, b, newTargets)
|
||||
success = false
|
||||
if !move.pbMoveFailed?(b, newTargets)
|
||||
|
||||
Reference in New Issue
Block a user