Skip to content

Commit

Permalink
Update modules/encounter.py
Browse files Browse the repository at this point in the history
Co-authored-by: Neka <[email protected]>
  • Loading branch information
orchi and ThibaultLassiaz authored Nov 17, 2024
1 parent ab64d58 commit b9d3b68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/encounter.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ def handle_encounter(
context.set_manual_mode()
encounter_info.battle_action = BattleAction.CustomAction

elif EncounterValue.avoid == True:
elif encounter_info.value == EncounterValue.AvoidedPokemon:
#I can't get the EncounterValue.avoid to automatically assign itself False, so checking if it is equal to True is necessary
encounter_info.battle_action = BattleAction.RunAway
EncounterValue.avoid = False
Expand Down

0 comments on commit b9d3b68

Please sign in to comment.