Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix "expected 'Positional' but got 'Seq'" in Mix.roll
  • Loading branch information
niner committed Aug 22, 2015
1 parent 46b97a9 commit b9a76ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/Mixy.pm
Expand Up @@ -38,7 +38,7 @@ my role Mixy does Baggy {
}

multi method roll($count = 1) {
my @pairs := self.pairs.grep: *.value > 0;
my @pairs = self.pairs.grep: *.value > 0;
my $total := [+] @pairs.map: *.value;
my $rolls = nqp::istype($count,Num)
?? $total min $count !! nqp::istype($count,Whatever) ?? Inf !! $count;
Expand Down

0 comments on commit b9a76ce

Please sign in to comment.