no edit summary
No edit summary |
|||
| Line 20: | Line 20: | ||
:;isTradeSkill : Boolean - Specifies if the cast is a tradeskill | :;isTradeSkill : Boolean - Specifies if the cast is a tradeskill | ||
:;castID : Number - Counts the spellcast(s) since the game has loaded.(added either in or just before 3.2) | :;castID : Number - Counts the spellcast(s) since the game has loaded.(added either in or just before 3.2) | ||
:;interrupt : | :; interrupt : (added in 3.2) Boolean - Returns true if the unit's current cast can be interrupted by abilities such as Counterspell or Kick. Otherwise, returns false if the cast is interruptible or nil if the unit is not casting. If tested on a Paladin with Divine Shield active, interrupt returns true while the Paladin is casting. Without Divine Shield active, interrupt would return false.) | ||
== Example == | == Example == | ||
| Line 44: | Line 44: | ||
As of May 10, 2008, this does not return anything while casting Hellfire, Drain Life, or Rain of Fire with my warlock. The correct API for channeled spells is [[API UnitChannelInfo|UnitChannelInfo]]. It takes the same arguments and returns the same values, but is specific to channeled spells. | As of May 10, 2008, this does not return anything while casting Hellfire, Drain Life, or Rain of Fire with my warlock. The correct API for channeled spells is [[API UnitChannelInfo|UnitChannelInfo]]. It takes the same arguments and returns the same values, but is specific to channeled spells. | ||
New in Patch 3.2 (August 2009), returns 'interrupt' as well. Believe this is a boolean value for whether it is interruptable or not, but needs confirmation. | New in Patch 3.2 (August 2009), returns 'interrupt' as well. Believe this is a boolean value for whether it is interruptable or not, but needs confirmation. Confirmed and updated. | ||
Also, the [http://forums.worldofwarcraft.com/thread.html?topicId=18031134556&sid=1&pageNo=1 official WoW 3.2 patch changes page] lists the returns as: | Also, the [http://forums.worldofwarcraft.com/thread.html?topicId=18031134556&sid=1&pageNo=1 official WoW 3.2 patch changes page] lists the returns as: | ||