mirror of
https://codeberg.org/icewind/tf-log-parser.git
synced 2026-11-30 12:50:49 +01:00
make assisters reliable
This commit is contained in:
parent
972488c1d5
commit
8ad2dfa1b6
1 changed files with 6 additions and 7 deletions
|
|
@ -170,13 +170,12 @@ impl GlobalData for Kills {
|
|||
}
|
||||
GameEvent::KillAssist(event) => {
|
||||
if let Some(kill) = self.kills.last_mut() {
|
||||
debug_assert_eq!(kill.time, time);
|
||||
debug_assert_eq!(
|
||||
kill.victim.id,
|
||||
event.target.id().unwrap().steam_id().unwrap()
|
||||
);
|
||||
|
||||
kill.add_assist(subject, event, &self.classes);
|
||||
if kill.time == time
|
||||
&& Some(kill.victim.id)
|
||||
== event.target.id().ok().and_then(|id| id.steam_id())
|
||||
{
|
||||
kill.add_assist(subject, event, &self.classes);
|
||||
}
|
||||
}
|
||||
}
|
||||
GameEvent::MedicDeathEx(event) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue