function getCurRank(event) { // WTOffline: also out of a squad, use the battle rating the matching server computed for the // lineup (wtmm_static.calc_ranks, answered by the local server with the lineup's highest // rank), as the live game decides the extra modes by the whole lineup. if (isInSquad() || getRecentSquadMrank() >= 0) return getRecentSquadMrank() let unit = getPlayerCurUnit() return unit == null ? null : getEffectiveMrank(unit, events.getEDiffByEvent(event)) }