Separate Where-Object comparison parameters and reject malformed native selectors

This commit is contained in:
NINI
2026-10-07 00:22:54 +09:00
parent 913f19c360
commit cc88785e7c
2 changed files with 6 additions and 5 deletions
+3 -3
View File
@@ -55,10 +55,10 @@ try {
Step 'cancel-guide-to-home' @('shell','input','tap','312','108') 3500
CanceledSpeech 'audio-guide-navigation-cancel' 'guide_collect'
SelectStage 'cancel-count-enter2' 2
$two=Save 'cancel-count-two-initial';$board=@($two.puzzleStates|Where-Object stageId -eq2)[0]
$two=Save 'cancel-count-two-initial';$board=@($two.puzzleStates|Where-Object stageId -eq 2)[0]
$s=BallPoint $board $board.groups[0].ballIds[0];$t=BallPoint $board $board.groups[1].ballIds[0]
Step 'cancel-count-two-merge' @('shell','input','swipe',"$($s[0])","$($s[1])","$($t[0]-35)","$($t[1])",'500') 3000
$two=Save 'cancel-count-two-collected';$board=@($two.puzzleStates|Where-Object stageId -eq2)[0]
$two=Save 'cancel-count-two-collected';$board=@($two.puzzleStates|Where-Object stageId -eq 2)[0]
Check 'cancel-count-real2-collected' ($board.groups.Count-eq1-and$board.collectedBallIds.Count-eq2) 'Actual replay2 collected before numeric cancellation'
$p=BallPoint $board $board.balls[0].id
StartAudio 'audio-numeric-pause-cancel' 12
@@ -76,7 +76,7 @@ try {
$pinch=Save 'free-pinch-state'
Check 'native-pinch-zoom-only' ((Same $one.latestFreePlay.balls $pinch.latestFreePlay.balls)-and(Same $one.latestFreePlay.groups $pinch.latestFreePlay.groups)-and$pinch.latestFreePlay.camera.distance-lt$one.latestFreePlay.camera.distance) 'Two physical contacts change zoom, no ball or group mutation'
Step 'free-pinch-home' @('shell','input','tap','312','108');SelectStage 'boundary13' 13
$thirteen=Save 'boundary13-initial';$board=@($thirteen.puzzleStates|Where-Object stageId -eq13)[0];$point=BallPoint $board $board.groups[0].ballIds[0]
$thirteen=Save 'boundary13-initial';$board=@($thirteen.puzzleStates|Where-Object stageId -eq 13)[0];$point=BallPoint $board $board.groups[0].ballIds[0]
TapBall 'boundary13-choose' $board $board.groups[0].ballIds[0];Step 'boundary13-split-mode' @('shell','input','tap','312','832')
$confirmed=Save 'boundary13-split-confirmed'
Step 'boundary13-zero-selected-drag' @('shell','input','swipe',"$($point[0])","$($point[1])","$($point[0]-190)","$($point[1])",'500')