Skip to content

Commit

Permalink
Fix guard amount for invaderCore attacking
Browse files Browse the repository at this point in the history
amount was always zero because the invaderCore was not accounted for
  • Loading branch information
schealex authored Nov 17, 2020
1 parent f29985b commit ec52cdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/overlords/defense/npcDefense.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export class DefenseNPCOverlord extends Overlord {
}

init() {
const amount = this.room && (this.room.invaders.length > 0 || RoomIntel.isInvasionLikely(this.room)) ? 1 : 0;
const amount = this.room && (this.room.invaders.length > 0 || this.room.invaderCore || RoomIntel.isInvasionLikely(this.room)) ? 1 : 0;
this.wishlist(amount, CombatSetups.broodlings.default, {reassignIdle: true});
}

Expand Down

0 comments on commit ec52cdd

Please sign in to comment.