Merge pull request #508 from libccy/master

1.修复yxs_fanji的bug;2.修改全局技能g_du_give的逻辑,有usedu不给毒
This commit is contained in:
Spmario233 2023-10-11 11:17:40 +08:00 committed by GitHub
commit c73e76af1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -561,6 +561,7 @@ game.import('card',function(lib,game,ui,get,ai,_status){
prompt:'是否发动【赠毒】?',
prompt2:'将本次获得的【毒】交给其他角色',
ai1:function(card){
if(_status.event.player.hasSkillTag("usedu")) return 0;
if(!ui.selected.cards.length) return 1;
return 0;
},

View File

@ -105,7 +105,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
priority:12,
filter:function (event,player){
if(!player.countCards('h',{name:'sha'})) return false;
return event.card.name=='sha'||event.card.name=='juedou';
return event.card&&(event.card.name=='sha'||event.card.name=='juedou');
},
content:function(){
player.addTempSkill('yxs_fanji2','shaAfter');