Skip to content

Commit

Permalink
Correctly update to 0
Browse files Browse the repository at this point in the history
  • Loading branch information
jfberry committed Jan 7, 2024
1 parent c01f8fc commit 03798c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion decoder/pokemon.go
Original file line number Diff line number Diff line change
Expand Up @@ -942,7 +942,7 @@ func (pokemon *Pokemon) addEncounterPokemon(ctx context.Context, db db.DbDetails
func (pokemon *Pokemon) updatePokemonFromEncounterProto(ctx context.Context, db db.DbDetails, encounterData *pogo.EncounterOutProto, username string) {
pokemon.IsEvent = 0
// TODO is there a better way to get this from the proto? This is how RDM does it
pokemon.addWildPokemon(ctx, db, encounterData.Pokemon, time.Now().Unix()*1000)
pokemon.addWildPokemon(ctx, db, encounterData.Pokemon, 0)
pokemon.addEncounterPokemon(ctx, db, encounterData.Pokemon.Pokemon, username)

if pokemon.CellId.Valid == false {
Expand Down

0 comments on commit 03798c3

Please sign in to comment.