feat: harmful particles

This commit is contained in:
cha0s 2021-01-22 14:34:43 -06:00
parent a5faea148b
commit eb94ca31ec

View File

@ -28,6 +28,9 @@ export default (latus) => class Vulnerable extends Trait {
},
latus,
);
if (from.is('Emitter')) {
from.emitParticle('harmful');
}
this.interactions(this.entity, affinity, context, 'client');
this.entity.emit('acceptedHarm', harm);
}