Update gameplay.py
Runners on the corners, a steal of home does not move the runner from first to second on a CS. RP on PO result for Catcher Check results in redoing the PA, instead of an SI1 RP on FO result also results in redoing the play, instead of catcher interference result. No way to manually fix this with a runner on third without giving the hitter a walk or HBP
This commit is contained in:
parent
2e3990a931
commit
42c3719baf
@ -3546,8 +3546,8 @@ class Gameplay(commands.Cog):
|
||||
)
|
||||
if this_play.on_second:
|
||||
advance_one_runner(this_play.id, 2, 1)
|
||||
if this_play.on_first:
|
||||
advance_one_runner(this_play.id, 1, 1)
|
||||
if this_play.on_first:
|
||||
advance_one_runner(this_play.id, 1, 1)
|
||||
elif to_base == 3 and this_play.on_second:
|
||||
if not this_play.on_third:
|
||||
advance_runners(this_play.id, 1, is_error=True)
|
||||
@ -3636,8 +3636,8 @@ class Gameplay(commands.Cog):
|
||||
)
|
||||
if this_play.on_second:
|
||||
advance_one_runner(this_play.id, 2, 1)
|
||||
if this_play.on_first:
|
||||
advance_one_runner(this_play.id, 1, 1)
|
||||
if this_play.on_first:
|
||||
advance_one_runner(this_play.id, 1, 1)
|
||||
elif to_base == 3 and this_play.on_second:
|
||||
if not this_play.on_third:
|
||||
advance_runners(this_play.id, 1)
|
||||
@ -4174,6 +4174,12 @@ class Gameplay(commands.Cog):
|
||||
await single_onestar(this_play)
|
||||
else:
|
||||
await self.groundballs(interaction, this_game, this_play, 'c')
|
||||
elif gb_type == 'PO':
|
||||
single_onestar(this_play)
|
||||
elif gb_type == 'FO':
|
||||
advance_runners(this_play.id, num_bases=1, only_forced=True)
|
||||
patch_play(this_play.id, pa=1, ab=1, hit=0, error=1)
|
||||
complete_play(this_play.id, batter_to_base=1)
|
||||
else:
|
||||
view = ButtonOptions(responders=[interaction.user], labels=['F1', 'F2', 'F3', None, None])
|
||||
question = await interaction.channel.send(f'What was the result of the play?', view=view)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user