Help with dispel macro

im looking for macro that ( for priest dispel magic) dispel my target if nothing to dispel then dispel target target

if not possible then

dispel target and when hitting alt dispell target target ?

Can’t say I’m sure how the macro rules go in Classic, but if it’s at all like modern rules, you need modifiers for each conditional, like nomod to dispel target, shift for targettarget, alt for self

I think you can’t check in a macro that executes a cast, wether the target has a debuff or not. You can check if the target can be helped though, which wors fine for all but a priests magic dispel.

#showtooltip
/cast [mod:alt,@player][help,nodead][@targettarget,help,nodead][] Flash Heal

Replace flash heal with your dispel spell and it will:

  • dispel yourself if you press alt
  • dispel your target if it is friendly
  • dispel your target’s target if your target is not friendly (or is an npc you can’t cast heals on)

Obviously, if you want to use the priest’s dispel magic to remove a buff from an enemy with this macro you can’t.

still looking for that macro that dispel targettarget buffs if its an enemy. and yes im using priest Dispel magic

I don’t think you’ll find one.
To check the target for debuffs you have to use /script and macros that contain that can’t cast spells.

You can’t use the spell itself to check for debuffs.
What you can try is this but it will always generate an error message, even when it works:

/cast Dispel Magic
/cast [@targettarget] Dispel Magic

And I’m not sure if it works.

anyone with this needed macro ?

It’s not possible with the macro API.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.