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 {
return this.selfTarget
? target.getLastXMoves()[0]?.move ?? MoveId.NONE
: globalScene.currentBattle.lastMove
? globalScene.currentBattle.lastMove
: target.getLastXMoves()[0]?.move ?? MoveId.NONE
}
getCondition(): MoveConditionFunc {

View File

@ -28,7 +28,7 @@ describe("Moves - Assist", () => {
// 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
game.override
.ability(AbilityId.BALL_FETCH)
.ability(AbilityId.NO_GUARD)
.battleStyle("single")
.criticalHits(false)
.enemySpecies(SpeciesId.MAGIKARP)