Skip to content

Commit

Permalink
Account for weird knife naming
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewda committed Aug 16, 2016
1 parent 46b0818 commit 192bf4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ Livescore.prototype._onKill = function(event) {
});

self.kills++;
if (event.weapon.indexOf('knife') > -1) {
if (event.weapon.indexOf('knife') > -1 || event.weapon.indexOf('bayonet') > -1) {
self.knifeKills++;
}
};
Expand Down

0 comments on commit 192bf4d

Please sign in to comment.