mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-15 12:52:20 +02:00
fix atk increase
This commit is contained in:
parent
ba92bcd4f9
commit
8ebd463c67
@ -266,8 +266,7 @@ export class GorillaTacticsTag extends MoveRestrictionBattlerTag {
|
|||||||
}
|
}
|
||||||
|
|
||||||
this.moveId = lastValidMove;
|
this.moveId = lastValidMove;
|
||||||
pokemon.setStatStage(Stat.ATK, 1);
|
pokemon.setStat(Stat.ATK, pokemon.getStat(Stat.ATK, false) * 1.5, false);
|
||||||
pokemon.updateInfo();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -39,12 +39,13 @@ describe("Abilities - Gorilla Tactics", () => {
|
|||||||
await game.classicMode.startBattle([Species.GALAR_DARMANITAN]);
|
await game.classicMode.startBattle([Species.GALAR_DARMANITAN]);
|
||||||
|
|
||||||
const darmanitan = game.scene.getPlayerPokemon()!;
|
const darmanitan = game.scene.getPlayerPokemon()!;
|
||||||
|
const initialAtkStat = darmanitan.getStat(Stat.ATK);
|
||||||
|
|
||||||
game.move.select(Moves.SPLASH);
|
game.move.select(Moves.SPLASH);
|
||||||
|
|
||||||
await game.phaseInterceptor.to("TurnEndPhase");
|
await game.phaseInterceptor.to("TurnEndPhase");
|
||||||
|
|
||||||
expect(darmanitan.getStatStage(Stat.ATK)).toBe(1);
|
expect(darmanitan.getStat(Stat.ATK, false)).toBeCloseTo(initialAtkStat * 1.5);
|
||||||
// Other moves should be restricted
|
// Other moves should be restricted
|
||||||
expect(darmanitan.isMoveRestricted(Moves.TACKLE)).toBe(true);
|
expect(darmanitan.isMoveRestricted(Moves.TACKLE)).toBe(true);
|
||||||
expect(darmanitan.isMoveRestricted(Moves.SPLASH)).toBe(false);
|
expect(darmanitan.isMoveRestricted(Moves.SPLASH)).toBe(false);
|
||||||
@ -60,11 +61,6 @@ describe("Abilities - Gorilla Tactics", () => {
|
|||||||
|
|
||||||
await game.phaseInterceptor.to("TurnEndPhase");
|
await game.phaseInterceptor.to("TurnEndPhase");
|
||||||
|
|
||||||
expect(darmanitan.getStatStage(Stat.ATK)).toBe(1);
|
|
||||||
// Other moves should be restricted
|
|
||||||
expect(darmanitan.isMoveRestricted(Moves.TACKLE)).toBe(true);
|
|
||||||
expect(darmanitan.isMoveRestricted(Moves.SPLASH)).toBe(false);
|
|
||||||
|
|
||||||
// Turn where Tackle is interrupted by Disable
|
// Turn where Tackle is interrupted by Disable
|
||||||
await game.toNextTurn();
|
await game.toNextTurn();
|
||||||
game.override.enemyMoveset(Array(4).fill(Moves.DISABLE));
|
game.override.enemyMoveset(Array(4).fill(Moves.DISABLE));
|
||||||
|
Loading…
Reference in New Issue
Block a user