Gameplay bug fixes
Typos in help message; fix groundball b error
This commit is contained in:
parent
acda7e40ab
commit
bd59b018f5
@ -1321,7 +1321,7 @@ class Gameplay(commands.Cog):
|
||||
if r_query['count'] == 0:
|
||||
await interaction.edit_original_response(
|
||||
content=f'I don\'t see an active run for you. If you would like to start a new one, run '
|
||||
f'`/new-game gauntlet {this_event["name"]}` and we can get you started in no time!'
|
||||
f'`/gauntlets start {this_event["name"]}` and we can get you started in no time!'
|
||||
)
|
||||
return
|
||||
|
||||
@ -2409,7 +2409,7 @@ class Gameplay(commands.Cog):
|
||||
await question.delete()
|
||||
view = Confirm(responders=[interaction.user], timeout=60, label_type='yes')
|
||||
question = await interaction.channel.send(
|
||||
content=f'Was {lead_runner["name"]} thrown out at {to_bases[lead_base]}?', view=view
|
||||
content=f'Was {lead_runner["name"]} thrown out {at_bases[lead_base]}?', view=view
|
||||
)
|
||||
await view.wait()
|
||||
|
||||
|
||||
@ -1312,12 +1312,12 @@ def advance_one_runner(play_id: int, from_base: int, num_bases: int):
|
||||
if num_bases > 0:
|
||||
this_play.on_third_final = 4
|
||||
|
||||
if this_play.on_first and not this_play.on_first_final:
|
||||
this_play.on_first_final = 1
|
||||
if this_play.on_second and not this_play.on_second_final:
|
||||
this_play.on_second_final = 2
|
||||
if this_play.on_third and not this_play.on_third_final:
|
||||
this_play.on_third_final = 3
|
||||
# if this_play.on_first and this_play.on_first_final is not None:
|
||||
# this_play.on_first_final = 1
|
||||
# if this_play.on_second and this_play.on_second_final is not None:
|
||||
# this_play.on_second_final = 2
|
||||
# if this_play.on_third and this_play.on_third_final is not None:
|
||||
# this_play.on_third_final = 3
|
||||
|
||||
this_play.save()
|
||||
db.close()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user