From dce420ba54ab4bd4612d7a6205bbd4702da49689 Mon Sep 17 00:00:00 2001 From: Fen Dweller Date: Tue, 28 Jul 2020 13:18:43 -0400 Subject: [PATCH] Fix the instant kill effect not removing itself --- src/game/combat/effects.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/game/combat/effects.ts b/src/game/combat/effects.ts index 27bf159..9c52c6a 100644 --- a/src/game/combat/effects.ts +++ b/src/game/combat/effects.ts @@ -10,6 +10,7 @@ export class InstantKillEffect extends StatusEffect { onApply (creature: Creature) { creature.vigors.Health = 0 + creature.removeEffect(this) return new LogLines( new LogLine( `${creature.name.capital} ${creature.name.conjugate(new ToBe())} killed instantly! `,