Skip to content

Commit

Permalink
Fix giveaways not working for regional pokemon
Browse files Browse the repository at this point in the history
  • Loading branch information
WitherredAway authored Jul 24, 2024
1 parent e533a3e commit 8666074
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cogs/giveaways.py
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ def validate_minimum_requirements(self, p):
species = self.bot.data.species_by_number(p["species_id"])
iv_total = p["iv_hp"] + p["iv_atk"] + p["iv_defn"] + p["iv_satk"] + p["iv_sdef"] + p["iv_spd"]
conditions = [
(species.mythical or species.legendary or species.ultra_beast) and iv_total >= 112,
any((species.mythical, species.legendary, species.ultra_beast, "-alola" in species.slug, "-galar" in species.slug, "-hisui" in species.slug, "-paldea" in species.slug)) and iv_total >= 112,
species.event and iv_total >= 112,
iv_total >= 168 or iv_total <= 18,
p.get("shiny"),
Expand Down

0 comments on commit 8666074

Please sign in to comment.