I'd say the problem with including the transferring creep in transferCreeps follows like this: Whenever your digger has the highest energy in the group (which is usually the case) then it will itself be transferCreeps[0] and do nothing. Otherwise, it'll completely ignore any creeps with less energy than it and only transfer to creeps with more energy than itself. Hopefully this explains the weird behavior.
CrematedCube
@CrematedCube
1
Posts
636
Profile views
0
Followers
0
Following
Posts made by CrematedCube
-
RE: code help for sorting creeps by energy