Skip to content

Commit

Permalink
Fix display of shiny female Pokemon if no extra female icon exists in…
Browse files Browse the repository at this point in the history
… PogoAssets
  • Loading branch information
sLoPPydrive committed Jan 7, 2018
1 parent 1a5f562 commit fd182d7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pogom/dyn_img.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,8 @@ def pokemon_asset_path(pkm, classifier=None, gender=GENDER_UNSET, form=None, cos
log.warning("Cannot find PogoAssets file {}".format(assets_fullname))
# Dummy Pokemon icon
return os.path.join(assets_basedir, 'pokemon_icon_000.png'), os.path.join(target_path, 'pkm_000.png')
return pokemon_asset_path(pkm, classifier=classifier, gender=MALE, form=form, costume=costume, weather=weather)
return pokemon_asset_path(pkm, classifier=classifier, gender=MALE, form=form, costume=costume, weather=weather,
shiny=shiny)


def draw_gym_subject(image, size, gravity='north', trim=False):
Expand Down

0 comments on commit fd182d7

Please sign in to comment.