File tree 1 file changed +6
-13
lines changed
play.pokemonshowdown.com/src
1 file changed +6
-13
lines changed Original file line number Diff line number Diff line change @@ -1320,24 +1320,17 @@ class BattleItemSearch extends BattleTypedSearch<'item'> {
1320
1320
if ( item . itemUser ?. includes ( speciesName ) ) speciesSpecific . push ( row ) ;
1321
1321
if ( abilityItem === item . id ) abilitySpecific . push ( row ) ;
1322
1322
}
1323
-
1324
- const specificItems : SearchRow [ ] = [ ] ;
1325
-
1326
1323
if ( speciesSpecific . length ) {
1327
- specificItems . unshift (
1324
+ return [
1328
1325
[ 'header' , "Specific to " + speciesName ] ,
1329
- ...speciesSpecific
1330
- ) ;
1326
+ ...speciesSpecific ,
1327
+ ...results ,
1328
+ ] ;
1331
1329
}
1332
1330
if ( abilitySpecific . length ) {
1333
- specificItems . unshift (
1334
- [ 'header' , `Specific to ${ this . set ! . ability ! } ` ] ,
1335
- ...abilitySpecific
1336
- ) ;
1337
- }
1338
- if ( specificItems . length ) {
1339
1331
return [
1340
- ...specificItems ,
1332
+ [ 'header' , `Specific to ${ this . set ! . ability ! } ` ] ,
1333
+ ...abilitySpecific ,
1341
1334
...results ,
1342
1335
] ;
1343
1336
}
You can’t perform that action at this time.
0 commit comments