This commit is contained in:
André Bastos Dias
2026-07-18 13:16:30 +01:00
committed by GitHub

View File

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