From 65916de5789c26ab91cb8bc8d24cfc2a539845b4 Mon Sep 17 00:00:00 2001 From: fkloft Date: Thu, 8 Jan 2015 01:45:02 +0100 Subject: [PATCH] [uniques] don't detect unique captures from portal details (Viruses don't count for uniques) --- plugins/uniques.user.js | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/plugins/uniques.user.js b/plugins/uniques.user.js index 926b32bb..adf3d7bc 100644 --- a/plugins/uniques.user.js +++ b/plugins/uniques.user.js @@ -51,17 +51,12 @@ window.plugin.uniques.onPortalDetailsUpdated = function() { details = portalDetail.get(guid), nickname = window.PLAYER.nickname; if(details) { - 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); - } + function installedByPlayer(entity) { + return entity && entity.owner == nickname; + } + + if(details.resonators.some(installedByPlayer) || details.mods.some(installedByPlayer)) { + plugin.uniques.updateVisited(true); } }