Spinach: Reveal answer when skipping/rerolling

This commit is contained in:
Pragmatic Software 2019-05-08 23:07:59 -07:00
parent 7dbaa0b6c3
commit ed774ac379
1 changed files with 4 additions and 0 deletions

View File

@ -1903,6 +1903,8 @@ sub getlies {
$needed -= @rerolls;
if ($needed <= 0) {
$state->{reroll_question} = 1;
my $answer = uc $state->{current_question}->{answer};
$self->send_message($self->{channel}, "The answer was: $answer");
return 'reroll';
}
}
@ -1911,6 +1913,8 @@ sub getlies {
my $needed = int (@{$state->{players}} / 2) + 1;
$needed += @keeps;
$needed -= @skips;
my $answer = uc $state->{current_question}->{answer};
$self->send_message($self->{channel}, "The answer was: $answer");
return 'skip' if $needed <= 0;
}