From 1f7763e715481130b6604aefd900172c211f530b Mon Sep 17 00:00:00 2001 From: cha0s Date: Sun, 8 Sep 2019 03:20:15 -0500 Subject: [PATCH] fix: spawn list wasn't propagating to wielder --- packages/entity/traits/spawner.trait.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/packages/entity/traits/spawner.trait.js b/packages/entity/traits/spawner.trait.js index 870ad2f..256e95e 100644 --- a/packages/entity/traits/spawner.trait.js +++ b/packages/entity/traits/spawner.trait.js @@ -41,10 +41,17 @@ export class Spawner extends decorate(Trait) { } destinationEntityList() { - if (this.entity.is('listed')) { + if ( + this.entity.is('listed') + && this.entity.list + ) { return this.entity.list; } - if (this.entity.wielder && this.entity.wielder.is('listed')) { + if ( + this.entity.wielder + && this.entity.wielder.is('listed') + && this.entity.wielder.list + ) { return this.entity.wielder.list; } }