X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=ultimate.js;h=e9b0d801db0490bd13df4f3c484c553aa44f2e27;hb=9a57e555972a2acc5cbd60c17154c602c9a883c0;hp=d50429e3d9509a96adaabf2fc72fc9f9d73d85d2;hpb=baa9fba20fa3233d7db196f4a5fff1c6a1d1cdb1;p=pkanalytics diff --git a/ultimate.js b/ultimate.js index d50429e..e9b0d80 100644 --- a/ultimate.js +++ b/ultimate.js @@ -516,8 +516,10 @@ function calc_stats(json, filters) { // _not_ after an interception, or a self-pass that's not a goal. // (It must mean we tipped off someone.) We'll count it as a regular one // for the time being, although it will make hockey assists weird. - ++p.goals; - ++p.callahans; + if (keep) { + ++p.goals; + ++p.callahans; + } handler = prev_handler = null; } else if (type === 'catch' || type === 'goal') { if (handler !== null) {