Printable View
Quote: Originally Posted by Leitsha if spellType == 'spell' and cancastspell(spellToUseInfo) and not paround(rangeSpell) then paround(s) returns amount of ppl in s range, so your check will do for eg. 1. Is it a spell? 2. Can cast it? 3. Not 4? L. Well, 'not 4' actually evaluates to false in Lua. But the problem is that so does 'not 0'. PS: That's a nice [LUA][/LUA] tag!
if spellType == 'spell' and cancastspell(spellToUseInfo) and not paround(rangeSpell) then
Quote: Originally Posted by Raphael Well, 'not 4' actually evaluates to false in Lua. But the problem is that so does 'not 0'. PS: That's a nice [LUA][/LUA] tag! Yea, thats what I meant by that. But I'm glad that you enjoy this tag so much, I will try to remember to use it in all my posts now. L.
Quote: Originally Posted by Leitsha if spellType == 'spell' and cancastspell(spellToUseInfo) and not paround(rangeSpell) then paround(s) returns amount of ppl in s range, so your check will do for eg. 1. Is it a spell? 2. Can cast it? 3. Not 4? L. My bad. I thought paround returned if there is 1+ players inside the range. My bad again. Thanks for the explanation!