From eaba6e655c4a2906c4cd0860298a6fa446da84d2 Mon Sep 17 00:00:00 2001 From: Flashfyre Date: Thu, 4 Apr 2024 23:57:28 -0400 Subject: [PATCH] Revert crit change --- src/field/pokemon.ts | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/field/pokemon.ts b/src/field/pokemon.ts index c9812be97..65b862cdf 100644 --- a/src/field/pokemon.ts +++ b/src/field/pokemon.ts @@ -1136,11 +1136,6 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container { applyMoveAttrs(VariableAtkAttr, source, this, move, sourceAtk); applyMoveAttrs(VariableDefAttr, source, this, move, targetDef); - if (isCritical) { - sourceAtk.value = Math.max(sourceAtk.value, 0); - targetDef.value = Math.min(targetDef.value, 0); - } - if (!isTypeImmune) { damage.value = Math.ceil(((((2 * source.level / 5 + 2) * power.value * sourceAtk.value / targetDef.value) / 50) + 2) * stabMultiplier.value * typeMultiplier.value * arenaAttackTypeMultiplier * ((this.scene.randBattleSeedInt(15) + 85) / 100)) * criticalMultiplier; if (isPhysical && source.status && source.status.effect === StatusEffect.BURN) {