From f0720ee21f77a4b98bce92e835c92ab2d9b2e388 Mon Sep 17 00:00:00 2001 From: Xelio Date: Mon, 25 Mar 2013 01:20:22 +0800 Subject: [PATCH] Plugin AP List: Fix - neutral portal should show in friendly portal list. --- plugins/ap-list.user.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/ap-list.user.js b/plugins/ap-list.user.js index c6f91392..24350f58 100644 --- a/plugins/ap-list.user.js +++ b/plugins/ap-list.user.js @@ -1,7 +1,7 @@ // ==UserScript== // @id iitc-plugin-ap-list@xelio // @name IITC plugin: AP List -// @version 0.4.3.@@DATETIMEVERSION@@ +// @version 0.4.4.@@DATETIMEVERSION@@ // @namespace https://github.com/jonatkins/ingress-intel-total-conversion // @updateURL @@UPDATEURL@@ // @downloadURL @@DOWNLOADURL@@ @@ -349,7 +349,8 @@ window.plugin.apList.isSamePortal = function(a,b) { } window.plugin.apList.portalSide = function(portal) { - return (portal.controllingTeam.team === PLAYER.team) + return (portal.controllingTeam.team === PLAYER.team + || portal.controllingTeam.team === 'NEUTRAL') ? plugin.apList.SIDE_FRIENDLY : plugin.apList.SIDE_ENEMY; }