added castID and interrupt to the returns list
(added castID and interrupt to the returns list) |
|||
| Line 4: | Line 4: | ||
Returns information on the spell currently cast by the specified unit. Returns nil if no spell is being cast. | Returns information on the spell currently cast by the specified unit. Returns nil if no spell is being cast. | ||
spell, rank, displayName, icon, startTime, endTime, isTradeSkill = UnitCastingInfo("unit") | spell, rank, displayName, icon, startTime, endTime, isTradeSkill, castID, interrupt = UnitCastingInfo("unit") | ||
| Line 19: | Line 19: | ||
:;endTime : Number - Specifies when casting will end, in milliseconds. | :;endTime : Number - Specifies when casting will end, in milliseconds. | ||
:;isTradeSkill : Boolean - Specifies if the cast is a tradeskill | :;isTradeSkill : Boolean - Specifies if the cast is a tradeskill | ||
:;castID : Number - (added either in or just before 3.2 - not sure what it does) | |||
:;interrupt : ? (added in 3.2... believe it's boolean for isInterruptable, but not sure) | |||
== Example == | == Example == | ||
| Line 42: | 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. | |||
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: | |||
name, nameSubtext, text, texture, startTime, endTime, isTradeSkill, castID, interrupt | |||
Didn't see 'castID' in there before, so added it to the returns list above. Assume it's a number, but this and the return type of interrupt need to be confirmed | |||
[[Category:World of Warcraft API]] | [[Category:World of Warcraft API]] | ||