From f503080167b5041a04756a72466d81b6c6942d91 Mon Sep 17 00:00:00 2001 From: Tempoanon <163687446+Tempo-anon@users.noreply.github.com> Date: Mon, 3 Jun 2024 22:33:26 -0400 Subject: [PATCH] [Bug] Curse should do at least 1 damage (#1740) * [Bug] Curse should do at least 1 damage * Used the wrong math function lol --- src/data/battler-tags.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/data/battler-tags.ts b/src/data/battler-tags.ts index c4fd5dfb45b..63ac9fd895d 100644 --- a/src/data/battler-tags.ts +++ b/src/data/battler-tags.ts @@ -1341,7 +1341,7 @@ export class CursedTag extends BattlerTag { applyAbAttrs(BlockNonDirectDamageAbAttr, pokemon, cancelled); if (!cancelled.value) { - pokemon.damageAndUpdate(Math.floor(pokemon.getMaxHp() / 4)); + pokemon.damageAndUpdate(Math.max(Math.floor(pokemon.getMaxHp() / 4), 1)); pokemon.scene.queueMessage(getPokemonMessage(pokemon, ` is hurt by the ${this.getMoveName()}!`)); } }