Skip to content

Commit

Permalink
Correct fainted property in pokemon
Browse files Browse the repository at this point in the history
  • Loading branch information
hsahovic committed Nov 1, 2019
1 parent b759cc1 commit 80f81a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/poke_env/environment/pokemon.py
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ def fainted(self) -> bool:
:return: Wheter the pokemon has fainted.
:rtype: bool
"""
return Status.FNT in self._status
return Status.FNT == self._status

@property
def gender(self) -> PokemonGender:
Expand Down

0 comments on commit 80f81a3

Please sign in to comment.