From c576e0ab5d70f9b7512036545139129b56e8e2cb Mon Sep 17 00:00:00 2001 From: nhamer Date: Sun, 12 Feb 2017 09:00:36 -0800 Subject: [PATCH] Fix broken artifact after shard is relocated --- code/artifact.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/code/artifact.js b/code/artifact.js index 28b61b3a..8c88fefe 100644 --- a/code/artifact.js +++ b/code/artifact.js @@ -96,6 +96,11 @@ window.artifact.processResult = function (portals) { for (var guid in portals) { var ent = portals[guid]; var data = decodeArray.portalSummary(ent); + + if (!data.artifactBrief) { + // 2/12/2017 - Shard removed from a portal leaves it in artifact results but has no artifactBrief + continue; + } // we no longer know the faction for the target portals, and we don't know which fragment numbers are at the portals // all we know, from the portal summary data, for each type of artifact, is that each artifact portal is