From 51f886e11b3cf5c07dd19b94b811174617352215 Mon Sep 17 00:00:00 2001 From: Hexugory Date: Sun, 2 Apr 2023 21:59:49 -0500 Subject: [PATCH] please understand --- src/battle.ts | 6 +++--- src/characters.json | 1 - 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/battle.ts b/src/battle.ts index 7eab9e0..6c98b7e 100644 --- a/src/battle.ts +++ b/src/battle.ts @@ -446,7 +446,7 @@ export class Battle { battle.appendLog(`(${target.team}) ${target.character.nameShort}'s debuffs were overturned!`); }, overturnHealth: (self: BattleUnit, target: BattleUnit, battle: Battle) => { - target.health = Math.max(target.health, 35); + target.health = Math.min(target.health, 35); battle.appendLog(`(${target.team}) ${target.character.nameShort} was brought down to size!`); }, @@ -459,7 +459,7 @@ export class Battle { .reduce((a, b) => a + (b.potency/100), 1)); //multiply by resistanceChange sum damage *= Math.max(0, - self.potencyEffects + target.potencyEffects .filter(status => {return status.type === 'resistance'}) .reduce((a, b) => a - (b.potency/100), 1)); damage = Math.round(damage) @@ -476,7 +476,7 @@ export class Battle { .reduce((a, b) => a + (b.potency/100), 1)); //multiply by resistanceChange sum damage *= Math.max(0, - self.potencyEffects + target.potencyEffects .filter(status => {return status.type === 'resistance'}) .reduce((a, b) => a - (b.potency/100), 1)); damage = Math.round(damage) diff --git a/src/characters.json b/src/characters.json index 459a926..4f76cb2 100644 --- a/src/characters.json +++ b/src/characters.json @@ -3982,7 +3982,6 @@ "effects": [ { "target": "oneOpponent", - "damage": 10, "function": "reverseHierarchy" } ]