uh
This commit is contained in:
parent
3e553e4415
commit
8db4f49ae8
@ -239,10 +239,10 @@ export class Battle {
|
|||||||
.reduce((a, b) => a + (b.potency/100), 1));
|
.reduce((a, b) => a + (b.potency/100), 1));
|
||||||
//multiply by resistanceChange sum
|
//multiply by resistanceChange sum
|
||||||
damage *= Math.max(0,
|
damage *= Math.max(0,
|
||||||
self.potencyEffects
|
target.potencyEffects
|
||||||
.filter(status => {return status.type === 'resistance'})
|
.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)
|
damage = Math.round(damage);
|
||||||
|
|
||||||
this.appendLog(`(${target.team}) ${target.character.nameShort} took ${damage} damage!`);
|
this.appendLog(`(${target.team}) ${target.character.nameShort} took ${damage} damage!`);
|
||||||
target.health -= damage;
|
target.health -= damage;
|
||||||
|
Loading…
Reference in New Issue
Block a user