diff --git a/plugins/uniques.user.js b/plugins/uniques.user.js index adf3d7bc..926b32bb 100644 --- a/plugins/uniques.user.js +++ b/plugins/uniques.user.js @@ -51,12 +51,17 @@ window.plugin.uniques.onPortalDetailsUpdated = function() { details = portalDetail.get(guid), nickname = window.PLAYER.nickname; if(details) { - function installedByPlayer(entity) { - return entity && entity.owner == nickname; - } - - if(details.resonators.some(installedByPlayer) || details.mods.some(installedByPlayer)) { - plugin.uniques.updateVisited(true); + if(details.owner == nickname) { + plugin.uniques.updateCaptured(true); + // no further logic required + } else { + function installedByPlayer(entity) { + return entity && entity.owner == nickname; + } + + if(details.resonators.some(installedByPlayer) || details.mods.some(installedByPlayer)) { + plugin.uniques.updateVisited(true); + } } }