restrict deaths_while_equipped for weapons and player routes
This commit is contained in:
@@ -114,7 +114,7 @@ router.get(
|
||||
if (index === 'attacker_id')
|
||||
data[requestIndex].username = e.attacker_name
|
||||
if (index === 'servername') data[requestIndex].host = e.host
|
||||
if (index === 'cause_of_death' || (req.query.weapon && !req.query.weapon.toString().startsWith('!')))
|
||||
if (index === 'cause_of_death' || (req.query.weapon && !req.query.weapon.toString().startsWith('!') && index === 'attacker_id'))
|
||||
data[requestIndex].deaths_while_equipped =
|
||||
Number(e.deaths_with_weapon) +
|
||||
(data[requestIndex].deaths_while_equipped || 0)
|
||||
|
||||
Reference in New Issue
Block a user