View Single Post
10-06-14, 06:00 PM   #5
Alternator
A Fallenroot Satyr
 
Alternator's Avatar
AddOn Author - Click to view addons
Join Date: May 2009
Posts: 20
I was curious about the whole true/false thing as well with this function.

I suspect part of the reason it's still 1/0 is because it's used as a tri-state function as follows:
1 = In Range
0 = Not In Range (but action is ranged type)
nil = Not a Ranged Action/Spell/Item

Of course tri-state can easily be done with true/false/nil as well but it will behave slightly differently in if statements (perhaps a weak reason, but that's my guess on it).