Jump to content
FORUMS
Sign in to follow this  
Saphirro

Out of the range weak aura

Recommended Posts

Hi,

Can anybody help me with this aura for some reason i cant get it work.

Custom Trigger:

function()

if(IsSpellInRange("Chaos Strike", "target") == 1)

then return false

else return true

end

end

 

Custom Untrigger:

function()

if(IsSpellInRange("Chaos Strike", "target") == 1)

then return true

else return false

end

end

Share this post


Link to post
Share on other sites

First of all simplify it by just returning the result of that check:

function()
    return IsSpellInRange("Chaos Strike", "target") == 1
end

For the untrigger just negate the previous check:

function()
    return IsSpellInRange("Chaos Strike", "target") ~= 1
end

 

Share this post


Link to post
Share on other sites

Hi, Gawwad. I found that custom command just corrected it to my class  but it didnt work.

Your one is working nice tho i had to swap trigger and untrigger since i have huge out of range when i cant use it.

Thanks.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...