Added check to make sure that Sketch does not copy a failed move.

This commit is contained in:
frutescens 2024-11-06 12:46:30 -08:00
parent 9dae28f264
commit 3d6c69ff83

View File

@ -6749,7 +6749,7 @@ export class SketchAttr extends MoveEffectAttr {
}
const targetMove = target.getMoveHistory().filter(m => !m.virtual).at(-1);
if (!targetMove) {
if (!targetMove || (targetMove.result === MoveResult.FAIL || targetMove.result === MoveResult.OTHER)) {
return false;
}