From 054a3121e545fb42877692e6448de939767d5470 Mon Sep 17 00:00:00 2001 From: Flashfyre Date: Sat, 6 Apr 2024 21:04:13 -0400 Subject: [PATCH] Add missing ceiling function to damage --- 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 008de0fdf77..41b1dade63b 100644 --- a/src/data/ability.ts +++ b/src/data/ability.ts @@ -539,7 +539,7 @@ export class PostDefendContactDamageAbAttr extends PostDefendAbAttr { applyPostDefend(pokemon: Pokemon, attacker: Pokemon, move: PokemonMove, hitResult: HitResult, args: any[]): boolean { if (move.getMove().checkFlag(MoveFlags.MAKES_CONTACT, attacker, pokemon)) { - attacker.damageAndUpdate(attacker.getMaxHp() * (1 / this.damageRatio), HitResult.EFFECTIVE, false, false, false); + attacker.damageAndUpdate(Math.ceil(attacker.getMaxHp() * (1 / this.damageRatio)), HitResult.OTHER); return true; }