From e6a1100b5ea622667da1adfbb1762dd8bbca1d74 Mon Sep 17 00:00:00 2001 From: Sakimori Date: Thu, 7 Jan 2021 22:37:04 -0500 Subject: [PATCH] fixed tailwind only applying to batters with more than 5 stars --- games.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/games.py b/games.py index f246be8..8ac5014 100644 --- a/games.py +++ b/games.py @@ -507,7 +507,7 @@ class game(object): if self.weather.name == "Slight Tailwind" and "mulligan" not in self.last_update[0].keys() and not result["ishit"] and result["text"] != appearance_outcomes.walk: mulligan_roll_target = -((((self.get_batter().stlats["batting_stars"])-5)/6)**2)+1 - if random.random() > mulligan_roll_target and self.get_batter().stlats["batting_stars"] >= 5: + if random.random() > mulligan_roll_target and self.get_batter().stlats["batting_stars"] <= 5: result["mulligan"] = True return (result, 0)