Sign in to follow this  
Followers 0
Saphirro

Out of the range weak aura

3 posts in this topic

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.