From ec52cddecd99ad5e2696bbac8d8354b56b11e875 Mon Sep 17 00:00:00 2001 From: Alexander Scherer Date: Tue, 17 Nov 2020 10:36:15 +0100 Subject: [PATCH] Fix guard amount for invaderCore attacking amount was always zero because the invaderCore was not accounted for --- src/overlords/defense/npcDefense.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/overlords/defense/npcDefense.ts b/src/overlords/defense/npcDefense.ts index 6f65c0061..a5dcda78c 100644 --- a/src/overlords/defense/npcDefense.ts +++ b/src/overlords/defense/npcDefense.ts @@ -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}); }