bug修复

This commit is contained in:
copcap 2023-07-21 18:32:35 +08:00
parent f0da32c431
commit 574719e773
3 changed files with 20 additions and 6 deletions

View File

@ -2360,8 +2360,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
},
//沮授
xinjianying:{
audio:'jianying',
audioname:['xin_jushou'],
audio:2,
subfrequent:['draw'],
group:['xinjianying_draw'],
enable:'phaseUse',
@ -2449,7 +2448,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
result:{player:1},
},
subSkill:{
draw:{inherit:'jianying',audio:'jianying',audioname:['xin_jushou']},
draw:{inherit:'jianying',audio:'xinjianying'},
},
},
//刘巴
@ -18822,7 +18821,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
duansuo_info:'出牌阶段限一次。你可以重置任意名处于连环状态的角色然后对这些角色各造成1点火焰伤害。',
sp_pengyang:'彭羕',
spdaming:'达命',
spdaming_info:'①游戏开始时你获得2点“达命”值。②其他角色A的出牌阶段限一次。其可以交给你一张牌然后你选择一名其他角色B。若B有与此牌相同类型的牌其将一张该类型的牌交给A你获得1点“达命”值否则你将此牌交给A。',
spdaming_info:'①游戏开始时你获得2点“达命”值。②其他角色A的出牌阶段限一次。其可以交给你一张牌然后你选择一名其他角色B。若B有与此牌相同类型的牌其将一张该类型的牌交给A你获得1点“达命”值否则你将此牌交给A。',
spxiaoni:'嚣逆',
spxiaoni_info:'①出牌阶段限一次。若你的“达命”值大于0你可以将一张牌当任意一种【杀】或伤害类锦囊牌使用。然后你减少等同于此牌指定目标数的“达命”值。②你的手牌上限基数为XX为“达命”值且至多为你的体力值至少为0。',
xin_zhuhuan:'手杀朱桓',

View File

@ -213,6 +213,14 @@ game.import('character',function(lib,game,ui,get,ai,_status){
filter:function(event,player){
if(event.type!='discard') return false;
if(player.hasSkill('olguzheng_used')) return false;
var phaseName;
for(var name of lib.phaseName){
var evt=event.getParent(name);
if(!evt||evt.name!=name) continue;
phaseName=name;
break;
}
if(!phaseName) return false;
return game.hasPlayer(current=>{
if(current==player) return false;
var evt=event.getl(current);

View File

@ -527,15 +527,22 @@ game.import('character',function(lib,game,ui,get,ai,_status){
mark:true,
forced:true,
intro:{
markcount:function(storage,player){
var max=0;
for(var id in storage){
if(storage[id]>max) max=storage[id];
}
return max;
},
content:function(storage,player){
if(!storage) return '';
var str='';
var map=(_status.connectMode?lib.playerOL:game.playerMap);
for(var id of storage){
for(var id in storage){
str+='至'+get.translation(map[id])+'的距离-'+storage[id]+'、';
}
return str.slice(0,-1);
}
},
},
content:function(){
delete player.storage.twxianfeng_others[trigger.player.playerid];