mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-04-21 23:13:39 +02:00
Fixed BaseEffect emiting a scroll text of 0 armor change on every update
This commit is contained in:
parent
aa1d117c43
commit
931217577a
2 changed files with 5 additions and 4 deletions
|
|
@ -752,8 +752,7 @@ export function getArmorSources(actor) {
|
|||
const data = rawArmorSources.map(doc => {
|
||||
// Get the origin item. Since the actor is already loaded, it should already be cached
|
||||
// Consider the relative function versions if this causes an issue
|
||||
const isItem = doc instanceof Item;
|
||||
const origin = isItem ? doc : doc.origin ? foundry.utils.fromUuidSync(doc.origin) : doc.parent;
|
||||
const origin = doc.origin ? foundry.utils.fromUuidSync(doc.origin) : doc;
|
||||
return {
|
||||
origin,
|
||||
name: origin.name,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue