Skip to content

Add back TakesNoDamage text on applyDamage card#22366

Open
iDantar wants to merge 4 commits into
foundryvtt:v14-devfrom
iDantar:22364-add-back-TakesNoDamage-message
Open

Add back TakesNoDamage text on applyDamage card#22366
iDantar wants to merge 4 commits into
foundryvtt:v14-devfrom
iDantar:22364-add-back-TakesNoDamage-message

Conversation

@iDantar
Copy link
Copy Markdown
Collaborator

@iDantar iDantar commented May 19, 2026

Comment thread src/module/actor/base.ts
return hitPoints.value === hitPoints.max ? `${locPrefix}.AtFullHealth` : `${locPrefix}.HealedForN`;
}
if (!hitPoints.max || finalDamage - damageAbsorbedByActor === 0) {
return persistentCreated ? null : `${locPrefix}.TakesNoDamage`;
Copy link
Copy Markdown
Collaborator

@CarlosFdez CarlosFdez May 19, 2026

Choose a reason for hiding this comment

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

this looks like the intent is to not show the "takes no damage" message if persistent damage was created. But persistentCreated is always truthy. This should clearly be persistentCreated.length instead of outright removal.

Copy link
Copy Markdown
Collaborator Author

@iDantar iDantar May 19, 2026

Choose a reason for hiding this comment

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

I tried that, but imo it didn't look good
image

Maybe if we also move the undo button lower, into Persistent Damage block?

Copy link
Copy Markdown
Collaborator

@stwlam stwlam May 19, 2026

Choose a reason for hiding this comment

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

Have it use the natural language that would otherwise be there ("Leng Spider starts taking 1d4 persistent damage.").

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.

Sorry, not sure if I got you right - something like this?
image

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.

Almost, but no big heading or bulleted list

"Leng Spider starts taking 1d4 bleed and 1d4 persistent acid damage."

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.

Pushed the changes, looks like this now:
image

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.

Avoid the : and use whatever rendering the inline damage cards do.

@Damage[{4[persistent,fire],5[persistent,cold]}] turns into 4 persistent fire + 5 persistent cold

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.

Just to make sure: this is a message about damage received - they usually don't render the inline damage rolls. Could you confirm that they are needed here, 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.

I removed the colon, but please confirm about the inline damage rendering @CarlosFdez - are you sure we need to add it here?

@iDantar iDantar requested a review from stwlam May 21, 2026 16:23
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.

Damage message for immunities in chat is coming up empty

3 participants