During safe mode, Creep.attack() returns ERR_NO_BODYPART



  • When another player has activated safe mode, trying to attack their creeps/structures with Creep.attack() returns ERR_NO_BODYPART (-12), although the attacking creep *has* the respective body part. I would expect this to return either ERR_INVALID_TARGET (-7) or preferably a new constant named ERR_SAFE_MODE.



  • I haven't tested other harmful methods, but I suspect they all behave the same and should be fixed together with Creep.attack().



  • Yeah I stumbled upon the same issue. However checking for safemode is required anyways and safes you a lot of find calls worst case, so I would consider this a lower priority.