Fix the poison interval test for the poison action

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Ludovic Marie
2026-10-09 06:14:45 +02:00
parent 3e556f51ef
commit ac8bc36427
+1 -1
View File
@@ -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);