Skip to content

Commit

Permalink
added PR 183 and 177
Browse files Browse the repository at this point in the history
  • Loading branch information
zGeneral committed Oct 14, 2020
1 parent d299861 commit e610cf9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/movement/Movement.ts
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,8 @@ export class Movement {
if (isPowerZerg(creep)) {
return MovePriorities.powerCreep;
} else {
return MovePriorities[creep.memory.role] || MovePriorities.default;
// https://github.com/bencbartlett/Overmind/pull/177/
return (creep.memory.role in MovePriorities) ? MovePriorities[creep.memory.role] : MovePriorities.default;
}
}
}
Expand Down

0 comments on commit e610cf9

Please sign in to comment.