ForsakenNGS / DruidMacroHelper

MIT License
15 stars 11 forks source link

Update to 1.1.9 throws LUA Errors #14

Closed ap0yuv closed 2 years ago

ap0yuv commented 2 years ago

No expert in LUA but

Line 160: if ~UnitExists(unit) then

and Line 165: if ~IsSpellInRange(L["SPELL_CHARGE"], unit) then

is throwing Error on WoW TBC Startup.

changing ~ to not fixes it for me , cus i suppose thats what the intention of those lines is ?

Mushoz commented 2 years ago

Same issue for me!

HxxxxxS commented 2 years ago

Yep this is some weird bug due to how lua handles types. I guess it is that ~ is oposite boolean but doesnt work with nil. Should be fixed with e81a219022bbc694d899384af649bc80abe52066

ForsakenNGS commented 2 years ago

Correct, as @HxxxxxS already mentioned I noticed and fixed that issue a few hours after the 1.1.9 release with Version 1.2.0 If you still have issues with this feel free to comment.