WoW:API UnitCastingInfo: Difference between revisions

no edit summary
(New page: {{wowapi}} __NOTOC__ 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 = ...)
 
No edit summary
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 = UnitCastingInfo("unit")
  spell, rank, displayName, icon, startTime, endTime, isTradeSkill = UnitCastingInfo("unit")




Line 18: Line 18:
:;startTime : Number - Specifies when casting has begun, in milliseconds.
:;startTime : Number - Specifies when casting has begun, in milliseconds.
:;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


== Example ==
== Example ==
Anonymous user