kmfkarctic.blogg.se

Hearthstone battleground addons
Hearthstone battleground addons













I've got it mostly working now but sometimes I have to click it multiple times before it starts casting. It let me use it once and it has never worked again. UseToyByName() is only available to the blizzard UI. castrandom and /userandom are broken for toys. There is a lot of broken crap with the toybox and protected functions. I tried so many different things that wouldn't work. That way I only need one macro in the interface with /click Button in it. But instead of assigning an item to the Secure Action Button I assign a /use macro. I've written a similar addon to yours for myself (I didn't know yours existed). I tested it out and it returns true for covenant stones even if they cannot be used. There is also a function C_Toybox.IsToyUsable but that just seems to differentiate faction toys. You can use saved variables so you only have to check unlearned stones once instead of every login. That way you are not iterating through the entire toybox at every login. Note - The PlayerHasToy function does not have the C_Toybox prefix.

hearthstone battleground addons

Go through all the stone to see if this toy is a stone.

hearthstone battleground addons

SanitizeString = defined = defined = defined = defined = falseįor i = 1, C_ToyBox.GetNumFilteredToys() do Locals: errMsg = "Interface\AddOns\RandomHearthToy\a:209: bad argument #1 to 'random' (interval is empty)"įormatErrorMessageSection = defined = defined = defined = false Stack: Interface\AddOns\RandomHearthToy\a:209: bad argument #1 to 'random' (interval is empty) Message: Interface\AddOns\RandomHearthToy\a:209: bad argument #1 to 'random' (interval is empty) Been getting this error whenever I use my hearth now.















Hearthstone battleground addons