1. Macro modifiers

    I am trying to make a macro that casts a spell when I'm targeting an enemy NPC and a different spell when targeting an enemy player. What is the modifier for that or does it even exist?

  2. /cast [@mouseover,harm,player][harm,player] Polymorph; [@mouseover,harm,npc][harm,npc] Frostbolt
    or
    /cast [@mouseover,harm,player][] Polymorph
    /cast [@mouseover,harm,npc][] Frostbolt
    or
    /cast [@mouseover,harm,nodead,player][harm,nodead,player] SpellA; [@mouseover,harm,nodead,npc][harm,nodead,npc] SpellB
    or
    /cast [harm,player] SpellForPlayers; [harm,npc] SpellForNPCs

    something like this?

  3. What a ****ing AI bot answer to OPs question. Anime picture.

    There is no way for a macro and its conditions to differentiate between a hostile NPC target and a hostile player target.

    If there is a certain thing you want to be able to do you can type it out here, but be specific and I can help you.

  4. There are ways to implement conditional modifiers but yeah sure go ahead and keep saying that.
    If you want the simpler version you can work with /targetenemyplayer which is specific to players only and /targetenemy for generalized targetting. Depends on your situation though.

    #showtooltip
    /cleartarget [dead][noharm]
    /targetenemyplayer [mod:shift,noexists]
    /targetenemy [nomod,noexists]
    /cast [mod:shift] Cyclone; Starfire

    this macro lets you switch between target all enemies and enemy players by pressing shift as example. This is the simple version without 3rd party. in this case Cyclone is used on an enemy player and Starfire on enemies you can target in general. you can see the visualization on the icon when you press shift so you know if you're targetting players or npcs.

    "There is no way for a macro and its conditions to differentiate between a hostile NPC target and a hostile player target." this is exactly what this macro does mr smartass. Better shut up if you have only limited knowledge rather than trying to call someone else out lmao.
    Edited: February 13, 2026

  5. I am trying to make a macro that casts a spell when I'm targeting an enemy NPC and a different spell when targeting an enemy player. What is the modifier for that or does it even exist?
    so you get bumped, forgot to quote.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •