fix dottore

This commit is contained in:
Alberto Xamin 2021-06-25 15:13:58 +02:00
parent a3db6169e6
commit 847ae5187e
No known key found for this signature in database
GPG Key ID: 4F026F48309500A2

View File

@ -426,6 +426,7 @@ class Game:
if len(most_hurt) > 0: if len(most_hurt) > 0:
hurt_players = [p for p in self.players if p.lives == min(most_hurt)] hurt_players = [p for p in self.players if p.lives == min(most_hurt)]
for p in hurt_players: for p in hurt_players:
if p.lives != p.max_lives:
p.lives += 1 p.lives += 1
self.sio.emit('chat_message', room=self.name, data=f'_doctor_heal|{p.name}') self.sio.emit('chat_message', room=self.name, data=f'_doctor_heal|{p.name}')
p.notify_self() p.notify_self()