Made revision to .find target

This commit is contained in:
frutescens 2024-11-07 15:37:59 -08:00
parent ba0265bfb6
commit 22b025bf1d

View File

@ -6748,7 +6748,7 @@ export class SketchAttr extends MoveEffectAttr {
return false;
}
const targetMove = target.getLastXMoves(target.battleSummonData.turnCount)
const targetMove = target.getLastXMoves(target.battleSummonData.turnCount).reverse()
.find(m => m.move !== Moves.NONE && m.move !== Moves.STRUGGLE && !m.virtual);
if (!targetMove) {
return false;