Use minimum level instead of guessed level
(The dialog description says 'Players have at least the following level:') At first, many players might be shown as L1, but this will fade as soon as deploy messages by them are captured.
This commit is contained in:
parent
bb81e6266b
commit
41af1e189b
@ -215,7 +215,7 @@ window.plugin.guessPlayerLevels.guess = function() {
|
|||||||
var nick = reso.ownerGuid;
|
var nick = reso.ownerGuid;
|
||||||
if(isSystemPlayer(nick)) return true;
|
if(isSystemPlayer(nick)) return true;
|
||||||
|
|
||||||
var lvl = window.plugin.guessPlayerLevels.fetchLevelByPlayer(nick);
|
var lvl = window.plugin.guessPlayerLevels.fetchLevelDetailsByPlayer(nick).min;
|
||||||
if(!lvl) return true;
|
if(!lvl) return true;
|
||||||
|
|
||||||
if(getTeam(details) === TEAM_ENL)
|
if(getTeam(details) === TEAM_ENL)
|
||||||
@ -227,7 +227,7 @@ window.plugin.guessPlayerLevels.guess = function() {
|
|||||||
if(details.captured) {
|
if(details.captured) {
|
||||||
var nick = details.captured.capturingPlayerId
|
var nick = details.captured.capturingPlayerId
|
||||||
if(isSystemPlayer(nick)) return true;
|
if(isSystemPlayer(nick)) return true;
|
||||||
var lvl = window.plugin.guessPlayerLevels.fetchLevelByPlayer(nick);
|
var lvl = window.plugin.guessPlayerLevels.fetchLevelDetailsByPlayer(nick).min;
|
||||||
if(!lvl) return true;
|
if(!lvl) return true;
|
||||||
|
|
||||||
if(getTeam(details) === TEAM_ENL)
|
if(getTeam(details) === TEAM_ENL)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user