fix Dinamite attacker
This commit is contained in:
parent
8a4eec5002
commit
9f71b00952
@ -456,6 +456,7 @@ class Player:
|
|||||||
data=f'_flipped|{self.name}|{picked.name}|{picked.num_suit()}')
|
data=f'_flipped|{self.name}|{picked.name}|{picked.num_suit()}')
|
||||||
if picked.check_suit(self.game, [cs.Suit.SPADES]) and 2 <= picked.number <= 9 and pickable_cards == 0:
|
if picked.check_suit(self.game, [cs.Suit.SPADES]) and 2 <= picked.number <= 9 and pickable_cards == 0:
|
||||||
self.lives -= 3
|
self.lives -= 3
|
||||||
|
self.attacker = None
|
||||||
self.game.deck.scrap(self.equipment.pop(i), True)
|
self.game.deck.scrap(self.equipment.pop(i), True)
|
||||||
self.sio.emit('chat_message', room=self.game.name, data=f'_explode|{self.name}')
|
self.sio.emit('chat_message', room=self.game.name, data=f'_explode|{self.name}')
|
||||||
self.heal_if_needed()
|
self.heal_if_needed()
|
||||||
|
Loading…
Reference in New Issue
Block a user