Skip to content

Commit

Permalink
Fix incorrect transfer matching
Browse files Browse the repository at this point in the history
  • Loading branch information
Zerthox committed Dec 6, 2023
1 parent b8a9fb7 commit 11fdb85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/combat/transfer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ impl Apply {
/// Check whether the apply matches a remove.
pub fn matches(&self, remove: &Remove) -> bool {
self.condi == remove.condi
&& self.duration.abs_diff(remove.time) < TIME_EPSILON
&& self.duration.abs_diff(remove.duration) < TIME_EPSILON
&& self.time.abs_diff(remove.time) < TIME_EPSILON
}
}
Expand Down

0 comments on commit 11fdb85

Please sign in to comment.