File tree 1 file changed +4
-3
lines changed
play.pokemonshowdown.com/src
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -1309,7 +1309,7 @@ class BattleItemSearch extends BattleTypedSearch<'item'> {
1309
1309
// poisonheal: 'toxicorb',
1310
1310
// toxicboost: 'toxicorb',
1311
1311
// flareboost: 'flameorb',
1312
- } [ toID ( this . set ?. ability ) as string ]
1312
+ } [ toID ( this . set ?. ability ) as string ] ;
1313
1313
for ( const row of results ) {
1314
1314
if ( row [ 0 ] !== 'item' ) continue ;
1315
1315
const item = this . dex . items . get ( row [ 1 ] ) ;
@@ -1319,18 +1319,19 @@ class BattleItemSearch extends BattleTypedSearch<'item'> {
1319
1319
if ( speciesSpecific . length ) {
1320
1320
results . unshift (
1321
1321
[ 'header' , "Specific to " + speciesName ] ,
1322
- ...speciesSpecific ,
1322
+ ...speciesSpecific
1323
1323
) ;
1324
1324
}
1325
1325
if ( abilitySpecific . length ) {
1326
1326
results . unshift (
1327
1327
[ 'header' , "Specific to " + this . set ! . ability ] ,
1328
- ...abilitySpecific ,
1328
+ ...abilitySpecific
1329
1329
) ;
1330
1330
}
1331
1331
return results ;
1332
1332
}
1333
1333
defaultFilter ( results : SearchRow [ ] ) {
1334
+ results = [ ...results ] ;
1334
1335
if ( this . species && ! this . dex . species . get ( this . species ) . nfe ) {
1335
1336
results . splice ( results . findIndex ( row => row [ 1 ] === 'eviolite' ) , 1 ) ;
1336
1337
return results ;
You can’t perform that action at this time.
0 commit comments