Is your feature request related to a problem? Please describe.
I have another module that logs actor changes to chat and I've noticed that some changes are not logged if made from the HUD. This is because actor.system[event].value += 1 in the Roll Handler is updating the value in the actor object directly before the update method is called.
Describe the solution you'd like
Switch to actor.system[event].value + 1 and actor.system[event].value - 1 so the values are not updated before the preUpdateActor hook.
Describe alternatives you've considered
No other alternatives.
Is your feature request related to a problem? Please describe. I have another module that logs actor changes to chat and I've noticed that some changes are not logged if made from the HUD. This is because
actor.system[event].value += 1
in the Roll Handler is updating the value in the actor object directly before theupdate
method is called.Describe the solution you'd like Switch to
actor.system[event].value + 1
andactor.system[event].value - 1
so the values are not updated before thepreUpdateActor
hook.Describe alternatives you've considered No other alternatives.
Additional context None.