修复神贾诩〖炼魄〗在主忠阵营人数最多时谁也不能用桃的bug

This commit is contained in:
copcap 2023-10-16 01:50:42 +08:00
parent 9201e03e65
commit 25863e521e
No known key found for this signature in database
GPG Key ID: 9AE7B8AF097EC926
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'); return current.hasSkill('jxlianpo');
}); });
}, },
cardSavable:function(card,player){ cardSavable:function(card,player,target){
if(card.name=='tao'){ if(card.name=='tao'){
if(!lib.skill.jxlianpo.getMax().includes('zhu')) return; if(!lib.skill.jxlianpo.getMax().includes('zhu')) return;
if(player==target) return;
return false; return false;
} }
}, },
cardEnabled:function(card,player){ playerEnabled:function(card,player,target){
if(card.name=='tao'){ if(card.name=='tao'){
if(!lib.skill.jxlianpo.getMax().includes('zhu')) return; if(!lib.skill.jxlianpo.getMax().includes('zhu')) return;
if(player==target) return;
return false; return false;
} }
} }
@ -366,6 +368,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
player.markAuto('jxzhaoluan_hit',target); player.markAuto('jxzhaoluan_hit',target);
}, },
ai:{ ai:{
order:9,
result:{ result:{
player:function(player){ player:function(player){
var bodies=player.getStorage('jxzhaoluan_effect').filter(i=>i.isIn()); var bodies=player.getStorage('jxzhaoluan_effect').filter(i=>i.isIn());