fix: spawn list wasn't propagating to wielder
This commit is contained in:
parent
a062a3fe51
commit
1f7763e715
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user