zeel01 / MonsterBlocks

A Foundry VTT module to add NPC sheets that faithfully reproduce the appearance of D&D 5e monster statblocks.
29 stars 26 forks source link

Resolves #215 Condition Immunities are not displayed #227

Open LunarShade opened 8 months ago

LunarShade commented 8 months ago

Fixes #215. The condition immunity display uses the damage.hbs template but didn't set trait.selected or trait.visible anywhere. As a result the condition immunities were never rendered because visible was always false. Resolved by adding a setup function specifically for the condition immunity text. (Alternatively you could add it to the array in updateDamageImmunityResistanceVulnerabilityText, but that introduces some redundant lookups.)