foundryvtt / pf2e

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

When GrantItem gives drained condition, you do not properly lose your current HP #16977

Open FabianFabulous opened 3 hours ago

FabianFabulous commented 3 hours ago

Tried making a GrantItem that gives drained 1 at cursebound 2 (drained 2 at cursebound 4). When testing it out, drained condition doesn't make you lose your current HP, only your maximum. Do not know if the issue is connected to Lose Hit Points RE or inMemoryOnly GrantItems in general.

My RE jic:

{
  "allowDuplicate": false,
  "alterations": [
    {
      "mode": "override",
      "property": "badge-value",
      "value": "ternary(gte(@actor.conditions.cursebound.value,4),2,1)"
    }
  ],
  "inMemoryOnly": true,
  "key": "GrantItem",
"onDeleteActions": {
    "grantee": "restrict"
  },
  "predicate": [
    {
      "gte": [
        "self:condition:cursebound",
        2
      ]
    }
  ],
  "uuid": "Compendium.pf2e.conditionitems.Item.4D2KBtexWXa6oUMR",
  "reevaluateOnUpdate": true
}

Edit: Aldo tried making two separate GrantItems that give a fixed drained value, didn't help

stwlam commented 3 hours ago

This is a limitation of in-memory-only grants. They don't know when they were granted, so they can't make writes.