[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:
parent
98cff12fd1
commit
f503080167
|
@ -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()}!`));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue