mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-06 06:01:46 +00:00
Battle menu: Automatically select the Fight option after switching out a Pokémon
This commit is contained in:
@@ -219,7 +219,10 @@ class PokeBattle_Battle
|
|||||||
break
|
break
|
||||||
end
|
end
|
||||||
when 2 # Pokémon
|
when 2 # Pokémon
|
||||||
break if pbPartyMenu(idxBattler)
|
if pbPartyMenu(idxBattler)
|
||||||
|
@scene.setLastCommandIndex(idxBattler,0)
|
||||||
|
break
|
||||||
|
end
|
||||||
when 3 # Run
|
when 3 # Run
|
||||||
# NOTE: "Run" is only an available option for the first battler the
|
# NOTE: "Run" is only an available option for the first battler the
|
||||||
# player chooses an action for in a round. Attempting to run
|
# player chooses an action for in a round. Attempting to run
|
||||||
|
|||||||
@@ -1,4 +1,9 @@
|
|||||||
class PokeBattle_Scene
|
class PokeBattle_Scene
|
||||||
|
|
||||||
|
def setLastCommandIndex(battlerIndex,commandIndex)
|
||||||
|
@lastCmd[battlerIndex] = commandIndex
|
||||||
|
end
|
||||||
|
|
||||||
#=============================================================================
|
#=============================================================================
|
||||||
# The player chooses a main command for a Pokémon
|
# The player chooses a main command for a Pokémon
|
||||||
# Return values: -1=Cancel, 0=Fight, 1=Bag, 2=Pokémon, 3=Run, 4=Call
|
# Return values: -1=Cancel, 0=Fight, 1=Bag, 2=Pokémon, 3=Run, 4=Call
|
||||||
|
|||||||
Reference in New Issue
Block a user