This commit is contained in:
Hexugory 2023-04-02 21:29:29 -05:00
parent 3e553e4415
commit 8db4f49ae8

View File

@ -239,10 +239,10 @@ 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)
damage = Math.round(damage);
this.appendLog(`(${target.team}) ${target.character.nameShort} took ${damage} damage!`);
target.health -= damage;