warrior's gift will still show name if no template
This commit is contained in:
parent
18cd705626
commit
94ee4243fa
@ -6,7 +6,13 @@ export class WarriorsGiftEffect extends PowerEffect {
|
||||
constructor(token, targets) {
|
||||
super(token, targets);
|
||||
const template = game.actors.getName('warriors-edge_template');
|
||||
this.edges = template.items.filter((i) => i.type === 'edge').map((i) => template.getEmbeddedDocument('Item', i.id));
|
||||
if (template) {
|
||||
this.edges = template.items
|
||||
.filter((i) => i.type === 'edge')
|
||||
.map((i) => template.getEmbeddedDocument('Item', i.id));
|
||||
} else {
|
||||
this.edges = [];
|
||||
}
|
||||
}
|
||||
|
||||
get name() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user