Hello, I want to know if the following kind of code could fire random bugs in a map
I don't want to use filters that return false, because I have seen a fps test which result was looping is better (in this site) and because in filters I have to redeclare local variables (like trigger unit) using more map size.
I think it couldn't, just asking to be sure. I'm not an experienced Jasser.
JASS:
globals
group ENUM_GROUP=CreateGroup()
endglobals
function SomeFunc takes real x,real y returns nothing
local unit e
call GroupEnumUnitsInRange(ENUM_GROUP,x,y,500,null)
loop
exitwhen e==null
call GroupRemoveUnit(ENUM_GROUP,e)
// Do things, like damage, cast spells to e, etc
endloop
endfunction
I don't want to use filters that return false, because I have seen a fps test which result was looping is better (in this site) and because in filters I have to redeclare local variables (like trigger unit) using more map size.
I think it couldn't, just asking to be sure. I'm not an experienced Jasser.