mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-07 13:15:01 +00:00
Player is no longer asked if they want to switch after they already replaced a fainted battler that round
This commit is contained in:
@@ -164,8 +164,8 @@ class PokeBattle_Battle
|
|||||||
# Pokémon when an opponent replaces a fainted Pokémon in single
|
# Pokémon when an opponent replaces a fainted Pokémon in single
|
||||||
# battles. In double battles, etc. there is no such offer.
|
# battles. In double battles, etc. there is no such offer.
|
||||||
if @internalBattle && @switchStyle && trainerBattle? && pbSideSize(0)==1 &&
|
if @internalBattle && @switchStyle && trainerBattle? && pbSideSize(0)==1 &&
|
||||||
opposes?(idxBattler) && !@battlers[0].fainted? && pbCanChooseNonActive?(0) &&
|
opposes?(idxBattler) && !@battlers[0].fainted? && !switched.include?(0) &&
|
||||||
@battlers[0].effects[PBEffects::Outrage]==0
|
pbCanChooseNonActive?(0) && @battlers[0].effects[PBEffects::Outrage]==0
|
||||||
idxPartyForName = idxPartyNew
|
idxPartyForName = idxPartyNew
|
||||||
enemyParty = pbParty(idxBattler)
|
enemyParty = pbParty(idxBattler)
|
||||||
if isConst?(enemyParty[idxPartyNew].ability,PBAbilities,:ILLUSION)
|
if isConst?(enemyParty[idxPartyNew].ability,PBAbilities,:ILLUSION)
|
||||||
|
|||||||
Reference in New Issue
Block a user