Preserve one selected native split ball as an array
This commit is contained in:
@@ -32,7 +32,7 @@ function SplitReal([int]$Stage,[int]$Selected,[string]$Name) {
|
|||||||
for($attempt=0;$attempt-lt8;$attempt++) {
|
for($attempt=0;$attempt-lt8;$attempt++) {
|
||||||
$before=Save "$Name-before-$attempt"; $board=Board $before $Stage
|
$before=Save "$Name-before-$attempt"; $board=Board $before $Stage
|
||||||
$group=@($board.groups|Sort-Object {$_.ballIds.Count} -Descending)[0]
|
$group=@($board.groups|Sort-Object {$_.ballIds.Count} -Descending)[0]
|
||||||
$ids=if($Stage-eq13-and$Selected-eq2){@($group.ballIds[0],$group.ballIds[-1])}else{@($group.ballIds|Select-Object -First $Selected)}
|
$ids=@(if($Stage-eq13-and$Selected-eq2){$group.ballIds[0];$group.ballIds[-1]}else{$group.ballIds|Select-Object -First $Selected})
|
||||||
TapBall "$Name-choose-$attempt" $board $ids[0]
|
TapBall "$Name-choose-$attempt" $board $ids[0]
|
||||||
Step "$Name-mode-$attempt" @('shell','input','tap','312','832')
|
Step "$Name-mode-$attempt" @('shell','input','tap','312','832')
|
||||||
foreach($id in $ids){TapBall "$Name-select-$attempt-$id" $board $id}
|
foreach($id in $ids){TapBall "$Name-select-$attempt-$id" $board $id}
|
||||||
|
|||||||
Reference in New Issue
Block a user