schlosrat / token-health

FoundryVTT module
5 stars 10 forks source link

Infinite damage bug [autosolved] #79

Open iozudono opened 1 year ago

iozudono commented 1 year ago

I have the attribute "attributes.TP" as damage reduction. I can do damage normally if the character in question doesn't have any attribute called that, exactly reducing the damage points introduced. But as soon as I create the damage reduction attribute on the token, dealing any amount of damage to it even if it's only 1 point causes the character's health to drop to 0. Damage receiving messages appear empty. I can heal him without any problem. I have tried modifying the attribute type, even using it with a value of 0, but until I remove "attributes.TP" from the token any amount of damage brings it to 0. Once I remove it, the character takes damage again as normal, subtracting it by the exact amount entered. I have solved it calling the reduction damage attribute "attributes.TP.value" in the settings but not in the character sheet. As I found it doing the latest checks before creating the issue, I thought it could help someone later I have FoundryVTT 9 and the module version is 0.5.6 Cheers :)