diff --git a/core/core.py b/core/core.py index e28ceef..954e434 100644 --- a/core/core.py +++ b/core/core.py @@ -1612,7 +1612,7 @@ def __init__(self,end=100,var="penalty",flash_amount=None): if end<0: end = 0 self.end = end self.delay = 50 - self.flash_amount = flash_amount + self.flash_amount = min(flash_amount, self.gv()) if flash_amount else flash_amount self.flash_color = [255,242,129,150] self.flash_dir = 1 self.change = 0