卢弈【邀弈】、谋鲁肃【孟谋】bugfix

This commit is contained in:
mengxinzxz 2024-03-21 20:56:32 +08:00
parent ca7d3193dd
commit d5f6114813
1 changed files with 3 additions and 4 deletions

View File

@ -1396,7 +1396,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
charlotte:true, charlotte:true,
trigger:{global:'damageSource'}, trigger:{global:'damageSource'},
filter:function(event,player){ filter:function(event,player){
if(event.getParent().type!='card') return false; if(!event.source||event.getParent().type!='card') return false;
if(event.source.isHealthy()||event.card.name!='sha') return false; if(event.source.isHealthy()||event.card.name!='sha') return false;
return event.getParent(4).name=='dcsbmengmou'&&event.getParent(4).player==player; return event.getParent(4).name=='dcsbmengmou'&&event.getParent(4).player==player;
}, },
@ -7968,8 +7968,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
audio:2, audio:2,
getZhuanhuanji:function(player,bool){ getZhuanhuanji:function(player,bool){
var skills=player.getSkills(null,false,false).filter(function(i){ var skills=player.getSkills(null,false,false).filter(function(i){
const list=get.skillCategoriesOf(i); return get.is.zhuanhuanji(i,player);
return !list.includes('Charlotte')&&list.includes('转换技');
}); });
if(!bool) return skills; if(!bool) return skills;
if(!skills.length) return 'none'; if(!skills.length) return 'none';
@ -7981,7 +7980,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
}, },
getState:function(player,skill){ getState:function(player,skill){
var info=get.info(skill),zhuanhuan=info.zhuanhuanji; var info=get.info(skill),zhuanhuan=info.zhuanhuanji;
if(zhuanhuan=='number') return (player.countMark(skill)%2==1); if(zhuanhuan&&zhuanhuan=='number') return (player.countMark(skill)%2==1);
return Boolean(player.storage[skill]); return Boolean(player.storage[skill]);
}, },
trigger:{ trigger:{