Merge pull request #524 from mengxinzxz/PR-Branch

bugfix
This commit is contained in:
Spmario233 2023-10-14 21:41:25 +08:00 committed by GitHub
commit 4b8aed8a07
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
14 changed files with 20 additions and 29 deletions

Binary file not shown.

BIN
audio/die/yj_zhoubuyi.mp3 Normal file

Binary file not shown.

BIN
audio/skill/mbhuiyao1.mp3 Normal file

Binary file not shown.

BIN
audio/skill/mbhuiyao2.mp3 Normal file

Binary file not shown.

BIN
audio/skill/mbquesong1.mp3 Normal file

Binary file not shown.

BIN
audio/skill/mbquesong2.mp3 Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
audio/skill/rexinsheng1.mp3 Normal file

Binary file not shown.

BIN
audio/skill/rexinsheng2.mp3 Normal file

Binary file not shown.

View File

@ -10539,11 +10539,9 @@ game.import('character',function(lib,game,ui,get,ai,_status){
next.setContent(lib.skill.rehuashen.content); next.setContent(lib.skill.rehuashen.content);
}, },
}, },
rexingsheng:{audio:2},
rexinsheng:{ rexinsheng:{
//mode:['identity','single','doudizhu'],
unique:true, unique:true,
audio:'rexingsheng', audio:2,
trigger:{player:'damageEnd'}, trigger:{player:'damageEnd'},
frequent:true, frequent:true,
content:function(){ content:function(){

View File

@ -25905,7 +25905,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
olbihun:'弼昏', olbihun:'弼昏',
olbihun_info:'锁定技。当你使用牌指定其他角色为目标时若你的手牌数大于手牌上限且若此牌的目标数大于1取消此目标为1其获得此牌。', olbihun_info:'锁定技。当你使用牌指定其他角色为目标时若你的手牌数大于手牌上限且若此牌的目标数大于1取消此目标为1其获得此牌。',
olchuanwu:'穿屋', olchuanwu:'穿屋',
olchuanwu_info:'锁定技。当你造成或受到伤害后你令武将牌上的前X个技能失效直到回合结束。然后你摸等同于你此次失效的技能数张牌X为你的攻击范围。', olchuanwu_info:'锁定技。当你造成或受到伤害后你令武将牌上的前X个未失效的技能失效直到回合结束。然后你摸等同于你此次失效的技能数张牌X为你的攻击范围。',
oljianhe:'剑合', oljianhe:'剑合',
oljianhe_info:'出牌阶段每名角色限一次。你可以重铸至少两张同名牌或至少两张装备牌然后令一名角色选择一项1.重铸等量张与你以此法重铸的牌类型相同的牌2.受到你造成的1点雷电伤害。', oljianhe_info:'出牌阶段每名角色限一次。你可以重铸至少两张同名牌或至少两张装备牌然后令一名角色选择一项1.重铸等量张与你以此法重铸的牌类型相同的牌2.受到你造成的1点雷电伤害。',
dongtuna:'董荼那', dongtuna:'董荼那',

View File

@ -620,7 +620,8 @@ game.import('character',function(lib,game,ui,get,ai,_status){
if(player.getStorage('dclvecheng_xiongluan').contains(target)) return 0; if(player.getStorage('dclvecheng_xiongluan').contains(target)) return 0;
if(target.getEquip('bagua')||target.getEquip('rewrite_bagua')) return -0.6; if(target.getEquip('bagua')||target.getEquip('rewrite_bagua')) return -0.6;
var hs=player.countCards('h',card=>{ var hs=player.countCards('h',card=>{
return get.name(card)=='sha'&&get.effect(target,card,player,player)!=0; if(!player.canUse(card,target)) return false;
return get.name(card)=='sha'&&get.effect(target,card,player,player)>0;
}); });
var ts=target.hp; var ts=target.hp;
if(hs>=ts&&ts>1) return -2; if(hs>=ts&&ts>1) return -2;

View File

@ -10350,7 +10350,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
content:"mark", content:"mark",
}, },
audio:2, audio:2,
trigger:{player:"useCard"}, trigger:{player:"useCardAfter"},
filter:function(event,player){ filter:function(event,player){
var evt=event.getParent('phaseUse'); var evt=event.getParent('phaseUse');
if(!evt||evt.player!=player) return false; if(!evt||evt.player!=player) return false;
@ -10381,13 +10381,13 @@ game.import('character',function(lib,game,ui,get,ai,_status){
content:function(){ content:function(){
'step 0' 'step 0'
var choiceList=['令'+get.translation(trigger.source)+'本回合不能再使用或打出牌']; var choiceList=['令'+get.translation(trigger.source)+'本回合不能再使用或打出牌'];
if (trigger.source.countCards('h')) choiceList.push('令'+get.translation(trigger.source)+'弃置两张牌'); if (trigger.source.countCards('he')) choiceList.push('令'+get.translation(trigger.source)+'弃置两张牌');
player.chooseControl('cancel2').set('prompt2',get.prompt2('yuzhang')).set('choiceList',choiceList).set('ai',function(){ player.chooseControl('cancel2').set('prompt2',get.prompt2('yuzhang')).set('choiceList',choiceList).set('ai',function(){
var player=_status.event.player,source=_status.event.source; var player=_status.event.player,source=_status.event.source;
if(get.attitude(player,event.source)>0) return 'cancel2'; if(get.attitude(player,event.source)>=0) return 'cancel2';
if(source.hasSkillTag('noh')||source.hasSkillTag('noe')||source.countCards('h')>=4) return 0; if(source.hasSkillTag('noh')||source.hasSkillTag('noe')||source.countCards('h')>=4) return 0;
if(source.hp>1&&source.countCards('h')>1) return 1; if(source.hp>1&&source.countCards('he')>1) return 1;
return 'cancel2'; return [0,1].randomGet();
}).set('source',trigger.source); }).set('source',trigger.source);
'step 1' 'step 1'
if(result.control!='cancel2'){ if(result.control!='cancel2'){
@ -10402,17 +10402,16 @@ game.import('character',function(lib,game,ui,get,ai,_status){
skip:{ skip:{
audio:'yuzhang', audio:'yuzhang',
trigger:{ trigger:{
player:["phaseJudgeBefore","phaseDrawBefore","phaseUseBefore","phaseDiscardBefore"], player:['phaseZhunbeiBefore',"phaseJudgeBefore","phaseDrawBefore","phaseUseBefore","phaseDiscardBefore",'phaseJieshuBefore'],
}, },
filter:function(event,player){ filter:function(event,player){
return player.hasMark('twjingce'); return player.hasMark('twjingce');
}, },
"prompt2":function(event,player){ prompt2:function(event,player){
var str='弃置一枚“策”并跳过' var str='弃置一枚“策”并跳过';
if(event.name=='phaseJudge') str+='判定'; var list=lib.skill.yuzhang.subSkill.skip.trigger.player.slice();
if(event.name=='phaseDraw') str+='摸牌'; list=list.map(i=>i.slice(0,-6));
if(event.name=='phaseUse') str+='出牌'; str+=['准备','判定','摸牌','出牌','弃牌','结束'][list.indexOf(event.name)];
if(event.name=='phaseDiscard') str+='弃牌';
str+='阶段'; str+='阶段';
return str; return str;
}, },
@ -10424,26 +10423,18 @@ game.import('character',function(lib,game,ui,get,ai,_status){
player.removeMark('twjingce',1); player.removeMark('twjingce',1);
trigger.cancel(); trigger.cancel();
}, },
sub:true,
}, },
dontuse:{ dontuse:{
charlotte:true, charlotte:true,
mark:true, mark:true,
mod:{ mod:{
cardEnabled:function(card){ cardEnabled2:function(card){
return false;
},
cardRespondable:function(card){
return false;
},
cardSavable:function(card){
return false; return false;
}, },
}, },
intro:{ intro:{
content:"不能使用或打出牌", content:"不能使用或打出牌",
}, },
sub:true,
}, },
}, },
}, },
@ -10798,7 +10789,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
player.chooseTarget(lib.filter.notMe,'是否令一名其他角色也获得【'+get.translation(skill)+'】?').set('ai',function(target){ player.chooseTarget(lib.filter.notMe,'是否令一名其他角色也获得【'+get.translation(skill)+'】?').set('ai',function(target){
var player=_status.event.player; var player=_status.event.player;
if(player.identity=='nei') return 0; if(player.identity=='nei') return 0;
return get.attitude(player,target)-6; return get.attitude(player,target);
}); });
'step 2' 'step 2'
if(result.bool){ if(result.bool){
@ -14218,7 +14209,8 @@ game.import('character',function(lib,game,ui,get,ai,_status){
twlingfa_info:'①第一轮游戏开始时你可选择获得如下效果直到本轮结束其他角色使用【杀】时若其有牌则其需弃置一张牌否则受到你造成的1点伤害。②第二轮游戏开始时你可选择获得如下效果直到本轮结束其他角色使用【桃】结算结束后若其有牌则其需交给你一张牌否则受到你造成的1点伤害。③第三轮游戏开始时你失去〖令法〗并获得〖治暗〗。', twlingfa_info:'①第一轮游戏开始时你可选择获得如下效果直到本轮结束其他角色使用【杀】时若其有牌则其需弃置一张牌否则受到你造成的1点伤害。②第二轮游戏开始时你可选择获得如下效果直到本轮结束其他角色使用【桃】结算结束后若其有牌则其需交给你一张牌否则受到你造成的1点伤害。③第三轮游戏开始时你失去〖令法〗并获得〖治暗〗。',
twzhian:'治暗', twzhian:'治暗',
twzhian_info:'每回合限一次。一名角色使用装备牌或延时锦囊牌后你可选择⒈弃置位于场上的此牌。⒉弃置一张手牌并获得位于场上的此牌。⒊对其造成1点伤害。', twzhian_info:'每回合限一次。一名角色使用装备牌或延时锦囊牌后你可选择⒈弃置位于场上的此牌。⒉弃置一张手牌并获得位于场上的此牌。⒊对其造成1点伤害。',
tw_zhangmancheng:'张曼成', tw_zhangmancheng:'TW张曼成',
tw_zhangmancheng_prefix:'TW',
twfengji:'蜂集', twfengji:'蜂集',
twfengji_info:'出牌阶段开始时若你没有“示”则你可以将一张牌作为“示”置于武将牌上并施法从牌堆中获得X张与“示”牌名相同的牌然后移去“示”。', twfengji_info:'出牌阶段开始时若你没有“示”则你可以将一张牌作为“示”置于武将牌上并施法从牌堆中获得X张与“示”牌名相同的牌然后移去“示”。',
twyiju:'蚁聚', twyiju:'蚁聚',
@ -14250,7 +14242,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
tw_guohuai:'TW郭淮', tw_guohuai:'TW郭淮',
tw_guohuai_prefix:'TW', tw_guohuai_prefix:'TW',
twjingce:"精策", twjingce:"精策",
twjingce_info:"当你于出牌阶段使用第X张牌你可以摸两张牌X为你的体力值。若此阶段你此前摸过牌或本回合造成过伤害你获得一枚“策”标记。", twjingce_info:"当你于出牌阶段使用第X张牌结算完毕后你可以摸两张牌X为你的体力值。若此阶段你此前摸过牌或本回合造成过伤害,你获得一枚“策”标记。",
yuzhang:"御嶂", yuzhang:"御嶂",
yuzhang_info:"你可以弃置一枚“策”标记,然后跳过一个阶段。当你受到伤害后,你可弃置一枚“策”标记,然后选择一项:⒈令伤害来源弃置两张牌;⒉令伤害来源本回合不能再使用或打出牌。", yuzhang_info:"你可以弃置一枚“策”标记,然后跳过一个阶段。当你受到伤害后,你可弃置一枚“策”标记,然后选择一项:⒈令伤害来源弃置两张牌;⒉令伤害来源本回合不能再使用或打出牌。",
tw_caozhao:'曹肇', tw_caozhao:'曹肇',