fix(combat): bound cackle hex extension

This commit is contained in:
2026-09-04 22:55:56 +02:00
parent 293f20c98a
commit 7a00911c55
2 changed files with 140 additions and 1 deletions
+1 -1
View File
@@ -1396,7 +1396,7 @@ class CombatEngine:
def _hex_cackle(self, state: CombatantState, target: CombatantState) -> None:
"""Cackle: prolong one hex by 1 round (extends all hex conditions)."""
extended = False
for ac in target.active_conditions:
for ac in list(target.active_conditions):
if ac.source.startswith("hex:"):
target.active_conditions.remove(ac)
target.active_conditions.append(