Makes it possible to forfeit trainer battles

This commit is contained in:
infinitefusion
2022-06-09 18:19:58 -04:00
parent 5c1188e386
commit 625c7f94d9
13 changed files with 6 additions and 1 deletions

View File

@@ -50,7 +50,12 @@ class PokeBattle_Battle
return 1
end
elsif @internalBattle
pbDisplayPaused(_INTL("No! There's no running from a Trainer battle!"))
if pbDisplayConfirm(_INTL("Would you like to forfeit the match and quit now?"))
pbSEPlay("Battle flee")
pbDisplay(_INTL("{1} forfeited the match!",self.pbPlayer.name))
@decision = 2
return 1
end
elsif pbDisplayConfirm(_INTL("Would you like to forfeit the match and quit now?"))
pbSEPlay("Battle flee")
pbDisplay(_INTL("{1} forfeited the match!",self.pbPlayer.name))