no giga absorb strats

This commit is contained in:
Hexugory 2023-04-01 02:17:36 -05:00
parent d2bcba6235
commit 0dc41ceb44

View File

@ -457,9 +457,10 @@ export class Battle {
.filter(status => {return status.type === 'damage'})
.reduce((a, b) => a + (b.potency/100), 1);
//multiply by resistanceChange sum
damage *= self.potencyEffects
damage *= Math.max(0,
self.potencyEffects
.filter(status => {return status.type === 'resistance'})
.reduce((a, b) => a - (b.potency/100), 1);
.reduce((a, b) => a - (b.potency/100), 1));
damage = Math.round(damage)
this.appendLog(`(${target.team}) ${target.character.nameShort} took ${damage} damage!`);