diff --git a/src/PersonObjects/PersonMethods.ts b/src/PersonObjects/PersonMethods.ts index 8ed01d5ef..3b34c3cc0 100644 --- a/src/PersonObjects/PersonMethods.ts +++ b/src/PersonObjects/PersonMethods.ts @@ -199,5 +199,11 @@ export function updateSkillLevels(this: Person): void { } export function hasAugmentation(this: Person, augName: string, ignoreQueued = false) { - return this.augmentations.some((a) => a.name === augName && (ignoreQueued || !this.queuedAugmentations.includes(a))); + if (this.augmentations.some((a) => a.name === augName)) { + return true; + } + if (!ignoreQueued && this.queuedAugmentations.some((a) => a.name === augName)) { + return true; + } + return false; }