Fix asking for moves for fainted pokemon

The bug was introduced as a typo in 24c07d32
This commit is contained in:
Guangcong Luo 2014-04-25 01:39:46 -05:00
parent b4371d6d76
commit db7a17806f

View File

@ -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');
}
}