Skip to content

Correctly update current HP change from Drained for Svetocher and Sanguine Tenacity#22147

Open
iDantar wants to merge 2 commits intofoundryvtt:v14-devfrom
iDantar:22120-svetocher-current-hp-fix
Open

Correctly update current HP change from Drained for Svetocher and Sanguine Tenacity#22147
iDantar wants to merge 2 commits intofoundryvtt:v14-devfrom
iDantar:22120-svetocher-current-hp-fix

Conversation

@iDantar
Copy link
Copy Markdown
Collaborator

@iDantar iDantar commented Apr 26, 2026

Closes #22120
Also fixes a bug where having both Sanguine Tenacity and Svetocher resulted in Drained 1 increasing max HP and Fort

Comment on lines +55 to +65
/** HP loss that occurs when this rule first applies to the actor (including any Drained-specific mitigation) */
#resolveInitialHpLoss(): number {
if (
this.item.isOfType("condition") &&
this.item.slug === "drained" &&
this.actor.getRollOptions().includes("drained-hp-effective-minus-one")
) {
return this.actor.level * ((this.item.value ?? 1) - 1);
}
return Math.trunc(Math.abs(Number(this.resolveValue(this.value)) || 0));
}
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We're not going to adjust an RE for a specific item. What problem are you trying to solve?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Application of Drained reduces current HP - I'm trying to mitigate that for Svetocher and Sanguine Tenacity, since they treat HP loss from that as if condition was 1 lower.
I didn't find a way to do that with only data changes, so had to adjust the method that applies the HP loss - if I missed it, could you suggest a better way of approaching this please?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@stwlam I found a different approach: implemented predicates for LoseHitPoints and adjusted Drained RE - could you take another look please?

@iDantar iDantar requested a review from stwlam May 7, 2026 20:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Svetocher not calculating Drained 1 correctly

2 participants