Selaa lähdekoodia

Fix the instant kill effect not removing itself

vintage
Fen Dweller 5 vuotta sitten
vanhempi
commit
dce420ba54
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  1. +1
    -0
      src/game/combat/effects.ts

+ 1
- 0
src/game/combat/effects.ts Näytä tiedosto

@@ -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! `,


Loading…
Peruuta
Tallenna