From b8a0b9981bb690af1396268147643e079e3c9fa3 Mon Sep 17 00:00:00 2001 From: EmoUsedHM01 <131687820+EmoUsedHM01@users.noreply.github.com> Date: Fri, 12 Apr 2024 20:46:37 +0100 Subject: [PATCH] Updated the crit formula to include the new critAlways --- src/field/pokemon.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/field/pokemon.ts b/src/field/pokemon.ts index 9dc560d8000..594b8cfb1ba 100644 --- a/src/field/pokemon.ts +++ b/src/field/pokemon.ts @@ -1174,8 +1174,9 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container { power.value *= 1.5; let isCritical: boolean; const critOnly = new Utils.BooleanHolder(false); + const critAlways = source.getTag(BattlerTagType.ALWAYS_CRIT); applyMoveAttrs(CritOnlyAttr, source, this, move, critOnly); - if (critOnly.value) + if (critOnly.value || critAlways) isCritical = true; else { const critLevel = new Utils.IntegerHolder(0); @@ -2879,4 +2880,4 @@ export class PokemonMove { getName(): string { return this.getMove().name; } -} \ No newline at end of file +}