File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ import onPage from 'src/utils/onPage.js';
66import { max } from 'src/utils/cardHelper.js' ;
77import Translation from 'src/structures/constants/translation.ts' ;
88import Priority from 'src/structures/constants/priority.js' ;
9+ import extractImageName from 'src/utils/extractImageName' ;
910import { getTranslationArray } from '../underscript/translation.js' ;
1011
1112export const crafting = onPage ( 'Crafting' ) ;
@@ -208,12 +209,15 @@ filters.push(
208209 function includes ( dirty ) {
209210 return dirty . replace ( / ( < .* ?> ) / g, '' ) . toLowerCase ( ) . includes ( text ) ;
210211 }
211- return (
212+ extractImageName ( true ) ;
213+ const result = (
212214 ! includes ( $ . i18n ( `card-name-${ card . id } ` , 1 ) ) &&
213215 ! includes ( $ . i18n ( `card-${ card . id } ` ) ) &&
214216 ! ( card . soul ?. name && includes ( $ . i18n ( `soul-${ card . soul . name . toLowerCase ( ) . replace ( / _ / g, '-' ) } ` ) ) ) &&
215217 ! card . tribes . some ( ( t ) => includes ( $ . i18n ( `tribe-${ t . toLowerCase ( ) . replace ( / _ / g, '-' ) } ` ) ) )
216218 ) ;
219+ extractImageName ( false ) ;
220+ return result ;
217221 } ,
218222 Priority . HIGHEST ,
219223 Priority . HIGH ,
You can’t perform that action at this time.
0 commit comments