Player ability bug fixed
This commit is contained in:
parent
532045a6ba
commit
fa40665a65
7
Game.py
7
Game.py
@ -57,11 +57,8 @@ class Game:
|
||||
self.first, self.second = self.second, self.first
|
||||
|
||||
# Player Ability Handling
|
||||
if isinstance(self.first, Player.Keieit):
|
||||
self.first.guard -= 1
|
||||
|
||||
if isinstance(self.first, Player.Rabbit):
|
||||
self.first.boost -= 1
|
||||
self.first.guard -= 1
|
||||
self.first.boost -= 1
|
||||
self.end()
|
||||
def end(self):
|
||||
winner = self.second if self.first.hp <= 0 else self.first
|
||||
|
Loading…
x
Reference in New Issue
Block a user