Skip to content

Commit

Permalink
Filter out Mighty/Strong mons from Ditto detection logic
Browse files Browse the repository at this point in the history
Mighty/Strong mons have crazy levels (> 30, up to 50 in local in-person events) and some of those triggered Ditto check for "too high level for no weatherboost".
  • Loading branch information
JabLuszko authored Nov 24, 2024
1 parent fd76cb9 commit 416fef2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mapadroid/utils/gamemechanicutil.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,9 @@ def form_mapper(mon_id, form_id):
def is_mon_ditto_raw(pokemon_data: pogoprotos.PokemonProto):
logger.debug3('Determining if mon is a ditto')
logger.debug4(pokemon_data)
if pokemon_data.pokemon_display.is_strong_pokemon:
logger.debug3('Strong/Mighty mon, skipping ditto check')
return False
weather_boost = pokemon_data.pokemon_display.weather_boosted_condition
valid_atk = pokemon_data.individual_attack < 4
valid_def = pokemon_data.individual_defense < 4
Expand Down

0 comments on commit 416fef2

Please sign in to comment.