olistic/warriorjs

Check if unit is alive after effects

Open

#63 geöffnet am 8. Mai 2018

Auf GitHub ansehen
 (8 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)JavaScript (9.168 Stars) (528 Forks)batch import
good first issuepkg: corestatus: claimedtype: enhancement

Beschreibung

A negative effect could potentially kill a unit. We need to check if the unit is still alive after executing the effects and return early if the unit died. Example: a "poisoned" effect (it doesn't exist, at least yet) that damages the unit turn by turn.

Contributor Guide