- Code: Select all
/run local i=0 g=GetPlayerBuff a=IsAltKeyDown if(a==0)then if not IsCurrentAction(73) then UseAction(73)end else while not(g(i)==-1)do if(strfind(GetPlayerBuffTexture(g(i)), "Ability_Stealth"))then CancelPlayerBuff(g(i))end i=i+1 end end
note:
- assuming Action(73) is stealth, might have to check on that
- also assuming "Ability_Stealth" is the stealth buff which I don't think it is...
please run this macro while you're stealthed, targeting yourself (no other buffs on you if possible)
- Code: Select all
/run for i=1,16 do local B=UnitBuff("target",i); if B then ChatFrame1:AddMessage(B) end end
then exchange "Ability_Stealth" by whatever the macro outputs, leave out the Interface\\Icons\\ part though
- bind this on 1
- using shift + 1 / ctrl + 1 for other spells might not work if you bound this on 1
however I highly recommend using EzDismount or similar