mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-20 06:19:29 +02:00
Added check to make sure that Sketch does not copy a failed move.
This commit is contained in:
parent
9dae28f264
commit
3d6c69ff83
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user