EndlesNights/dnd4eBeta

V12 Resource consumption power property breaks when resource is reduced to 0

draconas1 opened this issue · 1 comments

There is an auto-filter going on:

Repo case:

Setup custom resource 1 to have 1/1 per short rest. (aka simulating channel divinity).

Set Resource Consumption: attribute -> resources.primary.value -> 1

Close the power.

Roll the power.

Open the power to edit. resources.primary.value has now been replaced with None and is not visible in the drop down. You now can't use the power at all as validation won't roll it with a half completed resource consumption setup.

This only applies when reduced to zero. If you give the resource a higher value then it works fine until reduced to 0.

I'll look into this, though I think a better way to handle resource is to just create a new "Other" Power and use Item Uses.