mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-18 16:09:03 +01:00
Actions can only use item resources from their parent item
This commit is contained in:
parent
524b3fa921
commit
e37fc83c59
7 changed files with 79 additions and 74 deletions
|
|
@ -526,9 +526,8 @@ export default class DhpActor extends Actor {
|
|||
items: {}
|
||||
};
|
||||
resources.forEach(r => {
|
||||
if (r.keyIsUUID) {
|
||||
if (r.keyIsID) {
|
||||
updates.items[r.key] = {
|
||||
uuid: r.key,
|
||||
target: r.target,
|
||||
resources: {
|
||||
'system.resource.value': r.target.system.resource.value + r.value
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue