I'm having some trouble getting some functions to work that I wrote to use in macros. They use some functions from DMF. They worked great in 1.8, but not in 1.9. These functions and the error messages I'm now getting are:
Code:
function SmartCastUsable(action)
local actionSlot = GetActionID(action)
if IsUsableAction(actionSlot) then
if not (IsActionCoolingDown(action)) then
CastSpellByName(action)
end
end
end
Error:
Interface\AddOns\SmartFunctions\SmartFunctions.lua:50: Usage: IsUsableAction(slot)
|
Code:
function SmartAutoShot()
actionSlot = GetActionID("Auto Shot")
if not IsAutoRepeatAction(actionSlot) then
CastSpellByName("Auto Shot");
end
end
Error:
Interface\AddOns\SmartFunctions\SmartFunctions.lua:61: Usage: IsAutorepeatAction(slot)
|
In both cases where I use GetActionID(action), I do have the action I'm referencing placed on a hotkey so it can be found. To me, from the errors, it looks like GetActionID(action) is somehow not finding or not passing the ID of the hotkey to the next function which uses the ID. is GetActionID(action) still working in 1.9, or does it need updating? Or is there something I need to change about my functions for 1.9?
Help?????
Thanks!