Skip to content

Commit

Permalink
not thinking room blocked by own tower (#682)
Browse files Browse the repository at this point in the history
  • Loading branch information
TSStudio authored Feb 25, 2023
1 parent baf3d53 commit 661a63b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/prototype_room_external.js
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,9 @@ Room.prototype.checkBlockedPath = function() {
if (structure.structureType === STRUCTURE_INVADER_CORE) {
continue;
}
if (structure.structureType === STRUCTURE_TOWER && structure.my) {
continue;
}
this.log(`Path ${pathName} blocked on ${pos} due to ${structure.structureType}`);
return true;
}
Expand Down

0 comments on commit 661a63b

Please sign in to comment.