

Most spells require a primary target, or simply "target". NPCs may switch targets suddenly depending on the threat situation and scripting of their abilities. Players may switch targets rapidly until they find the one they intended. There is no in-game cost or delay to switching targets. For this reason, players wishing to appear unresponsive to others should not change targets. The current target of other players (including enemies) and NPCs is available using the "show target of target" interface option, certain raid frame options, and addons. Players' targets are reported to the game server even if no spell is being cast. In most other cases, an ability used with no target will be "loaded" onto the cursor for casting on whatever is clicked on. If the "auto self-cast" option is enabled, a healing or buff spell cast with no target or an invalid target will automatically target the caster. If a player uses certain offensive abilities with no target, one will be selected as if they had pressed "tab" (see the select page). If a player is attacked and has no target selected, their attacker will be selected automatically. Players and NPCs may be without a current target at any given time. If a mob has a target, that almost always indicates it's in combat, although some scripted events may break this rule of thumb. NPCs may target players, themselves or other NPCs that are friendly to them (usually when casting healing or protective spells), or in certain cases even unfriendly NPCs.

If the mob is attacking, its target is said to have aggro on the mob. Usually a mob's target is the unit with the most threat on it, but not always. Auto-attacks are always directed against a player's current target players should be careful not to accidentally change targets to a yellow mob while their auto-attack is turned on.Īn NPC doesn't have a user interface so the idea of "selection" does not apply, but its AI programming still determines its current target. An ability used by the player will be directed at the player's current target if it's valid for that ability, unless a different target is specified using macros or addons. Players may target mobs, friendly units, other players, and even themselves. Players can select an NPC or player as their current target in their game interface. The current target, or just "target", of a player or NPC, reflects what that unit is focused on at the moment, and actions it takes will affect the target by default.
