Internally ensure numbers are numbers
Petroslav opened this issue ยท 2 comments
Is your feature request related to a problem? Please describe.
I was trying to create an aura using a dynamic duration untrigger and ended up passing a string as the duration, instead of a number. This caused some issues until Spaten (in the WA Discord) pointed out I was sending a string instead of a number. People like me, unfamiliar with languages like Lua are probably prone to a mistake such as this. Even if they are, mistakes do happen.
Describe the solution you'd like
Just do a tonumber on the duration and expirationTime when the result is retrieved from the trigger functions.
Describe alternatives you've considered
To be more careful but we are human and this mistake will be repeated some day.
Additional context
N / A
I can't reproduce the issue with the minimal instructions you added.
Please add a aura that shows the problem to the ticket.