mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-20 06:19:29 +02:00
Made revision to .find target
This commit is contained in:
parent
ba0265bfb6
commit
22b025bf1d
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user