Procházet zdrojové kódy

Fix the instant kill effect not removing itself

vintage
Fen Dweller před 5 roky
rodič
revize
dce420ba54
1 změnil soubory, kde provedl 1 přidání a 0 odebrání
  1. +1
    -0
      src/game/combat/effects.ts

+ 1
- 0
src/game/combat/effects.ts Zobrazit soubor

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


Načítá se…
Zrušit
Uložit