diff --git a/audio/die/gaoxiang.mp3 b/audio/die/gaoxiang.mp3 new file mode 100644 index 000000000..ef9808d49 Binary files /dev/null and b/audio/die/gaoxiang.mp3 differ diff --git a/audio/skill/dcchiying1.mp3 b/audio/skill/dcchiying1.mp3 new file mode 100644 index 000000000..a3481ab39 Binary files /dev/null and b/audio/skill/dcchiying1.mp3 differ diff --git a/audio/skill/dcchiying2.mp3 b/audio/skill/dcchiying2.mp3 new file mode 100644 index 000000000..57682e688 Binary files /dev/null and b/audio/skill/dcchiying2.mp3 differ diff --git a/character/huicui.js b/character/huicui.js index fc530c92e..bb6845bfe 100644 --- a/character/huicui.js +++ b/character/huicui.js @@ -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为你本回合发动〖翊赞〗的次数)。', diff --git a/character/jsrg.js b/character/jsrg.js index e3f27b1b3..baaaab981 100644 --- a/character/jsrg.js +++ b/character/jsrg.js @@ -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; diff --git a/character/mobile.js b/character/mobile.js index cd0ccba7c..08e673753 100644 --- a/character/mobile.js +++ b/character/mobile.js @@ -14146,7 +14146,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){ mbaosi_info:'锁定技。当你于出牌阶段对一名攻击范围内的角色造成伤害后,你于此阶段对其使用牌无次数限制。', xin_zhoutai:'手杀周泰', re_yanwen:"手杀颜良文丑", - qianzhao:'牵招', + qianzhao:'手杀牵招', mbshihe:'势吓', mbshihe_info_identity:'出牌阶段限一次。你可以与一名角色拼点。若你:赢,当其于其下回合结束前对你造成伤害时,取消之;没赢,你随机弃置一张牌。', mbshihe_info:'出牌阶段限一次。你可以与一名角色拼点。若你:赢,当其于其下回合结束前对你和你的友方角色造成伤害时,取消之;没赢,你随机弃置一张牌。', diff --git a/character/offline.js b/character/offline.js index 3c63c26ac..8d0d40730 100644 --- a/character/offline.js +++ b/character/offline.js @@ -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; diff --git a/character/rank.js b/character/rank.js index 8d83d646f..3976b6b47 100644 --- a/character/rank.js +++ b/character/rank.js @@ -1247,6 +1247,7 @@ window.noname_character_rank={ 'jsrg_zhanghe', 'jsrg_zoushi', 'gaoxiang', + 'ol_qianzhao', ], bm:[ 'diy_xizhenxihong', diff --git a/character/sb.js b/character/sb.js index e49833ea0..458cf2aa3 100644 --- a/character/sb.js +++ b/character/sb.js @@ -1165,7 +1165,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=>{ diff --git a/character/sp.js b/character/sp.js index 0b293ec90..981dad39f 100755 --- a/character/sp.js +++ b/character/sp.js @@ -10,7 +10,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){ sp_tianzhu:['niujin','hejin','hansui',"wutugu","yanbaihu","shamoke","panfeng","zhugedan",'huangzu','gaogan',"tadun","fanjiangzhangda","ahuinan","dongtuna",'ol_wenqin'], sp_nvshi:["lingju","guanyinping","zhangxingcai","mayunlu","dongbai","zhaoxiang",'ol_zhangchangpu','ol_xinxianying',"daxiaoqiao","jin_guohuai"], sp_shaowei:["simahui","zhangbao","zhanglu","zhugeguo","xujing","zhangling",'huangchengyan','zhangzhi','lushi'], - sp_huben:['duanjiong','ol_mengda',"caohong","xiahouba","zhugeke","zumao","wenpin","litong","mazhong","heqi","quyi","luzhi","zangba","yuejin","dingfeng","wuyan","ol_zhuling","tianyu","huojun",'zhaoyǎn','dengzhong','ol_furong','macheng','ol_zhangyì','ol_zhujun','maxiumatie','luoxian','ol_huban','haopu'], + sp_huben:['duanjiong','ol_mengda',"caohong","xiahouba","zhugeke","zumao","wenpin","litong","mazhong","heqi","quyi","luzhi","zangba","yuejin","dingfeng","wuyan","ol_zhuling","tianyu","huojun",'zhaoyǎn','dengzhong','ol_furong','macheng','ol_zhangyì','ol_zhujun','maxiumatie','luoxian','ol_huban','haopu','ol_qianzhao'], sp_liesi:['mizhu','weizi','ol_liuba','zhangshiping'], sp_default:["sp_diaochan","sp_zhaoyun","sp_sunshangxiang","sp_caoren","sp_jiangwei","sp_machao","sp_caiwenji","jsp_guanyu","jsp_huangyueying","sp_pangde","sp_jiaxu","yuanshu",'sp_zhangliao','sp_ol_zhanghe','sp_menghuo'], sp_waitforsort:[], @@ -27,6 +27,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){ }, }, character:{ + ol_qianzhao:['male','wei',4,['olweifu','olkuansai']], niujin:['male','wei',4,['olcuorui','liewei']], hejin:['male','qun',4,['olmouzhu','olyanhuo']], hansui:['male','qun',4,['olniluan','olxiaoxi']], @@ -691,6 +692,192 @@ game.import('character',function(lib,game,ui,get,ai,_status){ }, }, skill:{ + //OL牵招 + olweifu:{ + audio:2, + enable:'phaseUse', + filterCard:lib.filter.cardDiscardable, + position:'he', + filter:function(event,player){ + return player.hasCard(card=>lib.filter.cardDiscardable(card,player),'he'); + }, + check:function(card){ + var player=_status.event.player; + return (5-get.value(card))/Math.pow(Math.max(0.1,player.getUseValue(card)),0.33); + }, + content:function(){ + 'step 0' + player.judge(card=>{ + var evt=_status.event.getParent(); + var cardx=evt.cards[0]; + if(get.type2(card)==get.type2(cardx)) return 0.5; + return 0.1; + }).set('callback',function(){ + var card=event.judgeResult.card; + player.addTempSkill('olweifu_clear'); + player.addTempSkill('olweifu_add'); + if(!get.is.object(player.storage.olweifu_add)) player.storage.olweifu_add={}; + var type=get.type2(card,player); + if(typeof player.storage.olweifu_add[type]!='number') player.storage.olweifu_add[type]=0; + player.storage.olweifu_add[type]++; + player.markSkill('olweifu_add'); + if(type==get.type2(event.getParent(2).cards[0],player)) player.draw(); + }).set('judge2',result=>result.bool); + }, + ai:{ + order:7, + result:{ + player:function(player){ + return player.hasCard(card=>{ + var type=get.type2(card); + if(type=='equip') return false; + return player.hasUseTarget(card)&&player.getUseValue(card)>5&&game.countPlayer(current=>{ + return lib.filter.targetEnabled2(card,player,current)&&get.effect(current,card,player,player)>0; + })+1>(get.is.object(player.storage.olweifu_add)?(player.storage.olweifu_add[type]||0):0); + },'hs')?1:0; + }, + }, + }, + subSkill:{ + clear:{ + trigger:{player:'useCard1'}, + filter:function(event,player){ + var type=get.type2(event.card); + if(get.is.object(player.storage.olweifu_add)&&typeof player.storage.olweifu_add[type]=='number') return true; + return false; + }, + silent:true, + firstDo:true, + charlotte:true, + content:function(){ + var type=get.type2(trigger.card); + var num=player.storage.olweifu_add[type]; + delete player.storage.olweifu_add[type]; + if(get.is.empty(player.storage.olweifu_add)){ + delete player.storage.olweifu_add; + player.unmarkSkill('olweifu_add'); + } + trigger._olweifu_clear=num; + } + }, + add:{ + trigger:{player:'useCard2'}, + filter:function(event,player){ + if(!event._olweifu_clear) return false; + var info=get.info(event.card); + if(info.allowMultiple==false) return false; + if(event.targets&&!info.multitarget){ + if(game.hasPlayer(current=>{ + return !event.targets.contains(current)&&lib.filter.targetEnabled2(event.card,player,current); + })) return true; + } + return false; + }, + onremove:true, + charlotte:true, + direct:true, + content:function(){ + 'step 0' + var num=trigger._olweifu_clear; + player.chooseTarget(get.prompt('olweifu'),'为'+get.translation(trigger.card)+'额外指定'+get.cnNumber(num)+'个目标。',[1,num],(card,player,target)=>{ + return !_status.event.sourcex.contains(target)&&lib.filter.targetEnabled2(_status.event.card,player,target); + }).set('sourcex',trigger.targets).set('ai',function(target){ + var player=_status.event.player; + return get.effect(target,_status.event.card,player,player); + }).set('card',trigger.card); + 'step 1' + if(result.bool){ + var targets=result.targets; + player.logSkill('olweifu_add',targets); + trigger.targets.addArray(targets); + game.log(targets,'也成为了',trigger.card,'的目标'); + if(!event.isMine()&&!event.isOnline()) game.delayex(); + } + }, + intro:{ + markcount:()=>0, + content:(storage,player)=>{ + if(!get.is.object(storage)) return; + var str='使用下一张以下类型的牌无距离限制,且可以额外指定对应数量个目标:'; + for(var type in storage){ + str+='