if you have some suggestion please tell me
, since with buffs, the kata R sound end before ult is finished, which causes a 1.0s~1.5s ult cancel, and using a fixed value fix the problem but if you will get silenced or something you will stand still until 2.5s are done..
My suggestion would be, instead of tracking katarina's ult using buffs or a fixed timer -- I would find something more reliable to track R.
In this case, it would probably be tracking the animation, since the animation stops when katarina gets cced but also stops after the full duration of the ultimate.
If I knew the API and lua - I would probably be of more help.
But I'll give you some code to show you the concept.
function OnAnimation(unit, animationName)--function as a whole would need to be repeatedly checked for a duration of time (I suggest the check starts before windup and ends maybe 4 seconds after to ensure the ult is finished)- but not constantly (such as in onTick()) if unit == myHero then -- Make sure the animation belongs to her if animationName == "Spell4" then --While kat is using her ult CastingR = true --your variables for cancelling movement activate IOW.movementEnabled = false IOW.attacksEnabled = false else CastingR = false -- if the animation is over or interupted, let them move again IOW.movementEnabled = true IOW.attacksEnabled = true end end end