mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-05-06 13:39:48 -05:00
Fix asking for moves for fainted pokemon
The bug was introduced as a typo in 24c07d32
This commit is contained in:
parent
b4371d6d76
commit
db7a17806f
|
|
@ -252,7 +252,7 @@
|
|||
choices: [],
|
||||
switchFlags: {}
|
||||
}
|
||||
if (this.choice.choices.length > 1) while (switchables[this.choice.choices.length] && switchables[this.choice.choices.length].fainted) {
|
||||
if (this.battle.mySide.active.length > 1) while (switchables[this.choice.choices.length] && switchables[this.choice.choices.length].fainted) {
|
||||
this.choice.choices.push('pass');
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user