This is a script for dev or anyone want to check if their AA got canceled by script or not
just copy these code and save it in your testscript2.lua
local myHero = GetMyHero()
OnAttackCancel(function(unit, result)
if unit == myHero then
if result.flag2 == 1 then
PrintChat("OnAttackCancel : GG")
end
end
end)
when your AA got canceled, it'll print "OnAttackCancel : GG" in the chat
P.S. this checker is based on an undocumented api, means it may not work well
Sign In
Create Account

Back to top
Report










