[uniques] don't detect unique captures from portal details
(Viruses don't count for uniques)
This commit is contained in:
parent
259c996fa2
commit
65916de578
@ -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;
|
||||
}
|
||||
function installedByPlayer(entity) {
|
||||
return entity && entity.owner == nickname;
|
||||
}
|
||||
|
||||
if(details.resonators.some(installedByPlayer) || details.mods.some(installedByPlayer)) {
|
||||
plugin.uniques.updateVisited(true);
|
||||
}
|
||||
if(details.resonators.some(installedByPlayer) || details.mods.some(installedByPlayer)) {
|
||||
plugin.uniques.updateVisited(true);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user