mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-24 00:09:31 +02:00
Fix linting
This commit is contained in:
parent
8112a5eea7
commit
467174b669
@ -2727,7 +2727,7 @@ export class AwaitCombinedPledgeAttr extends OverrideMoveEffectAttr {
|
||||
if (allyMovePhase) {
|
||||
const allyMove = allyMovePhase.move.getMove();
|
||||
if (allyMove !== move && allyMove.hasAttr(AwaitCombinedPledgeAttr)) {
|
||||
[user, allyMovePhase.pokemon].forEach((p) => p.turnData.combiningPledge = move.id);
|
||||
[ user, allyMovePhase.pokemon ].forEach((p) => p.turnData.combiningPledge = move.id);
|
||||
|
||||
// "{userPokemonName} is waiting for {allyPokemonName}'s move..."
|
||||
user.scene.queueMessage(i18next.t("moveTriggers:awaitingPledge", {
|
||||
@ -3838,7 +3838,7 @@ export class CombinedPledgePowerAttr extends VariablePowerAttr {
|
||||
const combinedPledgeMove = user.turnData.combiningPledge;
|
||||
|
||||
if (combinedPledgeMove && combinedPledgeMove !== move.id) {
|
||||
power.value *= 150/80;
|
||||
power.value *= 150 / 80;
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
@ -31,7 +31,7 @@ describe("Moves - Pledge Moves", () => {
|
||||
game.override
|
||||
.battleType("double")
|
||||
.startingLevel(100)
|
||||
.moveset([Moves.FIRE_PLEDGE, Moves.GRASS_PLEDGE, Moves.WATER_PLEDGE, Moves.SPLASH])
|
||||
.moveset([ Moves.FIRE_PLEDGE, Moves.GRASS_PLEDGE, Moves.WATER_PLEDGE, Moves.SPLASH ])
|
||||
.enemySpecies(Species.SNORLAX)
|
||||
.enemyLevel(100)
|
||||
.enemyAbility(Abilities.BALL_FETCH)
|
||||
@ -41,7 +41,7 @@ describe("Moves - Pledge Moves", () => {
|
||||
it(
|
||||
"Fire Pledge - should be an 80-power Fire-type attack outside of combination",
|
||||
async () => {
|
||||
await game.classicMode.startBattle([Species.BLASTOISE, Species.CHARIZARD]);
|
||||
await game.classicMode.startBattle([ Species.BLASTOISE, Species.CHARIZARD ]);
|
||||
|
||||
const firePledge = allMoves[Moves.FIRE_PLEDGE];
|
||||
vi.spyOn(firePledge, "calculateBattlePower");
|
||||
@ -52,7 +52,7 @@ describe("Moves - Pledge Moves", () => {
|
||||
game.move.select(Moves.FIRE_PLEDGE, 0, BattlerIndex.ENEMY);
|
||||
game.move.select(Moves.SPLASH, 1);
|
||||
|
||||
await game.setTurnOrder([BattlerIndex.PLAYER, BattlerIndex.PLAYER_2, BattlerIndex.ENEMY, BattlerIndex.ENEMY_2]);
|
||||
await game.setTurnOrder([ BattlerIndex.PLAYER, BattlerIndex.PLAYER_2, BattlerIndex.ENEMY, BattlerIndex.ENEMY_2 ]);
|
||||
await game.phaseInterceptor.to("MoveEndPhase", false);
|
||||
|
||||
expect(firePledge.calculateBattlePower).toHaveLastReturnedWith(80);
|
||||
@ -63,7 +63,7 @@ describe("Moves - Pledge Moves", () => {
|
||||
it(
|
||||
"Fire Pledge - should not combine with an ally using Fire Pledge",
|
||||
async () => {
|
||||
await game.classicMode.startBattle([Species.BLASTOISE, Species.CHARIZARD]);
|
||||
await game.classicMode.startBattle([ Species.BLASTOISE, Species.CHARIZARD ]);
|
||||
|
||||
const firePledge = allMoves[Moves.FIRE_PLEDGE];
|
||||
vi.spyOn(firePledge, "calculateBattlePower");
|
||||
|
Loading…
Reference in New Issue
Block a user