This commit is contained in:
Bertie690 2025-06-24 20:49:52 -04:00
parent a7676fd33c
commit c934215426
2 changed files with 3 additions and 3 deletions

View File

@ -7053,8 +7053,8 @@ export class CopyMoveAttr extends CallMoveAttr {
*/ */
override getMove(_user: Pokemon, target: Pokemon): MoveId { override getMove(_user: Pokemon, target: Pokemon): MoveId {
return this.selfTarget return this.selfTarget
? target.getLastXMoves()[0]?.move ?? MoveId.NONE ? globalScene.currentBattle.lastMove
: globalScene.currentBattle.lastMove : target.getLastXMoves()[0]?.move ?? MoveId.NONE
} }
getCondition(): MoveConditionFunc { getCondition(): MoveConditionFunc {

View File

@ -28,7 +28,7 @@ describe("Moves - Assist", () => {
// Manual moveset overrides are required for the player pokemon in these tests // Manual moveset overrides are required for the player pokemon in these tests
// because the normal moveset override doesn't allow for accurate testing of moveset changes // because the normal moveset override doesn't allow for accurate testing of moveset changes
game.override game.override
.ability(AbilityId.BALL_FETCH) .ability(AbilityId.NO_GUARD)
.battleStyle("single") .battleStyle("single")
.criticalHits(false) .criticalHits(false)
.enemySpecies(SpeciesId.MAGIKARP) .enemySpecies(SpeciesId.MAGIKARP)