Fixed using Pursuit against a switcher preventing using the next move

This commit is contained in:
Maruno17
2022-06-18 21:13:30 +01:00
parent 79f5e5d4aa
commit 9a03b25755
5 changed files with 73 additions and 86 deletions

View File

@@ -39,9 +39,7 @@ class Battle
end
# Use Pursuit
@choices[b.index][3] = idxSwitcher # Change Pursuit's target
if b.pbProcessTurn(@choices[b.index], false)
b.effects[PBEffects::Pursuit] = true
end
b.pbProcessTurn(@choices[b.index], false)
break if @decision > 0 || @battlers[idxSwitcher].fainted?
end
@switching = false