nuaurpy / FantasyCraft

FantasyCraft for FoundryVTT
0 stars 1 forks source link

Actor wounds not properly set when first knocked unconscious by damage #2

Closed jjhritz closed 9 months ago

jjhritz commented 9 months ago

Occurs when a 'character' is the target of an attack and is reduced to/below 0 wounds by the attack, thus triggering the "applyCondition" function

https://github.com/nuaurpy/FantasyCraft/blob/cfa3c65b0c11619c08e4e51f9e9072c80c4b5705/module/actors/actor.js#L2261-L2272

Somewhere during the applyCondition call stack, the value of the target's Wounds is being saved and is overwriting the value set during applyDamage