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;
|
||||
});
|
||||
|
||||
var nick = details.captured.capturingPlayerId
|
||||
if(isSystemPlayer(nick)) return true;
|
||||
var lvl = window.plugin.guessPlayerLevels.fetchLevelByPlayer(nick);
|
||||
if(!lvl) return true;
|
||||
if(details.captured) {
|
||||
var nick = details.captured.capturingPlayerId
|
||||
if(isSystemPlayer(nick)) return true;
|
||||
var lvl = window.plugin.guessPlayerLevels.fetchLevelByPlayer(nick);
|
||||
if(!lvl) return true;
|
||||
|
||||
if(getTeam(details) === TEAM_ENL)
|
||||
playersEnl[nick] = lvl;
|
||||
else
|
||||
playersRes[nick] = lvl;
|
||||
if(getTeam(details) === TEAM_ENL)
|
||||
playersEnl[nick] = lvl;
|
||||
else
|
||||
playersRes[nick] = lvl;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user