lib.filter.filterTrigger修复无法获取get.info(skill)时报错的bug

This commit is contained in:
mengxinzxz 2023-10-07 17:09:29 +08:00 committed by GitHub
parent d8ffa36703
commit dd3f1db366
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -30819,7 +30819,7 @@
} }
var fullskills=game.expandSkills(player.getSkills(false).concat(lib.skill.global)); var fullskills=game.expandSkills(player.getSkills(false).concat(lib.skill.global));
var info=get.info(skill); var info=get.info(skill);
if((info.noHidden||get.mode()!='guozhan')&&!fullskills.contains(skill)){ if(((info&&info.noHidden)||get.mode()!='guozhan')&&!fullskills.contains(skill)){
return false; return false;
} }
if(!info.trigger) return false; if(!info.trigger) return false;