bug修复

This commit is contained in:
copcap 2023-09-15 19:11:59 +08:00
parent 6e4abaa784
commit 511687b7ee
No known key found for this signature in database
GPG Key ID: 9AE7B8AF097EC926
7 changed files with 15 additions and 10 deletions

View File

@ -3043,7 +3043,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
trigger:{target:'useCardToTargeted'},
forced:true,
filter:function(event,player){
return event.player!=player&&get.type2(event.card)=='trick'&&(event.targets.length==1||player.countCards('he')>0);
return get.type2(event.card)=='trick'&&(event.targets.length==1||player.countCards('he')>0);
},
content:function(){
if(trigger.targets.length==1) player.draw();
@ -10132,7 +10132,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
dcqinqing:'寝情',
dcqinqing_info:'结束阶段,你可以弃置一名攻击范围内包含一号位的其他角色一张牌。然后若其手牌数大于一号位,你摸一张牌。',
dccunwei:'存畏',
dccunwei_info:'锁定技。当你成为其他角色使用锦囊牌的目标后,若你是唯一目标,你摸一张牌;否则你弃置一张牌。',
dccunwei_info:'锁定技。当你成为锦囊牌的目标后,若你是唯一目标,你摸一张牌;否则你弃置一张牌。',
dc_zhaotongzhaoguang:'赵统赵广',
dcqingren:'青刃',
dcqingren_info:'结束阶段你可以摸X张牌X为你本回合发动〖翊赞〗的次数。',

View File

@ -3965,7 +3965,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
else event.finish();
'step 2'
var target=targets.shift();
target.chooseToDiscard('寻道:请弃置一张牌'+(target==player?'':',可能被作为新判定牌'),'he',true).set('ai',target=>{
target.chooseToDiscard('寻道:请弃置一张牌'+(target==player?'':',可能被作为新判定牌'),'he',true).set('ai',card=>{
var trigger=_status.event.getTrigger();
var player=_status.event.player;
var judging=_status.event.judging;

View File

@ -915,7 +915,8 @@ game.import('character',function(lib,game,ui,get,ai,_status){
zymingshi:{
audio:'mingshi',
forced:true,
trigger:{target:'useCardToTargeted'},
trigger:{target:'useCardToBefore'},
priority:15,
filter:function(event,player){
if(!player.hasEmptySlot(2)) return false;
if(event.card.name!='sha') return false;

View File

@ -1166,7 +1166,8 @@ game.import('character',function(lib,game,ui,get,ai,_status){
content:function(){
'step 0'
event.targets=trigger.targets.filter(i=>!i.isLinked());
player.logSkill('sblianhuan_discard2',event.targets);
if(!event.targets.length) event.finish();
else player.logSkill('sblianhuan_discard2',event.targets);
'step 1'
var target=targets.shift();
var cards=target.getCards('h',card=>{

View File

@ -1473,7 +1473,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
hasSame:function(info,card){
if(info.type==get.type2(card,false)) return true;
if(info.suit!='none'&&info.suit==get.suit(card,false)) return true;
if(typeof info.number=='number'&&info.number>0&&info.number==get.suit(card,false)) return true;
if(typeof info.number=='number'&&info.number>0&&info.number==get.number(card,false)) return true;
return info.length==get.cardNameLength(card)
},
content:function(){
@ -24498,7 +24498,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
olkenshang:'垦伤',
olkenshang_info:'你可以将任意张牌当【杀】使用然后你可以将此牌目标改为所有你攻击范围外的角色。此牌结算结束后若此牌对应的实体牌数大于X你摸X张牌X为此牌造成过的伤害值否则你失去一个技能。',
rekenshang:'垦伤',
rekenshang_info:'你可以将至少两张牌当【杀】使用,然后你可以将此牌目标改为等量名角色。此牌结算结束后,若此牌对应的实体牌数大于X你摸X张牌X为此牌造成过的伤害值。',
rekenshang_info:'你可以将至少两张牌当【杀】使用,然后你可以将此牌目标改为等量名角色。此牌结算结束后,若此牌对应的实体牌数大于此牌造成过的伤害值,你摸一张牌。',
ol_zhujun:'OL朱儁',
olcuipo:'摧破',
olcuipo_info:'锁定技。当你使用牌时若此牌是你本回合使用的第X张牌X为此牌牌名的字数{若此牌为【杀】或伤害类锦囊牌,则此牌的伤害值基数+1否则你摸一张牌}。',

View File

@ -8113,7 +8113,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
charlotte:true,
filter:function(event,player,name){
if(name=='useCard') return (event.card.name=='sha'&&player.hasMark('twchuanshu_mark'));
return event.player!=player&&event._twchuanshu&&player.hasHistory('sourceDamage',function(evt){
return player.getStorage('twchuanshu_effect').some(i=>i!=player)&&event._twchuanshu&&player.hasHistory('sourceDamage',function(evt){
return evt.card==event.card;
});
},
@ -8130,7 +8130,10 @@ game.import('character',function(lib,game,ui,get,ai,_status){
player.getHistory('sourceDamage',function(evt){
if(evt.card==trigger.card) num2+=evt.num;
});
player.draw(num1*num2);
var targets=player.getStorage('twchuanshu_effect').filter(i=>i!=player&&i.isIn());
for(var target of targets){
target.draw(num1*num2);
}
}
},
},

View File

@ -2797,7 +2797,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
frequent:true,
locked:false,
content:function(){
player.draw();
player.draw(trigger.targets.length);
},
mod:{
aiOrder:function(player,card,num){