[Bug] Curse should do at least 1 damage (#1740)

* [Bug] Curse should do at least 1 damage

* Used the wrong math function lol
This commit is contained in:
Tempoanon 2024-06-03 22:33:26 -04:00 committed by GitHub
parent 98cff12fd1
commit f503080167
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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()}!`));
}
}