room.lookForAtArea(LOOK_ENERGY) returns resources
-
I am getting resources disguised as energy by this method.
Is this a known problem?
Example:
Game.rooms.W24S35.lookForAtArea(LOOK_ENERGY, 6, 39, 8, 41, true)
-
I had the same problem, and had to filter it with .filter(d => d.energy.resourceType == RESOURCE_ENERGY);
So it might be a bug.
-
Yes it seems indeed to be looking for all resources.
The same goes for pos.lookFor(LOOK_ENERGY)
Hence a creep checking for energy on it's way happens to pick up other stuff here and there too.