mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-26 22:09:26 +01:00
Spinach: Oops, fix bug
This commit is contained in:
parent
8fbc6eda80
commit
e81826e5bd
@ -1791,10 +1791,9 @@ sub getlies {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
my $needed = int (@{$state->{players}} / 2) + 1;
|
|
||||||
$needed += @keeps;
|
|
||||||
|
|
||||||
if (@rerolls) {
|
if (@rerolls) {
|
||||||
|
my $needed = int (@{$state->{players}} / 2) + 1;
|
||||||
|
$needed += @keeps;
|
||||||
$needed -= @rerolls;
|
$needed -= @rerolls;
|
||||||
if ($needed <= 0) {
|
if ($needed <= 0) {
|
||||||
$state->{reroll_question} = 1;
|
$state->{reroll_question} = 1;
|
||||||
@ -1804,6 +1803,7 @@ sub getlies {
|
|||||||
|
|
||||||
if (@skips) {
|
if (@skips) {
|
||||||
my $needed = int (@{$state->{players}} / 2) + 1;
|
my $needed = int (@{$state->{players}} / 2) + 1;
|
||||||
|
$needed += @keeps;
|
||||||
$needed -= @skips;
|
$needed -= @skips;
|
||||||
return 'skip' if $needed <= 0;
|
return 'skip' if $needed <= 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user