Sotsiv 5 Posted May 23, 2020 Share Posted May 23, 2020 Hello, i tried this, if UnitBuffName("arena1", Shadow dance) then RunMacroText("/Cast [@arena1]Psychic horror") end But it doesnt work, if someone could help me with that it would be great. Thanks in advance Link to comment https://wrobot.eu/forums/topic/12183-if-unitbuffname/ Share on other sites More sharing options...
TheSmokie 242 Posted May 24, 2020 Share Posted May 24, 2020 If UnitBuff(“arena1”, “shadow dance”) then CastSpellByName(“Psychic Horrow”, “arena1”) end Sotsiv 1 Link to comment https://wrobot.eu/forums/topic/12183-if-unitbuffname/#findComment-58376 Share on other sites More sharing options...
TheSmokie 242 Posted May 24, 2020 Share Posted May 24, 2020 Should work, idk ?, not home to test Link to comment https://wrobot.eu/forums/topic/12183-if-unitbuffname/#findComment-58377 Share on other sites More sharing options...
Ordush 185 Posted May 24, 2020 Share Posted May 24, 2020 First of all UnitBuffName is something I added to my api. It's not native to the wow lua api. It's funny how stuff from my api keeps showing up on these forums, not sure where people are getting it from. Depending on what expansion you are on you shoudl use either UnitAura("Unit", "SpellName") or UnitBuff("Unit", index) or UnitDebuff("Unit", index) Sotsiv 1 Link to comment https://wrobot.eu/forums/topic/12183-if-unitbuffname/#findComment-58383 Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now