Events/Unit Info


 * Note that this page is automatically generated; editing it is pointless. To edit event descriptions, edit the entries in the alphabetical pages, e.g. Events/A, Events/B, etc. Changes there will be copied over to here within a few hours.

Unit Info related events
This event is fired whenever the player's focus target (/focus) is changed, including when the focus target is lost or cleared.

This event is fired whenever the player's target is changed, including when the target is lost.


 * arg1 : up if you click the target directly, down if you press Escape to clear the target selection, LeftButton if you select the target using static frames in the UI, nil if the target moves out of range and is lost.

New in 1.11. Fired when a raid target icon is changed or removed. Also fired when player join or leave a party or raid. arg1 is who gets updated.

Note: Does not get triggered if a mob wearing a raid target icon dies (the icon is removed from that mob, however.)

Question/Correction: I can not pick up arg1 at all from this event. Change in 1.12? Please clarify if possible. Question/Correction: You are correct. The only arg is 1, which is the event name itself. --Robinson 02:34, 15 January 2007 (CDT)

Fired when a units attack is affected (such as the weapon being swung). First argument returned appears to be which unit this even applies to (for example, 'player').

Fired when a unit's attack power changes.

Fired when your attack speed is being listed or affected

Fired when a buff, debuff, status, or item bonus was gained by or faded from an entity (player, pet, NPC, or mob.)


 * arg1 : the UnitID of the entity

1-28-06: This event IS NOT fired when changing targets any longer.

Fired when an npc or player participates in combat and takes damage


 * arg1 : the UnitID of the entity
 * arg2 : Action,Damage,etc (e.g. HEAL, DODGE, BLOCK, WOUND, MISS, PARRY, RESIST, ...)
 * arg3 : Critical/Glancing indicator (e.g. CRITICAL, CRUSHING, GLANCING)
 * arg4 : The numeric damage
 * arg5 : Damage type in numeric value (1 - physical; 2 - holy; 4 - fire; 8 - nature; 16 - frost; 32 - shadow; 64 - arcane)

Fired when the units melee damage changes. Be warned that this often gets fired multiple times, for example when you change weapons.

Fired when a units defense is affected

Fired when the unit's mana stype is changed. Occurs when a druid shapeshifts as well as in certain other cases.


 * arg1 : UnitID

Fired when the unit's flags are changed.


 * arg1 : the UnitID of the entity entering a vehicle
 * arg2 : unknown boolean value
 * arg3 : vehicleType (possible values are 'Natural' and 'Mechanical')


 * arg1 : the UnitID of the entity exiting a vehicle

Fired when a target's faction is announced.


 * arg1 : the name of the unit whose faction changed

Fired when a unit's maximum power (mana, rage, focus, energy, runic power, ...) changes.
 * arg1 : UnitId whose resource maximum changed
 * arg2 : String representation of the resource whose maximum value changed: "MANA", "RAGE", "ENERGY", "FOCUS", "HAPPINESS", "RUNIC_POWER".

Fired when the unit's 3d model changes.

Fired when a unit's name changes.


 * arg1 : the UnitID of the entity whose name changed

Fired when a unit's pet changes.


 * arg1 : The UnitID of the entity whose pet changed

Fired when the pet's experience changes.

Fired when a units portrait changes.


 * arg1 : Unit name

Fired when a unit's current power (mana, rage, focus, energy, runic power, holy power, ...) changes.
 * arg1 : UnitId whose resource value changed
 * arg2 : String representation of the resource whose value changed: "MANA", "RAGE", "ENERGY", "FOCUS", "HAPPINESS", "RUNIC_POWER", "HOLY_POWER".

Fired whenever the quest log changes. (Frequently, but not as frequently as QUEST_LOG_UPDATE)


 * arg1 : unit name

Seen unit names:
 * player
 * party1

Fired when a unit's ranged damage changes.

Fired when a unit's ranged attack power changes.

Fired when the units resistance changes

Added in 2.0. Fired when a unit begins channeling in the course of casting a spell. Received for party/raid members as well as the player.


 * arg1 : Unit casting the spell
 * arg2 : Spell name
 * arg3 : Spell rank (deprecated in 4.0)
 * arg4 : Spell lineID counter
 * arg5 : Spell ID (added in 4.0)

