Skip to content

Commit

Permalink
fix: properly support gym defender temp evolutions
Browse files Browse the repository at this point in the history
  • Loading branch information
Mygod committed Sep 4, 2024
1 parent e4e4dce commit 4595820
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/types/lib/scanner.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export interface PokemonDisplay {
gender: number
shiny: boolean
temp_evolution: number
temp_evolution_finish_ms: number
alignment: number
badge: number
location_card: number
Expand Down
4 changes: 3 additions & 1 deletion src/features/gym/GymPopup.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -655,7 +655,9 @@ const ExtraGymInfo = ({
src={Icons.getPokemon(
guarding_pokemon_id,
gpd.form,
gpd.temp_evolution,
Date.now() > gpd.temp_evolution_finish_ms
? 0
: gpd.temp_evolution,
gpd.gender,
gpd.costume,
gpd.alignment,
Expand Down

0 comments on commit 4595820

Please sign in to comment.