dotabuff / yasha

Dota 2 (Source 1) replay parser written in Go
MIT License
132 stars 19 forks source link

How can I get the hero assist count? #1

Open niuzheng168 opened 9 years ago

niuzheng168 commented 9 years ago

In death log entry, i can know which hero killed which here, but how can I get the assist information?

jgoyvaerts commented 9 years ago

There's no "easy way" to get the assist information. You have to track who dealt damage to a hero in the 15 (could be 20) second window before he died, and then give them an assist if they did.

siggyfawn commented 9 years ago

You could just track m_iAssists for each hero. When a kill happens look for it to be incremented?