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