DennisWG / Roid-Macros

Vanilla macros on steroids!
MIT License
58 stars 20 forks source link

Clear Target #65

Open karai17 opened 1 year ago

karai17 commented 1 year ago

Hello! Thank you for creating this addon, it makes writing macros in Vanilla WoW so, so much nicer. Would it be possible to add a /cleartarget [conditionals] command to Roid Macros? Vanilla WoW has a simple API to clear your target:

https://vanilla-wow-archive.fandom.com/wiki/API_ClearTarget

ClearTarget()

I am looking to set up the following macro that I used in classic and this is the final piece that's missing~

#showtooltip Heroic Strike
/cleartarget [dead][help]
/startattack
/cast Heroic Strike

I can see in Console.lua that I should add SLASH_CLEARTARGET1 = "/cleartarget", however I am uncertain what I would put in SlashCmdList.CLEARTARGET as I am not too familiar with WoW addons, though I am quite familiar with Lua.