please understand

This commit is contained in:
Hexugory 2023-04-02 21:59:49 -05:00
parent 8db4f49ae8
commit 51f886e11b
2 changed files with 3 additions and 4 deletions

View File

@ -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)

View File

@ -3982,7 +3982,6 @@
"effects": [
{
"target": "oneOpponent",
"damage": 10,
"function": "reverseHierarchy"
}
]