Soandso2
Well-known member
When I cast a spell from a clicky, like an illusion, does that not qualify as "casting"?
Spam
In the snippet above me is shortened for mq.TLO.Me obviously. invisible is a boolean and goodToGo() is the function from LeRouge.Lua
If I have the human illusion and I stand still and invisible is false and goodToGo tells me I am good to go, and I click off the illusion, this IF-statement should evaluate is "true" and the useClickys function should be called. And this happens. But once the illusion clicky has begun its 7 second cast, goodToGo should evaluate as false, since I am casting, should it not?
But useClickys is spammed like heck. What am I missing?
goodToGo()
Spam
Lua:
if not me.Buff("Illusion: Human").ID() and not me.Moving() and not invisible and goodToGo() then
useClickys("Circlet of Disguise")
end
In the snippet above me is shortened for mq.TLO.Me obviously. invisible is a boolean and goodToGo() is the function from LeRouge.Lua
If I have the human illusion and I stand still and invisible is false and goodToGo tells me I am good to go, and I click off the illusion, this IF-statement should evaluate is "true" and the useClickys function should be called. And this happens. But once the illusion clicky has begun its 7 second cast, goodToGo should evaluate as false, since I am casting, should it not?
But useClickys is spammed like heck. What am I missing?
goodToGo()
Lua:
local function goodToGo()
-- Credit: LeRogue.lua by @rawmotion at RedGuides.com
return not me.Stunned()
and not me.Dead()
and not me.Feigning()
and not me.Ducking()
and not me.Silenced()
and not me.Charmed()
and not me.Mezzed()
and not me.Invulnerable()
and not me.Casting()
end




