Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filter out Mighty/Strong mons from Ditto detection logic #1390

Open
wants to merge 1 commit into
base: async
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading