mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-06 06:01:46 +00:00
Makes it possible to forfeit trainer battles
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -50,7 +50,12 @@ class PokeBattle_Battle
|
|||||||
return 1
|
return 1
|
||||||
end
|
end
|
||||||
elsif @internalBattle
|
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?"))
|
elsif pbDisplayConfirm(_INTL("Would you like to forfeit the match and quit now?"))
|
||||||
pbSEPlay("Battle flee")
|
pbSEPlay("Battle flee")
|
||||||
pbDisplay(_INTL("{1} forfeited the match!",self.pbPlayer.name))
|
pbDisplay(_INTL("{1} forfeited the match!",self.pbPlayer.name))
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user