@@ -45,7 +45,6 @@ protected override async Task EncounterLoop(SAV8SWSH sav, CancellationToken toke
45
45
private async Task InnerLoop ( CancellationToken token )
46
46
{
47
47
var target = Settings . MaxLairSettings . EditLairPath ;
48
- var wasVideoClipActive = Hub . Config . StopConditions . CaptureVideoClip ;
49
48
Stopwatch stopwatch = new ( ) ;
50
49
bool caneditspecies = true ;
51
50
uint pathoffset = LairSpeciesSelector ;
@@ -89,10 +88,6 @@ private async Task InnerLoop(CancellationToken token)
89
88
90
89
while ( ! token . IsCancellationRequested )
91
90
{
92
- //Capture video clip is menaged internally
93
- if ( wasVideoClipActive )
94
- Hub . Config . StopConditions . CaptureVideoClip = false ;
95
-
96
91
//Talk to the Lady
97
92
while ( ! await IsInLairWait ( token ) . ConfigureAwait ( false ) )
98
93
await Click ( A , 0_500 , token ) . ConfigureAwait ( false ) ;
@@ -183,11 +178,8 @@ private async Task InnerLoop(CancellationToken token)
183
178
await Click ( A , 0_900 , token ) . ConfigureAwait ( false ) ;
184
179
await Click ( DDOWN , 0_800 , token ) . ConfigureAwait ( false ) ;
185
180
await Click ( A , 2_300 , token ) . ConfigureAwait ( false ) ;
186
- if ( wasVideoClipActive == true )
187
- {
181
+ if ( Hub . Config . StopConditions . CaptureVideoClip == true )
188
182
await PressAndHold ( CAPTURE , 2_000 , 10_000 , token ) . ConfigureAwait ( false ) ;
189
- Hub . Config . StopConditions . CaptureVideoClip = true ;
190
- }
191
183
192
184
if ( pk != null && found [ 2 ] == 1 )
193
185
{
@@ -243,7 +235,7 @@ private async Task<int[]> IsAdventureHuntFound(CancellationToken token)
243
235
found [ 1 ] = 1 ;
244
236
}
245
237
246
- if ( await HandleEncounter ( pkm , token ) . ConfigureAwait ( false ) )
238
+ if ( await HandleEncounter ( pkm , token , true ) . ConfigureAwait ( false ) )
247
239
{
248
240
found [ 0 ] = i + 1 ;
249
241
enc_conditions = true ;
0 commit comments