From e327e81ce9f630907b6c9e8484344652015de432 Mon Sep 17 00:00:00 2001 From: Fabio De Simone Date: Sat, 23 Feb 2019 11:13:36 +0100 Subject: [PATCH] fix spell avg --- utils/cast.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/cast.py b/utils/cast.py index c51159cc..72a1b030 100644 --- a/utils/cast.py +++ b/utils/cast.py @@ -52,7 +52,7 @@ class DamageComponent: @property def avg(self): - return self.dice_number * (self.dice_type + 1) / 2 + return (self.dice_number * (self.dice_type + 1) / 2) + self.constant def stringify(self) -> str: string = "" @@ -92,7 +92,7 @@ class HealingComponent: @property def avg(self): - return self.dice_number * (self.dice_type + 1) / 2 + return (self.dice_number * (self.dice_type + 1) / 2) + self.constant def stringify(self) -> str: string = ""