Merge pull request #542 from copcap/dev-shenjiaxu

修复神贾诩的一个 bug
This commit is contained in:
Spmario233 2023-10-16 21:25:27 +08:00 committed by GitHub
commit 1fb9205614
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 2 deletions

View File

@ -266,15 +266,17 @@ game.import('character',function(lib,game,ui,get,ai,_status){
return current.hasSkill('jxlianpo');
});
},
cardSavable:function(card,player){
cardSavable:function(card,player,target){
if(card.name=='tao'){
if(!lib.skill.jxlianpo.getMax().includes('zhu')) return;
if(player==target) return;
return false;
}
},
cardEnabled:function(card,player){
playerEnabled:function(card,player,target){
if(card.name=='tao'){
if(!lib.skill.jxlianpo.getMax().includes('zhu')) return;
if(player==target) return;
return false;
}
}
@ -366,6 +368,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
player.markAuto('jxzhaoluan_hit',target);
},
ai:{
order:9,
result:{
player:function(player){
var bodies=player.getStorage('jxzhaoluan_effect').filter(i=>i.isIn());