Hello there! i'm leveling my warrior, and i suddenly wondered, can you make a macro, that if the target is friendly, it uses intervene, and if its hostile, it uses charge.

so i started making one, and it looks like this:

/cast [Target=Friendly] Intervene
/cast [Target=Hostile] Charge

when i pressed save, it said: Unknown command: Target=Friendly or something like that, lost it in chat.

The charge line works perfectly, but the intervene just says wrong target (even tho i'm in gruop with said player i try to intervene to)

so i'm thinking, is it possible, and i'm using the wrong command, and if so, then what is the correct command? or cant you?