Is there a way to check to body parts of a creep?
-
I want my creeps to attack healers first if there is any in range but in order for me to do that I need to be able to find some array that holds a list of their body parts. Does any such member variable exist within the creeps object?
-
-
yes
creep.body;
count MOVE parts:var c = aquireCreep(); _.filter(c.body, function(bp){return bp == MOVE;}).length;