diff --git a/protocols/battlefield.js b/protocols/battlefield.js index 389c700..697c2e3 100644 --- a/protocols/battlefield.js +++ b/protocols/battlefield.js @@ -85,16 +85,7 @@ export default class battlefield extends Core { if (key === 'teamId') key = 'team' else if (key === 'squadId') key = 'squad' - if ( - key === 'kills' || - key === 'deaths' || - key === 'score' || - key === 'rank' || - key === 'team' || - key === 'squad' || - key === 'ping' || - key === 'type' - ) { + if (['kills', 'deaths', 'score', 'rank', 'team', 'squad', 'ping', 'type'].includes(key)) { value = parseInt(value) }