Skip to content

Commit

Permalink
bugme2: avoid suicide other types.
Browse files Browse the repository at this point in the history
  • Loading branch information
XenoAmess committed Oct 9, 2022
1 parent 652e1b2 commit f8ceddb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/role_sourcer.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,8 @@ function harvest(creep) {

if (returnCode === ERR_NOT_OWNER) {
creep.log('Suiciding, someone else reserved the controller');
creep.moveBackToPath();
creep.memory.killed = true;
creep.suicide();
return false;
}

Expand Down

0 comments on commit f8ceddb

Please sign in to comment.