This commit is contained in:
André Bastos Dias 2026-06-02 14:06:13 +01:00 committed by GitHub
commit 3e4fc8b44e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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