Browse Source

Fix the instant kill effect not removing itself

master
Fen Dweller 5 years ago
parent
commit
dce420ba54
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      src/game/combat/effects.ts

+ 1
- 0
src/game/combat/effects.ts View File

@@ -10,6 +10,7 @@ export class InstantKillEffect extends StatusEffect {


onApply (creature: Creature) { onApply (creature: Creature) {
creature.vigors.Health = 0 creature.vigors.Health = 0
creature.removeEffect(this)
return new LogLines( return new LogLines(
new LogLine( new LogLine(
`${creature.name.capital} ${creature.name.conjugate(new ToBe())} killed instantly! `, `${creature.name.capital} ${creature.name.conjugate(new ToBe())} killed instantly! `,


Loading…
Cancel
Save