SalieriC / SWIM

A collection of macros for the SWADE system on Foundry with a focus on immersion (i.e. by using sound effects)
GNU General Public License v3.0
10 stars 12 forks source link

V 0.16.0 Unstun raise does not remove conditions #65

Closed Razortide closed 2 years ago

Razortide commented 2 years ago

Tested with: 9.255, SWADE 1.0.8

Stun applies conditions as it should, but if you roll for unstun with a raise, it marks stun as removed, but it is still active (the only condition that will be removed is prone - which should stick):

image

A "normal success" works as expected though.

SalieriC commented 2 years ago

You are right, but I don't get why. It's all there: https://github.com/SalieriC/SWADE-Immersive-Macros/blob/7f79a698584771fb05fc0699c7fe38c6a9293de3/swim/scripts/swim_modules/unstun.js#L74-L80 🤔

SalieriC commented 2 years ago

Apparently the script is faster than its shadow. A little delay did the trick. A hacky solution but at least it seems to work.