Skip to content

Commit 73f8e6b

Browse files
authored
add god to bless talent even if there is no (any) (#2481)
1 parent 0953565 commit 73f8e6b

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

scripts/IupskvzvoGyD2H5o.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ if (god)
3131
{
3232
this.script.notification(`Could not find any Blessings associated with ${god}.`)
3333
}
34-
this.item.updateSource({name : this.item.name.replace("Any", god)})
34+
if (this.item.name.includes("Any"))
35+
this.item.updateSource({name: this.item.name.replace("Any", god)});
36+
else
37+
this.item.updateSource({name: this.item.name + ` (${god})`});
3538
await this.actor.update({"system.details.god.value": god})
3639
}

0 commit comments

Comments
 (0)