Plugin AP List: Fix - neutral portal should show in friendly portal list.

This commit is contained in:
Xelio 2013-03-25 01:20:22 +08:00
parent 0b376493a7
commit f0720ee21f

View File

@ -1,7 +1,7 @@
// ==UserScript== // ==UserScript==
// @id iitc-plugin-ap-list@xelio // @id iitc-plugin-ap-list@xelio
// @name IITC plugin: AP List // @name IITC plugin: AP List
// @version 0.4.3.@@DATETIMEVERSION@@ // @version 0.4.4.@@DATETIMEVERSION@@
// @namespace https://github.com/jonatkins/ingress-intel-total-conversion // @namespace https://github.com/jonatkins/ingress-intel-total-conversion
// @updateURL @@UPDATEURL@@ // @updateURL @@UPDATEURL@@
// @downloadURL @@DOWNLOADURL@@ // @downloadURL @@DOWNLOADURL@@
@ -349,7 +349,8 @@ window.plugin.apList.isSamePortal = function(a,b) {
} }
window.plugin.apList.portalSide = function(portal) { 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_FRIENDLY
: plugin.apList.SIDE_ENEMY; : plugin.apList.SIDE_ENEMY;
} }