Fixed exception when selecting a neutral portal
This commit is contained in:
parent
1d3c768a4f
commit
d6e5629840
@ -159,6 +159,7 @@ window.plugin.guessPlayerLevels.guess = function() {
|
||||
playersRes[nick] = lvl;
|
||||
});
|
||||
|
||||
if(details.captured) {
|
||||
var nick = details.captured.capturingPlayerId
|
||||
if(isSystemPlayer(nick)) return true;
|
||||
var lvl = window.plugin.guessPlayerLevels.fetchLevelByPlayer(nick);
|
||||
@ -169,6 +170,7 @@ window.plugin.guessPlayerLevels.guess = function() {
|
||||
else
|
||||
playersRes[nick] = lvl;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
var s = 'Players have at least the following level:\n\n';
|
||||
|
Loading…
x
Reference in New Issue
Block a user