Preserve one selected native split ball as an array

This commit is contained in:
NINI
2026-10-06 23:20:17 +09:00
parent 545fdce70d
commit 28433dc544
+1 -1
View File
@@ -32,7 +32,7 @@ function SplitReal([int]$Stage,[int]$Selected,[string]$Name) {
for($attempt=0;$attempt-lt8;$attempt++) {
$before=Save "$Name-before-$attempt"; $board=Board $before $Stage
$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]
Step "$Name-mode-$attempt" @('shell','input','tap','312','832')
foreach($id in $ids){TapBall "$Name-select-$attempt-$id" $board $id}