Added check for Struggle.

This commit is contained in:
frutescens 2024-11-06 12:50:53 -08:00
parent 3d6c69ff83
commit e8ce7bedcf

View File

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