mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-08-26 19:14:54 -05:00
Fix item filters duplicating search terms (#11271)
This commit is contained in:
@@ -2459,6 +2459,7 @@ function runItemsearch(target: string, cmd: string, message: string) {
|
||||
case 'atk':
|
||||
case 'attack':
|
||||
if (['sp', 'special'].includes(rawSearch[i - 1])) {
|
||||
newWord = '';
|
||||
break;
|
||||
} else {
|
||||
newWord = 'attack';
|
||||
@@ -2471,6 +2472,7 @@ function runItemsearch(target: string, cmd: string, message: string) {
|
||||
case 'def':
|
||||
case 'defense':
|
||||
if (['sp', 'special'].includes(rawSearch[i - 1])) {
|
||||
newWord = '';
|
||||
break;
|
||||
} else {
|
||||
newWord = 'defense';
|
||||
|
||||
Reference in New Issue
Block a user