foundryvtt / pf2e

A community contributed game system for Pathfinder Second Edition.
https://foundryvtt.com/packages/pf2e
Apache License 2.0
397 stars 333 forks source link

`reevaluateOnUpdate` support for physical items #6683

Open lucasilvassis opened 1 year ago

lucasilvassis commented 1 year ago

Creating an invested item with FlatModifier and GrantItem Rule Elements yields a possible unintended behavior: image

Intended effect: An item with +1 Arcana flat modifier that causes the drained condition while invested. Used Rule Elements: { "key": "FlatModifier", "selector": "arcana", "type": "item", "value": 1, "label": "test-arcana" }

{ "key": "GrantItem", "uuid": "Compendium.pf2e.conditionitems.4D2KBtexWXa6oUMR", "reevaluateOnUpdate": true }

Result: The FlatModifier works as intended if the item is invested but the condition is not applied correctly. However, the condition is applied correctly if the invested property is deleted. Am I doing something wrong or is this an unintended behavior?

stwlam commented 1 year ago

This is system limitation: reevaluateOnUpdate won't work on physical items