mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-08-27 19:44:50 -05:00
Merge c8bb8c8825 into 00c061991c
This commit is contained in:
@@ -1199,7 +1199,10 @@ export class Pokemon {
|
||||
if (!this.isActive) return false;
|
||||
const allyActive = this.side.active;
|
||||
for (let i = this.position + 1; i < allyActive.length; i++) {
|
||||
if (allyActive[i] && !allyActive[i].fainted) return false;
|
||||
const ally = allyActive[i];
|
||||
if (ally && !ally.fainted && !ally.getLockedMove() && !ally.volatiles['commanding']) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user