Fixed exception when selecting a neutral portal
This commit is contained in:
parent
1d3c768a4f
commit
d6e5629840
@ -159,15 +159,17 @@ window.plugin.guessPlayerLevels.guess = function() {
|
|||||||
playersRes[nick] = lvl;
|
playersRes[nick] = lvl;
|
||||||
});
|
});
|
||||||
|
|
||||||
var nick = details.captured.capturingPlayerId
|
if(details.captured) {
|
||||||
if(isSystemPlayer(nick)) return true;
|
var nick = details.captured.capturingPlayerId
|
||||||
var lvl = window.plugin.guessPlayerLevels.fetchLevelByPlayer(nick);
|
if(isSystemPlayer(nick)) return true;
|
||||||
if(!lvl) return true;
|
var lvl = window.plugin.guessPlayerLevels.fetchLevelByPlayer(nick);
|
||||||
|
if(!lvl) return true;
|
||||||
|
|
||||||
if(getTeam(details) === TEAM_ENL)
|
if(getTeam(details) === TEAM_ENL)
|
||||||
playersEnl[nick] = lvl;
|
playersEnl[nick] = lvl;
|
||||||
else
|
else
|
||||||
playersRes[nick] = lvl;
|
playersRes[nick] = lvl;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user