From 9b8cf7d9b69f8aaac2faf93e0aa3ec8dcabb98b3 Mon Sep 17 00:00:00 2001 From: 1kuceraj Date: Mon, 23 Sep 2024 12:09:07 +0200 Subject: [PATCH] attempt to fix damage miscalc --- combat_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/combat_utils.py b/combat_utils.py index d48340f..6502598 100644 --- a/combat_utils.py +++ b/combat_utils.py @@ -5,7 +5,7 @@ def attempt_spell_cast(caster: Dict, spell_types: Dict) -> Optional[Dict]: - if random.random() > 1 or not caster.get('spells'): # 10% chance to cast a spell + if random.random() > 0.1 or not caster.get('spells'): # 10% chance to cast a spell return None if 'spell_queue' not in caster or not caster['spell_queue']: