From 34bf97a65f65e493baf909cf33d1c6fb9630332b Mon Sep 17 00:00:00 2001 From: muscode13 Date: Sat, 26 Oct 2024 11:58:34 -0600 Subject: [PATCH] fixed syntax inconsistency --- src/data/ability.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/data/ability.ts b/src/data/ability.ts index be84c907882..80830bfe315 100644 --- a/src/data/ability.ts +++ b/src/data/ability.ts @@ -4950,7 +4950,7 @@ export class PostDamageForceSwitchAttr extends PostDamageAbAttr { if (pokemon.hp + damage >= pokemon.getMaxHp() * this.hpRatio) { // Activates if it falls below half and recovers back above half from a Shell Bell const shellBellHeal = calculateShellBellRecovery(pokemon); - if (pokemon.hp - shellBellHeal < pokemon.getMaxHp() / 2) { + if (pokemon.hp - shellBellHeal < pokemon.getMaxHp() * this.hpRatio) { for (const opponent of pokemon.getOpponents()) { if (!this.helper.getSwitchOutCondition(pokemon, opponent)) { return false;