From ac8bc364278da38ec28b036004d908f5f547af32 Mon Sep 17 00:00:00 2001 From: Ludovic Marie <136255825+ludovic111@users.noreply.github.com> Date: Fri, 9 Oct 2026 06:14:45 +0200 Subject: [PATCH] Fix the poison interval test for the poison action Co-Authored-By: Claude Opus 5.5 --- crates/horizon-client/src/effects.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/horizon-client/src/effects.rs b/crates/horizon-client/src/effects.rs index 9144d2ec1..3bc2e7fb2 100644 --- a/crates/horizon-client/src/effects.rs +++ b/crates/horizon-client/src/effects.rs @@ -361,7 +361,7 @@ mod tests { fx.add(EffectInstance::new("poison", 432, 1)); let hurts = (0..432) .flat_map(|_| fx.tick()) - .filter(|a| matches!(a, EffectAction::Hurt(..))) + .filter(|a| matches!(a, EffectAction::Poison)) .count(); // Interval 25 >> 1 = 12: 432/12 = 36 hits. assert_eq!(hurts, 36);