fix: healing too
This commit is contained in:
parent
0cdabd0858
commit
9e82b3a5c1
|
@ -29,6 +29,7 @@ export default class Vulnerable extends Component {
|
||||||
const {Alive} = Component.ecs.get(this.entity);
|
const {Alive} = Component.ecs.get(this.entity);
|
||||||
if (Alive) {
|
if (Alive) {
|
||||||
switch (specification.type) {
|
switch (specification.type) {
|
||||||
|
case DamageTypes.HEALING:
|
||||||
case DamageTypes.PAIN: {
|
case DamageTypes.PAIN: {
|
||||||
Alive.acceptDamage(specification.amount);
|
Alive.acceptDamage(specification.amount);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user