X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=ultimate.js;fp=ultimate.js;h=f913e3d87df150468417207c8fdfab41c99f6d91;hb=f23692525864984376d5f97c3f6fcc72c2870861;hp=200303c32fdbada7d3df8738ee240d3903be4d06;hpb=d6b4861f70e47ed539fe7cb6123706769354d668;p=pkanalytics diff --git a/ultimate.js b/ultimate.js index 200303c..f913e3d 100644 --- a/ultimate.js +++ b/ultimate.js @@ -374,6 +374,9 @@ function calc_stats(json, filters) { last_pull_was_ours = !offense; between_points = false; } else if (type === 'goal' || type === 'their_goal' || type === 'stoppage') { + if (type === 'goal') { + if (keep) ++p.touches; + } for (const [q,p] of Object.entries(players)) { if (p.on_field_since === null) { continue;