1.修复yxs_fanji的bug;2.修改全局技能g_du_give的逻辑,有usedu不给毒

This commit is contained in:
Howard 2023-10-11 09:10:45 +08:00
parent 42983613a1
commit 0d49ca0e6f
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:'是否发动【赠毒】?', prompt:'是否发动【赠毒】?',
prompt2:'将本次获得的【毒】交给其他角色', prompt2:'将本次获得的【毒】交给其他角色',
ai1:function(card){ ai1:function(card){
if(_status.event.player.hasSkillTag("usedu")) return 0;
if(!ui.selected.cards.length) return 1; if(!ui.selected.cards.length) return 1;
return 0; return 0;
}, },

View File

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