Skip to content

Commit

Permalink
hotfix for parser takedown attribution error
Browse files Browse the repository at this point in the history
  • Loading branch information
ebshimizu committed Feb 24, 2018
1 parent 27829d1 commit 1ef36c8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "stats-of-the-storm",
"version": "0.1.1",
"version": "0.1.2",
"main": "main.js",
"description": "A Heroes of the Storm stat tracking application.",
"bugs": "[email protected]",
Expand Down
3 changes: 1 addition & 2 deletions parser/parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ function processReplay(file, opts = {}) {
}
else if (entry.m_key === "KillingPlayer") {
let tdo = {};
if (entry.m_value === 0 || entry.m_value === 11 || entry.m_value === 12) {
if (!(entry.m_value in playerIDMap)) {
// this poor person died to a creep
tdo.player = "0";
tdo.hero = "Nexus Forces"
Expand All @@ -489,7 +489,6 @@ function processReplay(file, opts = {}) {
tdo = { player: playerIDMap[entry.m_value], hero: players[playerIDMap[entry.m_value]].hero };
}


killers.push(playerIDMap[entry.m_value]);
tData.killers.push(tdo);
}
Expand Down
2 changes: 2 additions & 0 deletions templates/about-page.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ <h2 class="ui inverted header">Stats of the Storm - Version <span class="app-ver
gets talent and hero information and images from <a href="https://github.com/heroespatchnotes/heroes-talents">heroes-talents</a>.
</p>
<div class="ui inverted horizontal divider">Change Log</div>
<h3 class="ui inverted dividing header">Version 0.1.2</h3>
<p>Parser: Corrected an issue where kills were incorrectly attributed to "Nexus Forces" (and also corrected an occasional crash).</p>
<h3 class="ui inverted dividing header">Version 0.1.1</h3>
<p>Teams: Corrected issue where players could not be added to teams with the Add Player button.</p>
<h3 class="ui inverted dividing header">Version 0.1.0</h3>
Expand Down

0 comments on commit 1ef36c8

Please sign in to comment.