summaryrefslogtreecommitdiff
path: root/src/role.offender.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/role.offender.js')
-rw-r--r--src/role.offender.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/role.offender.js b/src/role.offender.js
index 37854f2..fc5196d 100644
--- a/src/role.offender.js
+++ b/src/role.offender.js
@@ -3,7 +3,7 @@ module.exports = {
const hostiles = creep.room.find(FIND_HOSTILE_CREEPS);
if (hostiles.length > 0) {
if (creep.attack(hostiles[0]) == ERR_NOT_IN_RANGE) {
- creep.moveTo(hostiles[0]);
+ move(creep, hostiles[0]);
}
}
}