chore: tidy

This commit is contained in:
cha0s 2021-04-20 06:48:02 -05:00
parent 0423c0dbe1
commit 46081203eb

View File

@ -213,7 +213,7 @@ export default (latus) => class Vulnerable extends Trait {
).forEach(async (interaction) => {
if (interaction.script) {
const script = await Script.load(interaction.script, {
entity: this.entity,
...this.entity.contextOrDefault,
harm,
});
const promise = script.tickingPromise();
@ -300,7 +300,7 @@ export default (latus) => class Vulnerable extends Trait {
tookHarm: (harm) => {
if ('client' !== process.env.SIDE) {
this.#harms.push(harm);
this.interactions(this.entity, harm, 'server');
this.interactions(this.entity, harm);
this.markAsDirty();
}
},