mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-06-02 22:08:36 -05:00
Merge c8bb8c8825 into 6765d8422d
This commit is contained in:
commit
3e4fc8b44e
|
|
@ -1194,7 +1194,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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user