mirror of
https://github.com/chaoticbackup/chaoticbackup.github.io.git
synced 2026-08-21 08:04:18 -05:00
ignore text in brainwashed too
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user