| 04-07-2009, 06:34 PM | #1 |
No, it isn't that slow, but you get the point, probably. So I plan to use FirstOfGroup() == null instead of it, to check if a unit group is empty. Now my question is, is FirstOfGroup() bugged somehow? I ask this because blizzard didn't use that when they made IsUnitGroupEmptyBJ(). |
| 04-07-2009, 06:39 PM | #2 |
You need to make sure there are no "shadow" units in the group for this to work. Shadow units get left behind when a unit leaves the game while they are in a unitgroup. You can remove the units before they leave the game or use GroupClear to take care of them. |
| 04-08-2009, 01:27 AM | #3 |
Read through this to hel understand it better. And use it for the GroupRefresh function if you still want to go with that method. |
| 04-08-2009, 04:53 AM | #4 |
blizzard is noob, thats why they made Bj functions. So dont try to do wat blizzard does |
