Fix flag capture player name resolve
parent
ee5dcd7fa8
commit
e23ed09b25
|
@ -156,7 +156,7 @@ const parseWarLog = (lineArray, war) => {
|
|||
* FLAG
|
||||
*/
|
||||
stats.clean.push(line);
|
||||
const playerName = line.substring(line.lastIndexOf('rt von ') + 7).slice(0, -2);
|
||||
const playerName = line.substring(line.lastIndexOf('rt von ') + 7).slice(0, -1);
|
||||
const flagFraction = line.includes('NATO Flagge') ? 'BLUFOR' : 'OPFOR';
|
||||
const capture = !!line.includes('Flagge erobert');
|
||||
|
||||
|
|
Loading…
Reference in New Issue