When exactly is an enemy not electrocutable?
Do you observe a special condition under which enemies are not electrocutable (like enemy-type, -position or -health)?
A “palisade” is also an enemy (returned by using findNearestEnemy()).
I tried it in keeping-time. At some point i got the error message “Target must be an electrocutable unit.”.
Now i’m checking enemy types, but I’m still curious about if there’s an item or some other function for checking this.
I’m baffled. It never occurred to me that there might be any non-living enemy. By this logic doors also shouldn’t be electrocutable.
Can you open a new issue on GitHub about it? This way the developers of CC can see it and try to find a solution. Just send me a PM if you can’t, I’m currently on my mobile and GitHub and my mobile don’t like each other, so I can do it when I’m back home.