mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-03 15:02:16 +02:00
hhhhh
This commit is contained in:
parent
a7676fd33c
commit
c934215426
@ -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 {
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user