call GroupEnumUnitsOfPlayer(g, GetOwningPlayer(GetTriggerUnit()), b)
I am an intermediate JASSer who does much more complicated things than this, and I can say I learned a few things. I'm pretty sure a lot of people wouldn't go through all the steps if they had other things to do on the map rather than optimization, but the spells simplicity shows a lot of things can be optimized even in such a small spell. These optimizations probably don't really change the in game lag on its one, but it is still optimization =DStill, it seems like an awfully long length to go to just to fix a small spell![]()