fix players becoming bots
This commit is contained in:
parent
461dfb8841
commit
1b263adc80
@ -678,7 +678,7 @@ class Game:
|
||||
player.was_player = False
|
||||
if len(player.available_characters) > 0:
|
||||
player.set_available_character(player.available_characters)
|
||||
player.bot_spin()
|
||||
G.sio.start_background_task(player.bot_spin)
|
||||
else:
|
||||
self.player_death(player=player, disconnected=True)
|
||||
# else:
|
||||
|
@ -678,7 +678,7 @@ def chat_message(sid, msg, pl=None):
|
||||
ses.is_bot = not ses.is_bot
|
||||
if (ses.is_bot):
|
||||
ses.was_player = True
|
||||
ses.bot_spin()
|
||||
sio.start_background_task(ses.bot_spin)
|
||||
elif '/arcadekick' in msg and ses.game.started:
|
||||
if not any((p.pending_action != PendingAction.WAIT for p in ses.game.players)):
|
||||
sio.emit('chat_message', room=ses.game.name, data={'color': f'','text':f'KICKING THE ARCADE CABINET'})
|
||||
|
Loading…
Reference in New Issue
Block a user