Soandso2
Well-known member
- Joined
- Mar 13, 2023
- RedCents
- 937¢
When I cast a spell from a clicky, like an illusion, does that not qualify as "casting"?
[CODE lang="Lua" title="Spam"]if not me.Buff("Illusion: Human").ID() and not me.Moving() and not invisible and goodToGo() then
useClickys("Circlet of Disguise")
end[/CODE]
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?
[CODE lang="Lua" title="goodToGo()"]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
[/CODE]
[CODE lang="Lua" title="Spam"]if not me.Buff("Illusion: Human").ID() and not me.Moving() and not invisible and goodToGo() then
useClickys("Circlet of Disguise")
end[/CODE]
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?
[CODE lang="Lua" title="goodToGo()"]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
[/CODE]





