-
-
Notifications
You must be signed in to change notification settings - Fork 317
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Range Check condition, handle 3rd state "nil" #598
Comments
I guess the correct check would be: For which spells does IsSpellInRange return nil? |
With blackoutkick when i target myself |
Can you test what I suggested? |
Yes it fix it |
Good, if you don't beat me to it, I'll do a PR tomorrow. |
I guess we need something similar for Item ranegs |
not exactly the same |
Nice Blizzard! It looks to me like the existing check should work then |
The range check condition test is:
conditionTest = "state and state.show and (UnitExists('target') and WeakAuras.IsSpellInRange(state.spellname, 'target') == 1) == (%s == 1)",
isSpellInRange return
1 if in range
0 if not in range
nil if not applicable
It works good if we test "spell in range" is true
But if we test "spell in range" is false, the nil case is valid for this test which is wrong
The text was updated successfully, but these errors were encountered: