We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2fa8be5 commit 10a0f43Copy full SHA for 10a0f43
source/pokemon.py
@@ -34,10 +34,6 @@ def _levelUp(self) -> None:
34
self._health += 10
35
36
def attack(self, opponent: "Pokemon") -> None:
37
- """
38
- Attacks another pokemon by calculating the attack factor.
39
- After the fight, the attacking pokemon receives XP.
40
41
if not self._isAlive:
42
print("Pokemon is dead already!")
43
elif not opponent.getIsAlive():
@@ -84,7 +80,7 @@ def useHealthPotion(self) -> None:
84
80
def getName(self) -> str:
85
81
return self._name
86
82
87
- def getPokeType(self) -> str:
83
+ def getPokeType(self) -> bool:
88
return self._pokeType
89
90
def getHealth(self) -> int:
0 commit comments