Added in 2.0. Fired when a unit stops channeling. Received for party/raid members as well as the player.


 * arg1: Unit casting the spell
 * arg2 : Spell name
 * arg3 : Spell rank (deprecated in 4.0)
 * arg4 : Spell lineID counter
 * arg5 : Spell ID (added in 4.0)

Added in 2.0. Received for party/raid members, as well as the player


 * arg1 : Unit casting the spell
 * arg2 : Spell name
 * arg3 : Spell rank (deprecated in 4.0)
 * arg4 : Spell lineID counter
 * arg5 : Spell ID (added in 4.0)

Added in 2.0. Fired when a unit's spellcast is delayed, including party/raid members or the player


 * arg1 : Unit casting the spell
 * arg2 : Spell name
 * arg3 : Spell rank (deprecated in 4.0)
 * arg4 : Spell lineID counter
 * arg5 : Spell ID (added in 4.0)

Added in 2.0. Fired when a unit's spellcast fails, including party/raid members or the player


 * arg1 : Unit casting the spell
 * arg2 : Spell name
 * arg3 : Spell rank (deprecated in 4.0)
 * arg4 : Spell lineID counter
 * arg5 : Spell ID (added in 4.0)


 * arg1 : Unit casting the spell
 * arg2 : Spell name
 * arg3 : Spell rank (deprecated in 4.0)
 * arg4 : Spell lineID counter
 * arg5 : Spell ID (added in 4.0)

Added in 2.0. Fired when a unit's spellcast is interrupted, including party/raid members or the player


 * arg1 : Unit casting the spell
 * arg2 : Spell name
 * arg3 : Spell rank (deprecated in 4.0)
 * arg4 : Spell lineID counter
 * arg5 : Spell ID (added in 4.0)

Added in 3.2 (Had to guess at the args)


 * arg1 : Unit casting the spell
 * arg2 : Spell name
 * arg3 : Spell rank

Added in 3.2 (guessing at the args)


 * arg1 : Unit casting the spell
 * arg2 : Spell name
 * arg3 : Spell rank

 Fired when an event is sent to the server. Other messages indicate when the server begins timing or considers the cast successful.


 * arg1 : Unit casting the spell
 * arg2 : Spell name
 * arg3 : Spell rank (deprecated in 4.0)
 * arg4 : Spell target

Added in 2.0. Fired when a unit begins casting, including party/raid members or the player


 * arg1 : Unit casting the spell
 * arg2 : Spell name
 * arg3 : Spell rank (deprecated in 4.0)
 * arg4 : Spell lineID counter
 * arg5 : Spell ID (added in 4.0)

Added in 2.0. Fired when a unit stops casting, including party/raid members or the player


 * arg1 : Unit casting the spell
 * arg2 : Spell name
 * arg3 : Spell rank (deprecated in 4.0)
 * arg4 : Spell lineID counter
 * arg5 : Spell ID (added in 4.0)

Added in 2.0. Fired when a spell is cast successfully. Event is received even if spell is resisted.


 * arg1 : Unit casting the spell
 * arg2 : Spell name
 * arg3 : Spell rank (deprecated in 4.0)
 * arg4 : Spell lineID counter
 * arg5 : Spell ID (added in 4.0)

Fired when a units stats are being passed to the player/thing


 * arg1 : Unit Name

Fired when the target of yourself, raid, and party members change: 'target', 'party1target', 'raid1target', etc.. Should also work for 'pet' and 'focus'. This event only fires when the triggering unit is within the player's visual range. New in 2.x.


 * arg1 : unitId of the unit which changed targets.

?

Fired when the client receives updated threat information from the server, if an available mob's threat list has changed at all (ie anybody in combat with it has done anything).


 * arg1 : unitId of the mob whose threat list changed.

Fired when an available unit on an available mob's threat list moves past another unit on that list.


 * arg1 : unitId of the unit whose threat situation changed.

Fired when the mouseover object needs to be updated.

Fired when the target of the UnitID 'mouseover' has changed and is a 3d model. (Does not fire when UnitExists('mouseover') becomes nil, or if you mouse over a unitframe.)