From c0055d68596b5ebee2aeaccdaa0208f201f5619e Mon Sep 17 00:00:00 2001 From: Fen Dweller Date: Sat, 25 Jul 2020 09:08:12 -0400 Subject: [PATCH] Fix heals not...healing --- src/game/entity.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/game/entity.ts b/src/game/entity.ts index c52c69e..64e9c2f 100644 --- a/src/game/entity.ts +++ b/src/game/entity.ts @@ -128,11 +128,11 @@ export class Creature extends Vore implements Combatant { if (instance.target in Vigor) { // just deal damage - this.vigors[instance.target as Vigor] -= instance.amount * factor * resistance + this.vigors[instance.target as Vigor] -= instance.amount * resistance } else if (instance.target in Stat) { // drain the stats, then deal damage to match const startVigors = this.maxVigors - this.stats[instance.target as Stat] -= instance.amount * factor * resistance + this.stats[instance.target as Stat] -= instance.amount * resistance const endVigors = this.maxVigors Object.keys(Vigor).map(vigor => {