niantic removed controllingTeam from the portal details - we have to use the team from the summary data
This commit is contained in:
@ -231,7 +231,7 @@ window.getAttackApGainText = function(d,fieldCount) {
|
||||
|
||||
function tt(text) {
|
||||
var t = '';
|
||||
if (PLAYER.team == d.controllingTeam.team) {
|
||||
if (d.controllingTeam && PLAYER.team == d.controllingTeam.team) {
|
||||
totalGain = breakdown.friendlyAp;
|
||||
t += 'Friendly AP:\t' + breakdown.friendlyAp + '\n';
|
||||
t += ' Deploy ' + breakdown.deployCount + ', ';
|
||||
|
Reference in New Issue
Block a user