kirk24788 / KPS

Karnofsky Performance System
8 stars 11 forks source link

isCastingSpell #34

Closed brainmr closed 7 years ago

brainmr commented 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))

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

htordeux commented 7 years ago

now working correctly in new update

kirk24788 commented 7 years ago

Closing this - if this still persists please re-open