Events / Unit Info _ _ NOEDITSECTION _ _ 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 . 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 . - - 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 . ) 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 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 . Fired when the unit ' s flags are changed . Fired whenever a units energy is affected . Removed in Patch 4 . 0 , use instead . Seen unit names : Fired when a target ' s faction is announced . Fires when a unit ' s focus resource value changes ; focus is primarily used for hunter pets . Removed in Patch 4 . 0 , use instead . Fired when the Pet Happiness changes . Used in PetFrame . lua to decide when to update the happiness display . Removed in Patch 4 . 0 , use instead . Added in 4 . 0 Fired whenever a units health is affected . This event may be sent more than once to represent the same change if the affected entity can be accessed through multiple UnitIDs . For example , two UNIT _ HEALTH events will be sent for raid party members who are also in your party group . UNIT _ HEALTH events are sent for raid and party members regardless of their distance from the character of the host . This makes UNIT _ HEALTH extremely valuable to monitor party and raid members . Seen unit names : Fired when the player equips or unequips an item . This can also be called if your target , mouseover or party member changes equipment ( untested for hostile targets ) . This event is also raised when a new item is placed in the player ' s containers , taking up a new slot . If the new item ( s ) are placed onto an existing stack or when two stacks already in the containers are merged , the event is not raised . When an item is moved inside the container or to the bank , the event is not raised . The event " is " raised when an existing stack is split inside the player ' s containers . This event is also raised when a temporary enhancement ( poison , lure , etc . . ) is applied to the player ' s weapon ( untested for other units ) . It will again be raised when that enhancement is removed , including by manual cancellation or buff expiration . If multiple slots are equipped / unequipped at once it only fires once now . This event is no longer triggered when changing zones or logging in . Inventory information is available when PLAYER _ ENTERING _ WORLD is triggered . Fired whenever the level of a unit is submitted ( e . g . when clicking a unit or someone joins the party ) Fired whenever a unit ' s mana changes . Removed in Patch 4 . 0 , use instead . Fired when a unit ' s maximum energy changes . Removed in Patch 4 . 0 , use instead . Fired when a unit ' s maximum focus changes . Removed in Patch 4 . 0 , use instead . Fired when a unit ' s maximum happiness changes . Removed in Patch 4 . 0 , use instead . Fired when a unit ' s maximum health changes . Fired when a unit ' s maximum mana changes . Removed in Patch 4 . 0 , use instead . Fired when a unit ' s maximum power ( mana , rage , focus , energy , runic power , . . . ) changes . Fired when a unit ' s maximum rage changes . Removed in Patch 4 . 0 , use instead . Added in 3 . 0 . Fired when a unit ' s maximum runic power changes . Removed in Patch 4 . 0 , use instead . Fired when the unit ' s 3d model changes . Fired when a unit ' s name changes . Fired when a unit ' s pet changes . Fired when the pet ' s experience changes . Fired when a units portrait changes . Fired when a unit ' s current power ( mana , rage , focus , energy , runic power , holy power , . . . ) changes . Fired whenever the quest log changes . ( Frequently , but not as frequently as QUEST _ LOG _ UPDATE ) Seen unit names : Fired whenever a units rage is affected . Removed in Patch 4 . 0 , use instead . 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 3 . 0 . Fired when a unit ' s runic power changes . Removed in Patch 4 . 0 , use instead . 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 . Added in 2 . 0 . Fired when a unit stops channeling . Received for party / raid members as well as the player . Added in 2 . 0 . Received for party / raid members , as well as the player Added in 2 . 0 . Fired when a unit ' s spellcast is delayed , including party / raid members or the player Added in 2 . 0 . Fired when a unit ' s spellcast fails , including party / raid members or the player Added in 2 . 0 . Fired when a unit ' s spellcast is interrupted , including party / raid members or the player Added in 3 . 2 ( Had to guess at the args ) Added in 3 . 2 ( guessing at the args ) < Added in Patch 2 . 0 > Fired when an event is sent to the server . Other messages indicate when the server begins timing or considers the cast successful . Added in 2 . 0 . Fired when a unit begins casting , including party / raid members or the player Added in 2 . 0 . Fired when a unit stops casting , including party / raid members or the player Added in 2 . 0 . Fired when a spell is cast successfully . Event is received even if spell is resisted . Fired when a units stats are being passed to the player / thing 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 . 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 ) . Fired when an available unit on an available mob ' s threat list moves past another unit on that list . 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 . )