feat: harmful particles
This commit is contained in:
parent
a5faea148b
commit
eb94ca31ec
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user