From 6806b5d78183716f38e5a2c21d46d93627134cfc Mon Sep 17 00:00:00 2001 From: Zerthox Date: Thu, 14 Nov 2024 16:00:50 +0100 Subject: [PATCH] Fix buff event classification --- arcdps/Cargo.toml | 2 +- evtc/Cargo.toml | 2 +- evtc/src/event/category.rs | 2 +- evtc_parse/Cargo.toml | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/arcdps/Cargo.toml b/arcdps/Cargo.toml index e1083177e0..be86178f7f 100644 --- a/arcdps/Cargo.toml +++ b/arcdps/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "arcdps" -version = "0.15.0" +version = "0.15.1" authors = ["Zerthox", "Greaka"] edition = "2021" description = "Rust bindings for ArcDPS plugins" diff --git a/evtc/Cargo.toml b/evtc/Cargo.toml index 4bfb19054d..d9ca3dd391 100644 --- a/evtc/Cargo.toml +++ b/evtc/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "evtc" -version = "0.9.0" +version = "0.9.1" authors = ["Zerthox"] edition = "2021" description = "Rust bindings for the ArcDPS EVTC API" diff --git a/evtc/src/event/category.rs b/evtc/src/event/category.rs index af942ec785..bd8f294720 100644 --- a/evtc/src/event/category.rs +++ b/evtc/src/event/category.rs @@ -108,7 +108,7 @@ impl From<&Event> for EventCategory { } else if event.get_buffremove() != BuffRemove::None { EventCategory::BuffRemove } else if event.buff != 0 { - if event.buff_dmg == 0 { + if event.buff_dmg == 0 && event.value != 0 { EventCategory::BuffApply } else { EventCategory::BuffDamage diff --git a/evtc_parse/Cargo.toml b/evtc_parse/Cargo.toml index 89ad52d4f3..8c18f8aeb8 100644 --- a/evtc_parse/Cargo.toml +++ b/evtc_parse/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "evtc_parse" -version = "0.9.0" +version = "0.9.1" authors = ["Zerthox"] edition = "2021" description = "Parsing for ArcDPS EVTC logs" @@ -10,7 +10,7 @@ repository = "https://github.com/zerthox/arcdps-rs" evtc = { path = "../evtc" } byteorder = "1.4.3" serde = { version = "1.0.160", features = ["derive"], optional = true } -thiserror = "1.0.38" +thiserror = "2.0.3" zip = { version = "2.1.3", optional = true } [features]