Auto Potion

Auto Potion

282k Downloads

error if nothing found on bag

gaveer opened this issue ยท 0 comments

commented

@ollidiemaus or @malwhare
Hello there , great addon and everything but can we add like fail safe macro if i don't have anything of the Healthstone, Spiritual Healing Potion or Rejuventating Siphoned Essence to change macro to to something send messege to player to buy healing pot or get healthstones . because if i dont have anything and click the macro it give me error 

2x FrameXML\ChatFrame.lua:1028: Usage: CastSpellByName(name[, target])
[string "=[C]:"]: in function 'CastSpellByName'
[string "@FrameXML\ChatFrame.lua"]:1028: in function <FrameXML\ChatFrame.lua:956>
[string "@FrameXML\ChatFrame.lua"]:1233: in function '?'
[string "@FrameXML\ChatFrame.lua"]:5143: in function 'ChatEdit_ParseText'
[string "@FrameXML\ChatFrame.lua"]:4827: in function 'ChatEdit_SendText'
[string "@FrameXML\ChatFrame.lua"]:3075: in function <FrameXML\ChatFrame.lua:3068>
[string "=[C]:"]: in function 'UseAction'
[string "@FrameXML\SecureTemplates.lua"]:350: in function 'handler'
[string "@FrameXML\SecureTemplates.lua"]:663: in function <FrameXML\SecureTemplates.lua:607>
[string "=[C]:"]: ?
[string "@FrameXML\SecureHandlers.lua"]:266: in function <FrameXML\SecureHandlers.lua:263>
[string "=[C]:"]: ?
[string "@FrameXML\SecureHandlers.lua"]:296: in function <FrameXML\SecureHandlers.lua:279>
[string "=(tail call)"]: ?