View Single Post
08-18-08, 06:56 PM   #6
kerrang
A Flamescale Wyrmkin
AddOn Author - Click to view addons
Join Date: Oct 2006
Posts: 109
Originally Posted by LBXZero View Post
Actually, I believe that is working properly.

It gives 0 if out of range, 1 if in range, and nil if target is invalid.
and what is invalid about casting Lightning Shield on yourself?

I guess the 'problem' is that Lightning Shield is a self-only spell and so has no 'range' to speak-of - however the unit and spell in my example ARE VALID - returning nil is nonsensical...

ESPECIALLY as there is no way that I've found to determine if a spell is self-only anywa!?

There is FAR too much "ah but you need to" and "yeah but that doesn't work if" going on in this API for my tastes - code of this standard wouldn't get you a job in the local utility companies billing dept