mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-08 17:32:18 +02:00
Compare commits
No commits in common. "7ed71ceb908200db58c4b6d45763e14f5cf58a91" and "1813009443e1632c0b5d5c9e9573b1bec7d2b42c" have entirely different histories.
7ed71ceb90
...
1813009443
@ -4243,7 +4243,7 @@ export class FormBlockDamageAbAttr extends ReceivedMoveDamageMultiplierAbAttr {
|
|||||||
(args[0] as Utils.NumberHolder).value = this.multiplier;
|
(args[0] as Utils.NumberHolder).value = this.multiplier;
|
||||||
pokemon.removeTag(this.tagType);
|
pokemon.removeTag(this.tagType);
|
||||||
if (this.recoilDamageFunc) {
|
if (this.recoilDamageFunc) {
|
||||||
pokemon.damageAndUpdate(this.recoilDamageFunc(pokemon), HitResult.OTHER, false, false, true, true);
|
pokemon.damageAndUpdate(this.recoilDamageFunc(pokemon), HitResult.OTHER);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
@ -207,18 +207,4 @@ describe("Abilities - Disguise", () => {
|
|||||||
|
|
||||||
expect(mimikyu1.formIndex).toBe(disguisedForm);
|
expect(mimikyu1.formIndex).toBe(disguisedForm);
|
||||||
}, TIMEOUT);
|
}, TIMEOUT);
|
||||||
|
|
||||||
it("doesn't faint twice when fainting due to Disguise break damage, nor prevent faint from Disguise break damage if using Endure", async () => {
|
|
||||||
game.override.enemyMoveset(Array(4).fill(Moves.ENDURE));
|
|
||||||
await game.startBattle();
|
|
||||||
|
|
||||||
const mimikyu = game.scene.getEnemyPokemon()!;
|
|
||||||
mimikyu.hp = 1;
|
|
||||||
|
|
||||||
game.move.select(Moves.SHADOW_SNEAK);
|
|
||||||
await game.toNextWave();
|
|
||||||
|
|
||||||
expect(game.scene.getCurrentPhase()?.constructor.name).toBe("CommandPhase");
|
|
||||||
expect(game.scene.currentBattle.waveIndex).toBe(2);
|
|
||||||
}, TIMEOUT);
|
|
||||||
});
|
});
|
||||||
|
@ -334,11 +334,7 @@ export default class ModifierSelectUiHandler extends AwaitableUiHandler {
|
|||||||
success = false;
|
success = false;
|
||||||
break;
|
break;
|
||||||
case 1:
|
case 1:
|
||||||
if (this.transferButtonContainer.visible) {
|
success = this.rerollButtonContainer.visible && this.setCursor(0);
|
||||||
success = this.setCursor(3);
|
|
||||||
} else {
|
|
||||||
success = this.rerollButtonContainer.visible && this.setCursor(0);
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
if (this.transferButtonContainer.visible) {
|
if (this.transferButtonContainer.visible) {
|
||||||
@ -372,13 +368,6 @@ export default class ModifierSelectUiHandler extends AwaitableUiHandler {
|
|||||||
case 2:
|
case 2:
|
||||||
success = false;
|
success = false;
|
||||||
break;
|
break;
|
||||||
case 3:
|
|
||||||
if (this.transferButtonContainer.visible) {
|
|
||||||
success = this.setCursor(1);
|
|
||||||
} else {
|
|
||||||
success = this.setCursor(2);
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
} else if (this.cursor < this.getRowItems(this.rowCursor) - 1) {
|
} else if (this.cursor < this.getRowItems(this.rowCursor) - 1) {
|
||||||
success = this.setCursor(this.cursor + 1);
|
success = this.setCursor(this.cursor + 1);
|
||||||
|
Loading…
Reference in New Issue
Block a user