mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-10 14:44:58 +00:00
Snowstorm, forfeiting trainer battles, battle outcome values
This commit is contained in:
@@ -190,7 +190,7 @@ class Battle::Battler
|
||||
case effectiveWeather
|
||||
when :Sun, :HarshSun then newForm = 1
|
||||
when :Rain, :HeavyRain then newForm = 2
|
||||
when :Hail then newForm = 3
|
||||
when :Hail, :Snowstorm then newForm = 3
|
||||
end
|
||||
if @form != newForm
|
||||
@battle.pbShowAbilitySplash(self, true)
|
||||
@@ -217,7 +217,7 @@ class Battle::Battler
|
||||
end
|
||||
# Eiscue - Ice Face
|
||||
if !ability_changed && isSpecies?(:EISCUE) && self.ability == :ICEFACE &&
|
||||
@form == 1 && effectiveWeather == :Hail
|
||||
@form == 1 && [:Hail, :Snowstorm].include?(effectiveWeather)
|
||||
@canRestoreIceFace = true # Changed form at end of round
|
||||
end
|
||||
end
|
||||
|
||||
@@ -10,7 +10,7 @@ class Battle::Battler
|
||||
pbBeginTurn(choice)
|
||||
pbSEPlay("Battle flee")
|
||||
@battle.pbDisplay(_INTL("{1} fled from battle!", pbThis))
|
||||
@battle.decision = 3
|
||||
@battle.decision = Battle::Outcome::FLEE
|
||||
pbEndTurn(choice)
|
||||
return true
|
||||
end
|
||||
@@ -537,7 +537,7 @@ class Battle::Battler
|
||||
end
|
||||
b.lastRoundMoved = oldLastRoundMoved
|
||||
@battle.pbJudge
|
||||
return if @battle.decision > 0
|
||||
return if @battle.decided?
|
||||
end
|
||||
b.effects[PBEffects::Instructed] = false
|
||||
end
|
||||
@@ -573,7 +573,7 @@ class Battle::Battler
|
||||
nextUser.effects[PBEffects::Outrage] = oldOutrage
|
||||
nextUser.currentMove = oldCurrentMove
|
||||
@battle.pbJudge
|
||||
return if @battle.decision > 0
|
||||
return if @battle.decided?
|
||||
end
|
||||
nextUser.effects[PBEffects::Dancer] = false
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user