mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-03 23:12:20 +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 {
|
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 {
|
||||||
|
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user