mirror of
https://github.com/chaoticbackup/chaoticbackup.github.io.git
synced 2026-03-21 17:24:14 -05:00
ignore text in brainwashed too
This commit is contained in:
parent
d1f43b9c4c
commit
e14de59e88
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -103,7 +103,8 @@ export default function search_api(input) {
|
|||
let truth = false;
|
||||
negates.forEach((word) => {
|
||||
truth |= (obj.gsx$ability.toLowerCase().indexOf(word.toLowerCase()) > -1);
|
||||
if (creature) truth |= (obj.gsx$flavortext.toLowerCase().indexOf(word.toLowerCase()) > -1);
|
||||
truth |= (obj.gsx$flavortext.toLowerCase().indexOf(word.toLowerCase()) > -1);
|
||||
if (creature) truth |= (obj.gsx$brainwashed.toLowerCase().indexOf(word.toLowerCase()) > -1);
|
||||
})
|
||||
return !truth;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user