Skip to content

Commit 6078ba1

Browse files
committed
bugme2: avoid suicide other types.
1 parent 7913b6e commit 6078ba1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/role_sourcer.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,8 @@ function harvest(creep) {
110110

111111
if (returnCode === ERR_NOT_OWNER) {
112112
creep.log('Suiciding, someone else reserved the controller');
113-
creep.moveBackToPath();
113+
creep.memory.killed = true;
114+
creep.suicide();
114115
return false;
115116
}
116117

0 commit comments

Comments
 (0)