Originally Posted by SDPhantom
There's no way to query cooldown info on just any arbitrary ability. That and not all buffs share the same SpellID as the ability that applies it.
Also, the buff update doesn't continuously happen, so duration tracking will have to be written from scratch. Buff updates only fire when the list changes, usually by a buff (re)applying, gaining or losing stacks, dispelled, or expiration.
|
actualy u can do like this and its really working
buff.Stealable:SetShown(data.duration >= 10 and (data.expirationTime - GetTime()) < 20 );
only buff that have duration above10 and under 20 and its working