Closed brainmr closed 7 years ago
Hey Kirk,
@function <UNIT>.isCastingSpell(<SPELL>) - returns true if the unit is casting (or channeling) the given (i.e. target.isCastingSpell(spells.immolate))
<UNIT>.isCastingSpell(<SPELL>)
target.isCastingSpell(spells.immolate)
Trying to use this to check for player channeling a spell but getting an error, UnitCastingInfo needs "unit".
Tried to modify the (k) there but didnt get it to work. It should work for casts and channels too right?
local name, , , , startTime, endTime, , interrupt = UnitCastingInfo(k)
Cheers
now working correctly in new update
Closing this - if this still persists please re-open
Hey Kirk,
@function (i.e.
<UNIT>.isCastingSpell(<SPELL>)
- returns true if the unit is casting (or channeling) the giventarget.isCastingSpell(spells.immolate)
)Trying to use this to check for player channeling a spell but getting an error, UnitCastingInfo needs "unit".
Tried to modify the (k) there but didnt get it to work. It should work for casts and channels too right?
local name, , , , startTime, endTime, , interrupt = UnitCastingInfo(k)
Cheers