'use strict'; game.import('character',function(lib,game,ui,get,ai,_status){ return { name:'sp', connect:true, characterSort:{ sp:{ sp_tianji:["sunhao","liuxie","caoang","hetaihou","sunluyu",'ol_wangrong',"zuofen","ganfuren","ol_bianfuren","qinghegongzhu","tengfanglan","ruiji",'caoxiancaohua'], sp_sibi:["yangxiu","chenlin","chengyu","shixie","fuwan","wangyun","zhugejin","simalang","maliang","buzhi","dongyun","kanze","sunqian","xizhicai","sunshao",'duxi',"jianggan",'ol_dengzhi','ol_yangyi','ol_dongzhao','ol_chendeng','jin_yanghu','wangyan','xiahouxuan','quhuang','zhanghua','wangguan','sunhong','caoxi'], 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','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:['ol_luyusheng','ol_pengyang'], sp_qifu:["caoying",'panshu',"caochun","yuantanyuanshang",'caoshuang','wolongfengchu','guansuo','baosanniang','fengfangnv','jin_zhouchu'], sp_wanglang:['ol_wanglang','ol_puyuan','ol_zhouqun'], sp_zhongdan:["cuiyan","huangfusong"], sp_guozhan2:["sp_dongzhuo","liqueguosi","zhangren"], sp_others:["hanba","caiyang"], }, }, characterFilter:{ tianyu:function(mode){ return mode!='chess'&&mode!='tafang'&&mode!='stone'; }, }, character:{ ol_luyusheng:['female','wu',3,['olcangxin','skill_luyusheng_B'],['unseen']], caoxi:['male','wei',3,['olgangshu','oljianxuan']], ol_pengyang:['male','shu',3,['olqifan','oltuishi','nzry_cunmu']], 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']], duanjiong:['male','qun',4,['olsaogu']], ol_zhouqun:['male','shu',4,['oltianhou','olchenshuo']], ol_wenqin:['male','wei',4,['olguangao','olhuiqi']], haopu:['male','shu',4,['olzhenying']], ol_mengda:['male','shu',4,['olgoude']], ol_wanglang:['male','wei',3,['gushe','oljici']], ol_liuyan:['male','qun','4/6',['olpianan','olyinji','olkuisi'],['unseen']], lushi:['female','qun',3,['olzhuyan','olleijie']], zhangshiping:['male','shu',3,['olhongji','olxinggu']], sunhong:['male','wu',3,['olxianbi','olzenrun']], luoxian:['male','shu',4,['oldaili']], ol_huban:['male','wei',4,['olhuiyun']], wangguan:['male','wei',3,['olmiuyan','olshilu']], ol_zhangyì:['male','shu',4,['oldianjun','olkangrui']], ol_zhujun:['male','qun',4,['olcuipo']], maxiumatie:['male','qun',4,['mashu','rekenshang']], dongtuna:['male','qun',4,['oljianman']], zhanghua:['male','jin',3,['olbihun','oljianhe','olchuanwu']], quhuang:['male','wu',3,['olqiejian','olnishou']], macheng:['male','shu',4,['mashu','olchenglie']], zhangzhi:['male','qun',3,['olbixin','olximo']], ol_liuba:['male','shu',3,['oltongduo','olzhubi']], ol_furong:['male','shu',4,['olxiaosi']], ahuinan:['male','qun',4,['jueman']], jin_guohuai:['female','jin',3,['zhefu','yidu']], xiahouxuan:['male','wei',3,['olhuanfu','olqingyi','olzeyue']], dengzhong:['male','wei',4,['dzkanpo','dzgengzhan']], wangyan:['male','jin',3,['yangkuang','cihuang','sanku']], huojun:['male','shu',4,['qiongshou','fenrui']], caoxiancaohua:['female','qun',3,['huamu','qianmeng','liangyuan','jisi']], jin_zhouchu:['male','jin',4,['shanduan','yilie']], zhaoyǎn:['male','wei',4,['tongxie']], ol_puyuan:['male','shu',4,['olshengong','olqisi']], ruiji:['female','wu',3,['qiaoli','qingliang']], weizi:['male','qun',3,['yuanzi','liejie']], tengfanglan:['female','wu',3,['luochong','aichen']], sp_menghuo:['male','qun',4,['spmanwang']], jin_yanghu:['male','jin',4,['huaiyuan','chongxin','dezhang']], qinghegongzhu:['female','wei',3,['zengou','qhzhangji']], fanjiangzhangda:['male','wu',4,['yuanchou','juesheng']], tianyu:['male','wei',4,['saodi','zhuitao']], ol_chendeng:['male','qun',4,['olfengji']], ol_zhuling:['male','wei',4,['jixian']], wuyan:['male','wu',4,['lanjiang']], sp_ol_zhanghe:['male','qun',4,['spolzhouxuan']], ol_dongzhao:['male','wei',3,['olxianlve','olzaowang']], fengfangnv:['female','qun',3,['zhuangshu','chuiti']], ol_yangyi:['male','shu',3,['oljuanxia','oldingcuo']], zuofen:['female','jin',3,['zhaosong','lisi']], ol_wangrong:['female','qun',3,['olfengzi','oljizhan','olfusong']], ol_dengzhi:['male','shu',3,['olxiuhao','olsujian']], ol_bianfuren:['female','wei',3,['fuwei','yuejian']], duxi:['male','wei',3,['quxi','bixiong']], gaogan:['male','qun',4,['juguan']], huangchengyan:['male','qun',3,['guanxu','yashi']], huangzu:['male','qun',4,['wangong']], panshu:['female','wu',3,['weiyi','jinzhi']], ol_xinxianying:['female','wei',3,['xincaishi','xinzhongjian']], wolongfengchu:['male','shu',4,['youlong','luanfeng']], sp_zhangliao:['male','qun',4,['mubing','ziqu','diaoling']], caoshuang:['male','wei',4,['retuogu','shanzhuan']], ol_zhangchangpu:['female','wei',3,['yanjiao','olxingshen']], zhangling:['male','qun',3,['zlhuji','zlshoufu']], caiyang:['male','qun',1,['yinka','zhuixi'],['forbidai','unseen']], panfeng:['male','qun',4,['kuangfu']], sunshao:['male','wu',3,['bizheng','yidian']], huangfusong:['male','qun',4,['xinfenyue']], yuantanyuanshang:['male','qun',4,['neifa']], xujing:['male','shu',3,['yuxu','xjshijian']], jianggan:["male","wei",3,["weicheng","daoshu"]], caoying:["female","wei",4,["xinfu_lingren","xinfu_fujian"],[]], simahui:["male","qun",3,["xinfu_jianjie","xinfu_chenghao","xinfu_yinshi"],[]], baosanniang:["female","shu",4,["olwuniang","olxushen"],[]], yangxiu:['male','wei',3,['jilei','danlao']], chenlin:['male','wei',3,['bifa','songci']], caohong:['male','wei',4,['yuanhu']], xiahouba:['male','shu',4,['rebaobian']], yuanshu:['male','qun',4,['yongsi','weidi']], sp_diaochan:['female','qun',3,['lihun','rebiyue']], sp_zhaoyun:['male','qun',3,['ollongdan','chongzhen']], liuxie:['male','qun',3,['tianming','mizhao','twzhuiting'],['zhu']], zhugejin:['male','wu',3,['olhuanshi','olhongyuan','olmingzhe']], zhugeke:['male','wu',3,['aocai','duwu']], guanyinping:['female','shu',3,['huxiao','xueji','wuji']], simalang:['male','wei',3,['junbing','quji']], zhangxingcai:['female','shu',3,['shenxian','qiangwu']], fuwan:['male','qun',4,['dcmoukui']], sp_sunshangxiang:['female','shu',3,['liangzhu','fanxiang']], caoang:['male','wei',4,['kaikang']], sp_caoren:['male','wei',4,['weikui','lizhan']], zhangbao:['male','qun',3,['rezhoufu','reyingbing']], maliang:['male','shu',3,['zishu','yingyuan']], zhugedan:['male','wei',4,['gongao','juyi']], sp_jiangwei:['male','wei',4,['kunfen','fengliang']], sp_machao:['male','qun',4,['olzhuiji','ol_shichou']], sunhao:['male','wu',5,['recanshi','rechouhai','guiming'],['zhu']], shixie:['male','qun',3,['rebiluan','relixia']], mayunlu:['female','shu',4,['fengpo','mashu']], zhanglu:['male','qun',3,['yishe','bushi','midao','twshijun'],['zhu']], wutugu:['male','qun',15,['ranshang','hanyong']], sp_caiwenji:['female','wei',3,['chenqing','mozhi']], zhugeguo:['female','shu',3,['qirang','yuhua']], lingju:['female','qun',3,['jieyuan','fenxin']], cuiyan:['male','wei',3,['yawang','xunzhi']], jsp_guanyu:['male','wei',4,['new_rewusheng','danji']], jsp_huangyueying:['female','qun',3,['jiqiao','linglong']], sunluyu:['female','wu',3,['new_meibu','new_mumu']], hanba:['female','qun',4,['fentian','zhiri']], zumao:['male','wu',4,['yinbing','juedi']], wenpin:['male','wei',4,['zhenwei']], daxiaoqiao:['female','wu',3,['new_xingwu','new_luoyan']], guansuo:['male','shu',4,['xinzhengnan','xiefang']], tadun:['male','qun',4,['reluanzhan']], yanbaihu:['male','qun',4,['zhidao','jili']], chengyu:['male','wei',3,['shefu','benyu']], sp_pangde:['male','wei',4,['mashu','juesi']], sp_jiaxu:['male','wei',3,['zhenlue','jianshu','yongdi']], litong:['male','wei',4,['tuifeng']], mizhu:['male','shu',3,['ziyuan','jugu']], buzhi:['male','wu',3,['hongde','dingpan']], caochun:['male','wei',4,['xinshanjia']], dongbai:['female','qun',3,['lianzhu','xiehui']], zhaoxiang:['female','shu',4,['refanghun','refuhan']], mazhong:['male','shu',4,['fuman']], dongyun:['male','shu',3,['bingzheng','sheyan']], kanze:['male','wu',3,['xiashu','kuanshi']], heqi:['male','wu',4,['olqizhou','olshanxi']], ganfuren:['female','shu',3,['shushen','shenzhi']], //mifuren:['female','shu',3,['guixiu','cunsi']], yuejin:['male','wei',4,['xiaoguo']], sp_dongzhuo:['male','qun',5,['hengzheng']], hetaihou:['female','qun',3,['zhendu','qiluan']], dingfeng:['male','wu',4,['reduanbing','refenxun']], shamoke:['male','shu',4,['gzjili']], //liqueguosi:['male','qun',4,['xiongsuan']], //cuimao:['male','wei',3,['zhengbi','fengying']], zangba:['male','wei',4,['rehengjiang']], zhangren:['male','qun',4,['chuanxin','zfengshi']], wangyun:['male','qun',4,['xinlianji','xinmoucheng'],['clan:太原王氏']], sunqian:['male','shu',3,['qianya','shuimeng']], xizhicai:['male','wei',3,['tiandu','xianfu','chouce']], quyi:['male','qun',4,['fuqi','jiaozi']], luzhi:['male','wei',3,['qingzhong','weijing']], //kaisa:["male","western",4,["zhengfu"]], }, characterIntro:{ caoxi:'曹羲(?-249年),字昭叔。曹真之子,曹爽之弟。为人有学识,明律法。司马懿曾组织朝议改革九品中正制废除九品而留中正,曹羲认为此举并无区别,最终都是决定于人的人治。曹爽掌权后,受封中领军,掌握禁兵,封安乡侯。曹爽及诸兄弟轻视司马懿,恣意妄为,经常外出狩猎,曹羲屡次劝谏,不被采纳。249年,司马懿发动高平陵政变,被夷三族。', duanjiong:'段颎(?-179年),字纪明,武威姑臧(今甘肃省武威市)人。东汉名将,西域都护段会宗从曾孙,与皇甫规(字威明)、张奂(字然明)并称“凉州三明”。段颎少时学习骑射,有文武智略,最初被举为孝廉,为宪陵园丞、阳陵令,有治理之才。汉桓帝时入军旅,先破鲜卑,后讨平东郭窦、公孙举起事,以功封列侯。延熹二年(159年)起戍边征战十余年,百战羌人,至永康元年(167年)平定西羌,建宁二年(169年)平定东羌,前后斩东西羌六万余级。累功封新丰县侯。建宁三年(170年),段颎被征入朝,历任侍中、执金吾、河南尹、司隶校尉等职,他党附宦官、捕杀太学生,因而得保富贵,两度出任太尉。光和二年(179年),权宦王甫罪行被揭发,段颎受牵连下狱,其后在狱中饮鸩而死。', haopu:'郝普,字子太,义阳(治所在今湖北枣阳东南)人。刘备入川后,郝普为零陵太守。建安二十年(215年),吴将吕蒙进攻荆州三郡,唯有郝普坚守待援。但援兵久久不至,其挚友邓玄之又被吕蒙所骗,郝普也因此上当,投降吴国。湘水划界后,郝普回归刘备。建安二十四年(219年),吕蒙再次袭击荆州,击败关羽,郝普再次投降,最终归顺吴国并官至廷尉。郝普与隐蕃亲善,隐蕃蓄谋叛变事情败露,他受到牵连,因此自杀。在刘备集团的5个荆州郡守中,郝普是唯一一个抵抗过东吴的荆州郡守。', ol_zhanghe:'字儁乂,河间鄚人。三国时期魏国名将。官渡之战时,本为袁绍部将的张郃投降了曹操,并在曹操帐下多立功勋,于曹魏建立后加封为征西车骑将军。诸葛亮六出祁山之间,张郃多次抵御蜀军的进攻,于公元231年在木门道被诸葛亮设伏射死。后谥曰壮侯。为曹魏“五子良将”之一。', zhangshiping:'张世平是东汉末期的中山商人,曾与苏双同路,资助刘备组织武装、建立政权。于《三国演义》第一回出场,刘关张桃园三结义时资助刘备良马五十匹,金银五百两,镔铁一千斤。刘备所使用的“双股剑”、关羽所使用的“青龙偃月刀(又名‘冷艳锯’)”、张飞所使用的“丈八点钢矛(又名‘丈八蛇矛’)”皆由这一千斤上好镔铁打造而成。', luoxian:'罗宪(218年—270年),字令则,荆州襄阳(今湖北襄阳)人。西晋开国将领,巴东太守(郡府在永安白帝城)。于蜀汉灭亡后降魏,成功抵御孙吴的入侵,守住入魏国的要冲永安。后仕晋官至冠军将军、假节,封西鄂县侯。泰始六年(270年)去世,谥烈侯。', sunhong:'孙弘(?—252年),三国时期吴国大臣,扬州会稽(今浙江省绍兴市)人。官至吴国中书令、少傅。鲁王孙霸与太子孙和各植党羽,孙弘即依附孙霸。孙权病笃,而太子年少,于是以孙弘领少傅。孙权临终,召他与诸葛恪、孙峻等嘱以后事,孙弘与诸葛恪同为顾命大臣。孙权死后,孙弘因素来与诸葛恪不和,怕为所治,故而隐瞒了孙权的死讯,欲矫诏除掉诸葛恪,被孙峻告发。后诸葛恪请孙弘议事,于座中将其诛杀。', wangguan:'《三国演义》中虚构人物,历史上不曾记载。在114回出场,曾为邓艾手下参谋,献反间计与邓艾,被姜维识破,兵败自投江而死。', maxiumatie:'马休(?-212年),马铁(?-212年)。两人均为扶风茂陵(今陕西兴平)人,马腾之子,马超之弟。马腾遭韩遂进攻,乃携马休、马铁等入京受职。马休被封为奉车都尉,马铁被封为骑都尉。后在邺城居住。因兄马超反,两人被曹操夷灭。', dongtuna:'董荼那,小说《三国演义》及其衍生作品中的角色,南蛮王孟获属下大将,第二洞元帅;与阿会喃等人一起担任孟获的援军出征,但是被俘虏,又被诸葛亮释放,再次出战时,被唾骂不知羞耻,面红耳赤的退军。后同阿会喃共同绑架孟获献于蜀军,却被诸葛亮在其二人与孟获的重要性间权衡后出卖了他们,放走了孟获,使其为孟获所杀。', zhanghua:'张华(232年-300年),字茂先。范阳郡方城县(今河北固安)人。西晋时期政治家、文学家、藏书家,西汉留侯张良的十六世孙。张华出身范阳张氏,自少贫苦,因才学过人而受同乡名臣卢钦、刘放、阮籍等人的赞赏。在曹魏时,他历任太常博士、河南尹丞、佐著作郎、中书郎等职。西晋建立后,拜黄门侍郎,封关内侯,逐渐受到晋武帝的重用。后拜中书令,加散骑常侍,与大将杜预坚决支持武帝伐吴,于战时任度支尚书。吴国灭亡后,以功进封广武县侯。其后遭到排挤,出镇幽州,政绩卓然。之后返朝任太常,终武帝之世未得参与政事。晋惠帝继位后,累官至司空,封壮武郡公,被皇后贾南风委以朝政。张华尽忠辅佐,使天下仍然保持相对安宁。永康元年(300年),♯♯司马伦发动政变,张华惨遭杀害,年六十九。太安二年(303年),获得♯♯,追复官爵。张华工于诗赋,词藻华丽,又雅爱书籍,精于目录学,编纂有中国第一部博物学著作《博物志》;还曾与荀勖等人依照刘向《别录》整理典籍。《宣和书谱》载有其草书《得书帖》及行书《闻时帖》。《隋书·经籍志》有《张华集》十卷,今已佚。明人张溥辑有《张茂先集》。', quhuang:'屈晃(?—251),祖籍汝南(今河南省汝南县),汉末避乱南下,三国吴时居章安(今属椒江区)。初为郡吏,在职清廉,颇有政声。赤乌初年,擢为尚书仆射。', macheng:'马承,蜀汉骠骑将军马超之子。仕蜀汉,马超死后继承其斄乡侯爵位。', zhangzhi:'张芝(?—192年),字伯英,敦煌郡渊泉县(今甘肃省瓜州县)人。东汉书法家、“草书之祖”,大司农张奂的儿子。出身名门,拒绝朝廷征召,潜心研习书法。擅长草书中的章草,将古代当时字字区别、笔画分离的草法,改为上下牵连富于变化的新写法,富有独创性,在当时影响很大。李志敏评价:“张芝创造了草书问世以来的第一座高峰,精熟神妙,兼善章今”。 没有真迹传世,仅存《八月帖》等刻帖。汉献帝初平三年,去世于家中,著有《笔心论》,与钟繇、王羲之和王献之并称“书中四贤”。', ahuinan:'阿会喃,小说《三国演义》及其衍生作品中的角色,南蛮王孟获属下大将,第三洞元帅;与董荼那等人一起担任孟获的援军出征,但是被俘虏,又被诸葛亮释放,再次出战时,被唾骂不知羞耻,面红耳赤的退军。后同董荼那共同绑架孟获献于蜀军,却被诸葛亮在其二人与孟获的重要性间权衡后出卖了他们,放走了孟获,使其为孟获所杀。', xiahouxuan:'夏侯玄(209年~254年),字泰初(《三国志》等作太初),沛国谯县(今安徽省亳州市)人。三国时期曹魏大臣、思想家、文学家,征南大将军夏侯尚之子,大将军曹爽的表弟。夏侯玄少年有名望,仪表出众,时人称为“朗朗如日月之入怀”。魏文帝黄初六年(225年),袭封昌陵乡侯。魏明帝时,历任散骑黄门侍郎、羽林监。少帝曹芳继位后,拜散骑常侍、中护军,保卫皇宫。后任征西将军,任内与曹爽策划骆谷之役,大失人心。高平陵政变后,被夺去兵权,改任大鸿胪、太常卿。嘉平六年(254年),中书令李丰与外戚张缉密谋杀死大将军司马师,改以夏侯玄执政。事泄被杀,夷灭三族,夏侯玄死时年仅四十六岁。著有文集三卷,如今已佚。政治上,提出了“审官择人”、“除重官”、“改服制”等制度,被太傅司马懿评价“皆大善”。博学多识,才华出众,精通玄学,成为“四聪”之一,与何晏等人开创了魏晋玄学的先河,是早期的玄学领袖人物。', dengzhong:'邓忠(不详-264年),三国时期曹魏名将邓艾之子。景元五年(264年),钟会谋反事败,士兵哗变,钟会被杀,邓艾部将想追还邓艾父子,但卫瓘却派田续追邓艾,于绵竹西相遇,将邓艾和邓忠等人杀死。直至泰始九年(273年)才恢复名节。', wangyan:'王衍(256年~311年),字夷甫,琅邪郡临沂县(今山东省临沂市)人。西晋末年重臣,玄学清谈领袖,曹魏幽州刺史王雄之孙、平北将军王乂之子、司徒王戎堂弟。王衍出身琅琊王氏。外表清明俊秀,风姿安详文雅,笃好老庄学说,颇有时名。步入仕途后,历任黄门侍郎、中领军、尚书令、尚书仆射等职。光熙元年(307年),升任司空。次年,又任司徒。王衍位高权重,却不思为国,为保全自己,还让弟弟王澄、族弟王敦分任荆州、青州刺史,遭时人鄙夷。王弥进攻洛阳时,王衍率军抵抗。其后转任太尉兼尚书令,又兼领太傅军司。永嘉五年(311年),东海王司马越去世,王衍奉其灵柩返回东海,途中为羯人石勒所俘获。王衍在与石勒交谈时,仍推脱责任,并劝其称帝,石勒大怒,将其与西晋旧臣一同活埋,时年五十六岁。王衍工书法,尤擅行书,《宣和书谱》有其作品《尊夫人帖》。', caoxiancaohua:'此处为「曹宪」的相关介绍。关于「曹华」的部分请参考原本的介绍。
曹宪(生卒年不详),女,沛国谯县(今安徽省亳州市)人。东汉末年历史人物,汉献帝刘协嫔妃,魏武帝曹操女儿。建安十八年,嫁给汉献帝刘协,受封为贵人。黄初元年(220年),兄弟曹丕称帝后,汉献帝成为山阳公,不知所终。', zhaoyǎn:'赵俨(171~245年),字伯然,颍川阳翟(今河南禹州市)。东汉末年颍川“四大名士”之一,三国时期魏国名臣。熟读经史,精明强干。建安二年,投靠大将军曹操之后,起家朗陵县令,历任司空府掾、司空主薄、都督护军、扶风太守等职。魏文帝曹丕继位后,历任魏国侍中、驸马都尉、河东太守、典农中郎将、度支尚书,封宜土亭侯。魏明帝曹睿时期,历任大司农、骠骑将军、大司空等职。正始六年,去世,时年七十五,谥号为穆。', ruiji:'芮姬,芮玄之女,太子孙登妃,黄武五年卒。', weizi:'卫兹(?-190年),字子许,(《三国演义》中其名为卫弘,当为误记),陈留襄邑(今河南睢县)人。曾举孝廉,先后被车骑将军何苗、司徒杨赐等召辟。中平六年(189年)十二月,曹操在陈留己吾募兵,而卫兹以家财资助曹操,使曹操顺利募得五千士兵。此后,卫兹与曹操共同讨伐董卓。初平元年(190年),卫兹在跟随曹操讨伐董卓途中,于荥阳汴水遭遇董卓军徐荣,力战终日,失利身亡。', tengfanglan:'滕芳兰,生卒年不详,北海剧县(今山东省寿光市)人,太常滕胤的族女,滕牧的女儿,吴末帝孙皓的皇后。永安元年(258年),孙皓为乌程侯时被聘为妃。元兴元年(264年),孙皓登基后被立为皇后。孙吴灭亡后,随孙皓迁居洛阳。', qinghegongzhu:'清河长公主,沛国谯县人,曹操长女(按其与曹操长子曹昂同出于刘夫人,而刘夫人又早死,故其年龄应长于曹丕等其他曹操诸子女,又按长公主亦有年最长之意,故应为曹操之长女)。母刘夫人,得到曹操喜爱。清河公主后来下嫁夏侯楙。曹操初欲嫁丁仪,曹丕劝其嫁与夏侯楙。后与小叔子设计欲谋害丈夫,未果。', fanjiangzhangda:'范强,在明朝小说《三国演义》里叫做范疆。二人均为张飞手下部将。蜀汉章武元年,刘备伐吴,张飞率军从阆中前往江州,出发前,范强和张达杀死张飞,带着张飞的首级投奔了东吴。', tianyu:'田豫(171年~252年),字国让,渔阳雍奴(今天津市武清区)人。三国时期曹魏将领。初从刘备,因母亲年老回乡,后跟随公孙瓒,公孙瓒败亡,劝说鲜于辅加入曹操。曹操攻略河北时,田豫正式得到曹操任用,历任颖阴、郎陵令、弋阳太守等。后来田豫常年镇守曹魏北疆,从征代郡乌桓、斩骨进、破轲比能,多有功勋;也曾参与对孙吴的作战,在成山斩杀周贺,于新城击败孙权。官至太中大夫,封长乐亭侯。有一子田彭祖。', wuyan:'吴国及西晋初年将领。初任通江县吏,后得到大司马陆抗的提拔重用,逐渐升至建平太守。', fengfangnv:'冯方之女,司隶人,袁术妻妾。在史书中被记载为天姿国色的美人。钱大昭在《三国志辨疑》中认为冯方当为冯芳误字,冯方女实为是西园八校尉之一的冯芳的女儿。然而,在曹丕《典论》、《九州春秋》等书籍都有提及她,皆作冯方女字样,并无一书写作冯芳女或是明提是冯芳之女。最关键的一点是,冯芳是荆州西陵县人,她女儿不可能是司隶籍,冯芳也没担任过任何与司隶有关的官职。同时期名字为“○女”的并不少见,如施绩女儿施淑女,曹植女儿曹行女,夏侯令女等。', zuofen:'左芬(约253年-300年4月23日),出土墓志作左棻,字兰芝,齐国临淄(今山东临淄)人,西晋诗人。少好学,善属文。为晋武帝贵人。今存诗、赋、颂、赞、诔等20余篇,大都为应诏而作,《离思赋》最著名。原有集,已失传。', duxi:'杜袭(生卒年不详),字子绪,颍川郡定陵县(今河南省襄城县)人。三国时期魏国重臣,东汉末年颍川“四大名士”之一,济阴太守杜根的孙子。建安初年,投奔司空曹操,历任西鄂县令、议郎、丞相军咨祭酒、魏王侍中、丞相长史、驸马都尉。魏文帝时期,出任督军粮御史、尚书,累封武平亭侯。魏明帝时期,担任大将军曹真和司马懿的军师,抵御蜀国进攻,拜太中大夫,受封平阳乡侯。卒于任上,获赠少府,谥号为定。', gaogan:'高干(?~206年),字元才,陈留郡圉县(今河南杞县圉镇)人。东汉末年并州割据将领,蜀郡太守高躬之子、大将军袁绍外甥。出身陈留高氏,才志弘邈,文武秀出。早年联合荀谌游说韩馥让出冀州牧。袁绍平定河北后,以为并州牧。官渡之战时,在西线配合作战。因曹操早有准备,没有实质进展。袁绍死后,袁谭、袁尚与曹操大战于黎阳郡时,联合郭援攻打平阳郡,为马腾为首关中将领所败,郭援为庞德所斩。袁尚败走中山郡后,出降于曹操,仍为并州刺史。建安十年,兴兵反曹,固守壶关,成功抵挡乐进进攻。得知曹操亲征后,留下别将守城,亲往匈奴呼厨泉求救,没有成功。引兵攻略河东郡,屡为钟繇、张既所败。建安十一年,投奔荆州刘表。途经上洛时,为上洛都尉捕斩之。', huangchengyan:'黄承彦,生卒年不详,汉末三国时期沔阳名士,诸葛亮岳父,黄月英之父。南郡大士蔡讽的女婿,与襄阳名士上层社会圈子:庞统(凤雏)、庞德公、司马徽、徐庶等人交好。《襄阳记》:黄承彦者,高爽开列,为沔阳名士,谓诸葛孔明曰:“闻君择妇,身有丑女,黄头黑色,而才堪配。”孔明许,即载送之。时人以为笑乐,乡里为之谚曰:“莫作孔明择妇,正得阿承丑女。”', panshu:'潘淑(?-252年),会稽句章(今浙江省宁波市)人,是吴大帝孙权的皇后,吴少帝孙亮的母亲。和孙权是中国历代帝后中年龄差距较大的一对。潘淑少时与姐姐俱没入织室,容媚有宠,拜为夫人,生有一子孙亮。赤乌十三年(250年),孙权立孙亮为皇太子,翌年(251年)立潘淑为皇后。神凤元年(252年)暴崩,合葬蒋陵。世称潘淑为江东绝色,有神女之称。', zongyu:'宗预(?-264年),字德艳 ,荆州南阳郡安众县(今河南省南阳市)人。三国时期蜀汉官员、将领。曾随张飞入蜀助平益州,又受辟为丞相诸葛亮手下主簿,升任参军、右中郎将。诸葛亮逝世后,宗预受命出使孙吴,得到孙权的赞赏。迁后将军,出督永安,又升任征西大将军,并受封关内侯。公元258年(景耀元年),因病回成都,受任镇军大将军。蜀汉灭亡后,宗预随后主刘禅徙往洛阳,在中途病逝。宗预为人坦率耿直,多次出使孙吴并深得孙权的敬重,为吴、汉两国同盟的巩固作出了一定的贡献。', mengda:'孟达(?-228),字子度,本字子敬,因刘备的叔父名叫刘子敬,为避讳而改字。扶风郡郿人,三国时期人物。本为刘璋属下,后降刘备。关羽围樊城、襄阳时因不发兵救关羽而触怒刘备,于是投奔曹魏。此后,劝降刘封,未果。在魏官至散骑常侍、建武将军,封平阳亭侯。此后又欲反曹魏而归蜀汉,事败而死。', wolongfengchu:'沙比武将,懒得复制粘贴,自己去看诸葛亮和庞统的介绍吧。', caoshuang:'曹爽(?-249年2月9日),字昭伯,沛国谯县(今安徽亳州市)人。三国时期魏国权臣,大司马曹真长子。曹爽体态肥胖,凭借宗室身份,出入宫廷,交好太子曹叡。魏明帝即位,起家员外散骑侍郎,累迁城门校尉、散骑常侍,转武卫将军。太和五年(231年),袭封邵陵侯。景初三年(239年),魏明帝曹叡病危,拜大将军、假黄钺,与司马懿并为托孤大臣。少帝曹芳即位,加侍中,改封武安侯。势倾四海,声震天下。任用私人,专权乱政,侵吞公产。伐蜀失败,虚耗国力。起居逾制,软禁郭太后。正始十年,太傅司马懿发动高平陵政变,掌握魏国大权。曹爽失去大将军职务,以谋反之罪处死,夷灭三族。', zhangling:'张道陵(34年2月22日—156年),字辅汉,原名陵,道教正一道实际创立者,汉朝东汉时期丰邑(今江苏徐州丰县)人。太上老君降临蜀地,“授以三天正法,命为天师”,张道陵整合当时的:黄老派、方仙道、文始派等先秦修道团体,创立道教称正一盟威之道。后世尊称为“老祖天师”、“正一真人”、“三天扶教大法师”、高明上帝、张天师。著作《老子想尔注》,弟子有3000多人,设立24治,奠基天师道。张道陵、葛玄、许逊、萨守坚合称四大天师。张道陵创建道教的背景:当时在巴蜀一带,原有巴人信奉原始巫教,大规模的淫祀而害民。而这些祀奉鬼妖(学名为:妖邪)的法教巫师聚众敛财,无恶不作。张天师携王长、赵升二位弟子和黄帝九鼎丹经,来到北邙山修行,平定了那些祸害百姓的巫妖之教。川渝一带流传的张天师以太上老君剑印符箓大破鬼兵的故事就是以此为原型的。', caiyang:'蔡阳(?-201年),又作蔡扬,东汉丞相曹操部下武将,汝南太守。于建安六年(201)奉曹操之命攻击与刘备联合的汝南贼龚都等人,兵败被刘备所杀。明代小说《三国演义》改编为“云长擂鼓斩蔡阳”。', pujing:'湖北省当阳境内有一座山,名叫玉泉山。东汉建安末年,山上住着一个老和尚,法名普净,普净原来是沂水关镇国寺方丈,后因云游天下,来到此处,风这地方山明水秀,就于山中结草为庵,每天坐禅参道,身边只有一个小和尚,外出化一些斋饭,供养师父。在《三国演义》中,当关羽通过汜水关时,正是由于普净提醒,关羽才揭穿了卞喜的阴谋,并杀死了卞喜。关羽死后,其怨魂亦在普净的指点下醒悟,放下了心中的仇恨,专心致力于造福一方百姓。', huban:'为《三国演义》所杜撰的人物,正史无记载,荥阳太守王植麾下从事、桓帝时议郎胡华之子。关羽过五关斩六将时其中一关就是王植所镇守,胡班奉命放火夜袭关公,因敬服公之气概,并得其父托公所带家书,班看毕,叹曰:“险些误杀忠良!”故将之放走。胡班到荆州来投降关公,公念其旧日相救之情,甚爱之;令随费诗入川,见汉中王受爵。费诗辞别关公,带了胡班,自回蜀中去了。', chunyuqiong:'淳于琼(?-200年),字仲简,颍川(治今河南禹州)人。东汉时期官吏,于汉灵帝中平五年(188)被任命为西园八校尉之一的右校尉,与蹇硕、袁绍、鲍鸿、曹操、赵融、冯芳、夏牟同列。为袁绍大将,与张郃、高览等人齐名。在官渡之战时镇守乌巢,遭到曹操的偷袭而惨败,自己也被曹操处斩。', lvkuanglvxiang:'吕旷(生卒年不详),与吕翔同是袁绍属下,袁绍去世后,为袁尚守东平,后来投降曹操,并被封为列侯。在《三国演义》中,在曹操准备往南准备攻击前,两人跟著大将曹仁和将军李典准备要攻击刘备。但吕旷被赵云刺下马身亡,而吕翔也死于张飞矛下,可以算是出师未捷身先死', caobuxing:'曹不兴,亦名弗兴,三国时著名画家。孙吴吴兴(今浙江湖州)人,生卒年不详。他在黄武年间(222—229年)享有很大的声誉。被称为“佛画之祖”。与东晋顾恺之、南朝宋陆探微、南朝梁张僧繇并称“六朝四大家”。又与赵达的算术、严武的弈棋、皇象的草书等号称“吴中八绝”。曹不兴善画龙、虎、马及人物,有“落墨为蝇”等传奇故事,其佛画成就对后世影响很大,相传其所画龙头令谢赫叹服不已。画迹今已不存,据《贞观公私画史》载,作品有《青溪龙》、《赤盘龙》、《南海监牧进十种马图》、《夷事夷兽样》、《桃源图》等,惜早已散佚。但之后的著名画家卫协直接师承其法。', gaolan:'高览,生卒年不详,一名高奂,本属袁绍部将,后官渡之战淳于琼被曹操击破,与张郃一同投降曹操,被封为偏将军,东莱侯。《三国演义》里,曾与许褚、徐晃大战不分胜负。201年刘备败走荆州时,高览奉命追杀,三合斩刘辟,而后被冲阵而来的赵云刺死。', xunchen:'荀谌,字友若,荀彧之兄(一说荀彧之弟),荀绲之子,颍川人。曾任军阀袁绍的幕僚。帮助袁绍游说韩馥,夺取了冀州。', sunshao:'孙邵(163年-225年),字长绪,青州北海国人(今山东潍坊市昌乐县西)。原为北海相孔融的功曹,被孔融称赞为可任朝廷要职的人才,后随刘繇到达江东,继而辅佐孙权。孙权称吴王后,孙邵成为吴国首任丞相,数年后病逝。由于孙邵和当时吴国史官的关系并不是很好,因此在史书中并没有详细的记载。', yuantanyuanshang:'袁谭、袁尚分别是袁绍的长子和第三子。袁绍坐拥青州、冀州、幽州、并州,本是北方最强诸侯,却于官渡大败,惭恨而终。虽然袁绍生前偏爱小儿子袁尚,却并未在继承人上有明确表态,这也导致本应以嫡长子身份继承的袁谭因郭图、审配伪立遗令未能如愿。曹操击败袁绍后,进而渡过黄河追击袁家残余势力,袁谭告急,但袁尚仅给他少量兵力。曹操得郭嘉之计退兵坐观其变,恰使两人此前的种种矛盾彻底爆发,袁谭不敌便引狼入室,派辛毗作为使者向曹操求援,让袁尚不得不北逃投奔乌桓。但袁谭也在之后背叛曹操兵败被杀。没多久,乌桓也被平定,袁熙、袁尚二人投奔公孙康后被斩首送还曹操。', xujing:'许靖(?—222年),字文休。汝南郡平舆县(今河南省平舆县)人。汉末至三国蜀汉时期重臣、名士、评论家。许靖因与从弟许邵俱以品评人物而闻名于世。后被刘翊推举为孝廉,任尚书郎。曾先后投奔孔伷、陈祎、许贡、王朗等人,于孙策攻王朗前与家属俱避难交州,受到交趾太守士燮礼待。其后受益州牧刘璋邀请,相继为巴郡、广汉、蜀郡太守。于刘备包围成都时欲越墙叛逃,为刘璋所获。刘备定蜀后欲将其弃用,在法正的建议下方以其为左将军长史。建安二十三年(218年),刘备称汉中王,任命许靖为汉中王傅。章武元年(221年),刘备称帝,任命许靖为司徒,位列三公。章武二年(222年),去世。有文集二卷。', hejin:'何进(?~189年),字遂高,南阳郡宛县(今河南南阳市宛城区)人。东汉时期外戚大臣,灵思皇后之兄。初以妹妹有宠,拜为郎中,出任虎贲中郎将、颍川太守,迁侍中、将作大匠、河南尹。黄巾起义时,拜为大将军,总镇京师,发现并镇压马元义的密谋,封为慎侯。为张大威望,在京师讲武结营,置西园八校尉。汉灵帝驾崩后,粉碎了中常侍蹇硕拥立皇子刘协的图谋,听从袁绍之言,博征智谋之士,内借元舅之资,外据辅政之权,独揽朝中大权。中平六年(189),不纳陈琳和曹操劝谏,阴结军阀董卓,联合袁绍谋诛宦竖。事情败露后,为中常侍张让等人损害,其后代是魏晋高门士族南阳何氏。', hansui:'韩遂(?-215年),字文约。凉州金城郡人。东汉末年军阀、将领,汉末群雄之一。原名韩约,后改名遂。韩遂最初闻名于西州,被羌胡叛军劫持并推举为首领,以诛宦官为名举兵造反,聚众十万,先后败皇甫嵩、张温、董卓、孙坚等名将,使得天下骚动。后受朝廷招安,拥兵割据一方长达三十余年。韩遂曾与马腾结为异姓兄弟,后二人关系破裂。袁绍、曹操相争之际,马腾、韩遂被钟繇说服,依附于曹操。马腾入京后,留其子马超统领部队。马超推举韩遂为都督起兵反叛曹操,为曹操所败,韩遂逃奔凉州,后又为夏侯渊所败,病死(一说被杀),享年七十余岁。', niujin:'牛金(生卒年不详),初为曹仁部曲将,周瑜军数万人来攻,前锋数千人始至,曹仁登城望,乃募得三百人,遣牛金迎战。但对方兵力较多,牛金遂被围困。曹仁亲自杀入阵中救出牛金。司马懿使牛金轻骑饵诱蜀军,刚交战诸葛亮就退兵,追至祁山。蜀将马岱入寇,司马懿遣将军牛金击退,斩千余级。公孙渊反,司马懿帅牛金、胡遵等步骑四万发自洛阳,后平定辽东。牛金官至后将军。', jianggan:"蒋干,字子翼,汉末三国时期的人物,九江(治今安徽寿县)人。历史上的蒋干是当时的名士、辩论家。而罗贯中在历史小说《三国演义》中则将蒋干刻画成了被周瑜所愚弄的小丑形象。", caoying:"曹婴是在电影《三国志之见龙卸甲》中登场的虚拟人物,由李美琪饰演。曹婴是曹操的孙女,弓马娴熟,文武双全,深得曹操的用兵之道及心术。于凤鸣山一战中担任魏军大都督阻止诸葛亮北伐并因罗平安的告密而全歼关兴、张苞、赵云率领的蜀军部队。", simahui:"司马徽(约145—208年),字德操,颍川阳翟(今河南禹州)人。东汉末年名士,精通道学、奇门、兵法、经学。有“水镜先生”之称。 司马徽为人清雅,学识广博,有知人之明,并向刘备推荐了诸葛亮、庞统等人,受到世人的敬重。", baosanniang:"鲍三娘是中国民间传说中的人物,事迹多见于《花关索传》。相传她是鲍家庄鲍员外的小女儿。后来与关索成亲,关羽自传授其武艺,因此也造就了鲍三娘的文武双全。荆州失守之后鲍三娘就跟随关索一同投奔蜀汉,并随诸葛亮征讨南蛮。平定了南蛮之后,夫妻二人就此一直替诸葛亮镇守着南中,他们也的确留下了许多脍炙人口的行侠仗义故事,在民间广为流传。", pangdegong:"庞德公,字尚长,荆州襄阳人,东汉末年名士、隐士。 庞德公与当时徐庶、司马徽、诸葛亮、庞统等人交往密切。庞德公曾称诸葛亮为\"卧龙\",庞统为\"凤雏\",司马徽为\"水镜\",被誉为知人。对诸葛亮、庞统等人早年影响较大,并得到诸葛亮的敬重。庞德公最后隐居于鹿门山,采药而终。", zhaotongzhaoguang:"赵统,赵云长子,生卒年不详。常山真定(今为河北正定)人,陈寿在正史《三国志》中记载赵云去世后,赵统袭爵永昌亭侯,官至蜀汉虎贲中郎督,加行领军。赵广(?—263年),三国时期蜀汉牙门将,赵云的次子,赵统之弟。随姜维前往沓中,官拜牙门将。曹魏司马氏派五路大军伐蜀时,随大将军姜维与魏兵战于疆川口,姜维败绩还守剑阁,赵广于沓中战死。", majun:"马钧,字德衡,扶风(今陕西扶风)人,生活在汉朝末期,是中国古代科技史上最负盛名的机械发明家之一。马钧年幼时家境贫寒,自己又有口吃的毛病,所以不擅言谈却精于巧思,后来在魏国担任给事中的官职。马钧最突出的表现有还原指南车;改进当时操作笨重的织绫机;发明一种由低处向高地引水的龙骨水车;制作出一种轮转式发石机,能连续发射石块,远至数百步;把木制原动轮装于木偶下面,叫做“水转百戏”。此后,马钧还改制了诸葛连弩,对科学发展和技术进步做出了贡献。", simazhao:"司马昭(211年—265年9月6日),字子上(小说《三国演义》为子尚),河内温县(今属河南)人。三国时期曹魏权臣,西晋王朝的奠基人之一。为晋宣帝司马懿与宣穆皇后张春华次子、晋景帝司马师之弟、晋武帝司马炎之父。 司马昭早年随父抗击蜀汉,多有战功。累官洛阳典农中郎将,封新城乡侯。正元二年(255年),继兄司马师为大将军,专揽国政。甘露五年(260年),魏帝曹髦被弑杀,司马昭立曹奂为帝。景元四年(263年),分兵遣钟会、邓艾、诸葛绪三路灭亡蜀汉,受封晋公。次年,进爵晋王。 咸熙二年(265年),司马昭病逝,年五十四,葬于崇阳陵。数月后,其子司马炎代魏称帝,建立晋朝,追尊司马昭为文帝,庙号太祖。", wangyuanji:"王元姬(217年—268年4月20日),东海郯县(今山东郯城西北)人。三国时期曹魏经学家王朗之孙女、王肃之女,晋文帝司马昭妻子,晋武帝司马炎与齐王司马攸的生母。 王元姬幼时便通《诗经》、《论语》,嫁司马昭后竭尽妇道、谦虚谨慎。其人颇有远见,曾预言钟会谋反之事。泰始元年(265年),司马炎建立西晋,尊王元姬为皇太后,宫号曰崇化宫。王元姬身处太后之位,提倡节俭,身体力行,作为众妃子的表率。在其治理之下,后宫井井有条,众人和睦相处。 泰始四年(268年),王元姬崩逝,终年五十二岁。谥号文明皇后,与司马昭合葬于崇阳陵。", liuye:'刘晔(?-234年),字子扬,淮南成德人,是光武帝刘秀之子阜陵王刘延的后代,三国时期魏国著名的战略家。刘晔年少知名,人称有佐世之才,是曹操手下举足轻重的谋士,他屡献妙计,对天下形势的发展往往一语中的。刘晔历仕数朝,是曹魏的三朝元老。', luzhi:'鲁芝(190年—273年),字世英。扶风郡郿县(今陕西眉县)人。魏晋时期名臣。官至光禄大夫,位特进,封阴平侯。泰始九年(273年)卒,时年八十四。谥号“贞”。', xizhicai:'戏志才(生卒年不详),或志才为字,名不详(一说名忠),东汉颍川郡(今河南禹州)人。经张邈推荐,成为曹操手下谋士。为人多谋略,曹操十分器重,不幸早卒。三国演义中并无此人,三国志中只有寥寥数语。由荀彧推荐给曹操,被称为有“负俗之讥”。死后,荀彧又举荐了郭嘉。
陈寿《三国志》记载:太祖与荀彧书曰:自志才亡后,莫可与计事者。汝、颍固多奇士,谁可以继之?彧荐嘉。', sunqian:'孙乾(?—约215年),字公祐。北海郡(治今山东昌乐西)人。东汉末年刘备的幕僚。最初被大儒郑玄推荐于州里。刘备领徐州,以孙乾为从事。自徐州跟随刘备,多次作为刘备的使臣。刘备定益州后,拜孙乾为秉忠将军,其待遇仅次于麋竺,与简雍相同。不久后便病逝。', miheng:'祢衡(173年-198年),字正平,平原郡(今山东德州临邑德平镇)人。个性恃才傲物.和孔融交好。孔融著有《荐祢衡表》,向曹操推荐祢衡,但是祢衡称病不肯去,曹操封他为鼓手,想要羞辱祢衡,却反而被祢衡裸身击鼓而羞辱。后来祢衡骂曹操,曹操就把他遣送给刘表,祢衡对刘表也很轻慢,刘表又把他送去给江夏太守黄祖,最后因为和黄祖言语冲突而被杀,时年二十六岁。黄祖对杀害祢衡一事感到十分后悔,便将其加以厚葬。', quyi:'麴义(又作曲义、鞠义),生卒年不详,是东汉末年军阀袁绍部下的将领,能征善战,屡建战功,早年在凉州,精通羌人战法,率领着袁绍的精锐部队。后来由于自恃功高而骄纵不轨,被袁绍所杀。', taoqian:'陶谦(132年-194年),字恭祖。丹阳郡(治今安徽宣城)人。汉末群雄之一。陶谦最初为诸生,在州郡任职,被举茂才,历任舒、卢二县令、幽州刺史、议郎,性格刚直,有大志。后随左车骑将军皇甫嵩对抗北宫伯玉,任扬武校尉,之后又随张温征韩遂、边章。中平五年(188年),徐州黄巾起,陶谦被朝廷任为徐州刺史,击破徐州黄巾,并推行屯田,恢复生产。尔后听从王朗、赵昱建议遣使进京朝贡,获拜安东将军、徐州牧,封溧阳侯。晚年因战事上为曹操大败,徐州大半几乎遭兵祸所害,以致过度忧劳而逝,终年六十三岁。', wangyun:'王允(137~192年),字子师,太原郡祁县(今山西祁县)人。东汉末年时期大臣。出身太原王氏,世代官宦。举孝廉出身,司徒高第征为侍御史。出任豫州刺史,勤政爱民。斗争中常侍张让失败后,去官隐居。中平六年,大将军何进掌权之后,辟为从事中郎,迁河南尹。董卓拥立汉献帝即位后,代替杨彪,拜太仆、尚书令、司徒,密谋刺死董卓,联合吕布共同执政,日益骄傲自满。初平三年(192年),董卓余党李傕、郭汜、樊稠等攻破长安。王允兵败处死,时年五十六岁。', bianfuren:'武宣皇后卞氏(159年12月30日-230年7月9日),琅邪开阳(今山东临沂)人,魏武帝曹操的正妻(继室),魏文帝曹丕、任城威王曹彰、陈思王曹植、萧怀王曹熊的母亲。原本是倡家,即汉代专门从事音乐歌舞的乐人家庭,后来与曹操成婚,建安初年,原配丁夫人被废,卞夫人成为曹操的正妻。曹丕继位后尊其为皇太后,曹叡继位后尊其为太皇太后。卞后在太和四年去世,与魏武帝曹操合葬高陵。', shamoke:'沙摩柯(?-222年),东汉末三国时期五溪蛮首领。汉章武元年(221年)初,为报关羽被东吴杀害之仇,刘备亲自领兵攻孙权,以金锦爵赏诱沙摩柯助战。章武二年(222年),吴大都督陆逊以火攻破刘备,率诸军齐击,汉军四十多个营寨被攻破,沙摩柯在大乱中匹马奔逃,被乱军杀死。', lvfan:'吕范(?-228年),字子衡。汝南郡细阳县(今安徽太和)人。汉末至三国时期吴国重臣。吕范年轻为汝南县吏,后避难寿春,结识孙策。此后随孙策、孙权征伐四方,对稳固孙氏在江东的统治做出了杰出的贡献,孙权将其比之于东汉开国元勋吴汉。吴国建立后,吕范累官至前将军、假节、扬州牧,封南昌侯。黄武七年(228年),吕范被拜为大司马,未得授官,便已病逝。孙权悲痛不已,遣使赠其大司马印绶。孙权还都建业后,以太牢礼祭祀吕范。', liqueguosi:"请分别参考武将【李傕】和【郭汜】各自的介绍。", maojie:"毛玠(?—216年),字孝先,陈留平丘(今河南封丘)人。东汉末年大臣。年少时为县吏,以清廉公正著称。因战乱而打算到荆州避乱,但中途知道刘表政令不严明,因而改往鲁阳。后来投靠曹操,提出“奉天子以令不臣,脩耕植,畜军资”的战略规划,得到曹操的欣赏。
毛玠与崔琰主持选举,所举用的都是清廉正直之士。而毛玠为人廉洁,激起天下廉洁之风,一改朝中奢华风气。曹操大为赞赏,曹丕也亲自去拜访他。
曹操获封魏公后,毛玠改任尚书仆射,再典选举。又密谏曹操应该立嫡长子曹丕为魏国太子。崔琰被杀后,毛玠十分不快。后来有人诬告毛玠,曹操大怒,将毛玠收于狱中。及后在桓阶、和洽营救下,只被免职,不久逝世于家中。曹操在他死后赐他棺材和钱帛。", huangfusong:'字义真。安定郡朝那县(今宁夏彭阳)人。于黄巾起义时,以中郎将身份讨伐黄巾,用火攻大破张梁、张宝。后接替董卓进攻张梁,连胜七阵。掘张角墓,拜左车骑将军、冀州牧,因拒绝贿赂宦官而被免职。 董卓死,王允命其与吕布等共至郿坞抄籍董卓家产、人口,皇甫嵩将坞中所藏良家子女,尽行释放。', zangba:'其父臧戒,有二子臧艾与臧舜。年少时曾召集数人将获罪的父亲救出,此后四处流亡。后来成为陶谦麾下的骑都尉,负责募兵抵抗黄巾军。与孙观、尹礼等人拥兵驻屯于开阳,自成一股独立势力,后跟随吕布。吕布战败后,投降了曹操。后与袁绍、孙权等的战役里战功赫赫,官至镇东将军。', zhangren:'刘璋的属下,以忠勇著称。刘备入蜀时,张任曾劝刘璋提防刘备,但刘璋没有听从。魏延舞剑想趁机除掉刘璋时,张任出面对舞,解救刘璋。后在刘备进攻时于落凤坡射死了庞统。', jiling:'东汉末年袁术帐下将领,勇猛非常,曾奉命率军攻打小沛的刘备,在吕布辕门射戟的调停下撤兵。', zoushi:'军阀张济之妻,张绣之婶。张绣降曹后,邹氏遂被曹操霸占。贾诩献计趁机诛杀曹操,险些得手。曹操在损失爱将典韦、侄子曹安民和长子曹昂后方才逃出生天。', ganfuren:'刘备起兵后,于沛城娶甘氏为妾。后来,甘夫人随刘备到荆州,生了阿斗(也就是后主刘禅)。223年四月,刘备病死于白帝城,追谥甘夫人为“昭烈皇后”。', jiangfei:'请分别查阅【蒋琬】和【费袆】各自的介绍。', mifuren:'刘备夫人。徐州别驾糜竺之妹。长坂兵败,她怀抱年仅两岁的刘禅在乱军中走散,被赵云发现;但麋夫人因为赵云只有一匹马,不肯上马,在将阿斗托付给赵云后投井而亡。', chendong:'陈武,东吴将领,孙策攻打刘繇,陈武前来相助,孙策非常喜爱陈武,拜为校尉,使作先锋。陈武以十数骑兵力杀敌五十余人。后于赤壁等战役屡立功勋。董袭献上严虎的人头来降孙策。赤壁之战,董袭受周瑜命,分兵去汉阳,合肥会战时接应太史慈,逍遥津支援孙权。濡须口之战时,董袭在船上督战,船覆董袭坚守殉职。', jiangqing:'擅长弓术。与周泰原为活跃于长江一带的江贼,孙策脱离袁术下江东自立门户时,和周泰一起率众投靠。 孙策攻刘繇,并引出城中麾下的陈横、薛礼、张英三名将领,陈横后被蒋钦一箭射杀,后与韩当等将乘舟过江,乱箭射杀敌军。曾在赤壁之战与周泰,还有擅使长枪的韩当率领水军在三江口踏江破敌。', kongrong:'字文举,鲁国人,东汉文学家,“建安七子”之首。献帝即位后任北军中侯、虎贲中郎将、北海相,时称孔北海后因触怒曹操,为曹操所杀。能诗善文。', mateng:'字寿成,扶风茂陵人,东汉末年征西将军,割据西凉一带的军阀,伏波将军马援的后代,官至卫尉,封爵槐里乡侯。因其子马超谋反,而被杀,夷灭三族。', tianfeng:'字元皓。东汉末年大军阀袁绍部下重要谋士。为人刚直不阿,曾多次向袁绍进言而不被采纳。后因谏阻袁绍征伐曹操而被袁绍下令监禁,并于官渡之战后,被袁绍杀害。', caochun:'字子和,沛国谯(今安徽亳州)人。东汉末年曹操麾下将领,曹仁之弟。曹纯是曹操部下精锐部队“虎豹骑”的统领者之一,因在平定北方的战役中颇有功绩,被加封为高陵亭侯。死后谥曰威侯。曹纯擅战,甚得人心,为人重纲纪,不失理智,好学问,敬爱学士,闻名天下。', hanba:'中国古代神话传说中引起旱灾的怪物。《诗·大雅·云汉》:“旱魃为虐,如惔如焚。”', cuiyan:'字季珪,清河东武城(今河北省清河县)人。东汉末年名士,司空崔林的从兄,曹操帐下谋士。崔琰相貌俊美,很有威望,曹操对他也很敬畏。建安二十一年(216年),崔琰在给杨训的书信中写道“时乎时乎,会当有变时”,曹操认为此句有不逊之意,因而将崔琰下狱,不久崔琰即被曹操赐死。', lifeng:'南阳(治今河南南阳)人,三国时期蜀汉大臣李严之子。230年,李严迁为骠骑将军,率军前往汉中,诸葛亮上表推举李丰为江州都督督军,以代替李严管理后方事务。李严去世后,李丰在蜀汉官至朱提太守。', sunru:'孙茹,孙坚之妹,其名载于《江浙通志》中。儿子徐琨亦为孙吴早期名将,当初母子二人随军跟从孙策渡长江时,因为暂时没足够的船,孙策感到苦恼打算暂时驻军江边。孙茹夫人献计以芦苇为筏,孙策大喜。吴军遂以神不知鬼不觉的速度过长江击破刘繇部将张英,立下平江东第一功。', lingcao:'东汉末年将领,吴郡余杭(今浙江余杭)人,凌统之父。早年跟随孙策转战江东。孙权统军后,凌操随其征伐黄祖,被甘宁射杀。《吴书》载:甘宁以善射,将兵在后,射杀校尉凌操', zhugeguo:'诸葛果,为《历代神仙通鉴》中诸葛亮女儿的名字,《历代神仙通鉴》记录从上古到明代的神仙历史,因此诸葛果不见于任何史书。成都西南有朝真观,即乘烟观。相传,诸葛果在这里修行后成仙升天。', zhuling:'朱灵(生卒年不详),字文博,冀州清河国人,三国时期曹魏名将。官至后将军,封为高唐侯,谥号威侯。初为袁绍部将,后归顺曹操,随曹操征伐四方,屡建战功。', re_yuanshu:'字公路,汝南汝阳人,袁绍之弟。初为虎贲中郎将。董卓进京后以袁术为后将军,袁术因畏祸而出奔南阳。初平元年与袁绍、曹操等同时起兵,共讨董卓。后与袁绍对立,被袁绍、曹操击败,率馀众奔九江,割据扬州。建安二年称帝,建号仲氏。', fuwan:'伏完(?-209),琅邪东武(今属山东)人,东汉末大臣,汉献帝伏皇后之父。历官辅国将军、中散大夫、屯骑校尉。', liuxie:'字伯和,又字合。汉族,祖籍沛县,生于洛阳。汉灵帝第三子,被董卓迎立为帝。董卓被王允和吕布诛杀后,董卓部将李傕等攻入长安,再次挟持了他,后来逃出长安。公元196年,曹操控制了刘协,并迁都许昌,“挟天子以令诸侯”。公元220年,曹操病死,刘协被曹丕控制,随后被迫禅让于曹丕。', yuanshu:'字公路,汝南汝阳人,袁绍之弟。初为虎贲中郎将。董卓进京后以袁术为后将军,袁术因畏祸而出奔南阳。初平元年与袁绍、曹操等同时起兵,共讨董卓。后与袁绍对立,被袁绍、曹操击败,率馀众奔九江,割据扬州。建安二年称帝,建号仲氏。', gongsunzan:'字伯珪,汉族,号“白马义从”。辽西令支人。东汉末年献帝年间占据幽州一带的军阀,汉末群雄之一。出身贵族,因母地位卑贱,只当了郡中小吏。他貌美,声音洪亮,机智善辩。后随卢植于缑氏山中读书,粗通经传。', caohong:'字子廉,沛国谯(今安徽亳县)人,曹操从弟,曾献马并救护曹操。后多随军征伐,平兖州、征刘表、讨祝臂。曹丕即位时封曹洪为骠骑将军。曹叡即位,拜曹洪为后将军,更封乐城侯,后复拜为骠骑将军。曹洪逝世,追谥曰恭侯。', guanyinping:'河东解县(今山西运城)人,美髯公关羽之女。因在关羽的四个子女中排行第三,故又被称作“关三小姐”、“关氏三姐”或“关羽三小姐”。传说她是赵云的弟子、并随同诸葛亮平定南蛮。', xiahouba:'夏侯渊次子。本为曹魏武将,后因司马懿诛曹爽一族,夏侯霸身为曹氏宗室而心怀不安,遂投降蜀汉。后随蜀将姜维北伐,官至车骑将军。', daxiaoqiao:'大乔,庐江皖县人,为乔公长女,孙策之妻,容貌国色流离。小乔为大乔之妹,周瑜之妻,资貌绝伦。两人合称“二乔”。', yuejin:'字文谦,魏“五子良将”之一。容貌短小,以胆烈跟从曹操,南征北讨,战功无数。从击袁绍于官渡,奋勇力战,斩袁绍部将淳于琼。又从击袁绍子谭、尚于黎阳,斩其大将严敬。从平荆州,留屯襄阳,进击关羽、苏非等人,击退其众,南郡诸郡的山谷蛮夷都前往乐进处投降。后来从曹操征孙权,假进节。曹操回师后,留乐进与张辽、李典屯于合肥。又以乐进数有军功,迁右将军。建安二十三年逝世,谥曰威侯。', caoang:'字子修,曹操的长子,由于性情谦和且聪慧所以深得曹操喜爱。曹操征讨张绣时,羞辱张绣之婶邹氏,被张绣突然袭击。曹昂为保护曹操撤退,与典韦一起战死在宛城。', zhugejin:'字子瑜,吴国大臣,诸葛亮之兄,诸葛恪之父。经鲁肃推荐,为东吴效力。胸怀宽广,温厚诚信,得到孙权的深深信赖,努力缓和蜀汉与东吴的关系。建安二十五年(220年)吕蒙病逝,诸葛瑾代吕蒙领南郡太守,驻守公安。孙权称帝后,诸葛瑾官至大将军,领豫州牧。', zhangxingcai:'蜀名将张飞与夏侯氏所生之女,刘禅的妻子,史上称为“敬哀皇后”。', zumao:'字大荣,吴郡富春人,使用双刀。孙坚在汜水关被华雄击败,祖茂为保护主公而主动提出与孙坚交换头盔,孙坚因此得脱。祖茂将孙坚的赤帻挂在柱子上,准备以此引诱华雄,趁机偷袭,却反被华雄所杀。', dingfeng:'吴国将领。年少时以骁勇为小将,经常奋勇杀敌,屡立功勋,此后又于东兴之战中“雪中奋短兵”,大破侵犯东吴的魏军。吴景帝孙休在位时,丁奉设计除掉了东吴的权臣孙綝,被拜为大将军,后为右大司马、左军师。', panfeng:'冀州牧韩馥部下的上将。当十八路诸侯讨伐董卓之时,他奉韩馥之命前往汜水关前挑战董卓部下大将华雄,不敌被斩。', maliang:'字季常,因眉毛中有白毛,人称白眉马良,马谡的兄长。马良在兄弟五人中名声最佳,因此有“马氏五常,白眉最良”的说法。', zhugedan:'字公休,曹魏后期的重要将领,诸葛亮的族弟。曾与司马师一同平定毌丘俭、文钦的叛乱。之后因与被诛的夏侯玄、邓飏交厚,且见到王淩、毌丘俭等人的覆灭而心不自安,于甘露二年起兵,并得到东吴的支援,但于次年被镇压,被大将军司马胡奋所斩。', hetaihou:'大将军何进的妹妹,汉灵帝刘宏第二任皇后,汉少帝刘辩的生母。何氏出身于屠户家庭,后选入掖庭,得到汉灵帝临幸,生下皇子刘辩,并受封贵人。光和三年(180年),立为皇后。中平六年(189年),汉灵帝去世,刘辩继位,尊何氏为皇太后。董卓进京,废黜刘辩,不久毒杀刘辩及何氏。', sunluyu:'又名小虎,孙权与步练师之女。吴后期,孙鲁班诬陷孙鲁育参与谋反,于是孙峻杀害了孙鲁育。', wenpin:'本为刘表大将,刘表死后,跟随刘琮投降曹操。后曹操令其镇守江夏,多次阻止了关羽和孙权的进攻,为曹操倚为屏障的大将之一。', zhanglu:'汉宁太守,继父祖之后传播五斗米教。刘璋杀张鲁之母,二人因此结仇,多次交战。刘备攻益州时,刘璋向张鲁求援。张鲁派马超前往,但马超投降刘备。张鲁后见曹操自封魏王,想要自立为汉宁王,为谋士阎圃劝免。后曹操讨汉中,张鲁败,众人劝其烧粮仓,张鲁认为这是国家之物,未听从,为曹操所称赞。后投降曹操,任镇南将军。', mayunlu:'马腾之女,马超之妹,赵云之妻。父亲令其自幼习武,枪术非凡,寻常男子也是难以匹敌。', tadun:'东汉末年辽西乌桓(亦称乌丸)的首领,乌桓大人丘力居的从子,总摄三王部。曾出兵协助袁绍,击破公孙瓒。此后受袁绍假传朝廷诏命,与三王难楼、苏仆延、乌延等人同受单于称号及印绶。后难楼、苏仆延率其部众奉立楼班为单于,蹋顿于是退位为王。袁绍死后,收到被曹操击败的袁尚的求助,纠集逃亡至乌桓的幽州、冀州官吏百姓,企图夺回河北。东汉建安十二年,曹操亲征乌桓。八月,乌桓、袁氏部队于柳城白狼山为曹军所败,蹋顿在此战中被曹操的先锋张辽所斩杀。 ', yanbaihu:'吴郡乌程县人,原名“严虎”,别号“白虎”,东汉末年盘据吴郡一带山贼出身的地方豪帅。献帝初拥兵万人自固。孙策受袁术使渡江,攻破白虎等。白虎奔余杭,投靠许昭。建安二年,再度被孙策击败,至此不知亡佚何处。', simalang:'字伯达,“司马八达”之一。曹操任司空后,司马朗被辟为司空属官,又历任成皋令、堂阳长、元城令、丞相主簿、兖州刺史等职,所在皆有政绩,深受百姓爱戴。后司马朗与夏侯惇、臧霸等征讨吴国,到达居巢。军队中流行瘟疫,司马朗亲自去视察,派送医药,因此染病去世。', wangji:'字伯舆,东莱曲城人。三国时期魏国将领。王基文武兼备,才高于世,德溥于时,深得司马懿、司马师、司马昭的器重,尤其在南征毋丘俭,文钦之乱,东征诸葛诞之叛大规模军事活动中,王基与司马师、司马昭结下了深厚的军友情谊。魏景元二年王基去世,追赠司空,谥号为景侯。', buzhi:'吴重臣,最初避难江东,于孙权统事后,被召为主记。后游历吴地,又任海盐县长,还任东曹掾,出领鄱阳太守。建安十五年,转交州刺史、立武中郎将,率军接管往交州,追拜使持节、征南中郎将。次年,以平定交州功,加平戎将军,封广信侯。后迁右将军、左护军,改封临湘侯。孙权称帝后,拜骠骑将军,领冀州牧,后因冀州分与蜀汉而解牧职。又都督西陵。赤乌九年,代陆逊为丞相。', litong:'字文达,小字万亿。江夏平春(今河南信阳)人,汝南太守。早年以游侠闻名于江汝,在率众补充曹操兵源有功拜为阳安都尉,其间不因私而忘公,不因其妻子的求请而过问执法者。后来在曹操讨伐马超时出阵挑战,死于马超枪下。', mizhu:'原为徐州富商,后被徐州牧陶谦辟为别驾从事。陶谦病死后,奉其遗命迎接刘备。与其弟麋芳拒绝曹操的任命而跟随刘备,在刘备最潦倒之时给予刘备很大的帮助,使他重新振作。214年(建安十九年),刘备入主益州后,拜麋竺为安汉将军,地位在诸葛亮之上,为刘备手下众臣之最。吕蒙袭取荆州,麋芳举城投降,导致关羽兵败身亡,麋竺面缚请罪,刘备劝慰麋竺,对他待遇如初。', dongbai:'东汉末年县君,陇西临洮(今甘肃省岷县)人,董卓之孙女。董卓当权时,遍封其宗族,其中孙女董白尚未及笄,被封为渭阳君。', zhaoxiang:'赵云与马云騄之女,赵统赵广之妹,关平之妻。', heqi:'早年在平定山越的战争中立有大功,又讨平叛乱无数,身经百战,所向披靡,深受孙权器重。后来在与魏国的多次边境争斗中也屡立战功,官至后将军,并领徐州牧。', dongyun:'大汉重臣,掌军中郎将董和之子。东汉末年,其父董和事刘璋为益州太守,刘备立太子时,允被选为洗马,后为黄门侍郎,延熙六年(公元243年)加辅国将军,延熙七年(公元244年)以侍中守尚书令,任大将军费祎的副手。', mazhong:'本名狐笃,字德信,巴西阆中人,初次出场时随丞相诸葛亮南征孟获,诸葛亮遣马忠与赵云两路夹攻,大败蛮将阿会喃。孟获派弟孟优赴汉军处假投降,欲内应外合,诸葛亮将计就计,埋伏擒获孟获和诸洞酋长,马忠亦于此战立下战功。后诸葛亮北伐时亦数次出阵,立下汗马功劳。', kanze:'孙权谋士,在孙权广纳贤才之时与严畯等来到江东,甚为孙权礼遇。第一个识破周瑜打黄盖是苦肉计,后欣然向曹操献诈降书,被曹操识破后面不改色,哈哈大笑,一番妙言让曹操相信了诈降书,是苦肉计中的关键人物。后劝孙权不要设局请关羽。在刘备御驾亲征东吴时,向孙权举荐陆逊为都督,间接上挽救了东吴的命运。', lingju:'相传为吕布与貂蝉的女儿,被汉献帝掳走并训练为死士,被秘密送入宫中接近曹操,成为其“忘年红颜知己”。外表是柔弱的女子,实际上身怀致命的杀人绝技,等待时机给予曹操致命一击。', yangxiu:'字德祖,今陕西华阴人,是东汉末年的文学家。杨修学问渊博,极聪慧,任丞相府主簿。史载,“是时,军国多事,修总知外内,事皆称意”。', chenlin:'陈琳(?-217年),字孔璋,广陵射阳(今江苏宝应)人。东汉末年著名文学家,“建安七子”之一。', zhugeke:'字元逊,琅邪阳都(今山东沂南)人。三国时期吴臣,蜀丞相诸葛亮之侄,吴大将军诸葛瑾长子,从小就以神童著称,深受孙权赏识。', zhangbao:'东汉末年黄巾起义的首领之一,张角之弟,张梁之兄。中平元年(184)随兄张角起义,号称“地公将军”。', chengyu:'字仲德,本名程立,因梦中於泰山捧日,更名程昱。荀彧投曹操时向其举荐程昱。他参与了攻打吕布、袁绍、刘备、孙权的大部份战事,一直出谋献策,表现出众。', sunhao:'孙权之孙,孙和之子,东吴的末代君主。在位初期虽施行过明政,但不久即沉溺酒色,专于杀戮,变得昏庸暴虐,嗜用挖眼、剥皮等酷刑。280年,吴国被西晋所灭,孙皓投降西晋,被封为归命侯。', wutugu:'南蛮乌戈国主,身长丈二(约合现在2.77米),不食五谷,以生蛇恶兽为饭。身有鳞甲,刀箭不能侵。兀突骨乘骑巨象,头戴日月狼须帽,身披金珠缨络,两肋下露出生鳞甲,眼目中微有光芒。', shixie:'割据交州(今越南)一带的军阀,年少时师事刘陶,经逐渐升迁任交趾太守。后被朝廷加职绥南中郎将,迁安远将军,封龙度亭侯。在步骘接管交州时积极配合,归附孙权,被孙权加为左将军;此后又因诱降益州豪族雍闿而迁任卫将军,进封龙编侯。任交趾太守四十年。', guansuo:'关羽的三子。自荆州失陷后,逃难在鲍家庄养病,伤势痊愈之后入蜀,逢丞相诸葛亮南征,拜之为前部先锋,一同南征。', wanglang:'字景兴,汉末三国经学家,曹魏初期重臣。曾任会稽太守举兵抵抗孙策,后为曹操所征,被拜为谏议大夫等职。曹丕建立魏国后任命为司空。小说《三国演义》中他在阵前与诸葛亮饶舌比拼,最终被诸葛亮言词所驳倒,一时气愤坠马身亡。', zhangliang:'东汉末年黄巾起义首领之一,张角的三弟。中平元年(184)随兄起义,号称“人公将军”。遭到朝廷所派左中郎将皇甫嵩进攻时,他率军在广宗(今河北威县)进行反击。后因警戒疏忽,遭到汉军夜袭,兵败身亡。', }, characterTitle:{}, perfectPair:{ yuejin:['re_lidian'], zhugejin:['zhugeke','sunquan'], guanyinping:['guanyu'], zhangxingcai:['liushan'], fuwan:['fuhuanghou'], sunshangxiang:['liubei'], caoang:['caocao'], zhangbao:['zhangliang','zhangjiao'], zhangliang:['zhangjiao'], maliang:['masu'], lingcao:['lingtong'], lingju:['diaochan','lvbu'], jiangqing:['zhoutai'], dingfeng:['xusheng','zhugeke'], caohong:['caoren'], daxiaoqiao:['zhouyu','sunce'], cuiyan:['caocao'], guansuo:['guanyu'], mateng:['machao','madai','mayunlu'], chengpu:['zhouyu'], hanba:['swd_muyun'], dongbai:['dongzhuo'], cuimao:['caopi'], simazhao:['wangyuanji'], }, card:{ //蒲元衍生 sanlve:{ derivation:'ol_puyuan', type:"equip", subtype:"equip5", ai:{ basic:{ equipValue:5, }, }, skills:["sanlve_skill"], fullskin:true, }, zhaogujing:{ derivation:'ol_puyuan', type:"equip", subtype:"equip5", ai:{ basic:{ equipValue:6.5, }, }, skills:["zhaogujing_skill"], fullskin:true, }, shufazijinguan:{ derivation:'ol_puyuan', type:"equip", subtype:"equip5", modeimage:'boss', ai:{ basic:{ equipValue:8, }, }, skills:["shufazijinguan_skill"], fullskin:true, }, xuwangzhimian:{ derivation:'ol_puyuan', type:'equip', fullskin:true, subtype:'equip5', modeimage:'boss', skills:['xuwangzhimian'], ai:{ equipValue:7, } }, hongmianbaihuapao:{ derivation:'ol_puyuan', type:"equip", subtype:"equip2", modeimage:'boss', ai:{ basic:{ equipValue:4, }, }, skills:["hongmianbaihuapao_skill"], fullskin:true, }, guofengyupao:{ derivation:'ol_puyuan', type:'equip', fullskin:true, modeimage:'boss', subtype:'equip2', skills:['guofengyupao'], ai:{ equipValue:7 } }, qimenbagua:{ derivation:'ol_puyuan', type:'equip', fullskin:true, modeimage:'boss', subtype:'equip2', skills:['qimenbagua'], ai:{ equipValue:7.5 } }, linglongshimandai:{ derivation:'ol_puyuan', type:"equip", subtype:"equip2", modeimage:'boss', ai:{ basic:{ equipValue:5, }, }, skills:["linglongshimandai_skill"], fullskin:true, }, chixueqingfeng:{ derivation:'ol_puyuan', type:'equip', fullskin:true, modeimage:'boss', subtype:'equip1', distance:{attackFrom:-1}, skills:['chixueqingfeng'], ai:{ equipValue:6.7 } }, guilongzhanyuedao:{ derivation:'ol_puyuan', type:'equip', fullskin:true, modeimage:'boss', subtype:'equip1', distance:{attackFrom:-2}, skills:['guilongzhanyuedao'], nomod:true, nopower:true, unique:true, ai:{ equipValue:4 } }, wushuangfangtianji:{ derivation:'ol_puyuan', type:"equip", modeimage:'boss', subtype:"equip1", distance:{ attackFrom:-3, }, ai:{ basic:{ equipValue:3, }, }, skills:["wushuangfangtianji_skill"], fullskin:true, }, bintieshuangji:{ derivation:'ol_puyuan', type:"equip", subtype:"equip1", distance:{ attackFrom:-2, }, ai:{ basic:{ equipValue:4.5, }, }, skills:["bintieshuangji_skill"], fullskin:true, }, //王允 wy_meirenji:{ fullskin:true, vanish:true, derivation:'wangyun', type:'trick', enable:true, filterTarget:function(card,player,target){ return target.countCards('h')&&target!=player&&target.hasSex('male'); }, content:function(){ 'step 0' event.list=game.filterPlayer(function(current){ return current!=player&¤t!=target&¤t.hasSex('female'); }).sortBySeat(); 'step 1' if(target.countCards('h')&&event.list.length){ event.current=event.list.shift(); event.current.gainPlayerCard(target,true,'h'); target.line2([event.current,player]); } else{ event.goto(4); } 'step 2' event.current.chooseCard('h',true,'将一张手牌交给'+get.translation(player)); 'step 3' if(result.bool){ event.current.give(result.cards,player); } event.goto(1); 'step 4' var n1=target.countCards('h'); var n2=player.countCards('h'); if(n1>n2){ target.damage(player); player.line(target); } else if(n1=3) return 0; if(!target.hasSkillTag('maixie_hp')){ return -3; } return -1; } if(num==2) return 0; return -2+num+(Math.pow(target.hp,0.2)-1); } } } }, zhuangshu_basic:{ fullskin:true, vanish:true, derivation:'fengfangnv', type:'equip', suit:'spade', subtype:'equip5', skills:['zhuangshu_basic'], forceDie:true, onLose:function(){ if((!event.getParent(2)||event.getParent(2).name!='swapEquip')&&(event.getParent().type!='equip'||event.getParent().swapEquip)){ card.fix(); card.remove(); card.destroyed=true; game.log(card,'被销毁了'); } }, equipDelay:false, loseDelay:false, ai:{ equipValue:5, basic:{ equipValue:5 } } }, zhuangshu_trick:{ fullskin:true, vanish:true, derivation:'fengfangnv', type:'equip', suit:'club', subtype:'equip5', forceDie:true, skills:['zhuangshu_trick'], onLose:function(){ if((!event.getParent(2)||event.getParent(2).name!='swapEquip')&&(event.getParent().type!='equip'||event.getParent().swapEquip)){ card.fix(); card.remove(); card.destroyed=true; game.log(card,'被销毁了'); } }, equipDelay:false, loseDelay:false, }, zhuangshu_equip:{ fullskin:true, vanish:true, derivation:'fengfangnv', type:'equip', suit:'heart', subtype:'equip5', skills:['zhuangshu_equip'], forceDie:true, inherit:'zhuangshu_basic', onLose:function(){ if((!event.getParent(2)||event.getParent(2).name!='swapEquip')&&(event.getParent().type!='equip'||event.getParent().swapEquip)){ card.fix(); card.remove(); card.destroyed=true; game.log(card,'被销毁了'); } }, equipDelay:false, loseDelay:false, }, }, skill:{ //OL陆郁生 olcangxin:{ audio:2, trigger:{player:'damageBegin4'}, filter:function(event,player){ return ui.cardPile.childNodes.length>0; }, check:function(event,player){ var target=event.source; return get.damageEffect(player,target,target); }, content:function(){ 'step 0' var cards=[],cardx=Array.from(ui.cardPile.childNodes); for(var i=cardx.length-1;i>=0;i--){ cards.push(cardx[i]); if(cards.length>=3) break; } if(!cards.length){ event.finish(); return; } player.chooseButton(['###藏心:请选择要弃置的牌###若以此法弃置了红桃牌,则防止此伤害',cards],[1,cards.length],true).set('ai',function(button){ if(get.suit(button.link,false)!='heart') return 1; if(!ui.selected.buttons.some(but=>get.suit(but.link,false)=='heart')) return 1; return 0; }); 'step 1' if(result.bool){ player.$throw(result.links,1000); game.cardsDiscard(result.links); if(result.links.some(card=>get.suit(card,false)=='heart')) trigger.cancel(); } }, group:'olcangxin_yingzi', subSkill:{ yingzi:{ audio:'olcangxin', trigger:{player:'phaseDrawBegin2'}, filter:function(event,player){ if(event.numFixed) return false; var cards=[],cardx=Array.from(ui.cardPile.childNodes); for(var i=cardx.length-1;i>=0;i--){ cards.push(cardx[i]); if(cards.length>=3) break; } return cards.some(card=>get.suit(card,false)=='heart'); }, forced:true, locked:false, content:function(){ var cards=[],cardx=Array.from(ui.cardPile.childNodes); for(var i=cardx.length-1;i>=0;i--){ cards.push(cardx[i]); if(cards.length>=3) break; } cards=cards.filter(card=>get.suit(card,false)=='heart'); trigger.num+=cards.length; }, }, }, }, skill_luyusheng_B:{ audio:2, trigger:{global:'phaseDiscardBegin'}, filter:function(event,player){ if(event.player==player) return false; return event.player.isDamaged()&&event.player.countCards('h')!=event.player.getHandcardLimit(); }, direct:true, content:function(){ 'step 0' var str=get.translation(trigger.player); player.chooseControl('弃牌,+1','摸牌,-1','cancel2').set('choiceList',[ '令'+str+'弃置一张牌,且其本回合手牌上限+1', '令'+str+'摸一张牌,且其本回合手牌上限-1', ]).set('ai',function(){ var player=_status.event.player; var trigger=_status.event.getTrigger(); var target=trigger.player; var num1=target.countCards('h'),num2=target.getHandcardLimit(); switch(get.sgn(get.attitude(player,target))){ case 0: return 2; break; case 1: if(num1-1>=num2) return 0; if(num1+1<=num2) return 1; return 2; break; case -1: if(num1-2<=num2) return 0; if(num1+3>=num2) return 1; return 2; break; } }).set('prompt',get.prompt('skill_luyusheng_B',trigger.player)); 'step 1' if(result.index!=2){ player.logSkill('skill_luyusheng_B',trigger.player); if(result.index==0){ trigger.player.chooseToDiscard('he',true).set('ai',card=>{ if(get.position(card)=='e') return -get.value(card); return 1/(get.value(card)||0.5); }); trigger.player.addTempSkill('skill_luyusheng_B_+'); trigger.player.addMark('skill_luyusheng_B_+',1,false); } if(result.index==1){ trigger.player.draw(); trigger.player.addTempSkill('skill_luyusheng_B_-'); trigger.player.addMark('skill_luyusheng_B_-',1,false); } } }, subSkill:{ '+':{ charlotte:true, onremove:true, marktext:'+', intro:{content:'手牌上限+#'}, mod:{ maxHandcard:function(player,num){ return num+player.countMark('skill_luyusheng_B_+'); }, }, }, '-':{ charlotte:true, onremove:true, marktext:'-', intro:{content:'手牌上限-#'}, mod:{ maxHandcard:function(player,num){ return num-player.countMark('skill_luyusheng_B_-'); }, }, }, }, }, //曹羲 olgangshu:{ audio:2, trigger:{ player:'useCardAfter', }, filter:function(event,player){ return get.type2(event.card,false)!='basic'; }, getInfo:(player)=>{ if(!player.storage.olgangshu_buff) player.storage.olgangshu_buff=[0,0,0]; return player.storage.olgangshu_buff; }, direct:true, group:'olgangshu_reset', content:function(){ 'step 0' var info=lib.skill.olgangshu.getInfo(player); player.chooseControl('攻击范围('+info[0]+')','摸牌数('+info[1]+')','使用【杀】的上限('+info[2]+')','cancel2').set('prompt',get.prompt('olgangshu')).set('prompt2','
令以下一个数值+1(每项至多+5):
1.攻击范围;
2.下个摸牌阶段的摸牌数;
3.使用【杀】的次数上限。
').set('ai',()=>{ return _status.event.choice; }).set('choice',function(){ var info=lib.skill.olgangshu.getInfo(player); if(info[1]==0) return 1; if(info[2]<5&&player.hasCard(card=>{ return get.name(card)=='sha'&&player.hasValueTarget(card); },'hs')&&!player.getCardUsable('sha')) return 2; if(info[0]<5&&!game.hasPlayer(current=>{ return player.inRange(current)&&get.effect(current,{name:'sha'},player,player)>0; })) return 0; var rand=Math.random(); var list=[0,1,2].filter(i=>info[i]<5); if(!list.length) return 'cancel2'; if(rand<0.2&&list.includes(0)) return 0; if(rand<0.7&&list.includes(1)) return 1; if(rand<1.0&&list.includes(2)) return 2; return list.randomGet(); }()); 'step 1' if(result.control!='cancel2'){ player.logSkill('olgangshu'); player.addSkill('olgangshu_buff'); var info=lib.skill.olgangshu.getInfo(player); info[result.index]=Math.min(5,info[result.index]+1); game.log(player,'的',result.control.slice(0,result.control.indexOf('(')),'#y+1'); player.markSkill('olgangshu_buff'); } }, ai:{ threaten:3.1, }, subSkill:{ buff:{ trigger:{player:'phaseDrawBegin2'}, charlotte:true, onremove:true, forced:true, filter:function(event,player){ var info=lib.skill.olgangshu.getInfo(player); if(!info[1]) return false; return !event.numFixed; }, content:function(){ var info=lib.skill.olgangshu.getInfo(player); trigger.num+=info[1]; info[1]=0; player.markSkill('olgangshu_buff'); }, mod:{ attackRange:function(player,range){ var info=lib.skill.olgangshu.getInfo(player); if(info) return range+info[0]; }, cardUsable:function(card,player,num){ if(card.name!='sha') return; var info=lib.skill.olgangshu.getInfo(player); if(info) return num+info[2]; }, }, mark:true, intro:{ markcount:()=>0, content:function(storage,player){ var info=lib.skill.olgangshu.getInfo(player); var str=''; if(info[0]>0) str+='
  • 攻击范围+'+info[0]; if(info[1]>0) str+='
  • 下个摸牌阶段摸牌数+'+info[1]; if(info[2]>0) str+='
  • 使用【杀】的次数上限+'+info[2]; return str; }, }, }, reset:{ audio:'olgangshu', trigger:{ global:['shaMiss','eventNeutralized'], }, filter:function(event,player){ if(event.type!='card') return false; var responder; if(event.name=='sha'){ responder=event.target; } else{ responder=event._neutralize_event.player; } return player==responder; }, forced:true, locked:false, content:function(){ player.removeSkill('olgangshu_buff'); game.log(player,'重置了','#g【刚述】','的数值'); } } } }, oljianxuan:{ audio:2, trigger:{ player:'damageEnd', }, direct:true, content:function(){ 'step 0' var info=lib.skill.olgangshu.getInfo(player); var list=[]; list.add(player.getAttackRange()); list.add(2+info[1]); list.add(player.getCardUsable('sha',true)); list.sort(); var str=list.join('、').replace(/(.*)、/, '$1或'); event.list=list; player.chooseTarget(get.prompt('oljianxuan'),'令一名角色摸一张牌,然后若其手牌数为'+str+',其可以重复此流程。').set('ai',target=>{ var list=_status.event.list; var player=_status.event.player; var att=get.attitude(player,target); if(att<=0) return 0; var num=target.countCards('h')+1; var value=1; while(true){ if(list.includes(num)){ value++; num++; } else break; } return value+att/10; }).set('list',list); 'step 1' if(result.bool){ var target=result.targets[0]; event.target=target; player.logSkill('oljianxuan',target); if(player!=target) player.addExpose(0.15); } else event.finish(); 'step 2' target.draw(); 'step 3' if(event.list.includes(target.countCards('h'))){ target.chooseBool('谏旋:是否摸一张牌?').set('ai',()=>true); } else event.finish(); 'step 4' if(result.bool) event.goto(2); }, ai:{ combo:'olguangshu', maixie:true, }, }, //OL彭羕 olqifan:{ audio:2, enable:'chooseToUse', hiddenCard:function(player,name){ if(name!='wuxie'&&lib.inpile.contains(name)) return true; }, filter:function(event,player){ if(event.responded||event.type=='wuxie'||event.olqifan) return false; for(var i of lib.inpile){ if(i!='wuxie'&&event.filterCard({name:i},player,event)) return true; } return false; }, delay:false, content:function(){ 'step 0' var evt=event.getParent(2); evt.set('olqifan',true); var cards=get.bottomCards(1+player.getStorage('olqifan').length,true); var aozhan=player.hasSkill('aozhan'); player.chooseButton(['器翻:选择要使用的牌',cards]).set('filterButton',function(button){ return _status.event.cards.contains(button.link); }).set('cards',cards.filter(function(card){ if(aozhan&&card.name=='tao'){ return evt.filterCard({ name:'sha',isCard:true,cards:[card], },evt.player,evt)||evt.filterCard({ name:'shan',isCard:true,cards:[card], },evt.player,evt); } return evt.filterCard(card,evt.player,evt); })).set('ai',function(button){ if(get.type(button.link)=='equip') return 0; var evt=_status.event.getParent(3),player=_status.event.player; if(evt.type=='phase'&&!player.hasValueTarget(button.link,null,true)) return 0; if(evt&&evt.ai){ var tmp=_status.event; _status.event=evt; var result=(evt.ai||event.ai1)(button.link,_status.event.player,evt); _status.event=tmp; return result; } return 1; }); 'step 1' var evt=event.getParent(2); if(result.bool&&result.links&&result.links.length){ var card=result.links[0]; var name=card.name,aozhan=(player.hasSkill('aozhan')&&name=='tao'); if(aozhan){ name=evt.filterCard({ name:'sha',isCard:true,cards:[card], },evt.player,evt)?'sha':'shan'; } game.broadcastAll(function(result,name){ lib.skill.olqifan_backup.viewAs={name:name,cards:[result],isCard:true}; },card,name); evt.set('_backupevent','olqifan_backup'); evt.set('openskilldialog',('请选择'+get.translation(card)+'的目标')) evt.backup('olqifan_backup'); } evt.goto(0); }, ai:{ effect:{ target:function(card,player,target,effect){ if(get.tag(card,'respondShan')) return 0.7; if(get.tag(card,'respondSha')) return 0.7; } }, order:12, respondShan:true, respondSha:true, result:{ player:function(player){ if(_status.event.dying) return get.attitude(player,_status.event.dying); return 1; } } }, onremove:true, intro:{ content:'已使用过$牌', }, subSkill:{ discard:{ trigger:{player:'chooseToUseAfter'}, forced:true, charlotte:true, filter:(event,player)=>{ if(!event.olqifan_discard) return false; var num=player.getStorage('olqifan').length,pos=('jeh').slice(0,num); return num>0&&player.countCards(pos)>0; }, content:function(){ var pos=('jeh')[event.num],hs=player.countCards(pos); if(hs>0) player.chooseToDiscard(hs,pos,true); event.num++; if(event.num{ event.maxNum=Math.min(3,player.getStorage('olqifan').length); event.num=0; }) .then(lib.skill.olqifan_discard.content) }, filterCard:function(){return false}, selectCard:-1, }, oltuishi:{ audio:2, mod:{ wuxieJudgeEnabled:()=>false, wuxieEnabled:()=>false, cardEnabled:(card)=>{ if(card.name=='wuxie') return false; }, targetInRange:(card)=>{ if(card.storage&&card.storage.oltuishi) return true; }, aiValue:(player,card,val)=>{ if(card.name=='wuxie') return 0; var num=get.number(card); if([1,11,12,13].includes(num)) return val*1.1; }, aiUseful:(player,card,val)=>{ if(card.name=='wuxie') return 0; var num=get.number(card); if([1,11,12,13].includes(num)) return val*1.1; }, aiOrder:(player,card,order)=>{ if(get.name(card)=='sha'&&player.hasSkill('oltuishi_unlimit')) order+=9; var num=get.number(card); if([1,11,12,13].includes(num)) order+=3; return order; }, }, trigger:{player:'useCardAfter'}, forced:true, filter:function(event){ const num=get.number(event.card); return [1,11,12,13].includes(num); }, content:function(){ player.draw(2); player.addSkill('oltuishi_unlimit'); }, subSkill:{ unlimit:{ charlotte:true, mod:{ cardUsable:()=>Infinity, targetInRange:()=>true, }, trigger:{player:'useCard1'}, forced:true, popup:false, silent:true, firstDo:true, content:function(){ player.removeSkill('oltuishi_unlimit') var card=trigger.card; if(!card.storage) card.storage={}; card.storage.oltuishi=true; if(trigger.addCount!==false){ trigger.addCount=false; player.getStat('card')[card.name]--; } }, mark:true, intro:{content:'使用的下一张牌无距离次数限制'}, }, }, }, //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+='
  • '+get.translation(type)+'牌:+'+storage[type]; } return str; } }, mod:{ targetInRange:(card,player)=>{ var type=get.type2(card); if(get.is.object(player.storage.olweifu_add)&&typeof player.storage.olweifu_add[type]=='number') return true; }, } } }, }, olkuansai:{ audio:2, trigger:{ global:'useCardToPlayered', }, filter:function(event,player){ return event.isFirstTarget&&event.targets.length>player.getHp(); }, direct:true, content:function(){ 'step 0' player.chooseTarget(get.prompt('olkuansai'),'令其中一个目标选择一项:1.交给你一张牌;2.令你回复1点体力。',(card,player,target)=>{ return _status.event.targets.contains(target); }).set('targets',trigger.targets).set('ai',target=>{ var player=_status.event.player; var att=get.attitude(player,target); if(att>0) return 1; return (1-att)/Math.sqrt(1+target.countCards('he')); }); 'step 1' if(result.bool){ var target=result.targets[0]; event.target=target; player.logSkill('olkuansai',target); var position='e'; if(player!=target) position+='h'; var forced=player.isHealthy(); var str='请交给其一张牌'+(forced?'':'或点击“取消”令其回复1点体力')+'。'; if(!target.countCards(position)) event._result={bool:false}; else target.chooseCard(get.translation(player)+'对你发动了【款塞】',str,position,forced).set('ai',card=>{ if(_status.event.recover) return 0; var target=_status.event.player,player=_status.event.getParent().player; if(get.attitude(target,player)>0){ return get.value(card,target)-get.value(card,player); } if(get.tag(card,'recover')) return -1; return 6.5-get.value(card); }).set('recover',function(){ if(forced) return false; var recoverEff=get.recoverEffect(player,target,target); var att=get.attitude(target,player); if(att<0){ if(recoverEff>=0) return true; if(target.hasCard(card=>{ return get.value(card)<6.5&&!get.tag(card,'recover')||get.value(card)<=0.05; },position)) return false; } else{ if(recoverEff>0) return true; if(target.hasCard(card=>{ return get.value(card,target)player.getUseValue({name:'juedou'})?'sha':'juedou'; }); 'step 3' if(result.control) target.chooseUseTarget({name:result.control},true); }, ai:{ order:7, result:{ target:function(player,target){ if(get.attitude(target,player)>0&&game.hasPlayer(function(current){ if(current==target) return false; for(var card of [{name:'sha'},{name:'juedou'}]){ if(target.canUse(card,current)&&get.effect(current,card,target,player)>0&&get.effect(current,card,target,target)>0) return true; } return false; })&&target.countCards('h')player.countCards('h')) return -2; var canSave=function(player,target){ return target.hp+player.countCards('hs',card=>player.canSaveCard(card,target))>1+((get.mode()=='identity'&&target.identity=='zhu')||(get.mode()=='guozhan'&&get.is.jun(target))); }; if(target.hasValueTarget({name:'sha'})){ var aimx=game.filterPlayer(current=>{ return target.canUse({name:'sha'},current)&&get.effect(current,{name:'sha'},target,target)>0; }).sort((a,b)=>get.effect(b,{name:'sha'},target,target)-get.effect(a,{name:'sha'},target,target))[0]; if(get.effect(aimx,{name:'sha'},target,player)<0&&get.effect(aimx,{name:'sha'},target,aimx)<0&&!canSave(player,aimx)) return 0; } if(target.hasValueTarget({name:'juedou'})){ var aimy=game.filterPlayer(current=>{ return target.canUse({name:'juedou'},current)&&get.effect(current,{name:'juedou'},target,target)>0; }).sort((a,b)=>get.effect(b,{name:'juedou'},target,target)-get.effect(a,{name:'juedou'},target,target))[0]; if(get.effect(aimy,{name:'juedou'},target,player)<0&&get.effect(aimy,{name:'sha'},target,aimy)<0&&!canSave(player,aimy)) return 0; } return -1; }, }, }, }, olyanhuo:{ audio:'yanhuo', trigger:{player:'die'}, forceDie:true, filter:function(event,player){ if(!event.source||!event.source.isIn()||!event.source.countCards('he')) return false; return player.countCards('he')>0; }, check:function(event,player){ return get.effect(event.source,{name:'guohe_copy2'},player,player)>0; }, logTarget:'source', skillAnimation:true, animationColor:'thunder', content:function(){ player.discardPlayerCard(trigger.source,'he',[1,player.countCards('he')],true).set('forceDie',true); }, }, //韩遂 olniluan:{ audio:'niluan', trigger:{global:'phaseJieshuBegin'}, filter:function(event,player){ return event.player.getHp()>player.getHp()&&event.player.getHistory('useCard',function(card){ return card.card.name=='sha'; }).length&&player.countCards('hes',card=>get.color(card,player)=='black'&&player.canUse(get.autoViewAs({name:'sha'},[card]),event.player,false)); }, direct:true, content:function(){ var next=player.chooseToUse(); next.set('openskilldialog','逆乱:是否将一张黑色牌当作【杀】对'+get.translation(trigger.player)+'使用?'); next.set('norestore',true); next.set('_backupevent','niluanx'); next.set('custom',{ add:{}, replace:{window:function(){}} }); next.backup('niluanx'); next.set('targetRequired',true); next.set('complexSelect',true); next.set('filterTarget',function(card,player,target){ if(target!=_status.event.sourcex&&!ui.selected.targets.contains(_status.event.sourcex)) return false; return lib.filter.targetEnabled.apply(this,arguments); }); next.set('sourcex',trigger.player); next.set('addCount',false); next.logSkill='olniluan'; }, }, olxiaoxi:{ audio:'xiaoxi', audioname:['machao','hansui','pangde'], trigger:{global:'roundStart'}, filter:function(event,player){ return player.hasUseTarget({name:'sha'},false); }, direct:true, content:function(){ player.chooseUseTarget({name:'sha'},get.prompt('olxiaoxi'),'视为使用一张无距离限制的【杀】',false,'nodistance').logSkill='olxiaoxi'; }, }, //段颎 olsaogu:{ audio:2, zhuanhuanji:true, mark:true, marktext:'☯', intro:{ content:function(storage){ if(storage) return '转换技。①出牌阶段,你可以摸一张牌。②结束阶段,你可以弃置一张牌,令一名其他角色摸一张牌。'; return '转换技。①出牌阶段,你可以弃置两张牌(不能包含你本阶段弃置过的花色),然后使用其中的【杀】。②结束阶段,你可以弃置一张牌,令一名其他角色弃置两张牌,然后其使用弃置的【杀】。'; }, }, onChooseToUse:function(event){ if(!game.online&&!event.olsaogu){ var list=[],player=event.player; var evtx=event.getParent('phaseUse'); player.getHistory('lose',evt=>{ if(evt.type=='discard'&&evt.getParent('phaseUse')==evtx) list.addArray(evt.cards2); }); event.set('olsaogu',list); } }, enable:'phaseUse', filter:function(event,player){ var storage=player.storage.olsaogu; if(storage) return true; return player.getDiscardableCards(player,'he').filter(card=>{ if(event.olsaogu&&event.olsaogu.some(cardx=>get.suit(cardx,false)==get.suit(card,player))) return false; return true; }).length>1; }, filterCard:function(card,player){ if(player.storage.olsaogu) return false; if(_status.event.olsaogu&&_status.event.olsaogu.some(cardx=>get.suit(cardx,false)==get.suit(card,player))) return false; return true; }, selectCard:function(){ var player=_status.event.player; return player.storage.olsaogu?-1:2; }, position:'he', check:function(card){ var player=_status.event.player; if(card.name=='sha') return player.hasValueTarget(card)?10:0.001; return 6-get.value(card); }, prompt:function(){ var player=_status.event.player; var storage=player.storage.olsaogu; if(storage) return '摸一张牌'; var list=_status.event.olsaogu,str=''; if(list&&list.length){ var text='',suits=list.reduce(function(list,card){ return list.add(get.suit(card,false)),list; },[]).sort((a,b)=>lib.suit.indexOf(b)-lib.suit.indexOf(a)); for(var i=0;icard.name=='sha'); if(cardx.length){ var next=game.createEvent('olsaogu_chooseToUseSha'); next.player=player; next.cards=cardx; next.setContent(lib.skill.olsaogu.chooseToUseSha); } } }, ai:{ order:function(item,player){ return get.order({name:'sha'},player)-0.2; }, result:{ player:function(player){ var storage=player.storage.olsaogu; if(storage) return 1; if(player.getDiscardableCards(player,'he').filter(card=>{ if(card.name!='sha') return false; if(_status.event.olsaogu&&_status.event.olsaogu.some(cardx=>get.suit(cardx,false)==get.suit(card,player))) return false; return true; }).length) return 1; return 0; }, }, }, group:'olsaogu_effect', subSkill:{ effect:{ trigger:{player:'phaseJieshuBegin'}, filter:function(event,player){ if(_status.connectMode) return player.countCards('he'); return player.countDiscardableCards(player,'he'); }, direct:true, content:function(){ 'step 0' var list=[]; player.getHistory('lose',evt=>{ if(evt.type=='discard'&&evt.getParent('phaseJieshu').name=='phaseJieshu') list.addArray(evt.cards2); }); event.list=list; var str,storage=player.storage.olsaogu; if(storage) str='弃置一张牌,令一名其他角色摸一张牌。'; else{ str='弃置一张牌,令一名其他角色弃置两张牌(不能包含你本阶段弃置过的花色),然后其使用弃置的【杀】。'; if(list.length){ var text='',suits=list.reduce(function(list,card){ return list.add(get.suit(card,false)),list; },[]).sort((a,b)=>lib.suit.indexOf(b)-lib.suit.indexOf(a)); for(var i=0;i1; }, filterCard:lib.filter.cardDiscardable, position:'he', complexCard:true, complexSelect:true, ai1:function(card){ var player=_status.event.player; if(!player.storage.olsaogu&&_status.event.list.some(cardx=>get.suit(cardx,false)==get.suit(card,player))) return 7-get.value(card); return 5-get.value(card); }, ai2:function(target){ var player=_status.event.player; var att=get.attitude(player,target); if(player.storage.olsaogu) return att; var list=_status.event.list.slice(); if(ui.selected.cards.length) list.addArray(ui.selected.cards); var cards=target.getCards('he',card=>{ if(card.name!='sha'||list.some(cardx=>get.suit(cardx,false)==get.suit(card,target))) return false; return lib.filter.cardDiscardable(card,target)&&game.hasPlayer(function(current){ if(!current.canUse(card,target,false)) return false; return get.effect(current,card,target,target)>0&&get.effect(current,card,target,player)>0; }); }); if(cards.length&&att>0) return Math.sqrt(Math.min(2,cards.length))*cards.reduce(function(num,card){ var players=game.filterPlayer(current=>target.canUse(card,current,false)); players.sort((a,b)=>get.effect(b,card,target,target)*get.effect(b,card,target,player)-get.effect(a,card,target,target)*get.effect(a,card,target,player)); return num=(get.effect(players[0],card,target,target)*get.effect(players[0],card,target,player)); },0); return get.effect(target,{name:'guohe_copy2'},player,player)*Math.sqrt(Math.min(2,target.getDiscardableCards(player,'he').filter(card=>{ return !list.some(cardx=>get.suit(cardx,false)==get.suit(card,target)); }).length)); }, }).set('list',list); 'step 1' if(result.bool){ var cards=result.cards,target=result.targets[0]; player.logSkill('olsaogu',target); player.discard(cards); if(player.storage.olsaogu){ target.draw(); event.finish(); } else{ event.target=target; var list=result.cards.slice(); player.getHistory('lose',evt=>{ if(evt.type=='discard'&&evt.getParent('phaseJieshu').name=='phaseJieshu') list.addArray(evt.cards2); }); var cards=target.getCards('he',card=>{ return lib.filter.cardDiscardable(card,target)&&!list.some(cardx=>get.suit(cardx,false)==get.suit(card,target)); }); if(cards.length){ var text='',suits=list.reduce(function(list,card){ return list.add(get.suit(card,false)),list; },[]).sort((a,b)=>lib.suit.indexOf(b)-lib.suit.indexOf(a)); for(var i=0;iget.suit(cardx,false)==get.suit(card,player)); },Math.min(cards.length,2),true).set('ai',function(card){ var player=_status.event.player; if(card.name=='sha'&&player.hasValueTarget(card)) return 10; return -get.value(card); }).set('list',list); } else event.finish(); } } else event.finish(); 'step 2' if(result.bool){ var cards=result.cards.filter(card=>card.name=='sha'); if(cards.length){ var next=game.createEvent('olsaogu_chooseToUseSha'); next.player=target; next.cards=cards; next.setContent(lib.skill.olsaogu.chooseToUseSha); } } }, }, }, chooseToUseSha:function(){ 'step 0' event.cards2=cards.filter(i=>get.position(i,true)=='d'&&player.hasUseTarget(i)); if(!event.cards2.length) event.finish(); 'step 1' if(event.cards2.length==1) event._result={bool:true,links:event.cards2}; else player.chooseButton(['扫谷:请使用其中的【杀】',event.cards2],true).set('filterButton',button=>{ return _status.event.player.hasUseTarget(button.link,false); }).set('ai',button=>{ return _status.event.player.getUseValue(button.link); }); 'step 2' if(result.bool){ var card=result.links[0]; event.cards2.remove(card); player.$gain2(card,false); game.delayx(); player.chooseUseTarget(true,card,false); } else event.finish(); 'step 3' if(event.cards2.length) event.goto(1); }, }, //OL周群 oltianhou:{ audio:2, trigger:{player:'phaseZhunbeiBegin'}, forced:true, content:function(){ 'step 0' var card=get.cards()[0]; event.card=card; game.cardsGotoOrdering(card); 'step 1' if(player.countCards('he')>0){ player.chooseCard('he','天候:是否用一张牌交换牌堆顶的'+get.translation(card)+'?').set('promptx',[[card]]).set('ai',()=>-1) } else{ event._result={bool:false}; } 'step 2' if(result.bool){ player.lose(result.cards,ui.cardPile,'insert'); player.gain(event.card,'draw'); } else{ ui.cardPile.insertBefore(event.card,ui.cardPile.firstChild); } 'step 3' var card=get.cards()[0]; ui.cardPile.insertBefore(card,ui.cardPile.firstChild); player.showCards(card,get.translation(player)+'发动了【天候】'); var suit=get.suit(card,false),skill='oltianhou_'+suit; if(!lib.skill.oltianhou.derivation.contains(skill)) event.finish(); else{ event.weather_skill=skill; player.chooseTarget(true,'令一名角色获得技能【'+get.translation(skill)+'】',get.translation(skill+'_info')).set('ai',function(target){ return get.attitude(_status.event.player,target); }); } 'step 4' if(result.bool){ var target=result.targets[0]; player.line(target,'green'); target.addAdditionalSkill('oltianhou_'+player.playerid,event.weather_skill); player.addTempSkill('oltianhou_expire',{player:'phaseZhunbeiBegin'}); game.log(target,'获得了天气技能','#g【'+get.translation(event.weather_skill)+'】'); game.broadcastAll(function(bg){ _status.tempBackground=bg; game.updateBackground(); },event.weather_skill+'_bg'); game.addVideo('skill',player,['oltianhou',[true,event.weather_skill+'_bg']]) } }, video:function(player,info){ if(info[0]){ _status.tempBackground=info[1]; } else{ delete _status.tempBackground; } game.updateBackground(); }, derivation:['oltianhou_spade','oltianhou_heart','oltianhou_club','oltianhou_diamond'], subSkill:{ expire:{ charlotte:true, onremove:function(player){ var key='oltianhou_'+player.playerid,players=game.players.concat(game.dead); for(var current of players){ current.removeAdditionalSkill(key); } game.broadcastAll(function(){ delete _status.tempBackground; game.updateBackground(); }); game.addVideo('skill',player,['oltianhou',[false]]) }, }, spade:{ audio:true, mark:true, marktext:'雨', intro:{ content:'锁定技。其他角色造成火属性伤害时,取消之;一名角色受到雷属性伤害后,所有与其座次相邻的角色失去1点体力。', }, trigger:{global:'damageEnd'}, forced:true, filter:function(event){ return event.nature=='thunder'&&lib.skill.oltianhou_spade.logTarget(event).length>0; }, logTarget:function(event){ var list=[]; if(!event.player.isIn()) return []; if(event.player.getNext().isIn()) list.push(event.player.getNext()); if(event.player.getPrevious().isIn()) list.push(event.player.getPrevious()); return list.sortBySeat(_status.currentPhase); }, content:function(){ var targets=lib.skill.oltianhou_spade.logTarget(trigger); for(var i of targets) i.loseHp(); game.delayex(); }, group:'oltianhou_miehuo', global:'oltianhou_spade_ai', }, spade_ai:{ effect:{ player:function(card,player,target,current){ if(get.tag(card,'fireDamage')&&!player.hasSkill('oltianhou_spade')){ return 'zerotarget'; } else if(get.tag(card,'thunderDamage')){ var list=lib.skill.oltianhou_spade.logTarget({player:target}); var eff=list.reduce(function(eff,current){ eff+=get.effect(current,{name:'losehp'},player,player) },0); return [1,eff]; } }, }, }, miehuo:{ audio:'oltianhou_spade', trigger:{global:'damageBegin2'}, forced:true, logTarget:'source', filter:function(event,player){ return event.nature=='fire'&&event.source&&event.source.isIn()&&event.source!=player; }, content:function(){ trigger.cancel(); } }, heart:{ audio:true, mark:true, marktext:'暑', intro:{ content:'锁定技。其他角色的结束阶段开始时,若其体力值为全场最大,则其失去1点体力。', }, trigger:{global:'phaseJieshuBegin'}, forced:true, filter:function(event,player){ return player!=event.player&&event.player.isIn()&&event.player.isMaxHp(); }, logTarget:'player', content:function(){ trigger.player.loseHp(); }, }, club:{ audio:true, mark:true, marktext:'霜', intro:{ content:'锁定技。其他角色的结束阶段开始时,若其体力值为全场最小,则其失去1点体力。', }, trigger:{global:'phaseJieshuBegin'}, forced:true, filter:function(event,player){ return player!=event.player&&event.player.isIn()&&event.player.isMinHp(); }, logTarget:'player', content:function(){ trigger.player.loseHp(); }, }, diamond:{ audio:true, mark:true, marktext:'雾', intro:{ content:'锁定技。其他角色使用【杀】指定与其座次不相邻唯一目标时,则其判定。若判定结果的点数大于此【杀】,则此【杀】对其无效。', }, trigger:{global:'useCardToPlayer'}, forced:true, filter:function(event,player){ if(event.card.name!='sha'||event.player==player||event.targets.length!=1||!event.player.isIn()) return false; return event.target!=event.player.getNext()&&event.target!=event.player.getPrevious(); }, logTarget:'player', content:function(){ 'step 0' var num=get.number(trigger.card); event.num=num; trigger.player.judge(card=>{ var num=get.number(card),num2=_status.event.getParent('oltianhou_diamond').num; return num>num2?-4:4; }).set('judge2',result=>{ if(result.bool==false) return true; return false; }) 'step 1' if(!result.bool){ trigger.getParent().all_excluded=true; trigger.untrigger(); } }, global:'oltianhou_diamond_ai', }, diamond_ai:{ effect:{ target:function(card,player,target,current){ if(card.name=='sha'&&!player.hasSkill('oltianhou_diamond')){ if(target!=player.getNext()&&target!=player.getPrevious()) return 0.7; } }, }, }, } }, olchenshuo:{ audio:2, trigger:{player:'phaseJieshuBegin'}, direct:true, filter:function(event,player){ return player.countCards('h')>0; }, 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.number(card,false)) return true; return info.length==get.cardNameLength(card) }, content:function(){ 'step 0' player.chooseCard('h',get.prompt('olchenshuo'),'展示一张手牌,然后展示并获得牌堆顶的牌').set('ai',function(card){ if(get.type(card)=='basic') return 1+Math.random(); return Math.random(); }) 'step 1' if(result.bool){ player.logSkill('olchenshuo'); player.showCards(result.cards,get.translation(player)+'发动了【谶说】'); var card=result.cards[0]; event.cardInfo={ type:get.type2(card,player), suit:get.suit(card,player), number:get.number(card,player), length:get.cardNameLength(card), } event.cards=[]; event.forceDie=true; event.includeOut=true; } else event.finish(); 'step 2' var judgestr=get.translation(player)+'展示的第'+get.cnNumber(cards.length+1,true)+'张【谶说】牌'; event.videoId=lib.status.videoId++; var card=get.cards()[0]; event.card=card; cards.add(card); game.cardsGotoOrdering(card); game.addVideo('judge1',player,[get.cardInfo(card),judgestr,event.videoId]); game.broadcastAll(function(player,card,str,id,cardid){ var event; if(game.online){ event={}; } else{ event=_status.event; } if(game.chess){ event.node=card.copy('thrown','center',ui.arena).animate('start'); } else{ event.node=player.$throwordered(card.copy(),true); } if(lib.cardOL) lib.cardOL[cardid]=event.node; event.node.cardid=cardid; event.node.classList.add('thrownhighlight'); ui.arena.classList.add('thrownhighlight'); event.dialog=ui.create.dialog(str); event.dialog.classList.add('center'); event.dialog.videoId=id; },player,card,judgestr,event.videoId,get.id()); game.log(player,'展示了牌堆顶的',card); game.delay(2); 'step 3' game.broadcastAll(function(id){ var dialog=get.idDialog(id); if(dialog){ dialog.close(); } ui.arena.classList.remove('thrownhighlight'); },event.videoId); game.addVideo('judge2',null,event.videoId); if(cards.length<3&&player.isIn()&&lib.skill.olchenshuo.hasSame(event.cardInfo,card)) event.goto(2); else{ game.broadcastAll(function(){ui.clear()}); player.gain(cards,'gain2'); } }, }, //OL文钦 olguangao:{ audio:2, trigger:{ global:'useCard2', }, filter:function(event,player){ var card=event.card; if(card.name!='sha') return false; if(event.player==player){ return game.hasPlayer(current=>{ return current.isIn()&&!event.targets.contains(current)&&player.canUse(card,current); }); } return event.player.isIn()&&!event.targets.contains(player)&&event.player.canUse(card,player); }, direct:true, content:function(){ 'step 0' if(trigger.player==player){ player.chooseTarget(get.prompt('olguangao'),'为'+get.translation(trigger.card)+'额外指定一个目标。然后若你手牌数为偶数,你摸一张牌并令此牌对任意目标无效。',(card,player,target)=>{ return !_status.event.sourcex.contains(target)&&player.canUse(_status.event.card,target); }).set('sourcex',trigger.targets).set('ai',function(target){ var player=_status.event.player; var eff=get.effect(target,_status.event.card,player,player); if(player.countCards('h')%2==0&&player.hasSkill('olxieju')&&player.isPhaseUsing()&&!player.getStat().skill.olxieju) return 1-eff; return eff; }).set('card',trigger.card); } else{ trigger.player.chooseBool('是否发动'+get.translation(player)+'的【犷骜】?','令其成为'+get.translation(trigger.card)+'的额外目标。然后若其手牌数为偶数,其摸一张牌并令此牌对任意目标无效。').set('ai',()=>{ return _status.event.bool; }).set('bool',function(){ var att=get.attitude(trigger.player,player); var eff=get.effect(player,trigger.card,trigger.player,trigger.player); if(player.countCards('h')%2==0&&att>0) return true; if(eff>0) return true; return false; }()); } 'step 1' if(result.bool){ var target=result.targets&&result.targets[0]; if(!target){ target=player; trigger.player.logSkill('olguangao',player); } else{ player.logSkill('olguangao',target); } trigger.targets.add(target); game.delayex(); } else event.finish(); 'step 2' if(player.countCards('h')%2==0){ player.draw(); player.chooseTarget('犷骜:令此杀对其任意个目标无效',[1,Infinity],(card,player,target)=>{ return _status.event.targetsx.contains(target); }).set('ai',target=>{ return 1-get.effect(target,_status.event.getTrigger().card,_status.event.player,_status.event.player); }).set('targetsx',trigger.targets); } else event.finish(); 'step 3' if(result.bool){ player.line(result.targets); trigger.excluded.addArray(result.targets); } } }, olhuiqi:{ audio:2, trigger:{ global:'phaseEnd', }, juexingji:true, forced:true, skillAnimation:true, animationColor:'thunder', derivation:'olxieju', filter:function(event,player){ var targets=[]; game.getGlobalHistory('useCard',evt=>{ if(evt.targets&&evt.targets.length){ targets.addArray(evt.targets); } }); return targets.length==3; }, content:function(){ 'step 0' player.awakenSkill('olhuiqi'); player.addSkillLog('olxieju'); player.insertPhase(); } }, olxieju:{ audio:2, enable:'phaseUse', usable:1, filter:function(event,player){ return event.olxieju&&event.olxieju.length; }, onChooseToUse:function(event){ if(!event.olxieju&&!game.online){ var targets=[]; game.getGlobalHistory('useCard',evt=>{ if(evt.targets&&evt.targets.length){ targets.addArray(evt.targets); } }) event.set('olxieju',targets); } }, filterTarget:function(card,player,target){ var event=_status.event; if(event.olxieju.contains(target)) return true; return false; }, selectTarget:[1,Infinity], content:function(){ var card={ name:'sha', isCard:true, }; if(target.hasUseTarget(card,true)){ target.chooseUseTarget(card,true); } }, ai:{ order:1, result:{ target:function(player,target){ var val=target.getUseValue({name:'sha'},true); return Math.sign(val); } } } }, //郝普 olzhenying:{ audio:2, enable:'phaseUse', usable:2, filter:function(event,player){ return game.hasPlayer(current=>{ return lib.skill.olzhenying.filterTarget(null,player,current); }); }, filterTarget:function(card,player,target){ return player!=target&&target.countCards('h')<=player.countCards('h'); }, content:function(){ 'step 0' var send=function(){ var next=game.createEvent('olzhenying_adjust',false); next.setContent(lib.skill.olzhenying.contentx); game.resume(); }; var sendback=function(result,player){ if(!result&&typeof result!=='number'){ result=player.getCards('h'); if(!result.length) result=0; } event.results.push([player,result]); }; event.ai_targets=[]; event.results=[]; var players=[player,target]; for(var i=0;i{ return get.value(b)-get.value(a); }); var beginInd=1; var endInd=2; var eff=get.effect(player,{name:'juedou'},target,target),eff2=get.effect(target,{name:'juedou'},player,target); var att=get.attitude(player,target); if(att>0||eff2>0){ if(cards.length<=2){ cards=2-cards.length; } else{ beginInd=2; endInd=2; } } else{ if(get.value(cards,target)<=5&&!target.isZhu){ if(eff>0&&Math.random()<0.65){ beginInd=0; endInd=1; } } } if(typeof cards!='number'){ cards=cards.slice([beginInd,endInd].randomGet(),cards.length); } sendback(cards,target); event.ai_targets.splice(i--,1); } } if(event.ai_targets.length){ event.ai_targets.randomSort(); setTimeout(function(){ event.interval=setInterval(function(){ var target=event.ai_targets.shift(); var cards=target.getCards('h'); cards=cards.sort((a,b)=>{ return get.value(b)-get.value(a); }); var beginInd=1; var endInd=2; var eff=get.effect(player,{name:'juedou'},target,target),eff2=get.effect(target,{name:'juedou'},player,target); var att=get.attitude(player,target); if(att>0||eff2>0){ if(cards.length<=2){ cards=2-cards.length; } else{ beginInd=2; endInd=2; } } else{ if(get.value(cards,target)<=5&&!target.isZhu){ if(eff>0&&Math.random()<0.65){ beginInd=0; endInd=1; } } } if(typeof cards!='number'){ cards=cards.slice([beginInd,endInd].randomGet(),cards.length); } sendback(cards,target); if(!event.ai_targets.length){ clearInterval(event.interval); if(event.withai) game.resume(); } },_status.connectMode?750:75); },500); } } 'step 1' if(event.withme){ if(_status.connectMode) game.me.unwait(result,game.me); else{ if(!result&&typeof result!=='number'){ result=game.me.getCards('h'); if(!result.length) result=0; } event.results.push([game.me,result]); } } 'step 2' if(event.withol&&!event.resultOL){ game.pause(); } 'step 3' if(event.ai_targets.length>0){ event.withai=true; game.pause(); } 'step 4' if(_status.connectMode){ for(var i of [player,target]) i.hideTimer(); } var lose_list=[]; var draw_list=[]; event.results.sort((a,b)=>lib.sort.seat(a[0],b[0])); for(var res of event.results){ var target=res[0],cardsx=res[1]; if(!target||!cardsx) continue; if(typeof cardsx==='number') draw_list.push([target,cardsx]); else if(cardsx.length) lose_list.push([target,cardsx]); } if(lose_list.length){ game.loseAsync({ lose_list:lose_list, }).setContent('discardMultiple'); } if(draw_list.length){ for(var list of draw_list){ var target=list[0],num=list[1]; target.draw(num,'nodelay'); } } 'step 5' game.delay(); var num1=player.countCards('h'),num2=target.countCards('h'); if(num1==num2){ event.finish(); return; } var players=[player,target]; if(num2=2){ var cards=player.getCards('h',card=>{ return lib.filter.cardDiscardable(card,player,'olzhenying'); }); if(cards.length{ return lib.filter.cardDiscardable(card,player,'olzhenying'); }); event.goto(2); } else{ var choices=['〇','一','二']; player.chooseControl(choices).set('prompt','镇荧:请选择要将手牌调整至的张数').set('ai',()=>{ return [0,1,2].randomGet(); }); } 'step 1' var num=result.index; var len=player.countCards('h'); if(len>num){ var cards=player.getCards('h',card=>{ return lib.filter.cardDiscardable(card,player,'olzhenying'); }); if(num==0||cards.length{ return lib.filter.cardDiscardable(card,player,'olzhenying'); }); } else event._result={cards:num-len}; 'step 2' if(result&&result.cards){ var cards=result.cards; } event.result=cards; }, ai:{ order:function(item,player){ if(game.hasPlayer(current=>{ return current.countCards('h')0&&target.countCards('h')+player.countCards('h')<=3) return 1; return get.sgn(get.effect(target,{name:'juedou'},player,target))*1.2; } } }, }, //OL孟达 olgoude:{ audio:2, trigger:{ global:'phaseEnd', }, filter:function(event,player){ var list=[]; game.countPlayer(current=>{ if(current.group!=player.group) return false; var listx=lib.skill.olgoude.getActed(current); list.addArray(listx); }); return list.length&&list.length<4; }, getActed:function(target){ var list=[]; if(target.hasHistory('gain',evt=>{ return evt.getParent().name=='draw'&&evt.cards.length==1; })){ list.push(1); } if(game.hasPlayer2(current=>{ return current.hasHistory('lose',evt=>{ if(evt.type!='discard') return false; if((evt.discarder||evt.getParent(2).player)!=target) return false; var evtx=evt.getl(current); if(!evtx||evtx.hs.length!=1) return false; return true; }); })){ list.push(2); } if(target.hasHistory('useCard',evt=>{ if(evt.card.name=='sha'&&evt.cards&&!evt.cards.length) return true; return false; })){ list.push(3); } if(target.hasHistory('custom',evt=>{ return evt.name=='changeGroup'; })){ list.push(4); } return list; }, direct:true, content:function(){ 'step 0' var list=[1,2,3,4]; game.countPlayer(current=>{ if(current.group!=player.group) return false; var listx=lib.skill.olgoude.getActed(current); list.removeArray(listx); }); var list2=list.slice(); var nochai=false,nosha=false; if(!game.hasPlayer(current=>{ return current.countDiscardableCards(player,'h'); })){ nochai=true; list2.remove(2); } if(!game.hasPlayer(current=>{ return player.canUse({name:'sha',isCard:true},current,true,false); })){ nosha=true; list2.remove(3); } var choices=list2.map(i=>{ return '选项'+get.cnNumber(i,true); }); var choiceList=[ '摸一张牌', '弃置一名角色的一张手牌', '视为使用一张【杀】', '将势力改为任意一个势力' ].map((text,ind)=>{ var hint=''; if(list2.contains(ind+1)){ return text; } else if(!list.contains(ind+1)){ hint+='已被执行过且'; } if(ind==1&&nochai&&!list2.contains(ind+1)) hint+='无有手牌角色且'; if(ind==2&&nosha&&!list2.contains(ind+1)) hint+='无可选目标且'; hint=hint.slice(0,-1); return ''+text+'('+hint+')'; }); choices.push('cancel2'); if(_status.connectMode) game.broadcastAll(function(){_status.noclearcountdown=true}); player.chooseControl(choices).set('choiceList',choiceList).set('prompt',get.prompt('olgoude')).set('ai',()=>{ return _status.event.choice; }).set('choice',function(){ var fn=function(control){ switch(control){ case '选项一': return player.getUseValue({name:'wuzhong'})/2; case '选项二': return Math.max.apply(Math,game.filterPlayer().map(current=>{ if(current.hasSkillTag('noh')) return -1; return -1.5*get.attitude(player,current)-Math.max(0,current.countCards('h')-2)/3; })); case '选项三': return player.getUseValue({name:'sha'}); case '选项四': var myPopulation=game.countPlayer(current=>{ return current.group==player.group; })-1; var value=Math.max.apply(Math,lib.group.map(group=>{ return game.countPlayer(current=>{ return current.group==group&¤t!=player; })-myPopulation; })); return 10*value+0.1*(Math.random()-0.5); case 'cancel2': return 0; } } var choicesx=choices.map(choice=>{ return [choice,fn(choice)]; }); choicesx=choicesx.sort((a,b)=>{ return b[1]-a[1]; }); var choice=choicesx[0]; if(choice[1]<0) return 'cancel2'; return choice[0]; }()); 'step 1' if(result.control=='cancel2'){ event.finish(); return; } var contents={ 选项一:function(){ player.logSkill('olgoude'); player.draw(); }, 选项二:function(){ 'step 0' player.chooseTarget('苟得:弃置一名角色的一张手牌',true,(card,player,target)=>{ return target.countDiscardableCards(player,'h'); }).set('ai',target=>{ if(target.hasSkillTag('noh')) return 0; return -get.attitude(_status.event.player,target); }); 'step 1' if(result.bool){ var target=result.targets[0]; if(_status.connectMode){game.broadcastAll(function(){delete _status.noclearcountdown;game.stopCountChoose()});} player.logSkill('olgoude',target); player.discardPlayerCard(target,true,'h'); } }, 选项三:function(){ player.chooseUseTarget('sha',true,false).set('logSkill','olgoude').set('prompt','苟得:选择【杀】的目标'); }, 选项四:function(){ 'step 0' var list=lib.group.slice(); var maxGroup=list.slice().sort((a,b)=>{ return game.countPlayer(current=>{ return current.group==b&¤t!=player; })-game.countPlayer(current=>{ return current.group==a&¤t!=player; }); })[0]; player.chooseControl(list).set('prompt','苟得:请选择要变更为的势力').set('ai',()=>{ return _status.event.choice; }).set('choice',maxGroup); 'step 1' if(_status.connectMode){game.broadcastAll(function(){delete _status.noclearcountdown;game.stopCountChoose()});} var group=result.control; player.logSkill('olgoude'); player.changeGroup(group); player.popup(group+'2',get.groupnature(group,'raw')); }, } var next=game.createEvent('olgoude_'+result.control); next.player=player; next.setContent(contents[result.control]); }, ai:{ threaten:3, effect:{ player_use:function(card,player,target){ if(typeof card=='object'&&card.cards&&card.cards.some(card=>{ return get.position(card)=='h'; })&&!get.tag(card,'draw')&&!get.tag(card,'gain')&&!get.tag(card,'discard')&& player==_status.currentPhase&&player.needsToDiscard()==1&&game.countPlayer(current=>{ return current.group==player.group&¤t!=player; })<=1&&lib.group.some(group=>{ return game.countPlayer(current=>{ return current.group==group&¤t!=player; })>2; })) return 'zeroplayertarget'; }, }, }, }, //OL新改王朗 oljici:{ audio:'jici', trigger:{ player:'compare', target:'compare', }, filter:function(event,player){ if(event.player==player){ if(event.iwhile) return false; return event.num1<=player.countMark('gushe'); } return event.num2<=player.countMark('gushe'); }, content:function(){ var num=player.countMark('gushe'); if(player==trigger.player){ trigger.num1+=num; if(trigger.num1>13) trigger.num1=13; } else{ trigger.num2+=num; if(trigger.num2>13) trigger.num2=13; } game.log(player,'的拼点牌点数+'+num); var stat=player.getStat().skill; delete stat.gushe; } }, //OL刘老板 olpianan:{ audio:2, trigger:{ player:['enterGame','phaseDiscardEnd'], global:'phaseBefore', }, forced:true, filter:function(event,player){ return event.name!='phase'||game.phaseNumber==0; }, content:function(){ 'step 0' var hs=player.getCards('h',card=>{ return get.name(card)!='shan'&&lib.filter.cardDiscardable(card,player,'olpianan'); }); if(hs.length) player.discard(hs); 'step 1' var num=player.hp-player.countCards('h'); if(num>0){ var cards=[]; for(var i=0;i0){ for(var i=0;i{ var player=_status.event.player; if(!player.isDamaged()||player.hp>3&&player.getDamagedHp()==1||player.maxHp<3) return 1; return 0; }); 'step 1' player[result.index==0?'recover':'gainMaxHp'](); } }, olkuisi:{ audio:2, trigger:{player:'phaseDrawBefore'}, forced:true, content:function(){ 'step 0' trigger.cancel(); var cards=game.cardsGotoOrdering(get.cards(4)).cards; event.cards=cards.slice(); 'step 1' player.chooseButton(['窥伺:是否使用其中的一张牌?',cards]).set('filterButton',button=>{ return _status.event.player.hasUseTarget(button.link); }).set('ai',button=>{ var player=_status.event.player,card=button.link,cards=_status.event.getParent().cards; var val=player.getUseValue(card)+0.01; if(val>0&&cards.length>1||val>4&&cards.length==1&&(player.maxHp>3||player.isDamaged())) return get.order(card)+val/5; return 0; }); 'step 2' if(result.bool){ var card=result.links[0]; event.cards.remove(card); player.$gain2(card,false); game.delayx(); player.chooseUseTarget(true,card,false); } else event.goto(4); 'step 3' if(cards.some(i=>get.position(i,true)=='o'&&player.hasUseTarget(i))) event.goto(1); 'step 4' if(cards.length!=1&&cards.length!=2){ player.loseMaxHp(); } } }, //卢氏 olzhuyan:{ audio:2, trigger:{player:'phaseJieshuBegin'}, init:function(player){ player.addSkill('olzhuyan_record'); }, onremove:['olzhuyan_true','olzhuyan_false'], direct:true, filter:function(event,player){ for(var bool of [true,false]){ var targeted=player.getStorage('olzhuyan_'+bool); if(game.hasPlayer(current=>{ return !targeted.contains(current)&&lib.skill.olzhuyan.getNum(current,bool); })) return true; } return false; }, getNum:function(player,status){ if(!_status.olzhuyan||!_status.olzhuyan[player.playerid]) return 0; var num=_status.olzhuyan[player.playerid][status?1:0]; if(status){ num-=player.countCards('h'); if(num+player.countCards('h')>5) num=5-player.countCards('h'); } else{ num-=player.hp; if(num+player.hp<1) num=1-player.hp; } return num; }, content:function(){ 'step 0' var map={}; for(var bool of [true,false]){ var targeted=player.getStorage('olzhuyan_'+bool); game.countPlayer(current=>{ if(targeted.contains(current)) return false; if(!map[current.playerid]) map[current.playerid]=[]; map[current.playerid][bool?1:0]=lib.skill.olzhuyan.getNum(current,bool); }); } event.map=map; player.chooseTarget(get.prompt('olzhuyan'),'令一名角色将{体力值/手牌数}调整至与其上个准备阶段相同(“--”表示已对其发动过该分支)',(card,player,target)=>{ var list=_status.event.map[target.playerid]; return list&&(list[0]||list[1]); }).set('map',map).set('targetprompt',target=>{ var list=_status.event.map[target.playerid]; var str=''; for(var i=0;i<2;i++){ if(list[i]===undefined) str+='--'; else{ str+=(list[i]>0?'+':'')+list[i]; } str+='/'; } return str.slice(0,-1); }).set('ai',target=>{ var list=_status.event.map[target.playerid]; var att=get.attitude(_status.event.player,target); var v1=list[0],v2=get.sgn(list[1])*Math.sqrt(Math.abs(list[1])); return Math[att>0?'max':'min'](v1,v2)*att; }); 'step 1' if(result.bool){ var target=result.targets[0]; player.logSkill('olzhuyan',target); event.target=target; var list=event.map[target.playerid]; var choices=['体力值','手牌数']; if(list[0]&&list[1]){ player.chooseControl(choices).set('choiceList',[ '令'+get.translation(target)+(list[0]>0?'回复':'失去')+Math.abs(list[0])+'点体力'+(list[0]<0?'(至多失去至1)':''), '令'+get.translation(target)+(list[1]>0?'摸':'弃置')+get.cnNumber(Math.abs(list[1]))+'张'+(list[1]>0?'':'手')+'牌'+(list[1]>0?'(至多摸至5)':''), ]).set('prompt','驻颜:请选择一项').set('ai',()=>_status.event.choice).set('choice',function(){ var v1=list[0],v2=get.sgn(list[1])*Math.sqrt(Math.abs(list[1])); if(get.attitude(player,target)>0){ return v1>v2?0:1; } return v1>v2?1:0; }()); } else{ event._result={index:list[0]?0:1}; } } else event.finish(); 'step 2' var ind=result.index; player.markAuto('olzhuyan_'+Boolean(ind),[target]); var num=event.map[target.playerid][ind]; if(ind==0){ if(num>0){ target.recover(num); } else{ num=Math.min(target.hp-1,-num); target.loseHp(num); } } else{ if(num>0){ num=Math.min(5-target.countCards('h'),num); if(num>0) target.draw(num); } else{ num=-num; target.chooseToDiscard(num,true).set('prompt','驻颜:请弃置'+get.cnNumber(Math.abs(num))+'张手牌'); } } }, subSkill:{ record:{ trigger:{ global:['phaseZhunbeiAfter','phaseBefore','enterGame'], }, lastDo:true, charlotte:true, forced:true, popup:false, forceDie:true, filter:function(event,player){ return (event.name!='phase'||game.phaseNumber==0); }, content:function(){ if(!_status.olzhuyan) _status.olzhuyan={}; if(event.triggername=='phaseBefore'){ game.countPlayer(current=>{ _status.olzhuyan[current.playerid]=[current.hp,current.countCards('h')]; }) } else{ _status.olzhuyan[trigger.player.playerid]=[trigger.player.hp,trigger.player.countCards('h')]; } }, } } }, olleijie:{ audio:2, trigger:{player:'phaseZhunbeiBegin'}, direct:true, content:function(){ 'step 0' player.chooseTarget(get.prompt('olleijie'),'令一名角色判定。若结果为♠2~9,其受到2点雷电伤害,否则其摸两张牌。').set('ai',target=>{ var player=_status.event.player,sgn=_status.event.sgn; if(sgn>0){ return get.damageEffect(target,target,player,'thunder'); } else if(sgn==0){ return get.attitude(player,target); } return 0; }).set('sgn',function(){ var sgn=0; game.countPlayer(current=>{ if(!current.hasSkillTag('rejudge')) return; sgn=get.sgnAttitude(player,current); }); return sgn; }()) 'step 1' if(result.bool){ var target=result.targets[0]; event.target=target; player.logSkill('olleijie',target); target.judge(card=>{ var number=get.number(card); if(get.suit(card)=='spade'&&number>=2&&number<=9) return -4; return 2; }).set('judge2',result=>{ return result.bool===false?true:false; }); } else event.finish(); 'step 2' if(result.bool){ target.draw(2); } else{ target.damage(2,'thunder'); } } }, //张世平 olhongji:{ audio:2, trigger:{global:'phaseZhunbeiBegin'}, filter:function(event,player){ if(event.player.isMinHandcard()&&!player.hasSkill('olhongji_min')) return true; if(event.player.isMaxHandcard()&&!player.hasSkill('olhongji_max')) return true; return false; }, direct:true, content:function(){ 'step 0' var target=trigger.player; event.target=target; var bool1=target.isMinHandcard()&&!player.hasSkill('olhongji_min'),str1='其手牌数为全场最少。你可以令其于本回合摸牌阶段结束后执行一个额外的摸牌阶段,然后本轮你不能再发动该分支。'; var bool2=target.isMaxHandcard()&&!player.hasSkill('olhongji_max'),str2='其手牌数为全场最多。你可以令其于本回合出牌阶段结束后执行一个额外的出牌阶段,然后本轮你不能再发动该分支。'; if(bool1&&!bool2){ event.branch=0; player.chooseBool(get.prompt('olhongji',target),str1).set('ai',()=>{ return _status.event.bool; }).set('bool',get.attitude(player,trigger.player)>1); } else if(!bool1&&bool2){ event.branch=1; player.chooseBool(get.prompt('olhongji',target),str2).set('ai',()=>{ return _status.event.bool; }).set('bool',get.attitude(player,trigger.player)>1); } else if(bool1&&bool2){ player.chooseControl('摸牌阶段','出牌阶段','cancel2').set('prompt',get.prompt('olhongji',target)).set('choiceList',[ str1.slice(13), str2.slice(13) ]).set('ai',()=>_status.event.bool).set('bool',()=>get.attitude(player,trigger.player)>1?[0,1].randomGet():'cancel2'); } 'step 1' var choice=-1; if(event.branch==0&&result.bool||result.control=='摸牌阶段') choice=0; if(event.branch==1&&result.bool||result.control=='出牌阶段') choice=1; if(choice==0){ player.logSkill('olhongji',target); player.addTempSkill('olhongji_min','roundStart'); target.addTempSkill('olhongji_draw'); } else if(choice==1){ player.logSkill('olhongji',target); player.addTempSkill('olhongji_max','roundStart'); target.addTempSkill('olhongji_use'); } }, ai:{expose:0.25}, subSkill:{ min:{charlotte:true}, max:{charlotte:true}, draw:{ trigger:{player:'phaseDrawAfter'}, charlotte:true, forced:true, popup:false, content:function(){ var next=trigger.player.phaseDraw(); event.next.remove(next); trigger.getParent('phase').next.push(next); player.removeSkill('olhongji_draw'); } }, use:{ trigger:{player:'phaseUseAfter'}, charlotte:true, forced:true, popup:false, content:function(){ var next=trigger.player.phaseUse(); event.next.remove(next); trigger.getParent('phase').next.push(next); player.removeSkill('olhongji_use'); } } } }, olxinggu:{ audio:2, trigger:{global:'phaseBefore',player:'enterGame'}, forced:true, locked:false, filter:function(event,player){ return (event.name!='phase'||game.phaseNumber==0); }, onremove:function(player,skill){ var cards=player.getExpansions(skill); if(cards.length) player.loseToDiscardpile(cards); }, group:'olxinggu_trade', content:function(){ 'step 0' var cards=[]; for(var i=0;i<3;i++){ var card=get.cardPile2(function(card){ if(cards.contains(card)) return false; var type=get.subtype(card); return type=='equip3'||type=='equip4'||type=='equip6'; }); if(card) cards.add(card); else break; } if(cards.length) player.addToExpansion(cards,'draw').gaintag.add('olxinggu'); }, marktext:'贾', intro:{ markcount:'expansion', mark:function(dialog,content,player){ var content=player.getExpansions('olxinggu'); if(content&&content.length){ if(player==game.me||player.isUnderControl()){ dialog.addAuto(content); } else{ return '剩余'+get.cnNumber(content.length)+'匹马'; } } } }, subSkill:{ trade:{ audio:'olxinggu', trigger:{player:'phaseJieshuBegin'}, filter:function(event,player){ return player.getExpansions('olxinggu').length; }, direct:true, content:function(){ 'step 0' var cards=player.getExpansions('olxinggu'); if(_status.connectMode) game.broadcastAll(function(){_status.noclearcountdown=true}); player.chooseButton([get.prompt('olxinggu'),cards]).set('ai',button=>{ if(_status.event.toChoose==button.link) return 1; return 0; }).set('toChoose',!event.aiCancel&&cards.find(card=>{ return game.hasPlayer(current=>{ if(!lib.skill.zhijian.filterTarget(card,player,current)) return false; return get.effect(current,card,player,player)>0; }); })); 'step 1' if(result.bool){ var card=result.links[0]; event.card=card; player.chooseTarget('将'+get.translation(card)+'置入一名其他角色的装备区',lib.skill.zhijian.filterTarget).set('ai',target=>{ var player=_status.event.player; return get.effect(target,_status.event.card,player,player); }).set('card',card); } else{ if(_status.connectMode){game.broadcastAll(function(){delete _status.noclearcountdown;game.stopCountChoose()});} event.finish(); } 'step 2' if(result.bool){ var target=result.targets[0]; event.target=target; if(_status.connectMode){game.broadcastAll(function(){delete _status.noclearcountdown;game.stopCountChoose()});} player.logSkill('olxinggu',target); player.$give(card,target,false); } else{ if(!event.isMine()&&!event.isOnline()) event.aiCancel=true; event.goto(0); } 'step 3' target.equip(card); 'step 4' var card=get.cardPile2(cardx=>{ return get.suit(cardx)=='diamond'; }); if(card) player.gain(card,'gain2'); else{ game.log('但是牌堆中并没有♦牌了!'); player.chat('做了个亏本买卖…'); } } } } }, //孙弘 olxianbi:{ audio:2, enable:'phaseUse', usable:1, filterTarget:function(card,player,target){ return !player.getStorage('olzenrun').contains(target)&&target.countCards('e')!=player.countCards('h'); }, content:function(){ 'step 0' var del=target.countCards('e')-player.countCards('h'); if(del==0) event.finish(); else if(del>0){ player.draw(Math.min(5,del)); } else{ player.chooseToDiscard('险诐:弃置'+get.cnNumber(-del)+'张手牌',-del,'h',true); player.addTempSkill('olxianbi_gain'); } }, ai:{ order:5, result:{ player:function(player,target){ return player.countCards('h',card=>{ return get.value(card)>6; })>=target.countCards('e')?0:1; } } }, subSkill:{ gain:{ trigger:{ player:'loseAfter', }, filter:function(event,player){ return event.getParent(3).name=='olxianbi'; }, forced:true, charlotte:true, popup:false, content:function(){ var cards=[],cards2=trigger.cards; for(var cardx of cards2){ var type=get.type2(cardx,player); var card=get.discardPile(function(card){ return get.type(card,false)==type&&!cards2.contains(card)&&!cards.contains(card); }); if(card) cards.push(card); } if(cards.length) player.gain(cards,'gain2'); } } } }, olzenrun:{ audio:2, trigger:{player:'drawBefore'}, filter:function(event,player){ return !player.hasSkill('olzenrun_used')&&game.hasPlayer(current=>{ return !player.getStorage('olzenrun').contains(current)&¤t!=player&¤t.hasCard(function(card){ return lib.filter.canBeGained(card,player,current); },'he') }); }, direct:true, check:function(event,player){ return true; }, content:function(){ 'step 0' var num=trigger.num; player.chooseTarget(get.prompt('olzenrun'),'改为获得一名其他角色'+get.cnNumber(num)+'张牌',(card,player,target)=>{ return !player.getStorage('olzenrun').contains(target)&&target!=player&&target.hasCard(function(card){ return lib.filter.canBeGained(card,player,target); },'he') }).set('ai',target=>{ return get.attitude(_status.event.player,target)/5+Math.random()+2.5; }); 'step 1' if(result.bool){ var target=result.targets[0]; event.target=target; player.logSkill('olzenrun',target); player.addTempSkill('olzenrun_used',['phaseZhunbeiAfter','phaseJudgeAfter','phaseDrawAfter','phaseUseAfter','phaseDiscardAfter','phaseJieshuAfter']); trigger.cancel(); player.gainPlayerCard(target,trigger.num,'he',true); } 'step 2' if(result.bool){ var cards=result.cards; var num=cards.length; event.num=num; target.chooseControl().set('choiceList',[ '摸'+get.cnNumber(num)+'张牌', '令其不能再对你发动〖险诐〗和〖谮润〗' ]).set('prompt',get.translation(player)+'对你发动了【谮润】,请选择一项').set('ai',()=>{ if(_status.event.bool) return 0; return 1; }).set('bool',get.attitude(target,player)>0||num==1&&Math.random()<0.5||num>=2); } else event.finish(); 'step 3' game.log(target,'选择了','#y'+result.control); if(result.index==0){ target.draw(num); } else{ player.markAuto('olzenrun',[target]); } }, subSkill:{ used:{ charlotte:true, } } }, //罗宪 oldaili:{ audio:2, trigger:{global:'phaseEnd'}, filter:function(event,player){ return player.countCards('h',card=>{ return card.hasGaintag('oldaili_tag'); })%2==0; }, group:'oldaili_record', locked:false, check:function(event,player){ if(get.distance(event.player,player,'absolute')==1&&!player.isTurnedOver()) return false; return true; }, content:function(){ player.turnOver(); player.draw(3,'visible').gaintag=['oldaili_tag']; }, mod:{ aiValue:function(player,card,num){ if(get.itemtype(card)!='card'||!card.hasGaintag('oldaili_tag')) return; if(get.distance(_status.currentPhase,player,'absolute')==1&&!player.isTurnedOver()) return; if(player.countCards('h',card=>{ return card.hasGaintag('oldaili_tag'); })%2==0&&!ui.selected.cards.some(card=>{ return card.hasGaintag('oldaili_tag'); })){ return num/10; } }, aiUseful:function(){ return lib.skill.oldaili.mod.aiValue.apply(this,arguments); }, }, mark:true, marktext:'砺', intro:{ markcount:function(storage,player){ return player.countCards('h',card=>card.hasGaintag('oldaili_tag')); }, mark:function(dialog,content,player){ var cards=player.getCards('h',card=>card.hasGaintag('oldaili_tag')); if(cards.length){ dialog.addAuto(cards); } else return '无展示牌'; }, }, subSkill:{ record:{ trigger:{player:'showCardsEnd'}, forced:true, charlotte:true, popup:false, firstDo:true, content:function(){ game.broadcastAll(function(cards){ cards.forEach(card=>card.addGaintag('oldaili_tag')); },trigger.cards); } }, } }, //胡班 olhuiyun:{ audio:2, enable:'phaseUse', viewAs:{ name:'huogong', storage:{olhuiyun:true}, }, filterCard:true, position:'hes', onuse:function(links,player){ player.addTempSkill('olhuiyun_after'); player.addTempSkill('olhuiyun_record'); }, ai:{ effect:{ player:function(card,player,target){ if(get.attitude(player,target)>0&&card&&card.name=='huogong'&&card.storage&&card.storage.olhuiyun&&!player.hasSkill('olhuiyun_3')) return [0,0.5,0,0.5]; } } }, subSkill:{ after:{ audio:'olhuiyun', trigger:{global:'useCardAfter'}, charlotte:true, forced:true, direct:true, filter:function(event,player){ return event.card.name=='huogong'&&event.card.storage&&event.card.storage.olhuiyun&&event.targets.some(i=>i.isIn()); }, content:function(){ 'step 0' var choices=[]; var choiceList=[ '使用展示牌,然后重铸所有手牌', '使用一张手牌,然后重铸展示牌', '摸一张牌' ]; for(var i=1;i<=3;i++){ if(!player.hasSkill('olhuiyun_'+i)) choices.push('选项'+get.cnNumber(i,true)); else choiceList[i-1]=''+choiceList[i-1]+''; } if(!choices.length) event.finish(); else{ player.logSkill('olhuiyun_after'); player.chooseControl(choices).set('choiceList',choiceList).set('prompt','晖云:选择一项,令'+get.translation(trigger.targets)+'可以选择执行').set('ai',()=>{ return _status.event.choice; }).set('choice',function(){ if(choices.length==1) return choices[0]; var choicesx=choices.slice(); if(get.attitude(player,trigger.targets[0])>0&&choices.contains('选项三')) return '选项三'; choicesx.remove('选项三'); return choicesx.randomGet(); }()); } 'step 1' if(result.control!='cancel2'){ var index=['选项一','选项二','选项三'].indexOf(result.control)+1; event.index=index; game.log(player,'选择了','#y'+result.control); player.addTempSkill('olhuiyun_'+index,'roundStart'); event.targets=trigger.targets.slice(0); } else event.finish(); 'step 2' var target=targets.shift(); event.target=target; if(target.isIn()){ var cards=target.getCards('h',card=>card.hasGaintag('olhuiyun_tag')); if(event.index==3){ target.chooseBool('是否摸一张牌?').set('ai',()=>true); event.goto(5); } else if(event.index==1&&cards.length){ target.chooseToUse({ filterCard:function(card){ if(get.itemtype(card)!='card'||!card.hasGaintag('olhuiyun_tag')) return false; return lib.filter.filterCard.apply(this,arguments); }, prompt:'是否使用一张展示牌,然后重铸所有手牌?' }); } else if(event.index==2){ target.chooseToUse({ filterCard:function(card){ if(get.itemtype(card)!='card'||get.position(card)!='h'&&get.position(card)!='s') return false; return lib.filter.filterCard.apply(this,arguments); }, prompt:'是否使用一张手牌,然后重铸展示牌?' }); event.goto(4); } else event.goto(6); } else event.goto(6); 'step 3' if(result.bool){ var hs=target.getCards('h',lib.filter.cardRecastable); if(hs.length){ target.recast(hs); } } event.goto(6); 'step 4' if(result.bool){ var hs=target.getCards('h',card=>{ if(!card.hasGaintag('olhuiyun_tag')) return false; return target.canRecast(card); }); if(hs.length){ target.recast(hs); } } event.goto(6); 'step 5' if(result.bool){ target.draw(); } 'step 6' if(targets.length) event.goto(2); } }, record:{ trigger:{global:'showCardsEnd'}, forced:true, charlotte:true, popup:false, firstDo:true, filter:function(event,player){ if(event.getParent().name!='huogong') return false; var card=event.getParent(2).card; if(card&&card.storage&&card.storage.olhuiyun) return true; return false; }, content:function(){ game.broadcastAll(function(cards){ cards.forEach(card=>card.addGaintag('olhuiyun_tag')); },trigger.cards); } }, 1:{charlotte:true}, 2:{charlotte:true}, 3:{charlotte:true}, } }, //王瓘 olmiuyan:{ audio:2, enable:'chooseToUse', viewAsFilter:function(player){ return !player.hasSkill('olmiuyan_blocker')&&player.hasCard(card=>get.color(card)=='black','hes') }, viewAs:{name:'huogong'}, filterCard:{color:'black'}, position:'hes', check:function(card){ var player=_status.event.player,suits=lib.suit.slice(0); if(player.countCards('h')>4&&player.hasCard(function(card){ suits.remove(get.suit(card)); return suits.length==0; },'h')) return 8-get.value(card); return 4-get.value(card); }, promptfunc:function(){ if(_status.event.player.storage.olmiuyan) return '转换技。你可以将一张黑色牌当做【火攻】使用。若此牌未造成伤害,则你令此技能失效直到本轮结束。'; return '转换技。你可以将一张黑色牌当做【火攻】使用。若此牌造成了伤害,则你获得此阶段内所有被展示过的牌。'; }, precontent:function(){ player.changeZhuanhuanji('olmiuyan'); var card=event.result.card; if(!card.storage) card.storage={}; if(player.storage.olmiuyan){ card.storage.olmiuyan_gain=true; player.addTempSkill('olmiuyan_gain'); } else{ card.storage.olmiuyan_remove=true; player.addTempSkill('olmiuyan_remove'); } }, init:function(player){ player.addSkill('olmiuyan_counter'); }, onremove:function(player){ player.removeSkill('olmiuyan_counter'); }, zhuanhuanji:true, mark:true, marktext:'☯', ai:{ order:function(item,player){ if(player.storage.olmiuyan) return 1; return 8; }, }, intro:{ content:function(storage){ if(storage) return '转换技。你可以将一张黑色牌当做【火攻】使用。然后若此牌未造成伤害,则你令此技能失效直到本轮结束。'; return '转换技。你可以将一张黑色牌当做【火攻】使用。然后若此牌造成了伤害,则你获得此阶段内所有被展示过的牌。'; }, }, subSkill:{ counter:{ trigger:{global:['showCardsEnd','phaseZhunbeiBefore','phaseJudgeBefore','phaseDrawBefore','phaseUseBefore','phaseDiscardBefore','phaseJieshuBefore']}, forced:true, charlotte:true, popup:false, firstDo:true, filter:function(event,player){ if(event.name=='showCards') return get.itemtype(event.cards)=='cards'; return true; }, content:function(){ if(trigger.name=='showCards'){ game.broadcastAll(function(cards){ cards.forEach(card=>card.addGaintag('olmiuyan_tag')); },trigger.cards); } else game.players.forEach(current=>current.removeGaintag('olmiuyan_tag')); }, }, gain:{ trigger:{player:'useCardAfter'}, forced:true, charlotte:true, filter:function(event,player){ return event.card.storage&&event.card.storage.olmiuyan_gain&&player.hasHistory('sourceDamage',function(evt){ return evt.card==event.card; })&&game.hasPlayer(function(current){ return current!=player&¤t.hasCard(card=>card.hasGaintag('olmiuyan_tag')) }); }, logTarget:function(event,player){ return game.filterPlayer(function(current){ return current!=player&¤t.hasCard(card=>card.hasGaintag('olmiuyan_tag')) }); }, content:function(){ var cards=[],players=game.filterPlayer(current=>current!=player).sortBySeat(); players.forEach(current=>{ var cardsx=current.getCards('h',function(card){ return card.hasGaintag('olmiuyan_tag'); }); if(cardsx.length) cards.addArray(cardsx); }); player.gain(cards,'give'); }, }, remove:{ trigger:{player:'useCardAfter'}, forced:true, charlotte:true, filter:function(event,player){ return event.card.storage&&event.card.storage.olmiuyan_remove&&!player.hasHistory('sourceDamage',function(evt){ return evt.card==event.card; }); }, content:function(){ player.addTempSkill('olmiuyan_blocker','roundStart'); game.log(player,'的','#g【谬焰】','失效了'); }, }, blocker:{charlotte:true}, }, }, olshilu:{ audio:2, trigger:{player:'damageEnd'}, forced:true, filter:function(event,player){ return player.hp>0; }, content:function(){ 'step 0' player.draw(Math.min(5,player.hp)); 'step 1' var targets=game.filterPlayer(current=>current!=player&¤t.countCards('h')>0&&player.inRange(current)); if(targets.length>0){ if(targets.length==1) event._result={bool:true,targets:targets} else player.chooseTarget(true,'请选择一名攻击范围内的角色','然后你选择该角色的一张手牌,令此牌视为【杀】',function(card,player,target){ return target!=player&&target.countCards('h')>0&&player.inRange(target); }).set('ai',function(target){ return -get.attitude(_status.event.player,target); }); } else event.finish(); 'step 2' if(result.bool){ var target=result.targets[0]; event.target=target; player.line(target,'green'); player.choosePlayerCard(target,true,'h'); } 'step 3' if(result.bool){ target.addSkill('olshilu_viewas'); target.showCards(result.cards); target.addGaintag(result.cards,'olshilu'); } }, ai:{ maixie:true, }, subSkill:{ viewas:{ mod:{ cardname:function(card){ if(get.itemtype(card)=='card'&&card.hasGaintag('olshilu')) return 'sha'; }, }, charlotte:true, }, }, }, //张翼 oldianjun:{ audio:2, trigger:{player:'phaseEnd'}, forced:true, content:function(){ 'step 0' player.damage('nosource'); 'step 1' var next=player.phaseUse(); event.next.remove(next); trigger.next.push(next); }, }, olkangrui:{ audio:2, trigger:{global:'damageEnd'}, filter:function(event,player){ return event.player==_status.currentPhase&&event.player.getHistory('damage').indexOf(event)==0; }, direct:true, global:'olkangrui_ai', content:function(){ 'step 0' player.chooseControl('cancel2').set('choiceList',[ '令'+get.translation(trigger.player)+'回复1点体力,且造成伤害时本回合手牌上限为0', '令'+get.translation(trigger.player)+'于本回合下次造成的伤害+1,且造成伤害时本回合手牌上限为0', ]).set('prompt',get.prompt('olkangrui',trigger.player)).set('ai',()=>{ return _status.event.choice; }).set('choice',function(){ if(get.attitude(player,trigger.player)<=0) return 'cancel2'; if(!trigger.player.isDamaged()) return '选项二'; var list=[]; if(trigger.player.hp+trigger.player.countCards('hs','tao')<=2) list.push('选项一'); if(trigger.player.hasCard(card=>{ if(!get.tag(card,'damage')) return false; if(game.hasPlayer(current=>{ return get.effect(current,card,trigger.player,player)>0&&trigger.player.canUse(card,current)&& !current.hasSkillTag('filterDamage',null,{ player:trigger.player, card:card }); },'hs')){ return true; } })) list.push('选项二'); if(list.length) return list.randomGet(); return '选项一'; }()); 'step 1' if(result.control!='cancel2'){ player.logSkill('olkangrui',trigger.player); player.draw(); if(result.index==0){ trigger.player.recover(); trigger.player.addTempSkill('olkangrui_nil'); } else{ trigger.player.addTempSkill('olkangrui_add'); trigger.player.addMark('olkangrui_add',1,false); } } }, ai:{ expose:0.2, threaten:1.5, }, subSkill:{ add:{ trigger:{source:'damageBegin1'}, charlotte:true, forced:true, onremove:['olkangrui_add','olkangrui_nil'], filter:function(event,player){ return player.hasMark('olkangrui_add'); }, content:function(){ trigger.num+=player.countMark('olkangrui_add'); player.removeMark('olkangrui_add',player.countMark('olkangrui_add'),false); player.storage.olkangrui_nil=true; game.log(player,'本回合手牌上限基数为','#g0'); }, mod:{ maxHandcardBase:function(player,num){ if(player.storage.olkangrui_nil) return 0; }, } }, nil:{ trigger:{source:'damageBegin1'}, charlotte:true, forced:true, onremove:true, filter:function(event,player){ return !player.storage.olkangrui_nil; }, content:function(){ player.storage.olkangrui_nil=true; game.log(player,'本回合手牌上限基数为','#g0'); }, mod:{ maxHandcardBase:function(player,num){ if(player.storage.olkangrui_nil) return 0; }, } }, ai:{ effect:{ target:function(card,player,target){ if(target!=player||!get.tag(card,'damage')) return; var list=game.filterPlayer(current=>current.hasSkill('olkangrui')&&get.attitude(current,player)>0); var history=player.getHistory('damage'); if(!list.length||history.length!=0) return; return [1,2]; } }, } } }, //朱儁 olcuipo:{ audio:2, trigger:{player:'useCard'}, forced:true, filter:function(event,player){ return get.cardNameLength(event.card)==player.getHistory('useCard').indexOf(event)+1; }, content:function(){ var card=trigger.card; if(card.name=='sha'||get.type(card)=='trick'&&get.tag(card,'damage')>0) trigger.baseDamage++; else player.draw(); }, /* trigger:{source:'damageBegin1'}, forced:true, filter:function(event,player){ var card=event.card; if(player!=_status.currentPhase||!card||event.getParent().type!='card') return false; return get.cardNameLength(card)==player.getHistory('useCard').indexOf(event.getParent(2))+1; }, content:function(){ trigger.num++; },*/ mod:{ aiOrder:function(player,card,num){ if(typeof card=='object'&&get.cardNameLength(card)==player.getHistory('useCard').length+1) return num+10; }, } }, //马休马铁 rekenshang:{ audio:'olkenshang', enable:'chooseToUse', filterCard:true, selectCard:[2,Infinity], viewAsFilter:function(player){ return player.countCards('hes')>1; }, check:function(card){ return 0; }, position:'hes', viewAs:{ name:'sha', storage:{olkenshang:true} }, onuse:function(links,player){ player.addTempSkill('rekenshang_effect'); }, ai:{ order:1, respondSha:true, skillTagFilter:player=>player.countCards('hes')>1, }, subSkill:{ effect:{ audio:'olkenshang', trigger:{player:'useCard2'}, charlotte:true, group:'rekenshang_after', direct:true, filter:function(event,player){ return event.card.storage&&event.card.storage.olkenshang&&game.countPlayer(function(current){ return current!=player&&lib.filter.targetEnabled2(event.card,player,current)&&lib.filter.targetInRange(event.card,player,current); })>=event.cards.length; }, content:function(){ 'step 0' player.chooseTarget( trigger.cards.length, '是否更改'+get.translation(trigger.card)+'的目标?', '选择'+get.cnNumber(trigger.cards.length)+'名角色作为'+get.translation(trigger.card)+'的目标,覆盖原先存在的目标', function(card,player,target){ var evt=_status.event.getTrigger(); return target!=player&&lib.filter.targetEnabled2(evt.card,player,target)&&lib.filter.targetInRange(evt.card,player,target); }).set('ai',function(target){ var evt=_status.event.getTrigger(); return get.effect(target,evt.card,evt.player,evt.player); }); 'step 1' if(result.bool){ if(player!=event.player&&!player.isOnline()) game.delayx(); } else event.finish(); 'step 2' var targets=result.targets; player.logSkill('rekenshang_effect',targets); trigger.targets.length=0; trigger.targets.addArray(targets); game.log(targets,'成为了',trigger.card,'的新目标'); }, }, after:{ audio:'olkenshang', trigger:{player:'useCardAfter'}, forced:true, charlotte:true, filter:function(event,player){ if(event.card.name!='sha'||!event.card.storage||!event.card.storage.olkenshang) return false; var num=0; game.countPlayer2(current=>{ current.getHistory('damage',evt=>{ if(evt.card==event.card) num+=evt.num; }) }); return numcurrent!=player&&player.canUse(card,current,false)&&!player.inRange(current)); for(var target of targets){ eff+=get.effect(target,card,player,player); } delete _status._olkenshang_aiChecking; if(eff>0) return [0,eff/Math.max(0.01,get.attitude(player,player))]; }, }, }, subSkill:{ effect:{ audio:'olkenshang', trigger:{player:'useCard2'}, charlotte:true, logTarget:function(event,player){ return game.filterPlayer(current=>current!=player&&player.canUse(event.card,current,false)&&!player.inRange(current)); }, prompt2:'将此牌目标改为攻击范围外的所有其他角色', group:'olkenshang_after', check:function(event,player){ var eff1=0,eff2=0; for(var target of event.targets){ eff1+=get.effect(target,event.card,event.player,player); } var targets=game.filterPlayer(current=>current!=player&&player.canUse(event.card,current,false)&&!player.inRange(current)); for(var target of targets){ eff2+=get.effect(target,event.card,event.player,player); } return eff2>eff1; }, filter:function(event,player){ return event.card.name=='sha'&&event.card.storage&&event.card.storage.olkenshang&&event.targets.length&&game.filterPlayer(current=>current!=player&&player.canUse(event.card,current,false)&&!player.inRange(current)).length; }, content:function(){ 'step 0' trigger.targets.removeArray(trigger.targets); var targets=game.filterPlayer(current=>current!=player&&player.canUse(trigger.card,current,false)&&!player.inRange(current)); if(targets.length) trigger.targets.addArray(targets); } }, after:{ audio:'olkenshang', trigger:{player:'useCardAfter'}, forced:true, charlotte:true, filter:function(event,player){ if(event.card.name!='sha'||!event.card.storage||!event.card.storage.olkenshang) return false; var num=0; game.countPlayer2(current=>{ current.getHistory('damage',evt=>{ if(evt.card==event.card) num+=evt.num; }) }); return num>0; }, content:function(){ 'step 0' var num=0,len=trigger.cards.length; game.countPlayer2(current=>{ current.getHistory('damage',evt=>{ if(evt.card==trigger.card) num+=evt.num; }) }); if(len>num){ player.draw(num); event.finish(); } else{ var skills=player.getSkills(null,false,false).filter(skill=>{ var info=get.info(skill); if(!info||info.charlotte||get.skillInfoTranslation(skill,player).length==0) return false; return true; }); if(skills.length==1) event._result={control:skills[0]}; else player.chooseControl(skills).set('choiceList',skills.map(i=>{ return '
    【'+get.translation(lib.translate[i+'_ab']||get.translation(i).slice(0,2))+'】
    '+get.skillInfoTranslation(i,player)+'
    '; })).set('displayIndex',false).set('prompt','垦伤:选择失去一个技能').set('ai',()=>{ var choices=_status.event.controls.slice(); var negs=choices.filter(i=>{ var info=get.info(i); if(!info||!info.ai) return false; return info.ai.neg||info.ai.halfneg; }); if(negs.length) return negs.randomGet(); if(choices.contains('mashu')) return 'mashu'; return choices.randomGet(); }); } 'step 1' player.removeSkill(result.control); player.popup(result.control); game.log(player,'失去了技能','#g【'+get.translation(result.control)+'】'); } } }, }, //董荼那 oljianman:{ audio:2, trigger:{global:'phaseEnd'}, forced:true, direct:true, filter:function(event,player){ var history=game.getGlobalHistory('useCard',evt=>{ return get.type(evt.card)=='basic'; }); if(history.length<2) return false; var users=history.slice(0,2).map(i=>i.player); var list=users.filter(user=>user==player); if(list.length==1){ var target=users.filter(user=>user!=player)[0]; return target&&target.isIn()&&target.countDiscardableCards(player,'he'); } if(list.length==2){ return history.slice(0,2).some(evt=>{ var card=evt.card; return player.hasUseTarget({name:card.name,nature:card.nature,isCard:true}); }); } return false; }, content:function(){ 'step 0' var history=game.getGlobalHistory('useCard',evt=>{ return get.type(evt.card)=='basic'; }); var list=history.slice(0,2).map(i=>i.player).filter(user=>user==player); if(list.length==1) { var users=history.slice(0,2).map(i=>i.player); var target=users.filter(user=>user!=player)[0]; player.logSkill('oljianman',target); player.discardPlayerCard(target,'he',true); event.finish(); } else if(list.length==2){ var evts=history.slice(0,2); var vcard=[]; for(var evt of evts){ var card=evt.card; if(vcard.length&&vcard[0][2]==card.name&&vcard[0][3]==card.nature) continue; if(player.hasUseTarget({name:card.name,nature:card.nature,isCard:true})){ vcard.push(['基本','',card.name,card.nature]); } } if(vcard.length==1) event._result={bool:true,links:[vcard[0]]}; else{ player.chooseButton(['鹣蛮:视为使用其中一张牌',[vcard,'vcard']]).set('ai',function(button){ return _status.event.player.getUseValue({name:button.link[2],nature:button.link[3]}); }); } } else event.finish(); 'step 1' if(result.bool){ var card={name:result.links[0][2],nature:result.links[0][3],isCard:true}; player.chooseUseTarget(card,true).set('logSkill','oljianman').set('prompt','鹣蛮:选择'+get.translation(card)+'的目标'); } } }, //张华 olbihun:{ audio:2, trigger:{player:'useCardToPlayer'}, forced:true, filter:function(event,player){ return event.isFirstTarget&&player.countCards('h')>player.getHandcardLimit()&&event.targets.some(target=>target!=player); }, //group:'olbihun_give', content:function(){ if(trigger.targets.length==1){ var cards=trigger.cards.filterInD(); if(cards.length){ game.delayx(); trigger.targets[0].gain(cards,'gain2'); } } var targets=trigger.targets.filter(target=>target!=player); trigger.targets.removeArray(targets); trigger.getParent().triggeredTargets1.removeArray(targets); }, ai:{ threaten:0.8, halfneg:true, effect:{ player:function(card,player,target){ if((!card.isCard||!card.cards)&&get.itemtype(card)!='card') return; if(target&&player!=target&&player.countCards('h')>player.getHandcardLimit()) return [0,0,0,0.5]; }, }, }, /*subSkill:{ give:{ trigger:{player:'useCardAfter'}, filter:function(event,player){ return event._olbihun&&event._olbihun.isIn()&&event.cards.filterInD().length; }, forced:true, popup:false, content:function(){ trigger._olbihun.gain(trigger.cards.filterInD(),'gain2'); } } }*/ }, olchuanwu:{ audio:2, trigger:{ player:'damageEnd', source:'damageSource', }, forced:true, filter:function(event,player){ return player.getAttackRange()>0; }, content:function(){ var skills=game.filterSkills(player.getStockSkills(true,true),player); var num=Math.min(player.getAttackRange(),skills.length); skills=skills.slice(0,num); player.disableSkill('olchuanwu',skills); player.addTempSkill('olchuanwu_restore'); var str=''; for(var i of skills){ str+='【'+get.translation(i)+'】、'; player.popup(i); } str=str.slice(0,-1); game.log(player,'的技能','#g'+str,'失效了'); player.draw(num); }, subSkill:{ restore:{ charlotte:true, forced:true, popup:false, onremove:function(player){ player.enableSkill('olchuanwu'); game.log(player,'恢复了技能'); } } } }, oljianhe:{ audio:2, enable:'phaseUse', filterTarget:function(card,player,target){ return !player.getStorage('oljianhe_chosen').contains(target); }, filterCard:function(card,player){ if(ui.selected.cards.length){ var cardx=ui.selected.cards[0]; if(get.type(cardx)=='equip') return get.type(card)=='equip'; return get.name(card)==get.name(cardx); } var cards=player.getCards('he'); for(var cardx of cards){ if(card!=cardx){ if(get.type(cardx)=='equip'&&get.type(card)=='equip') return true; if(get.name(card)==get.name(cardx)) return true; } } return false; }, selectCard:[2,Infinity], position:'he', complexCard:true, discard:false, visible:true, prepare:'throw', loseTo:'discardPile', delay:0.5, check:function(card){ if(get.type(card)=='equip') return 15-get.value(card); return 7-get.value(card); }, content:function(){ 'step 0' player.draw(cards.length); player.addTempSkill('oljianhe_chosen','phaseUseAfter'); player.markAuto('oljianhe_chosen',[target]); 'step 1' var type=get.type2(cards[0]); target.chooseCard(get.translation(player)+'对你发动了【剑合】','请重铸'+get.cnNumber(cards.length)+'张'+get.translation(type)+'牌,或点“取消”受到1点雷电伤害',cards.length,'he',(card,player)=>{ return get.type2(card)==_status.event.type&&player.canRecast(card); }).set('ai',card=>{ if(_status.event.goon) return (get.type(card)=='equip'?15:7)-get.value(card); return 0; }).set('type',type).set('goon',get.damageEffect(target,player,target,'thunder')<0); 'step 2' if(result.bool){ target.recast(result.cards); } else{ target.damage(player,'thunder'); } 'step 3' game.delayx(); }, ai:{ order:function(item,player){ if(player.hasSkill('olbihun')&&player.countCards('h')>player.getHandcardLimit()) return 11; return 4; }, threaten:2.4, expose:0.1, result:{ target:function(player,target){ var cards=ui.selected.cards,type=get.type2(cards[0]); if(target.countCards('he',card=>{ return get.type(card)==type&&get.value(card)<=5; })>=cards.length) return 1; return -1; } } }, subSkill:{ chosen:{ charlotte:true, onremove:true, intro:{content:'本阶段已对$发动过技能'}, } } }, //屈晃 olqiejian:{ audio:2, trigger:{ global:['loseAfter','equipAfter','addJudgeAfter','gainAfter','loseAsyncAfter','addToExpansionAfter'], }, direct:true, filter:function(event,player){ return game.hasPlayer(current=>{ if(current.countCards('h')) return false; var evt=event.getl(current); return evt&&evt.hs&&evt.hs.length&&!player.getStorage('olqiejian_ban').contains(current); }); }, content:function(){ 'step 0' event.targets=game.filterPlayer(current=>{ if(current.countCards('h')) return false; var evt=trigger.getl(current); return evt&&evt.hs&&evt.hs.length&&!player.getStorage('olqiejian_ban').contains(current); }).sortBySeat(_status.currentPhase); 'step 1' var target=targets.shift(); event.target=target; if(target.isIn()){ player.chooseBool(get.prompt2('olqiejian',target)).set('ai',()=>{ return _status.event.bool; }).set('bool',get.attitude(player,target)>0||target.hasCard(card=>{ return get.value(card,target)*get.sgnAttitude(player,target)<-6; },'ej')); } else event.goto(5); 'step 2' if(result.bool){ player.logSkill('olqiejian',target); player.draw('nodelay'); target.draw(); } else event.goto(5); 'step 3' player.chooseTarget('切谏:选择一名角色','弃置你或其场上的一张牌;或点击“取消”令你于本轮不能再对其发动此技能',(card,player,target)=>{ return (target==player||target==_status.event.getParent().target)&&target.countDiscardableCards(player,'ej')>0; }).set('ai',target=>{ var sign=get.sgnAttitude(_status.event.player,target); return 6-target.getCards('ej').map(i=>{ var val=0; if(get.position(i)=='e') val=get.value(i,target); else{ val=get.effect(player,{ name:i.viewAs||i.name, cards:[i], },target,target); } return sign*val; }).sort((a,b)=>a-b)[0]; }); 'step 4' if(result.bool){ var targetx=result.targets[0]; player.discardPlayerCard(targetx,'ej',true); } else{ player.addTempSkill('olqiejian_ban','roundStart'); player.markAuto('olqiejian_ban',[target]); } 'step 5' if(targets.length) event.goto(1); }, subSkill:{ ban:{ onremove:true, charlotte:true, intro:{ content:'本轮不能再对$发动〖切谏〗' } } } }, olnishou:{ audio:2, trigger:{ player:'loseAfter', global:['loseAsyncAfter','equipAfter'], }, forced:true, filter:function(event,player){ var phaseName; for(var name of lib.phaseName){ var evt=event.getParent(name); if(!evt||evt.name!=name) continue; phaseName=name; } var cards=event.getd(player,'es'); return cards.length&&(cards.some(card=>{ if(get.position(card,true)!='d') return false; return player.hasUseTarget(get.autoViewAs({name:'shandian'},[card])); })||phaseName&&!player.hasSkill('olnishou_swap')); }, direct:true, content:function(){ 'step 0' var cards=trigger.getd(player,'es'); var choices=[]; var choiceList=[ '将'+(cards.length?get.translation(cards[0]):'这些牌中第一张能当【闪电】对你使用的牌')+'当【闪电】使用', '本阶段结束时,你与一名手牌数最少的角色交换手牌' ]; cards=cards.filter(card=>{ if(get.position(card,true)!='d') return false; return player.hasUseTarget(get.autoViewAs({name:'shandian'},[card])); }); event.cards=cards; var phaseName; for(var name of lib.phaseName){ var evt=trigger.getParent(name); if(!evt||evt.name!=name) continue; phaseName=name; } if(cards.length) choices.push('选项一'); else choiceList[0]=''+choiceList[0]+''; if(phaseName&&!player.hasSkill('olnishou_swap')) choices.push('选项二'); else choiceList[1]=''+choiceList[1]+''; event.phaseName=phaseName; if(!choices.length) event.finish(); else player.chooseControl(choices).set('choiceList',choiceList).set('prompt','泥首:选择一项').set('ai',()=>0); 'step 1' player.logSkill('olnishou'); game.log(player,'选择了','#y'+result.control); if(result.control=='选项一'){ var card=cards[0]; player.chooseUseTarget({name:'shandian'},[card],true); } else{ var name=event.phaseName; player.storage.olnishou_swap=name; player.addTempSkill('olnishou_swap',name+'After'); } }, subSkill:{ swap:{ audio:'olnishou', charlotte:true, forced:true, direct:true, onremove:true, trigger:{global:['phaseZhunbeiEnd','phaseJudgeEnd','phaseDrawEnd','phaseUseEnd','phaseDiscardEnd','phaseJieshuEnd']}, content:function(){ 'step 0' if(trigger.name!=player.storage.olnishou_swap||!event.player.isIn()){ player.removeSkill('olnishou_swap'); event.finish(); return; } player.chooseTarget('泥首:与一名手牌数最少的角色交换手牌',true,(card,player,target)=>{ return target.isMinHandcard(); }); 'step 1' if(result.bool){ var target=result.targets[0]; player.logSkill('olnishou_swap',target); if(target!=player){ player.swapHandcards(target); } } 'step 2' player.removeSkill('olnishou_swap'); } } } }, //马承 olchenglie:{ audio:2, trigger:{player:'useCard2'}, filter:function(event,player){ if(event.card.name!='sha') return false; return game.hasPlayer(function(current){ return !event.targets.contains(current)&&player.canUse(event.card,current); }); }, direct:true, shaRelated:true, content:function(){ 'step 0' player.chooseTarget(get.prompt('olchenglie'),'为'+get.translation(trigger.card)+'多指定至多两个目标,并发动后续效果',[1,2],(card,player,target)=>{ var evt=_status.event.getTrigger(); return !evt.targets.contains(target)&&player.canUse(evt.card,target); }).set('ai',function(target){ var player=_status.event.player,evt=_status.event.getTrigger(); return get.effect(target,evt.card,player,player); }); 'step 1' if(result.bool){ if(!event.isMine()&&!event.isOnline()) game.delayx(); event.targets=result.targets; } else event.finish(); 'step 2' player.logSkill('olchenglie',targets); trigger.targets.addArray(targets); var targets=trigger.targets; event.targets=targets; event.given=[]; var cards=get.cards(targets.length); event.cards=cards.slice(); player.showCards(event.cards,get.translation(player)+'发动了【骋烈】'); while(cards.length) ui.cardPile.insertBefore(cards.pop().fix(),ui.cardPile.firstChild); 'step 3' game.updateRoundNumber(); var hs=player.getCards('h'); var next=player.chooseToMove('骋烈:是否交换一张牌?'); next.set('list',[ ['〖骋烈〗展示',event.cards,'olchenglie'], ['你的手牌',hs], ]); next.set('filterMove',function(from,to,moved){ if(typeof to=='number') return false; var player=_status.event.player; var hs=player.getCards('h'); var changed=hs.filter(function(card){ return !moved[1].contains(card); }); var changed2=moved[1].filter(function(card){ return !hs.contains(card); }); if(changed.length<1) return true; var pos1=(moved[0].contains(from.link)?0:1),pos2=(moved[0].contains(to.link)?0:1); if(pos1==pos2) return true; if(pos1==0){ if(changed.contains(from.link)) return true; return changed2.contains(to.link); } if(changed2.contains(from.link)) return true; return changed.contains(to.link); }); next.set('processAI',function(list){ var cards1=list[0][1].slice(),cards2=list[1][1].slice(); var card1=cards1.sort((a,b)=>get.value(b)-get.value(a))[0]; var card2=cards2.sort((a,b)=>get.value(a)-get.value(b))[0]; if(get.value(card1)>get.value(card2)){ cards1.remove(card1); cards2.remove(card2); cards1.push(card2); cards2.push(card1); } return [cards1,cards2]; }); 'step 4' var moved=result.moved; var hs=player.getCards('h'),ts=event.cards; var card1,card2; for(var i of moved[0]){ if(!ts.contains(i)) card1=i; } for(var i of moved[1]){ if(!hs.contains(i)) card2=i; } if(card1&&card2){ player.$throw(1,1000); event.cards.forEach((i,ind,arr)=>{ if(i==card2) arr[ind]=card1; }) player.lose(card1,ui.cardPile).set('insert_index',event=>event.cardx).set('cardx',card2); player.gain(card2,'draw'); game.log(player,'交换了一张牌'); } 'step 5' game.cardsGotoOrdering(event.cards); 'step 6' if(event.cards.length==1) event._result={bool:true,links:event.cards}; else player.chooseButton(['骋烈:将这些牌置于目标角色的武将牌上',event.cards],true); game.updateRoundNumber(); 'step 7' if(result.bool){ var card=result.links[0]; event.card=card; player.chooseTarget('将'+get.translation(card)+'置于一名目标角色的武将牌上',true,(card,player,target)=>{ return _status.event.getTrigger().targets.contains(target)&&!_status.event.getParent().given.contains(target); }).set('ai',target=>{ var color=_status.event.color,player=_status.event.player; var evt=_status.event.getTrigger(); if(color=='red'){ var eff=get.effect(target,evt.card,player,target),att=get.attitude(player,target); if(eff>=0&&att<0) return -1; if(eff<0&&att<0&&target.hasCard(card=>['shan','caochuan'].contains(get.name(card)),'hs')) return 10; } return 1; }).set('color',get.color(card)); } else event.finish(); 'step 8' if(result.bool){ var target=result.targets[0]; player.line(target); event.given.push(target); target.addToExpansion(card).gaintag.add('olchenglie'); player.addTempSkill('olchenglie_effect','phaseUseAfter'); if(!trigger.card.storage) trigger.card.storage={}; trigger.card.storage.olchenglie=player; target.storage.olchenglie_viewer=player; event.cards.remove(card); var cardx=player==game.me||player.isUnderControl()?card:1; player.$give(cardx,target,false); } else event.finish(); 'step 9' if(event.cards.length) event.goto(6); else if(!event.isMine()&&!event.isOnline()) game.delayx(); }, marktext:'骋', intro:{ markcount:'expansion', mark:function(dialog,content,player){ var content=player.getExpansions('olchenglie'); if(content&&content.length){ if(game.me==player.storage.olchenglie_viewer){ dialog.addAuto(content); } else{ return '有'+get.cnNumber(content.length)+'张扣置的“骋烈”牌'; } } }, content:function(content,player){ var content=player.getExpansions('olchenglie'); if(content&&content.length){ if(game.me==player.storage.olchenglie_viewer){ return get.translation(content); } return '有'+get.cnNumber(content.length)+'张扣置的“骋烈”牌'; } } }, subSkill:{ effect:{ trigger:{global:'useCardAfter'}, forced:true, charlotte:true, forceDie:true, popup:false, filter:function(event,player){ return event.card.storage&&event.card.storage.olchenglie; }, content:function(){ 'step 0' var targets=game.filterPlayer(current=>{ var cards=current.getExpansions('olchenglie'); return cards.some(i=>get.color(i,false)=='red'); }).sortBySeat(); event.targets=targets; var togive=trigger.card.storage.olchenglie; event.togive=togive; if(!targets.length||!togive.isIn()) event.goto(3); 'step 1' var target=event.targets.shift(); event.target=target; player.line(target); if(target.hasHistory('useCard',evt=>{ return evt.respondTo&&evt.respondTo[1]==trigger.card; })){ if(target.countCards('he')) target.chooseCard('骋烈:交给'+get.translation(event.togive)+'一张牌',true,'he'); } else{ target.recover(); } 'step 2' if(result.bool){ target.give(result.cards,event.togive); } if(targets.length) event.goto(1); 'step 3' game.filterPlayer(current=>{ var cards=current.getExpansions('olchenglie'); return cards.length; }).forEach(i=>{ i.loseToDiscardpile(i.getExpansions('olchenglie')); delete i.storage.olchenglie_viewer; }); } } }, }, //新贺齐 olqizhou:{ audio:'qizhou', trigger:{ player:'loseAfter', global:['equipAfter','addJudgeAfter','gainAfter','loseAsyncAfter','addToExpansionAfter','phaseBefore'], }, forced:true, onremove:true, filter:function(event,player){ if(event.name!='phase'&&(event.name!='equip'||event.player!=player)){ var evt=event.getl(player); if(!evt||!evt.es||!evt.es.length) return false; } var num=player.countMark('olqizhou'); return lib.skill.olqizhou.getSuitNum(player)!=num; }, content:function(){ lib.skill.olqizhou.applyChange(player); }, getSuitNum:function(player){ var suits=[],es=player.getCards('e'); for(var i of es) suits.add(get.suit(i,player)); return Math.min(4,suits.length); }, applyChange:function(player){ player.removeAdditionalSkill('olqizhou'); var num=lib.skill.olqizhou.getSuitNum(player); player.storage.olqizhou=num; if(num>0) player.addAdditionalSkill('olqizhou',lib.skill.olqizhou.derivation.slice(0,num)); }, derivation:['reduanbing','reyingzi','fenwei','lanjiang'], }, olshanxi:{ audio:'shanxi', enable:'phaseUse', usable:1, filter:function(event,player){ return player.countCards('e')<5&&game.hasPlayer((current)=>lib.skill.olshanxi.filterTarget(null,player,current)); }, filterTarget:function(card,player,target){ return (target!=player&&player.countCards('h')+target.countCards('h')>0&&!player.inRangeOf(target)); }, content:function(){ 'step 0' var cards1=player.getCards('h'),cards2=target.getCards('h'); var num=5-player.countCards('e'); var dialog=['闪袭:选择展示至多'+get.cnNumber(num)+'张牌']; if(cards1.length>0){ dialog.push('
    你的手牌
    '); dialog.push(cards1); } if(cards2.length>0){ dialog.push('
    '+get.translation(target)+'的手牌
    '); if(player.hasSkillTag('viewHandcard',null,target,true)) dialog.push(cards2); else dialog.push([cards2.randomSort(),'blank']); } player.chooseButton(dialog,[1,num],true).set('ai',function(button){ var player=_status.event.player,target=_status.event.getParent().target; var card=button.link,cards=ui.selected.buttons.map(button=>button.link); var hs=player.getCards('h'),discard=false; for(var i of cards){ if(hs.contains(i)){ discard=true; break; } } if(hs.contains(card)){ if(discard||get.name(card)!='shan') return 0; if(target.hasCard(card=>get.value(card,target)>5,'e')) return 2; return 0; } if(discard&&!target.hasCard(function(cardx){ return cardx!=card&&!cards.contains(cardx)&&get.value(cardx,target)>0; },'he')) return 0; return 1+Math.random(); }); 'step 1' if(result.bool){ event.cards=result.links; var list1=[],list2=[]; var hs=player.getCards('h'); for(var card of result.links){ if(hs.contains(card)){ list1.push(card); } else{ list2.push(card); } } event.list1=list1; event.list2=list2; event.videoId=lib.status.videoId++; game.broadcastAll(function(player,target,list1,list2,id){ var dialog=ui.create.dialog(player+'对'+target+'发动了【闪袭】'); dialog.videoId=id; if(list1.length>0){ dialog.add('
    '+player+'展示的牌
    '); dialog.add(list1); } if(list2.length>0){ dialog.add('
    '+target+'被展示的牌
    '); dialog.add(list2); } },get.translation(player),get.translation(target),list1,list2,event.videoId) game.delay(4); } else event.finish(); 'step 2' game.broadcastAll('closeDialog',event.videoId); var list1=event.list1.filter((card)=>get.name(card,player)=='shan'); var list2=event.list2.filter((card)=>get.name(card,target)=='shan'); if(list1.length&&list2.length){ game.loseAsync({ lose_list:[ [player,list1], [target,list2] ], discarder:player, }).setContent('discardMultiple'); } else if(list2.length){ target.discard(list2); } else if(list1.length) player.discard(list1); else event.finish(); 'step 3' if(target.hasCard(function(card){ return !cards.contains(card)&&lib.filter.canBeGained(card,player,target); },'he')) player.gainPlayerCard(target,true,'he').set('filterButton',function(button){ return !_status.event.cards.contains(button.link); }).set('cards',cards); }, ai:{ order:14, result:{ target:function(player,target){ return -target.countCards('h'); }, }, }, }, //刘巴 oltongduo:{ audio:2, trigger:{player:'phaseZhunbeiBegin'}, direct:true, content:function(){ 'step 0' player.chooseTarget(get.prompt2('oltongduo'),function(card,player,target){ return target!=player&&target.countCards('h')>0; }).set('ai',function(target){ var att=get.attitude(_status.event.player,target); if(att>0) return Math.sqrt(att)/10; return 5-att; }); 'step 1' if(result.bool){ var target=result.targets[0]; event.target=target; player.logSkill('oltongduo',target); target.chooseCard('h',true,'统度:将一张手牌交给'+get.translation(player)+',然后其于此阶段结束时将此牌置于牌堆顶'); } else{ event.finish(); } 'step 2' if(result.bool){ player.addTempSkill('oltongduo_put'); event.target.give(result.cards,player,true).gaintag.add('oltongduo'); } }, subSkill:{ put:{ trigger:{player:'phaseUseEnd'}, charlotte:true, forced:true, filter:function(event,player){ return player.hasCard(card=>card.hasGaintag('oltongduo'),'h'); }, content:function(){ var cards=player.getCards('h',card=>card.hasGaintag('oltongduo')); player.lose(cards,ui.cardPile,'insert'); game.log(player,'将',get.cnNumber(cards.length)+'张牌','置于牌堆顶'); game.broadcastAll(function(player){ var cardx=ui.create.card(); cardx.classList.add('infohidden'); cardx.classList.add('infoflip'); player.$throw(cardx,1000,'nobroadcast'); },player); }, onremove:function(player){ player.removeGaintag('oltongduo'); }, } } }, olzhubi:{ audio:2, enable:'phaseUse', group:'olzhubi_replace', filter:function(event,player){ return (player.getStat('skill').olzhubi||0)0; }, content:function(){ 'step 0' target.chooseCard('he',true,'铸币:请重铸一张牌',lib.filter.cardRecastable); 'step 1' if(result.bool){ target.recast(result.cards,null,player=>player.draw().set('log',false).gaintag=['olzhubi_tag']); } }, ai:{ order:6, result:{ target:function(player,target){ if(target.hasCard(card=>card.hasGaintag('olzhubi_tag'),'h')) return 0.5; return 1; } } }, subSkill:{ replace:{ trigger:{global:'phaseJieshuBegin'}, filter:function(event,player){ return event.player.hasCard(card=>card.hasGaintag('olzhubi_tag'),'h'); }, forced:true, locked:false, logTarget:'player', content:function(){ 'step 0' var cards=get.bottomCards(5); event.cards2=cards; game.cardsGotoOrdering(cards); var player=trigger.player; var next=player.chooseToMove('铸币:用任意“币”交换牌堆底等量张牌'); var hs=player.getCards('h',card=>card.hasGaintag('olzhubi_tag')); next.set('filterMove',function(from,to){ return typeof to!='number'; }); next.set('list',[ ['牌堆底',cards], ['你的手牌',hs,'olzhubi_tag'] ]); next.set('processAI',function(list){ var all=list[0][1].concat(list[1][1]),cards=all.slice(0); var num=_status.event.num; cards.sort(function(a,b){ return get.value(b)-get.value(a); }); return [cards.slice(num),cards.slice(0,num)]; }); next.set('num',hs.length); 'step 1' if(result.bool){ event.forceDie=true; var cards=result.moved[0]; event.cards=cards; var player=trigger.player; var hs=player.getCards('h'); var lose=[],gain=event.cards2; for(var i of cards){ if(hs.contains(i)) lose.push(i); else gain.remove(i); } if(lose.length) player.lose(lose,ui.cardPile); if(gain.length) player.gain(gain,'draw'); } else event.finish(); 'step 2' for(var i of cards){ if(!(('hejsdx').includes(get.position(i,true)))){ i.fix(); ui.cardPile.appendChild(i); } } game.updateRoundNumber(); } }, } }, //傅肜 olxiaosi:{ audio:2, enable:'phaseUse', usable:1, filterTarget:function(card,player,target){ return target.countCards('h')>0&&player!=target; }, filterCard:function(card,player,target){ return get.type(card)=='basic'; }, check:function(card){ var player=_status.event.player; if(player.hasValueTarget(card)) return 10-get.value(card); return 0.1; }, content:function(){ 'step 0' if(target.countCards('h',card=>{ return get.type(card)=='basic'&&lib.filter.cardDiscardable(card,target,'olxiaosi'); })==0) event.draw=true; else{ target.chooseToDiscard('h',true,'效死:弃置一张基本牌',{type:'basic'}); } 'step 1' var cards2=cards.slice(0); if(result.bool){ cards2=cards2.addArray(result.cards); } event.cards2=cards2; 'step 2' var cardsx=event.cards2.filter(i=>get.position(i,true)=='d'&&player.hasUseTarget(i,false)); if(!cardsx.length) event.goto(5); else player.chooseButton(['效死:是否使用其中的一张牌?',cardsx]).set('filterButton',button=>{ return _status.event.player.hasUseTarget(button.link,false); }).set('ai',button=>{ if(button.link.name=='jiu') return 10; return _status.event.player.getUseValue(button.link); }); 'step 3' if(result.bool){ var card=result.links[0]; event.cards2.remove(card); player.$gain2(card,false); game.delayx(); player.chooseUseTarget(true,card,false,'nodistance'); } else event.goto(5); 'step 4' if(event.cards2.filter(i=>get.position(i,true)=='d'&&player.hasUseTarget(i,false)).length) event.goto(2); 'step 5' if(event.draw) player.draw(); }, ai:{ order:4.5, result:{ player:1, target:-1 } } }, //阿会喃 jueman:{ audio:2, trigger:{global:'phaseEnd'}, forced:true, direct:true, filter:function(event,player){ var history=game.getGlobalHistory('useCard',evt=>{ return get.type(evt.card)=='basic'; }); if(history.length<2) return false; var users=history.slice(0,2).map(i=>i.player); var list=users.filter(user=>user==player); if(list.length==1) return true; if(list.length==0){ var evtx=history[2]; if(evtx){ var name=evtx.card.name,nature=evtx.card.nature; if(evtx&&player.hasUseTarget({name:name,nature:nature,isCard:true})) return true; } } return false; }, content:function(){ 'step 0' var history=game.getGlobalHistory('useCard',evt=>{ return get.type(evt.card)=='basic'; }); var list=history.slice(0,2).map(i=>i.player).filter(user=>user==player); if(list.length==1) { player.logSkill('jueman'); player.draw(); } else if(list.length==0){ var evtx=history[2],name=evtx.card.name,nature=evtx.card.nature; player.chooseUseTarget({name:name,nature:nature,isCard:true},true).set('logSkill','jueman'); } } }, //张芝 olbixin:{ audio:2, trigger:{ global:['phaseZhunbeiBegin','phaseJieshuBegin'], }, direct:true, onremove:['olbixin','olbixin_basic','olbixin_trick','olbixin_equip'], group:'olbixin_full', map:{基本:'basic',锦囊:'trick',装备:'equip'}, filter:function(event,player){ var count=player.countMark('olbixin'); if(count>0&&event.player!=player) return false; if(count>1&&event.name=='phaseZhunbei') return false; if(count>2) return false; var num=count>=3?3:1; var types=['basic','trick','equip'].filter(type=>{ return player.countMark('olbixin_'+type)0; }, getList:function(player,event){ var natures=lib.inpile_nature.slice(0),used=[]; var history=player.actionHistory; for(var i=history.length-1;i>=0;i--){ var info=history[i]; for(var evt of info.useCard){ var name=evt.card.name; if(get.type(name)!='basic') continue; if(name=='sha'){ if(evt.card.nature) natures.remove(evt.card.nature); else used.push(name); } else used.push(name); }; if(info.isRound) break; } var vcards=[]; for(var name of lib.inpile){ if(get.type(name)!='basic') continue; if(!event){ if(name=='sha'){ if(!used.contains('sha')&&player.hasUseTarget({name:'sha'})) vcards.push(['基本','','sha']); for(var nature of natures) { if(player.hasUseTarget({name:'sha',nature:nature})) vcards.push(['基本','','sha',nature]); } } else if(!used.contains(name)&&player.hasUseTarget({name:name})) vcards.push(['基本','',name]); } else{ if(name=='sha'){ if(!used.contains('sha')&&event.filterCard({name:'sha'},player,event)) vcards.push(['基本','','sha']); for(var nature of natures) { if(event.filterCard({name:'sha',nature:nature},player,event)) vcards.push(['基本','','sha',nature]); } } else if(!used.contains(name)&&event.filterCard({name:name},player,event)) vcards.push(['基本','',name]); } } return vcards; }, content:function(){ 'step 0' var types=['basic','trick','equip']; var list=lib.skill.olbixin.getList(player); if(list.length){ var dialog=['###'+get.prompt('olbixin')+'###
    摸'+get.cnNumber(player.countMark('olbixin')>=3?1:3)+'张牌,然后将所有指定类型的手牌当一张基本牌使用
    ']; dialog.push([types.map(i=>get.translation(i)),'tdnodes']); dialog.push([list,'vcard']); player.chooseButton(dialog,2).set('filterButton',button=>{ var player=_status.event.player,count=player.countMark('olbixin'),num=count>=3?3:1; var type=typeof button.link; if(ui.selected.buttons.length&&type==typeof ui.selected.buttons[0].link) return false; if(type=='string'&&player.countMark('olbixin_'+lib.skill.olbixin.map[button.link])>=num) return false; if(type!='string'&&!player.hasUseTarget({name:button.link[2],nature:button.link[3]})) return false; return true; }).set('ai',button=>{ var list=_status.event.list; var type=typeof button.link; if(type=='string') return (1.2-list.indexOf(lib.skill.olbixin.map[button.link]))*10; return _status.event.player.getUseValue({name:button.link[2],nature:button.link[3]}); }).set('list',types.map(i=>[i,player.getCards('h',{type:i}).map(i=>get.value(i)).reduce((p,c)=>p+c,0)]).sort((a,b)=>a[1]-b[1]).map(i=>i[0])); }else event.finish(); 'step 1' if(result.bool){ if(typeof result.links[0]!='string') result.links.reverse(); var type=result.links[0],name=result.links[1][2],nature=result.links[1][3]; player.logSkill('olbixin'); game.log(player,'声明了',type+'牌'); type=lib.skill.olbixin.map[type]; event.type=type; event.card={name:name,nature:nature}; player.addMark('olbixin_'+type,1,false); player.draw(player.countMark('olbixin')>=3?1:3); game.delayx(); }else event.finish(); 'step 2' if(player.hasCard(card=>get.type2(card)==event.type,'h')){ var cards=player.getCards('h',card=>get.type2(card)==event.type); var cardx=get.autoViewAs(card,cards); if(player.hasUseTarget(cardx,true,false)){ player.chooseUseTarget(cardx,cards,true,false).set('prompt','选择'+get.translation(cardx)+'('+get.translation(cards)+')的目标'); } } }, subSkill:{ full:{ enable:'chooseToUse', filter:function(event,player){ if(event.olbixin) return false; var count=player.countMark('olbixin'); if(count<=2) return false; var num=count>=3?3:1; var types=['basic','trick','equip'].filter(type=>{ return player.countMark('olbixin_'+type)0; }, prompt:'你可以声明一种牌的类型(每种类型限三次),并选择一种你本轮未使用过且有合法目标的的基本牌。你摸一张牌,然后若你有此类型的手牌,你将所有此类型的手牌当此基本牌使用。', chooseButton:{ dialog:function(event,player){ var list=lib.skill.olbixin.getList(player,event); var types=['basic','trick','equip']; return ui.create.dialog( '###笔心###
    摸一张牌,然后将所有指定类型的手牌当一张基本牌使用
    ', [types.map(i=>get.translation(i)),'tdnodes'], [list,'vcard'] ); }, filter:function(button,player){ var player=_status.event.player,count=player.countMark('olbixin'),num=count>=3?3:1; var type=typeof button.link; if(ui.selected.buttons.length&&type==typeof ui.selected.buttons[0].link) return false; if(type=='string'&&player.countMark('olbixin_'+lib.skill.olbixin.map[button.link])>=num) return false; if(type!='string'&&!_status.event.getParent().filterCard({name:button.link[2],nature:button.link[3]},player,_status.event.getParent())) return false; return true; }, select:2, check:function(button){ var types=['basic','trick','equip']; var type=typeof button.link; var player=_status.event.player; var list=types.map(i=>[i,player.getCards('h',{type:i}).map(i=>get.value(i)).reduce((p,c)=>p+c,0)]).sort((a,b)=>a[1]-b[1]).map(i=>i[0]); if(type=='string') return (1.2-list.indexOf(button.link)+Math.sqrt(3-player.countMark('olbixin_'+lib.skill.olbixin.map[button.link])))*10; if(_status.event.getParent().type!='phase') return 1; return player.getUseValue({name:button.link[2],nature:button.link[3]}); }, backup:function(links,player){ if(typeof links[0]!='string') links.reverse(); return { popname:true, position:'h', filterCard:()=>false, selectCard:-1, type:lib.skill.olbixin.map[links[0]], viewAs:{name:links[1][2],nature:links[1][3]}, precontent:function(){ 'step 0' player.logSkill('olbixin'); var type=lib.skill.olbixin_full_backup.type; game.log(player,'声明了',type,'牌'); delete event.result.skill; player.addMark('olbixin_'+type,1,false); player.draw(player.countMark('olbixin')>=3?1:3); 'step 1' var cards=player.getCards('h',card=>get.type2(card)==lib.skill.olbixin_full_backup.type); var cardsx=cards.filter(i=>game.checkMod(i,player,'unchanged','cardEnabled2',player)!==false); if(cardsx.length&&cardsx.length==cards.length){ event.result.cards=cards; game.delayx(); } else{ event.cancel(); event.getParent().set('olbixin',true); event.getParent().goto(0); } }, } }, prompt:function(links,player){ return '摸一张牌,然后将所有'+get.translation(links[0])+'牌当做'+(get.translation(links[1][3])||'')+get.translation(links[1][2])+'使用'; } }, hiddenCard:function(player,name){ var count=player.countMark('olbixin'); if(!lib.inpile.contains(name)||get.type(name)!='basic'||count<3) return false; var types=['basic','trick','equip'].filter(type=>{ return player.countMark('olbixin_'+type)<3; }); return types.length; }, ai:{ fireAttack:true, respondSha:true, respondShan:true, skillTagFilter:function(player){ var count=player.countMark('olbixin'); if(count<3) return; var types=['basic','trick','equip'].filter(type=>{ return player.countMark('olbixin_'+type)<3; }); if(types.length) return true; }, order:1, result:{ player:function(player){ if(_status.event.dying) return get.attitude(player,_status.event.dying); return 1; }, }, }, }, full_backup:{}, } }, olximo:{ audio:3, trigger:{player:'logSkill'}, derivation:'olfeibai', filter:function(event,player){ return event.skill=='olbixin'&&player.countMark('olbixin')<3; }, forced:true, content:function(){ player.addMark('olbixin',1,false); game.log(player,'删除了','#g【笔心】','描述的前五个字符'); if(player.countMark('olbixin')==3){ game.log(player,'交换了','#g【笔心】','方括号中的两个数字'); player.removeSkill('olximo'); game.log(player,'失去了技能','#g【洗墨】'); player.addSkillLog('olfeibai'); } }, ai:{ combo:'olbixin', } }, olfeibai:{ audio:2, trigger:{ source:'damageBegin1', player:'recoverBegin', }, filter:function(event,player){ var storage=player.storage.olfeibai; var evt=event.getParent(),card=event.card; if(evt.player!=player||!card) return false; if(storage&&event.name=='recover'){ return get.color(card)!='red'; } if(!storage&&event.name=='damage'){ return get.color(card)!='black'; } return false; }, content:function(){ player.changeZhuanhuanji('olfeibai'); trigger.num++; }, zhuanhuanji:true, forced:true, mark:true, marktext:'☯', intro:{ content:function(storage,player){ if(storage) return '转换技。当你因执行你使用的非红色牌的效果而回复体力时,此回复值+1。'; return '转换技。当你因执行你使用的非黑色牌的效果而造成伤害时,此伤害值+1。'; }, }, }, //新诸葛瑾 olhuanshi:{ audio:'huanshi', trigger:{global:'judge'}, filter:function(event,player){ return player.countCards('h')>0; }, logTarget:'player', prompt2:function(event,player){ var str=(get.translation(event.player)+'的'+event.judgestr+'判定为'+get.translation(event.player.judging[0])+'。你可以令其观看你的牌,其选择一张牌进行改判。'); if(!player.hasSkill('olhuanshi_mark',null,null,false)) str+='然后你可以重铸任意张牌。'; return str; }, check:function(event,player){ if(get.attitude(player,event.player)<=0) return false; var cards=player.getCards('he'); var judge=event.judge(event.player.judging[0]); for(var i=0;ijudge) return true; if(_status.currentPhase!=player&&judge2==judge&&get.color(cards[i])=='red'&&get.useful(cards[i])<5) return true; } return false; }, content:function(){ 'step 0' var target=trigger.player; var judge=trigger.judge(target.judging[0]); var attitude=get.attitude(target,player); target.choosePlayerCard('请选择代替判定的牌','he','visible',true,player).set('ai',function(button){ var card=button.link; var judge=_status.event.judge; var attitude=_status.event.attitude; var result=trigger.judge(card)-judge; var player=_status.event.player; if(result>0){ return 20+result; } if(result==0){ if(_status.currentPhase==player) return 0; if(attitude>=0){ return get.color(card)=='red'?7:0-get.value(card); } else{ return get.color(card)=='black'?10:0+get.value(card); } } if(attitude>=0){ return get.color(card)=='red'?0:-10+result; } else{ return get.color(card)=='black'?0:-10+result; } }).set('filterButton',function(button){ var player=_status.event.target; var card=button.link; var mod2=game.checkMod(card,player,'unchanged','cardEnabled2',player); if(mod2!='unchanged') return mod2; var mod=game.checkMod(card,player,'unchanged','cardRespondable',player); if(mod!='unchanged') return mod; return true; }).set('judge',judge).set('attitude',attitude); 'step 1' if(result.bool){ event.card=result.links[0]; player.respond(event.card,'highlight','noOrdering').nopopup=true; } else{ event.finish(); } 'step 2' if(result.bool){ if(trigger.player.judging[0].clone){ trigger.player.judging[0].clone.classList.remove('thrownhighlight'); game.broadcast(function(card){ if(card.clone){ card.clone.classList.remove('thrownhighlight'); } },trigger.player.judging[0]); game.addVideo('deletenode',player,get.cardsInfo([trigger.player.judging[0].clone])); } game.cardsDiscard(trigger.player.judging[0]); trigger.player.judging[0]=event.card; trigger.orderingCards.add(event.card); game.log(trigger.player,'的判定牌改为',event.card); game.delay(2); } if(!player.countCards('h')||player.hasSkill('olhuanshi_mark',null,null,false)) event.finish(); 'step 3' player.chooseCard('是否重铸任意张手牌?','操作提示:选择要重铸的牌并点击“确定”',[1,player.countCards('h')],lib.filter.cardRecastable).set('ai',function(card){ var player=_status.event.player,cards=ui.selected.cards; if(!player.hasSkill('olmingzhe')) return 5-get.value(card); for(var i of cards){ if(get.color(i,player)=='red') return 5-get.value(card); } return 7.5-get.value(card); }); 'step 4' if(result.bool){ player.addTempSkill('olhuanshi_mark'); player.recast(result.cards); } }, ai:{ rejudge:true, tag:{ rejudge:1, } }, subSkill:{mark:{charlotte:true}}, }, olhongyuan:{ audio:'hongyuan', trigger:{ player:'gainAfter', global:'loseAsyncAfter', }, direct:true, filter:function(event,player){ var cards=event.getg(player); return cards.length>=2&&!player.hasSkill('olhongyuan_blocker',null,null,false); }, content:function(){ 'step 0' var max=Math.min(2,game.countPlayer()-1,player.countCards('he')); player.chooseCardTarget({ prompt:get.prompt('olhongyuan'), prompt2:'操作提示:按顺序选择任意张要交出的牌,并按任意顺序选择等量的获得牌的角色', filterCard:true, selectCard:[1,max], position:'he', filterTarget:lib.filter.notMe, selectTarget:[1,max], filterOk:function(){ return ui.selected.cards.length==ui.selected.targets.length; }, ai1:function(card){ var player=_status.event.player; var num=game.countPlayer(function(current){ return current!=player&&get.attitude(player,current)>0&&!current.hasSkillTag('nogain'); }); if(num<=ui.selected.cards.length) return -get.value(card); if(!player.hasSkill('olmingzhe')) return 4-Math.max(player.getUseValue(card),get.value(card,player)); if(ui.selected.cards.length&&get.color(card)=='red') return 6-get.value(card); return 4-Math.max(player.getUseValue(card),get.value(card,player)); }, ai2:function(target){ var player=_status.event.player,att=get.attitude(player,target); var card=ui.selected.cards[ui.selected.targets.length]; if(!card) return att; var val=get.value(card,target); if(val<0) return -att*Math.sqrt(-val); return att*Math.sqrt(val+2); }, }); 'step 1' if(result.bool){ player.logSkill('olhongyuan',result.targets); player.addTempSkill('olhongyuan_blocker',['phaseZhunbeiBefore','phaseJudgeBefore','phaseDrawBefore','phaseUseBefore','phaseDiscardBefore','phaseJieshuBefore','phaseBefore']); var map=[]; for(var i=0;i0) player.showCards(cards,get.translation(player)+'发动了【明哲】'); } player.draw(); }, }, //吕范 xindiaodu:{ audio:"diaodu", group:'xindiaodu_use', frequent:true, preHidden:true, isFriendOf:function(player,target){ if(get.mode()=='guozhan') return player.isFriendOf(target); return player.group==target.group; }, subSkill:{ temp:{charlotte:true}, use:{ trigger:{ global:"useCard", }, filter:function(event,player){ return get.type(event.card)=='equip'&&event.player.isIn()&& lib.skill.xindiaodu.isFriendOf(player,event.player)&&(player==event.player||player.hasSkill('xindiaodu'))&&!event.player.hasSkill('xindiaodu_temp'); }, direct:true, content:function(){ 'step 0' var next=trigger.player.chooseBool('是否发动【调度】摸一张牌?'); if(player.hasSkill('xindiaodu')) next.set('frequentSkill','xindiaodu'); if(player==trigger.player) next.setHiddenSkill('xindiaodu'); 'step 1' if(result.bool){ player.logSkill('xindiaodu',trigger.player); trigger.player.draw('nodelay'); trigger.player.addTempSkill('xindiaodu_temp'); } }, }, }, trigger:{ player:"phaseUseBegin", }, filter:function(event,player){ return game.hasPlayer(function(current){ return lib.skill.xindiaodu.isFriendOf(current,player)&¤t.countGainableCards(player,'e')>0; }); }, direct:true, content:function(){ 'step 0' player.chooseTarget(get.prompt2('xindiaodu'),function(card,player,current){ return lib.skill.xindiaodu.isFriendOf(current,player)&¤t.countGainableCards(player,'e')>0; }).setHiddenSkill(event.name).ai=function(target){ var num=1; if(target.hasSkill('gzxiaoji')) num+=2.5; if(target.isDamaged()&&target.getEquip('baiyin')) num+=2.5; if(target.hasSkill('xuanlve')) num+=2; return num; }; 'step 1' if(result.bool){ event.target1=result.targets[0]; player.logSkill('xindiaodu',event.target1); player.line(event.target1,'xindiaodu'); player.gainPlayerCard(event.target1,'e',true); } else event.finish(); 'step 2' if(result.bool&&player.getCards('h').contains(result.cards[0])){ event.card=result.cards[0]; player.chooseTarget('是否将'+get.translation(event.card)+'交给一名其他角色?',function(card,player,current){ return current!=player&¤t!=_status.event.target1&&lib.skill.xindiaodu.isFriendOf(current,player) }).set('target1',event.target1); } else event.finish(); 'step 3' if(result.bool){ var target=result.targets[0]; player.line(target,'green'); player.give(card,target); } }, }, //夏侯玄 olhuanfu:{ audio:2, trigger:{ player:'useCardToPlayered', target:'useCardToTargeted', }, filter:function(event,player){ if(event.card.name!='sha') return false; if(player==event.player&&!event.isFirstTarget) return false; if(event.olhuanfu_map&&event.olhuanfu_map[player.playerid]) return false; return player.maxHp>0&&player.countCards('he')>0; }, shaRelated:true, direct:true, content:function(){ 'step 0' player.chooseToDiscard('he',[1,player.maxHp],get.prompt('olhuanfu'),'通过弃牌,预测'+(player==trigger.player?'你':get.translation(trigger.player))+'使用的'+get.translation(trigger.card)+'能造成多少伤害。如果弃置的牌数等于总伤害,则你摸两倍的牌。').set('predict',function(){ var target=trigger.target; if(player==target){ if(trigger.targets.length>1||player.hasShan()||get.effect(player,trigger.card,trigger.player,player)==0) return 0; } else{ var target=trigger.target; if(trigger.targets.length>1||target.mayHaveShan()) return 0; } var num=trigger.getParent().baseDamage; var map=trigger.getParent().customArgs,id=target.playerid; if(map[id]){ if(typeof map[id].baseDamage=='number') num=map[id].baseDamage; if(typeof map[id].extraDamage=='number') num+=map[id].extraDamage; } if(target.hasSkillTag('filterDamage',null,{ player:trigger.player, card:trigger.card, })) num=1; return num; }()).set('ai',function(card){ var num=_status.event.predict,player=_status.event.player; if(ui.selected.cards.length>=num) return 0; if(player.countCards('he',function(card){ return get.value(card)<6+num; })0&¤t<0&&target.countCards('he')>0) return 0.7; }, }, }, subSkill:{ lottery:{ trigger:{global:'useCardAfter'}, forced:true, charlotte:true, filter:function(event,player){ var map=event.olhuanfu_map; if(!map||!map[player.playerid]) return false; var num=0; event.player.getHistory('sourceDamage',function(evt){ if(evt.card==event.card&&evt.getParent().type=='card') num+=evt.num; }); return num==map[player.playerid]; }, content:function(){ player.draw(2*trigger.olhuanfu_map[player.playerid]); }, }, }, }, olqingyi:{ audio:2, enable:'phaseUse', usable:1, filter:function(event,player){ return player.hasCard(function(card){ return lib.filter.cardDiscardable(card,player,'olqingyi'); },'he')&&game.hasPlayer(current=>lib.skill.olqingyi.filterTarget(null,player,current)); }, selectTarget:[1,2], filterTarget:function(card,player,target){ return target!=player&&target.countCards('he')>0; }, multitarget:true, multiline:true, content:function(){ 'step 0' var list=[player]; list.addArray(targets); list.sortBySeat(); event.list=list; for(var target of event.list){ if(!target.hasCard(function(card){ return lib.filter.cardDiscardable(card,target,'olqingyi'); },'he')){ event.finish(); break; } } 'step 1' player.chooseCardOL(event.list,'he',true,'清议:选择弃置一张牌',function(card,player){ return lib.filter.cardDiscardable(card,player,'olqingyi'); }).set('ai',get.unuseful); 'step 2' var lose_list=[],cards=[]; for(var i=0;ievt.skill=='olqingyi'); if(!history.length) return false; var color=false; for(var evt of history){ var list=[player]; list.addArray(evt.targets); for(var target of list){ target.getHistory('lose',function(evtx){ if(color===true||evtx.getParent(2).name!='olqingyi') return false; for(var card of evtx.cards){ if(color===true||get.position(card,true)!='d') continue; var color2=get.color(card,false); if(!color) color=color2; else if(color!=color2) color=true; } }); if(color===true) return true; } } return false; }, content:function(){ 'step 0' var history=player.getHistory('useSkill',(evt)=>evt.skill=='olqingyi'),cards=[]; for(var evt of history){ var list=[player]; list.addArray(evt.targets); for(var target of list){ target.getHistory('lose',function(evtx){ if(evtx.getParent(2).name!='olqingyi') return false; for(var card of evtx.cards){ if(get.position(card,true)=='d') cards.add(card); } }); } } player.chooseButton(['清议:选择获得两张异色牌',cards],2).set('filterButton',function(button){ if(!ui.selected.buttons.length) return true; return get.color(button.link,false)!=get.color(ui.selected.buttons[0].link,false); }).set('ai',function(button){ return get.value(button.link,_status.event.player); }); 'step 1' if(result.bool){ player.logSkill('olqingyi_gain'); player.gain(result.links,'gain2'); } }, }, }, }, olzeyue:{ audio:2, trigger:{player:'phaseZhunbeiBegin'}, limited:true, skillAnimation:true, animationColor:'water', direct:true, filter:function(event,player){ var sources=[],history=player.actionHistory; for(var i=history.length-1;i>=0;i--){ if(i=0;i--){ if(i=0) return 0; return get.threaten(target,player); }); 'step 1' if(result.bool){ var target=result.targets[0]; player.logSkill('olzeyue',target); player.awakenSkill('olzeyue'); event.target=target; var skills=target.getStockSkills('一!','五!'); skills=skills.filter(function(skill){ var info=get.info(skill); if(info&&!info.charlotte&&!get.is.locked(skill,target)&&target.hasSkill(skill,null,null,false)) return true; }); if(skills.length==1) event._result={control:skills[0]}; else player.chooseControl(skills).set('prompt','令'+get.translation(target)+'的一个技能失效'); } else event.finish(); 'step 2' var skill=result.control; target.disableSkill('olzeyue_'+player.playerid,skill); target.storage['olzeyue_'+player.playerid]=true; player.addSkill('olzeyue_round'); player.markAuto('olzeyue_round',[target]); if(!player.storage.olzeyue_map) player.storage.olzeyue_map={}; player.storage.olzeyue_map[target.playerid]=0; game.log(target,'的技能','#g【'+get.translation(skill)+'】','被失效了'); }, ai:{threaten:3}, subSkill:{ round:{ trigger:{global:'roundStart'}, forced:true, charlotte:true, popup:false, filter:function(event,player){ var storage=player.getStorage('olzeyue_round'); for(var source of storage){ if(source.isIn()&&source.canUse('sha',player,false)) return true; } return false; }, content:function(){ 'step 0' event.targets=player.storage.olzeyue_round.slice(0).sortBySeat(); event.target=event.targets.shift(); event.forceDie=true; 'step 1' var map=player.storage.olzeyue_map; if(target.storage['olzeyue_'+player.playerid]) map[target.playerid]++; event.num=map[target.playerid]-1; if(event.num<=0) event.finish(); 'step 2' event.num--; target.useCard(player,{name:'sha',isCard:true},false,'olzeyue_round'); 'step 3' var key='olzeyue_'+player.playerid; if(target.storage[key]&&player.hasHistory('damage',function(evt){ return evt.card.name=='sha'&&evt.getParent().type=='card'&&evt.getParent(3)==event; })){ for(var skill in target.disabledSkills){ if(target.disabledSkills[skill].contains(key)) game.log(target,'恢复了技能','#g【'+get.translation(skill)+'】'); } delete target.storage[key]; target.enableSkill(key); } if(event.num>0&&player.isIn()&&target.isIn()&&target.canUse('sha',player,false)){ event.goto(2); } else if(event.targets.length>0){ event.target=event.targets.shift(); event.goto(1); } }, }, }, }, //邓忠 dzkanpo:{ audio:2, trigger:{source:'damageSource'}, filter:function(event,player){ return event.getParent().type=='card'&&event.card&&event.card.name=='sha'&&event.player.countCards('he')>0; }, logTarget:'player', content:function(){ var suit=get.suit(trigger.card); var next=player.gainPlayerCard(trigger.player,'h','visible'); next.set('suit',suit); next.set('filterButton',function(button){ var evt=_status.event; return get.suit(button.link,evt.target)==evt.suit; }); }, group:'dzkanpo_sha', subSkill:{ sha:{ enable:'chooseToUse', usable:1, viewAs:{name:'sha'}, viewAsFilter:function(player){ return player.countCards('hs')>0; }, filterCard:true, position:'hs', prompt:'将一张手牌当做【杀】使用', check:function(card){ return 6-get.value(card); }, ai:{ respondSha:true, skillTagFilter:function(player){ if(player.getStat('skill').dzkanpo_sha) return false; if(!player.countCards('hs')) return false; }, }, }, }, }, dzgengzhan:{ audio:2, trigger:{ global:['loseAfter','loseAsyncAfter'], }, usable:1, filter:function(event,player){ if(event.type!='discard'||event.getlx===false||player==_status.currentPhase||!event.isPhaseUsing()) return false; for(var card of event.cards){ if(get.position(card,true)=='d'&&get.name(card,event.hs&&event.hs.contains(card)?event.player:false)=='sha') return true; } }, direct:true, content:function(){ 'step 0' var cards=trigger.cards.filter(function(card){ return (get.position(card,true)=='d'&&get.name(card,trigger.hs&&trigger.hs.contains(card)?trigger.player:false)=='sha') }); player.chooseButton(['是否发动【更战】获得一张杀?',cards]).set('ai',function(button){ return get.value(button.link,_status.event.player); }); 'step 1' if(result.bool){ player.logSkill('dzgengzhan'); player.gain(result.links,'gain2'); } else player.storage.counttrigger.dzgengzhan--; }, group:'dzgengzhan_add', subSkill:{ add:{ audio:'dzgengzhan', trigger:{global:'phaseJieshuBegin'}, forced:true, locked:false, filter:function(event,player){ return player!=event.player&&!event.player.hasHistory('useCard',function(evt){ return evt.card.name=='sha'; }); }, logTarget:'player', content:function(){ player.addTempSkill('dzgengzhan_effect',{player:'phaseUseAfter'}); player.addMark('dzgengzhan_effect',1,false); game.delayx(); }, }, effect:{ onremove:true, charlotte:true, mod:{ cardUsable:function(card,player,num){ if(card.name=='sha') return num+player.countMark('dzgengzhan_effect'); }, }, intro:{content:'使用杀的次数上限+#'}, }, }, }, //王衍 yangkuang:{ audio:2, trigger:{player:'recoverEnd'}, filter:function(event,player){ return player.isHealthy(); }, logTarget:function(event,player){ return _status.currentPhase||player; }, check:function(event,player){ var target=(_status.currentPhase||player); if(get.attitude(player,target)>0) return true; if(player.countCards('h')>target.countCards('h')) return true; if(!target.getCardUsable('sha')) return true; return false; }, content:function(){ 'step 0' player.chooseUseTarget('jiu',true); 'step 1' var target=_status.currentPhase; if(target) target.draw('nodelay'); player.draw(); }, }, cihuang:{ audio:2, trigger:{ global:['eventNeutralized','shaMiss'], }, direct:true, filter:function(event,player){ if(event.player!=_status.currentPhase||!event.targets||event.targets.length!=1||event.type!='card'||!player.countCards('he')) return false; return lib.skill.cihuang.getList(player,event.player,true); }, getList:function(player,target,bool){ var natures=lib.inpile_nature.slice(0); var tricks=[]; for(var name of lib.inpile){ var info=lib.card[name]; if(!info||info.type!='trick'||info.notarget||((info.selectTarget&&info.selectTarget!=1)&&(info.selectTarget!=-1||!info.toself))) continue; tricks.push(name); } var history=player.actionHistory; for(var i=history.length-1;i>=0;i--){ var info=history[i]; for(var evt of info.useCard){ var name=evt.card.name; if(name=='sha'){ if(evt.card.nature) natures.remove(evt.card.nature); } else tricks.remove(name); }; if(info.isRound) break; } var vcards=[]; for(var i of natures){ if(player.canUse({ name:'sha', nature:i, isCard:true, },target)){ if(bool) return true; else vcards.push(['基本','','sha',i]); } } for(var i of tricks){ if(player.canUse({ name:i, isCard:true, },target)){ if(bool) return true; else vcards.push(['锦囊','',i]); } } if(bool) return false; return vcards; }, content:function(){ 'step 0' var target=trigger.player; var list=lib.skill.cihuang.getList(player,target); if(_status.connectMode) game.broadcastAll(function(){_status.noclearcountdown=true}); player.chooseButton([get.prompt('cihuang',target),'
    将一张牌当以下的一张牌对'+get.translation(target)+'使用
    ',[list,'vcard']]).set('ai',function(button){ var card={ name:button.link[2], nature:button.link[3], storage:{cihuang:true}, },player=_status.event.player,target=_status.event.getTrigger().player; return get.effect(target,card,player,player); }); 'step 1' if(result.bool){ var card={ name:result.links[0][2], nature:result.links[0][3], storage:{cihuang:true}, }; event.card=card; player.chooseCard('he','雌黄:将一张牌当'+get.translation(card)+'对'+get.translation(trigger.player)+'使用',function(card,player){ return player.canUse(get.autoViewAs(_status.event.getParent().card,[card]),_status.event.target,false); }).set('target',trigger.player).set('ai',function(card){ if(get.effect(_status.event.target,get.autoViewAs(_status.event.getParent().card,[card]),player)<=0) return false; return 6-get.value(card); }); } else event._result={bool:false}; 'step 2' if(_status.connectMode){game.broadcastAll(function(){delete _status.noclearcountdown;game.stopCountChoose()});} if(result.bool){ player.useCard(get.autoViewAs(event.card,result.cards),result.cards,false,trigger.player,'cihuang').oncard=function(card,player){ _status.event.directHit.addArray(game.filterPlayer()); }; } }, ai:{ directHit_ai:true, skillTagFilter:function(player,tag,arg){ return arg&&arg.card&&arg.card.storage&&arg.card.storage.cihuang; }, }, }, sanku:{ audio:2, trigger:{player:'dying'}, forced:true, group:'sanku_nogain', content:function(){ 'step 0' player.loseMaxHp(); 'step 1' var num=player.maxHp-player.hp; if(num>0) player.recover(num); }, ai:{halfneg:true}, subSkill:{ nogain:{ audio:'sanku', trigger:{player:'gainMaxHpBegin'}, forced:true, content:function(){ trigger.cancel(); } } } }, //霍峻 qiongshou:{ audio:2, trigger:{ player:'enterGame', global:'phaseBefore', }, forced:true, filter:function(event,player){ if(event.name=='phase'&&game.phaseNumber!=0) return false; return player.hasEnabledSlot(); }, content:function(){ var list=[]; for(var i=1;i<6;i++){ for(var j=0;j0)||(!player.storage.fenrui&&game.hasPlayer(function(current){ return current!=player&¤t.countCards('e')0){ var str='弃置一张牌,恢复一个装备栏并使用一张对应装备牌'; player.chooseToDiscard('he',get.prompt('fenrui'),str).set('ai',function(card){ return 7-get.value(card); }).logSkill='fenrui'; } else event.goto(3); 'step 1' if(result.bool){ player.chooseToEnable().set('ai',function(){ var player=_status.event.player; var list=[2,5,1,3,4]; for(var i of list){ if(player.hasDisabledSlot(i)) return 'equip'+i; } }); } else{ var es=player.countCards('e'); if(player.storage.fenrui||!game.hasPlayer(function(current){ return current!=player&¤t.countCards('e')0&&game.hasPlayer(function(current){ return current!=player&¤t.countCards('e')target.countCards('e'); }).set('ai',function(target){ var player=_status.event.player; var num=player.countCards('e')-target.countCards('e'); if(get.attitude(player,target)>=0) return 0; if(num>=Math.min(2,player.hp,target.hp)) return get.damageEffect(target,player,player); return 0; }); } else event.finish(); 'step 4' if(result.bool){ var target=result.targets[0]; player.logSkill('fenrui_animate',target); player.storage.fenrui=true; player.unmarkSkill('fenrui'); game.delayx(); target.damage(player.countCards('e')-target.countCards('e')); } }, group:'fenrui_animate', mark:true, intro:{content:'王炸尚未使用'}, subSkill:{ animate:{ skillAnimation:true, animationColor:'fire', }, }, }, //曹宪曹华 huamu:{ audio:2, trigger:{player:'useCardAfter'}, locked:false, filter:function(event,player){ var color=get.color(event.card); if(color=='none') return false; if(!player.hasHistory('lose',function(evt){ return evt.hs.length>0&&evt.getParent()==event; })||!event.cards.filterInD('oe').length) return false; var history=game.getGlobalHistory('useCard'); var index=history.indexOf(event); if(index<1) return false; var evt=history[index-1],color2=get.color(evt.card); return color!=color2&&color2!='none'; }, prompt2:(event)=>'将'+get.translation(event.cards.filterInD('oe'))+'置于武将牌上', check:function(event,player){ if(!game.hasPlayer(function(current){ return current.hasSkill('qianmeng',null,null,false)&&get.attitude(player,current)>0; })) return false; var cards=event.cards.filterInD('e'); if(!cards.length) return true; var card=cards[0]; if(get.owner(card)==player){ if(get.value(card,player)<=0) return true; var subtype=get.subtype(card); if(player.hasCard('hs',function(card){ return get.subtype(card)==subtype&&player.canUse(card,player)&&get.effect(player,card,player,player)>0; })) return true; } return false; }, content:function(){ var cards=trigger.cards.filterInD('oe'); player.addToExpansion(cards,'gain2').gaintag.add('huamu'); }, ai:{ reverseOrder:true, combo:'qianmeng', }, mod:{ aiOrder:function(player,card,num){ if(typeof card=='object'){ var history=game.getGlobalHistory('useCard'); if(!history.length) return; var evt=history[history.length-1]; if(evt&&evt.card&&get.color(evt.card)!='none'&&get.color(card)!='none'&&get.color(evt.card)!=get.color(card)){ return num+4; } } }, }, marktext:'木', intro:{ name:'灵杉&玉树', markcount:function(storage,player){ var red=[],black=[]; var cards=player.getExpansions('huamu'); for(var i of cards){ var color=get.color(i,false); (color=='red'?red:black).push(i); } return (''+black.length+'/'+red.length); }, content:'expansion', mark:function(dialog,storage,player){ var red=[],black=[]; var cards=player.getExpansions('huamu'); for(var i of cards){ var color=get.color(i,false); (color=='red'?red:black).push(i); } if(black.length){ dialog.addText('灵杉'); dialog.addSmall(black); } if(red.length){ dialog.addText('玉树'); dialog.addSmall(red); } }, }, }, qianmeng:{ audio:2, trigger:{ global:['loseAfter','equipAfter','addJudgeAfter','gainAfter','loseAsyncAfter','addToExpansionAfter'], }, filter:function(event,player){ if(event.name=='addToExpansion'){ if(event.gaintag.contains('huamu')){ var cards=event.player.getExpansions('huamu'),red=cards.filter(function(i){ return get.color(i,false)=='red'; }); if(cards.length==red.length||red.length==0||cards.length==red.length*2) return true; } } if(event.name=='lose'&&event.getlx!==false){ for(var i in event.gaintag_map){ if(event.gaintag_map[i].contains('huamu')){ var cards=event.player.getExpansions('huamu'),red=cards.filter(function(i){ return get.color(i,false)=='red'; }); return (cards.length==red.length||red.length==0||cards.length==red.length/2); } } return false; } return game.getGlobalHistory('cardMove',function(evt){ if(evt.name!='lose'||event!=evt.getParent()) return false; for(var i in evt.gaintag_map){ if(evt.gaintag_map[i].contains('huamu')){ var cards=evt.player.getExpansions('huamu'),red=cards.filter(function(i){ return get.color(i,false)=='red'; }); return (cards.length==red.length||red.length==0||cards.length==red.length/2); } } return false; }).length>0; }, forced:true, content:function(){ player.draw(); }, ai:{combo:'huamu'}, }, liangyuan:{ enable:'chooseToUse', hiddenCard:function(player,name){ if(name=='tao'){ return !player.hasSkill('liangyuan_tao',null,null,false)&&game.hasPlayer(function(current){ var storage=current.getExpansions('huamu'); return storage.length>0&&storage.filter(function(i){ return get.color(i,false)=='red'; }).length>0; }); } else if(name=='jiu'){ return !player.hasSkill('liangyuan_jiu',null,null,false)&&game.hasPlayer(function(current){ var storage=current.getExpansions('huamu'); return storage.length>0&&storage.filter(function(i){ return get.color(i,false)=='black'; }).length>0; }) } return false; }, filter:function(event,player){ if(event.type=='wuxie') return false; if(!player.hasSkill('liangyuan_tao',null,null,false)&&event.filterCard({name:'tao'},player,event)&&game.hasPlayer(function(current){ var storage=current.getExpansions('huamu'); return storage.length>0&&storage.filter(function(i){ return get.color(i,false)=='red'; }).length>0; })) return true; if(!player.hasSkill('liangyuan_jiu',null,null,false)&&event.filterCard({name:'jiu'},player,event)&&game.hasPlayer(function(current){ var storage=current.getExpansions('huamu'); return storage.length>0&&storage.filter(function(i){ return get.color(i,false)=='black'; }).length>0; })) return true; return false; }, chooseButton:{ dialog:function(){ return ui.create.dialog('良缘',[['tao','jiu'],'vcard'],'hidden'); }, filter:function(button,player){ var evt=_status.event.getParent(); var name=button.link[2],color=(name=='tao')?'red':'black'; if(player.hasSkill('liangyuan_'+name,null,null,false)) return false; var cards=[]; game.countPlayer(function(current){ cards.addArray(current.getExpansions('huamu').filter(function(i){ return get.color(i,false)==color; })); }); if(!cards.length) return false; var card=get.autoViewAs({name:name},cards); return evt.filterCard(card,player,evt); }, check:function(button){ if(_status.event.getParent().type!='phase') return 1; var player=_status.event.player; var name=button.link[2],color=(name=='tao')?'red':'black'; var cards=[]; game.countPlayer(function(current){ cards.addArray(current.getExpansions('huamu').filter(function(i){ return get.color(i,false)==color; })); }); var card=get.autoViewAs({name:name},cards); return player.getUseValue(card,null,true); }, backup:function(links,player){ var name=links[0][2],color=(name=='tao')?'red':'black'; var cards=[]; game.countPlayer(function(current){ cards.addArray(current.getExpansions('huamu').filter(function(i){ return get.color(i,false)==color; })); }); if(!cards.length) return false; var card=get.autoViewAs({name:name},cards); return { viewAs:card, color:color, selectCard:-1, filterCard:()=>false, precontent:function(){ player.addTempSkill('liangyuan_'+event.result.card.name,'roundStart'); player.logSkill('liangyuan'); var list=[],color=lib.skill.liangyuan_backup.color; var cards=[]; game.countPlayer(function(current){ var cardsx=current.getExpansions('huamu').filter(function(i){ return get.color(i,false)==color; }); if(cardsx.length){ cards.addArray(cardsx); list.push([current,cardsx]); current.$throw(cardsx); game.log(current,'将',cardsx,'化作“'+(color=='black'?'灵杉':'玉树')+'”良缘') } }); event.result.cards=cards; delete event.result.skill; event.result._apply_args={'throw':false}; game.loseAsync({ lose_list:list, }).setContent('chooseToCompareLose'); }, } }, prompt:function(links,player){ var name=links[0][2],color=(name=='tao')?'玉树':'灵杉'; return '将场上所有的“'+color+'”当做【'+get.translation(name)+'】使用'; }, }, subSkill:{ tao:{charlotte:true}, jiu:{charlotte:true}, }, ai:{ order:function(item,player){ if(!player) player=_status.event.player; return get.order({name:lib.skill.liangyuan.hiddenCard(player,'jiu')?'jiu':'tao'})+4; }, result:{ player:function(player){ if(_status.event.dying) return get.attitude(player,_status.event.dying); return 1; }, }, combo:'huamu', threaten:3, }, }, jisi:{ audio:2, trigger:{player:'phaseZhunbeiBegin'}, direct:true, limited:true, skillAnimation:true, animationColor:'metal', filter:function(event,player){ var skills=player.getStockSkills('一!','五!').filter(function(skill){ if(skill=='jisi') return false; var info=get.info(skill); return info&&!info.charlotte; }); var history=player.getAllHistory('useSkill'); for(var i of history){ if(skills.contains(i.sourceSkill)||skills.contains(i.skill)) return true; } return false; }, content:function(){ 'step 0' var skills2=[]; var skills=player.getStockSkills('只!','因!').filter(function(skill){ if(skill=='jisi') return false; var info=get.info(skill); return info&&!info.charlotte; }); var history=player.getAllHistory('useSkill'); for(var i of history){ if(skills.contains(i.sourceSkill)) skills2.add(i.sourceSkill); if(skills.contains(i.skill)) skills2.add(i.skill); if(skills.length==skills2.length) break; } event.skills2=skills2; var str='令一名其他角色获得'; for(var i=0;i1) str+='中的一个技能'; str+='然后你'; if(player.countCards('h')>0) str+='弃置所有手牌,并'; str+='视为对其使用一张【杀】'; player.chooseTarget(get.prompt('jisi'),str,lib.filter.notMe).set('ai',function(target){ if(!_status.event.goon) return false; var att=get.attitude(player,target); if(att<4) return false; var eff=get.effect(target,{name:'sha',isCard:true},player,player); if(eff>=0) return att+eff; if(target.hp<=2) return false; return att/Math.max(1,-eff); }).set('goon',function(){ if(player.hasUnknown()||player.identity=='nei') return false; var hs=player.getCards('h'); if(!hs.length||get.value(hs,player)<=9-player.hp) return true; return false; }()); 'step 1' if(result.bool){ var target=result.targets[0]; event.target=target; player.logSkill('jisi',target); player.awakenSkill('jisi'); var list=event.skills2; if(list.length==0) event._result={control:list[0]}; player.chooseControl(list).set('prompt','令'+get.translation(target)+'获得一个技能').set( 'ai',()=>_status.event.choice ).set('choice',list.contains('qianmeng')?'qianmeng':list.randomGet()); } else event.finish(); 'step 2' target.addSkill(result.control); 'step 3' var num=player.countCards('h'); if(num>0) player.chooseToDiscard('h',num,true); 'step 4' if(player.canUse('sha',target,false)) player.useCard(false,target,{ name:'sha', isCard:true, },'noai') }, }, //周处 shanduan:{ audio:2, init:function(player,name){ player.storage[name]=[1,2,3,4]; }, trigger:{player:'phaseBegin'}, forced:true, popup:false, content:function(){ trigger._shanduan=(player.storage.shanduan||[1,2,3,4]).slice(0); player.storage.shanduan=[1,2,3,4] }, group:['shanduan_draw','shanduan_use','shanduan_discard','shanduan_damage'], ai:{ notemp:true, threaten:3.6, }, subSkill:{ damage:{ audio:'shanduan', trigger:{player:'damageEnd'}, forced:true, locked:false, filter:(event,player)=>player!=_status.currentPhase, content:function(){ if(!player.storage.shanduan) player.storage.shanduan=[1,2,3,4]; var list=player.storage.shanduan; for(var i=0;i0; }, content:function(){ 'step 0' var list=trigger.getParent()._shanduan; if(list.length==1) event._result={index:0}; else player.chooseControl(list).set('prompt','善断:为摸牌阶段的摸牌数分配一个数值').set('choice',list.indexOf(Math.max.apply(Math,list))).set('ai',()=>_status.event.choice); 'step 1' var list=trigger.getParent()._shanduan; var num=list[result.index]; trigger.num=num; list.remove(num); game.log(player,'给','#g摸牌阶段的摸牌数','分配的数值是','#y'+num); }, }, use:{ audio:'shanduan', trigger:{player:'phaseUseBegin'}, forced:true, locked:false, filter:function(event,player){ var list=event.getParent()._shanduan; return list&&list.length>0; }, content:function(){ 'step 0' var list=trigger.getParent()._shanduan; if(list.length==1) event._result={index:0}; else player.chooseControl(list).set('prompt','善断:为攻击范围基数分配一个数值').set('list',list).set('ai',function(){ var player=_status.event.player,list=_status.event.list,card={name:'sha'}; if(player.hasSha()&&(player.hasValueTarget(card,false,true)&&!player.hasValueTarget(card,null,true))){ var range=1; var equips=player.getCards('e'); for(var i=0;i1&&distance<=(i-range)) return true; return false; })) return list.indexOf(i); } } return list.indexOf(Math.min.apply(Math,list)); }); 'step 1' var list=trigger.getParent()._shanduan; var num=list[result.index]; if(!player.storage.shanduan_effect) player.storage.shanduan_effect={}; player.storage.shanduan_effect.range=num; player.addTempSkill('shanduan_effect'); list.remove(num); game.log(player,'给','#g攻击范围的基数','分配的数值是','#y'+num); if(list.length==0) event.finish(); else if(list.length==1) event._result={index:0}; else player.chooseControl(list).set('prompt','为使用【杀】的次数上限分配一个数值').set('list',list).set('ai',function(){ var player=_status.event.player,list=_status.event.list; var sha=player.countCards('hs',function(card){ return get.name(card)=='sha'&&player.hasValueTarget(card,null,true); }); var max=player.getCardUsable('sha'); if(sha<=max){ var listx=list.slice(0).sort(); for(var i of listx){ if(max+i>=sha) return list.indexOf(i); } return list.indexOf(Math.max.apply(Math,list)) } return list.indexOf(Math.min.apply(Math,list)); }); 'step 2' var list=trigger.getParent()._shanduan; var num=list[result.index]; if(!player.storage.shanduan_effect) player.storage.shanduan_effect={}; player.storage.shanduan_effect.sha=num; game.log(player,'给','#g使用【杀】的次数上限','分配的数值是','#y'+num); list.remove(num); }, }, discard:{ audio:'shanduan', trigger:{player:'phaseDiscardBegin'}, forced:true, locked:false, filter:function(event,player){ var list=event.getParent()._shanduan; return list&&list.length>0; }, content:function(){ 'step 0' var list=trigger.getParent()._shanduan; if(list.length==1) event._result={index:0}; else player.chooseControl(list).set('prompt','善断:为手牌上限基数分配一个数值').set('choice',list.indexOf(Math.max.apply(Math,list))).set('ai',()=>_status.event.choice); 'step 1' var list=trigger.getParent()._shanduan; var num=list[result.index]; if(!player.storage.shanduan_effect) player.storage.shanduan_effect={}; player.storage.shanduan_effect.limit=num; player.addTempSkill('shanduan_effect'); list.remove(num); game.log(player,'给','#g手牌上限的基数','分配的数值是','#y'+num); }, }, effect:{ charlotte:true, onremove:true, mod:{ attackRangeBase:function(player){ var map=player.storage.shanduan_effect; if(typeof map.range!='number') return; var range=1; var equips=player.getCards('e',function(card){ return !ui.selected.cards||!ui.selected.cards.contains(card); }); for(var i=0;i8-get.value(card), popname:true, viewAs:{ name:links[0][2], nature:links[0][3], }, precontent:function(){ var name=event.result.card.name; player.addTempSkill('yilie_count','roundStart'); player.markAuto('yilie_count',[name]); }, } }, prompt:function(links,player){ var name=links[0][2]; var nature=links[0][3]; return '将两张颜色相同的手牌当做'+(get.translation(nature)||'')+get.translation(name)+'使用'; }, }, ai:{ order:function(item,player){ return 2.6; }, respondShan:true, respondSha:true, fireAttack:true, skillTagFilter:function(player,tag){ var hs=player.getCards('hs'); if(hs.length<2) return false; var bool=false,map={}; for(var card of hs){ var color=get.color(card); if(!map[color]) map[color]=true; else{ bool=true; break; } } if(!bool) return false; var storage=player.storage.yilie_count; var name; switch(tag){ case 'respondShan':name='shan';break; default:name='sha';break; } if(storage&&storage.contains(name)) return false; }, result:{ player:function(player){ if(_status.event.dying) return get.attitude(player,_status.event.dying); return 1; } } }, subSkill:{ count:{charlotte:true,onremove:true}, backup:{audio:'yilie'}, }, }, //赵俨 tongxie:{ audio:2, trigger:{player:'phaseUseBegin'}, direct:true, content:function(){ 'step 0' player.chooseTarget(get.prompt('tongxie'),'选择至多两名其他角色作为“同协角色”',lib.filter.notMe,[0,2]).set('ai',function(target){ return get.attitude(_status.event.player,target); }); 'step 1' if(result.bool){ var targets=result.targets; targets.add(player); player.logSkill('tongxie',targets); player.addTempSkill('tongxie_effect',{player:'phaseBegin'}); player.markAuto('tongxie_effect',targets); var min=player.countCards('h'),min_player=player; for(var i of targets){ if(i==player) continue; var num=i.countCards('h'); if(num0) return true; if(i.hasSha()) return true; } return false; }, content:function(){ 'step 0' event.targets=player.getStorage('tongxie_effect').filter(function(i){ return i!==trigger.player; }).sortBySeat(); event.target=trigger.targets[0]; 'step 1' var current=targets.shift(); if(current.isIn()&&target.isIn()&¤t.canUse('sha',target,false)&&(_status.connectMode||current.hasSha())){ current.chooseToUse(function(card,player,event){ if(get.name(card)!='sha') return false; return lib.filter.filterCard.apply(this,arguments); },'同协:是否对'+get.translation(target)+'使用一张杀?').set('targetRequired',true).set('complexSelect',true).set('filterTarget',function(card,player,target){ if(target!=_status.event.sourcex&&!ui.selected.targets.contains(_status.event.sourcex)) return false; return lib.filter.targetEnabled.apply(this,arguments); }).set('sourcex',target).set('logSkill','tongxie_effect').set('addCount',false); if(targets.length>0) event.redo(); } }, group:['tongxie_damage','tongxie_count'], }, damage:{ audio:'tongxie', charlotte:true, trigger:{global:'damageBegin4'}, filter:function(event,player){ var list=player.getStorage('tongxie_effect'); if(!list.contains(event.player)) return false; for(var i of list){ if(i!=event.player&&i.isIn()&&!i.hasSkill('tongxie_count2',null,null,false)) return true; } return false; }, forced:true, popup:false, content:function(){ 'step 0' event.targets=player.getStorage('tongxie_effect').filter(function(i){ return i!=trigger.player&&i.isIn()&&!i.hasSkill('tongxie_count2',null,null,false); }).sortBySeat(); event.num=0; 'step 1' var target=targets[num]; event.num++; event.target=target; target.chooseBool('同协:是否为'+get.translation(trigger.player)+'阻挡伤害?','失去1点体力,防止'+get.translation(trigger.player)+'即将受到的'+get.cnNumber(trigger.num)+'点伤害').set('ai',function(){ var player=_status.event.player,target=_status.event.getTrigger().player; var trigger=_status.event.getTrigger(); var eff1=get.damageEffect(target,trigger.source,player,trigger.nature); if(trigger.num>1) eff1=Math.min(-1,eff1)*trigger.num; var eff2=get.effect(player,{name:'losehp'},player,player); return eff2>eff1; }); 'step 2' if(result.bool){ target.logSkill('tongxie_damage',trigger.player); trigger.cancel(); target.loseHp(); } else if(num=to.hp) return -Infinity; }, }, trigger:{player:'useCardToPlayered'}, shaRelated:true, filter:function(event,player){ return event.card.name=='sha'&&event.target.countCards('he')>0&&get.distance(player,event.target)==1; }, forced:true, logTarget:'target', content:function(){ 'step 0' var target=trigger.target; event.target=target; if(target.countCards('e')==0) event._result={index:0}; else target.chooseControl().set('choiceList',[ '弃置一张牌', '重铸装备区的所有牌', ]).set('ai',function(card){ var min=Infinity,equ=0,es=player.getCards('e'),hs=player.getCards('he'); for(var i of hs){ var val=get.value(i); min=Math.min(min,val); if(es.contains(i)) equ+=val; } equ/=es.length; if(min1) return; var card=get.cards()[0]; if(!card) return; game.log(player,'展示了',card); event.cardsx.push(card); event.cards2[index].push(card); game.broadcastAll(function(id,card,name,index){ var dialog=get.idDialog(id); if(!dialog) return; var button=ui.create.button(card,'card',dialog.buttonss[index]); button.querySelector('.info').innerHTML=(name+'|'+get.strNumber(card.number)); },event.videoId,card,function(target){ if(target._tempTranslate) return target._tempTranslate; var name=target.name; if(lib.translate[name+'_ab']) return lib.translate[name+'_ab']; return get.translation(name); }(player),index); } }; event.players=game.filterPlayer(); event.cardsx=[]; event.cards2=[[],[]]; event.videoId=lib.status.videoId++; event.ai_targets=[]; game.broadcastAll(function(name,id){ var dialog=ui.create.dialog(name+'发起了“锻造”','hidden','forcebutton'); dialog.videoId=id; dialog.classList.add('scroll1'); dialog.classList.add('scroll2'); dialog.classList.add('fullwidth'); dialog.classList.add('fullheight'); ui.arena.classList.add('choose-to-move'); dialog.buttonss=[]; var list=['协力锻造的玩家','妨碍锻造的玩家'] for(var i=0;i'+list[i]+''); var buttons=ui.create.div('.buttons',dialog.content); dialog.buttonss.push(buttons); buttons.classList.add('popup'); buttons.classList.add('guanxing'); } dialog.open(); },get.translation(player),event.videoId) for(var i=0;i0) num=0; else if(att<0) num=1; sendback({index:num},target); if(_status.connectMode) target.hideTimer(); if(!event.ai_targets.length){ clearInterval(event.interval); if(event.withai) game.resume(); } },750); },500) } 'step 1' if(event.withme){ if(_status.connectMode) game.me.unwait(result); else{ var index=result.index; game.log(game.me,'选择了',['#b助力锻造','#g妨碍锻造','#b什么都不做'][index]) if(index>1) return; var card=get.cards()[0]; if(!card) return; game.log(game.me,'展示了',card); event.cardsx.push(card); event.cards2[index].push(card); game.broadcastAll(function(id,card,name,index){ var dialog=get.idDialog(id); if(!dialog) return; var button=ui.create.button(card,'card',dialog.buttonss[index]); button.querySelector('.info').innerHTML=(name+'|'+get.strNumber(card.number)); },event.videoId,card,function(target){ if(target._tempTranslate) return target._tempTranslate; var name=target.name; if(lib.translate[name+'_ab']) return lib.translate[name+'_ab']; return get.translation(name); }(game.me),index); } } 'step 2' if(event.withol&&!event.resultOL){ game.pause(); } 'step 3' if(event.ai_targets.length>0){ event.withai=true; game.pause(); } 'step 4' game.broadcastAll(function(){ setTimeout(function(){ ui.arena.classList.remove('choose-to-move'); },500); }) game.delay(2); var num1=0,num2=0; for(var i of event.cards2[0]) num1+=get.number(i,false); for(var i of event.cards2[1]) num2+=get.number(i,false); var result=2; if(num10) result=1; event.duanzao_result=result; game.broadcastAll(function(id,result){ var dialog=get.idDialog(id); if(dialog) dialog.content.firstChild.innerHTML=['锻造失败…','锻造成功','完美锻造!'][result]; },event.videoId,result) 'step 5' game.cardsGotoOrdering(event.cardsx); game.broadcastAll('closeDialog',event.videoId); 'step 6' var subtype=get.subtype(cards[0]); if(subtype!='equip1'&&subtype!='equip2') subtype='others'; var card_map={ equip1:[ ['diamond',13,'bintieshuangji'], ['diamond',1,'wuxinghelingshan'], ['spade',13,'wutiesuolian'], ['diamond',12,'wushuangfangtianji'], ['spade',6,'chixueqingfeng'], ['spade',5,'guilongzhanyuedao'], ], equip2:[ ['club',1,'huxinjing'], ['club',2,'heiguangkai'], ['spade',2,'linglongshimandai'], ['club',1,'hongmianbaihuapao'], ['spade',2,'qimenbagua'], ['spade',9,'guofengyupao'], ], others:[ ['diamond',1,'zhaogujing'], ['spade',5,'sanlve'], ['club',12,'tianjitu'], ['spade',2,'taigongyinfu'], ['diamond',1,'shufazijinguan'], ['club',4,'xuwangzhimian'], ], }; if(!_status.olshengong_map) _status.olshengong_map={}; if(!_status.olshengong_maken) _status.olshengong_maken={}; var list=card_map[subtype]; for(var i=0;i0; }, content:function(){ player.draw(player.countMark('olshengong_draw')); }, }, }, }, olqisi:{ audio:2, trigger:{player:'phaseDrawBegin2'}, filter:function(event,player){ return !event.numFixed&&event.num>0; }, check:function(event,player){ if(player.hasEmptySlot(2)||player.hasEmptySlot(5)||player.hasEmptySlot(1)) return true; return false; }, prompt2:'摸牌阶段开始时,你可以少摸一张牌并声明一种装备牌的副类别,然后从牌堆或弃牌堆中获得一张该副类别的牌。', content:function(){ 'step 0' player.chooseControl('equip1','equip2','equip6','equip5').set('prompt','选择获得一种副类别的装备牌').set('ai',function(card){ if(player.hasEmptySlot(2)) return 'equip2'; if(player.hasEmptySlot(5)) return 'equip5'; if(player.hasEmptySlot(1)) return 'equip1'; return 'equip6'; }); 'step 1' var card=get.cardPile(function(card){ var type=get.subtype(card); if(result.control=='equip6') return (type=='equip3'||type=='equip4'); return type==result.control; }); if(card){ trigger.num--; player.gain(card,'gain2'); } }, group:'olqisi_init', subSkill:{ init:{ audio:'olqisi', trigger:{ global:'phaseBefore', player:'enterGame', }, forced:true, locked:false, filter:function(event,player){ return (event.name!='phase'||game.phaseNumber==0); }, content:function(){ 'step 0' var i=0; var list=[]; while(i++<2){ var card=get.cardPile(function(card){ if(get.type(card)!='equip') return false; return list.length==0||get.subtype(card)!=get.subtype(list[0]); }); if(card) list.push(card); } if(!list.length){event.finish();return;} event.list=list; player.gain(event.list,'gain2'); 'step 1' game.delay(1); var card=event.list.shift(); if(player.getCards('h').contains(card)){ player.$give(card,player,false) player.equip(card); } if(event.list.length) event.redo(); }, }, }, }, //蒲元衍生 zhaogujing_skill:{ equipSkill:true, trigger:{player:'phaseUseEnd'}, direct:true, filter:function(event,player){ return player.hasCard(function(card){ if(_status.connectMode) return true; var type=get.type(card,player); return type=='basic'||type=='trick'; },'h'); }, content:function(){ 'step 0' player.chooseCard('h',get.prompt('zhaogujing_skill'),'展示并视为使用一张基本牌或普通锦囊牌',function(card,player){ var type=get.type(card,player); return type=='basic'||type=='trick'; }).set('ai',function(card){ var player=_status.event.player,name=get.name(card,player); if(name=='jiu') return 0; return player.getUseValue({ name:name, nature:get.nature(card,player), isCard:true, }) }); 'step 1' if(result.bool){ player.logSkill('zhaogujing_skill'); player.showCards(result.cards,get.translation(player)+'发动了【照骨镜】'); var card={ name:get.name(result.cards[0],player), nature:get.nature(result.cards[0],player), isCard:true, } player.chooseUseTarget(card,true,false); } }, }, sanlve_skill:{ equipSkill:true, mod:{ maxHandcard:function(player,num){ return num+1; }, attackRange:function(player,num){ return num+1; }, cardUsable:function(card,player,num){ if(card.name=='sha') return num+1; }, }, }, xuwangzhimian:{ equipSkill:true, trigger:{player:'phaseDrawBegin2'}, forced:true, filter:function(event,player){ return !event.numFixed; }, content:function(){ trigger.num+=2; }, mod:{ maxHandcard:function(player,num){ return num-1; } } }, shufazijinguan_skill:{ equipSkill:true, trigger:{ player:"phaseZhunbeiBegin", }, direct:true, content:function(){ "step 0" player.chooseTarget(get.prompt('shufazijinguan'),'对一名其他角色造成1点伤害',function(card,player,target){ return player!=target; }).set('ai',function(target){ return get.damageEffect(target,player,player); }); "step 1" if(result.bool){ player.logSkill('shufazijinguan_skill',result.targets[0]); result.targets[0].damage(); } }, }, qimenbagua:{ equipSkill:true, trigger:{target:'useCardToBefore'}, forced:true, filter:function(event,player){ if(event.card.name!='sha') return false; if(player.hasSkillTag('unequip2')) return false; if(event.player.hasSkillTag('unequip',false,{ name:event.card?event.card.name:null, target:player, card:event.card })) return false; return true; }, content:function(){ trigger.cancel(); }, ai:{ effect:{ target:function(card,player,target){ if(card.name!='sha') return; if(target.hasSkillTag('unequip2')||player.hasSkillTag('unequip',false,{ name:card?card.name:null, target:player, card:card })||player.hasSkillTag('unequip_ai',false,{ name:card?card.name:null, target:player, card:card })) return; return 'zerotarget'; } } } }, guofengyupao:{ equipSkill:true, mod:{ targetEnabled:function(card,player,target){ if(player==target||get.type(card)!='trick') return; if(target.hasSkillTag('unequip2')) return; if(player.hasSkillTag('unequip',false,{ name:card?card.name:null, target:player, card:card })) return; return false; } } }, hongmianbaihuapao_skill:{ equipSkill:true, trigger:{ player:"damageBegin4", }, filter:function(event,player){ if(!lib.linked.contains(event.nature)) return false; if(player.hasSkillTag('unequip2')) return false; if(event.source&&event.source.hasSkillTag('unequip',false,{ name:event.card?event.card.name:null, target:player, card:event.card })) return false; return true; }, forced:true, content:function(){ trigger.cancel(); }, ai:{ nofire:true, nothunder:true, effect:{ target:function(card,player,target,current){ if(!get.tag(card,'natureDamage')) return; if(!target.hasSkillTag('unequip2')&&!player.hasSkillTag('unequip',false,{ name:card?card.name:null, target:player, card:card })&&!player.hasSkillTag('unequip_ai',false,{ name:card?card.name:null, target:player, card:card })) return 'zerotarget'; }, }, }, }, linglongshimandai_skill:{ equipSkill:true, trigger:{ target:"useCardToTargeted", }, filter:function(event,player){ if(event.targets&&event.targets.length>1||event.player==player) return false; if(player.hasSkillTag('unequip2')) return false; var evt=event.getParent(); if(evt.player&&evt.player.hasSkillTag('unequip',false,{ name:evt.card?evt.card.name:null, target:player, card:evt.card })) return false; return true; }, audio:true, check:function(event,player){ return get.effect(player,event.card,event.player,player)<=0; }, prompt2:(event)=>('进行一次判定。若结果为♥,则'+get.translation(event.card)+'对你无效'), content:function(){ "step 0" player.judge('linglongshimandai',function(card){return (get.suit(card)=='heart')?1.5:-0.5}).judge2=function(result){ return result.bool?true:false; }; "step 1" if(result.judge>0){ trigger.getParent().excluded.add(player); } }, ai:{ effect:{ target:function(card,player,target,effect){ if(effect>0||player.hasSkillTag('unequip',false,{ name:card?card.name:null, target:player, card:card })||player.hasSkillTag('unequip_ai',false,{ name:card?card.name:null, target:player, card:card })) return; return 0.75; }, }, }, }, bintieshuangji_skill:{ trigger:{player:'shaMiss'}, filter:function(event,player){ return player.hp>0; }, prompt2:function(event,player){ var prompt='失去1点体力,然后'; var cards=event.cards.filterInD(); if(cards.length) prompt+=('获得'+get.translation(cards)+'、'); prompt+='摸一张牌、本回合使用【杀】的次数上限+1'; return prompt; }, check:function(event,player){ if(get.effect(player,{name:'losehp'},player,player)>0) return true; return player.hp>event.target.hp&&event.cards.filterInD().length>0; }, content:function(){ 'step 0' player.loseHp(); 'step 1' var cards=trigger.cards.filterInD(); if(cards.length) player.gain(cards,'gain2'); player.draw(); 'step 2' player.addTempSkill('bintieshuangji_skill_effect'); player.addMark('bintieshuangji_skill_effect',1,false); }, subSkill:{ effect:{ charlotte:true, intro:{content:'使用【杀】的次数上限+#'}, onremove:true, mod:{ cardUsable:function(card,player,num){ if(card.name=='sha') return num+player.countMark('bintieshuangji_skill_effect'); }, }, }, }, }, chixueqingfeng:{ equipSkill:true, trigger:{player:'useCardToPlayered'}, filter:function(event){ return event.card.name=='sha'; }, logTarget:'target', forced:true, content:function(){ var target=trigger.target; target.addTempSkill('chixueqingfeng2'); target.markAuto('chixueqingfeng2',[trigger.card]) }, ai:{ unequip_ai:true, directHit_ai:true, skillTagFilter:function(player,tag,arg){ if(arg&&arg.card&&arg.card.name=='sha') return true; return false; } } }, chixueqingfeng2:{ equipSkill:true, trigger:{global:'useCardAfter'}, forced:true, charlotte:true, popup:false, firstDo:true, onremove:true, filter:function(event,player){ return player.storage.chixueqingfeng2&&player.storage.chixueqingfeng2.contains(event.card); }, content:function(){ player.storage.chixueqingfeng2.remove(trigger.card); if(!player.storage.chixueqingfeng2.length) player.removeSkill('chixueqingfeng2'); }, mark:true, marktext:'※', intro:{ content:'防具技能无效,且不能使用或打出手牌', }, mod:{ cardEnabled2:function(card){ if(get.position(card)=='h') return false; }, }, ai:{ unequip2:true, }, }, guilongzhanyuedao:{ equipSkill:true, trigger:{player:'useCard'}, forced:true, filter:function(event,player){ return event.card&&event.card.name=='sha'&&get.color(event.card)=='red'; }, content:function(){ trigger.directHit.addArray(game.players); }, ai:{ unequip_ai:true, directHit_ai:true, skillTagFilter:function(player,tag,arg){ if(arg&&arg.card&&arg.card.name=='sha'&&get.color(arg.card)=='red') return true; return false; } } }, wushuangfangtianji_skill:{ equipSkill:true, trigger:{ source:"damageSource", }, filter:function(event,player){ return event.card&&event.card.name=='sha'&&event.getParent().type=='card'; }, direct:true, content:function(){ 'step 0' var target=trigger.player; var choices=['摸一张牌']; if(target.hasCard(function(card){ return lib.filter.canBeDiscarded(card,player,target); },'he')) choices.push('弃置'+get.translation(target)+'的一张牌'); player.chooseControl('cancel2').set('choiceList',choices).set('prompt',get.prompt('wushuangfangtianji_skill')).set('ai',function(){ var player=_status.event.player,target=_status.event.getTrigger().player; if(target.hasCard(function(card){ return lib.filter.canBeDiscarded(card,player,target); },'he')&&get.effect(target,{name:'guohe_copy2'},player,player)>get.effect(player,{name:'wuzhong'},player,player)/2) return 1; return 0; }); 'step 1' if(result.control=='cancel2') return; if(result.index==0){ player.logSkill('wushuangfangtianji_skill'); player.draw(); } else{ var target=trigger.player; player.logSkill('wushuangfangtianji_skill',target); player.discardPlayerCard(target,'he',true); } }, }, //芮姬 qiaoli:{ audio:2, enable:'chooseToUse', viewAs:{name:'juedou'}, viewAsFilter:function(player){ return player.hasCard(function(card){ return get.type(card)=='equip'; },'ehs') }, filterCard:{type:'equip'}, check:function(card){ if(get.position(card)=='e') return 7.5-get.value(card); return 12-_status.event.player.getUseValue(card); }, position:'hes', group:['qiaoli_effect','qiaoli_gain','qiaoli_norespond'], ai:{ directHit_ai:true, skillTagFilter:function(player,tag,arg){ return arg&&arg.card&&arg.card.name=='juedou'&&_status.event.skill=='qiaoli'; }, }, subSkill:{ norespond:{ trigger:{player:'useCard1'}, forced:true, charlotte:true, popup:false, filter:function(event,player){ if(event.skill!='qiaoli') return false; var card=event.cards[0]; return get.subtype(card)!='equip1'; }, content:function(){ trigger.directHit.addArray(game.filterPlayer(function(current){ return current!=player; })); }, }, effect:{ trigger:{player:'useCardAfter'}, forced:true, charlotte:true, popup:false, filter:function(event,player){ if(event.skill!='qiaoli') return false; var card=event.cards[0]; return get.subtype(card)=='equip1'; }, content:function(){ 'step 0' var card=trigger.cards[0]; var num=1; var info=get.info(card,false); if(info&&info.distance&&typeof info.distance.attackFrom=='number') num-=info.distance.attackFrom; player.draw(num); 'step 1' var cards=result; if(get.itemtype(cards)!='cards'){ event.finish(5); return; } var hs=player.getCards('h'); cards=cards.filter(function(card){ return hs.contains(card); }); if(!cards.length){ event.finish(5); return; } event.cards=cards; if(_status.connectMode) game.broadcastAll(function(){_status.noclearcountdown=true}); event.given_map={}; 'step 2' player.chooseCardTarget({ filterCard:function(card){ return _status.event.cards.contains(card)&&!card.hasGaintag('qiaoli_given'); }, cards:cards, filterTarget:lib.filter.notMe, selectCard:[1,cards.length], prompt:'是否将得到的牌分配给其他角色?', ai1:function(card){ return -1; }, ai2:function(target){ return -1; }, }); 'step 3' if(result.bool){ var res=result.cards,target=result.targets[0].playerid; player.addGaintag(res,'qiaoli_given'); cards.removeArray(res); if(!event.given_map[target]) event.given_map[target]=[]; event.given_map[target].addArray(res); if(cards.length) event.goto(2); } 'step 4' if(_status.connectMode){ game.broadcastAll(function(){delete _status.noclearcountdown;game.stopCountChoose()}); } var map=[],cards=[]; for(var i in event.given_map){ var source=(_status.connectMode?lib.playerOL:game.playerMap)[i]; player.line(source,'green'); map.push([source,event.given_map[i]]); cards.addArray(event.given_map[i]); } if(map.length) game.loseAsync({ gain_list:map, player:player, cards:cards, giver:player, animate:'giveAuto', }).setContent('gaincardMultiple'); }, }, gain:{ audio:'qiaoli', trigger:{player:'phaseJieshuBegin'}, forced:true, filter:function(event,player){ return player.hasHistory('useCard',function(evt){ return evt.skill=='qiaoli'; }) }, content:function(){ var card=get.cardPile2(function(card){ return get.type(card)=='equip'; }); if(card) player.gain(card,'gain2'); }, }, }, }, qingliang:{ audio:2, trigger:{target:'useCardToTarget'}, usable:1, filter:function(event,player){ return player!=event.player&&player.countCards('h')>0; }, logTarget:'player', check:function(event,player){ if(get.attitude(player,event.player)>0||event.player.hasSkillTag('nogain')) return true; var eff=get.effect(player,event.card,event.player,player); if(eff>=0) return false; var suits=[],banned=[],hs=player.getCards('h'); for(var i of hs){ var suit=get.suit(i,player); suits.add(suit); if(!lib.filter.cardDiscardable(i,player,'qingliang')) banned.add(suit); } suits.removeArray(banned); for(var i of suits){ var cards=player.getCards('h',function(card){ return get.suit(card,player)==i; }); if((-eff/2-get.value(cards,player))>0) return true; } return false; }, content:function(){ 'step 0' player.showHandcards(get.translation(player)+'发动了【清靓】'); 'step 1' var suits=[],banned=[],hs=player.getCards('h'); for(var i of hs){ var suit=get.suit(i,player); suits.add(suit); if(!lib.filter.cardDiscardable(i,player,'qingliang')) banned.add(suit); } if(suits.length>banned.length){ player.chooseControl().set('choiceList',[ '和'+get.translation(trigger.player)+'各摸一张牌', '弃置一种花色的所有手牌,令'+get.translation(trigger.card)+'对自己无效', ]).set('ai',function(){ var player=_status.event.player,event=_status.event.getTrigger(); if(get.attitude(player,event.player)>0||event.player.hasSkillTag('nogain')) return 0; return 1; }); event.suits=suits; suits.removeArray(banned); suits.sort(); } else{ event._result={index:0}; } 'step 2' if(result.index==0){ var list=[player,trigger.player].sortBySeat(); list[0].draw('nodelay'); list[1].draw(); event.finish(); } else{ if(event.suits.length==1) event._result={control:event.suits[0]}; else player.chooseControl(event.suits).set('prompt','选择弃置一种花色的所有牌').set('ai',function(){ var player=_status.event.player,list=_status.event.controls.slice(0); var gett=function(suit){ var cards=player.getCards('h',function(card){ return get.suit(card,player)==suit; }); return get.value(cards); } return list.sort(function(b,a){ return gett(b)-gett(a); })[0]; }); } 'step 3' var cards=player.getCards('h',function(card){ return get.suit(card)==result.control; }); if(cards.length) player.discard(cards); trigger.targets.remove(player); trigger.getParent().triggeredTargets2.remove(player); trigger.untrigger(); }, }, //卫兹 yuanzi:{ audio:2, trigger:{global:'phaseZhunbeiBegin'}, logTarget:'player', filter:function(event,player){ return player!=event.player&&event.player.isIn()&&player.countCards('h')>0&&!player.hasSkill('yuanzi_round',null,null,false); }, check:function(event,player){ if(get.attitude(player,event.player)<=4) return false; if(event.player.hasJudge('lebu')) return false; return game.hasPlayer(function(current){ return event.player!=player&&game.hasPlayer(function(current){ return current!=player&¤t!=event.player&&event.player.inRange(current)&&get.attitude(event.player,current)<0; }); }) }, content:function(){ var cards=player.getCards('h'); player.give(cards,trigger.player); player.addTempSkill('yuanzi_effect'); player.addTempSkill('yuanzi_round','roundStart'); }, subSkill:{ effect:{ charlotte:true, audio:'yuanzi', trigger:{global:'damageSource'}, forced:true, filter:function(event,player){ var source=event.source; return source&&source==_status.currentPhase&&player.countCards('h')<=source.countCards('h'); }, content:function(){ player.draw(2); }, }, round:{charlotte:true}, }, }, liejie:{ audio:2, trigger:{player:'damageEnd'}, direct:true, filter:function(event,player){ return player.countCards('he')>0; }, content:function(){ 'step 0' var source=trigger.source; var prompt2='弃置至多三张牌并摸等量的牌'; if(source) prompt2+=(',若弃置的牌中有红色牌,则弃置'+get.translation(source)+'至多等量的牌'); var next=player.chooseToDiscard('he',[1,3],get.prompt('liejie'),prompt2); next.set('ai',function(card){ return 6-get.value(card); }) if(source) next.logSkill=['liejie',source]; else next.logSkill='liejie'; 'step 1' if(result.bool){ var cards=result.cards; player.draw(cards.length); if(trigger.source){ var num=cards.filter(function(i){ return get.color(i,player)=='red'; }).length; if(num>0) player.discardPlayerCard(trigger.source,'he',[1,num]).set('forceAuto',true); } } }, }, //滕芳兰 luochong:{ audio:2, trigger:{player:['phaseZhunbeiBegin','damageEnd']}, direct:true, filter:function(event,player){ if(event.name=='damage'){ var history=player.getHistory('damage'); if(history.indexOf(event)!=0) return false; } var storage1=player.storage.luochong_round,storage2=player.getStorage('luochong'); if(!storage1) storage1=[[],[]]; for(var i=0;i<4;i++){ if(!storage1[0].contains(i)&&!storage2.contains(i)&&game.hasPlayer(function(current){ return !storage1[1].contains(current)&&lib.skill.luochong.filterx[i](current); })) return true; } return false; }, filterx:[ (target)=>target.isDamaged(), ()=>true, (target)=>target.countCards('he')>0, ()=>true, ], onremove:true, content:function(){ 'step 0' var list=[]; var choiceList=[ '令一名角色回复1点体力。', '令一名角色失去1点体力。', '令一名角色弃置两张牌。', '令一名角色摸两张牌。', ]; var storage1=player.storage.luochong_round,storage2=player.getStorage('luochong'); if(!storage1) storage1=[[],[]]; for(var i=0;i<4;i++){ if(storage2.contains(i)){ choiceList[i]=(''+choiceList[i]+''); } else if(storage1[0].contains(i)||!game.hasPlayer(function(current){ return !storage1[1].contains(current)&&lib.skill.luochong.filterx[i](current); })){ choiceList[i]=(''+choiceList[i]+''); } else list.push('选项'+get.cnNumber(i+1,true)) } list.push('cancel2'); player.chooseControl(list).set('prompt',get.prompt('luochong')).set('choiceList',choiceList).set('ai',function(){ var player=_status.event.player; var list=_status.event.controls.slice(0); var listx=(player.storage.luochong_round||[[],[]])[1]; var gett=function(choice){ if(choice=='cancel2') return 0.1; var max=0,func={ 选项一:function(current){ if(current.isDamaged()) max=Math.max(max,get.recoverEffect(current,player,player)); }, 选项二:function(target){ max=Math.max(max,get.effect(target,{name:'losehp'},player,player)); }, 选项三:function(target){ var num=target.countDiscardableCards(player,'he'); if(num>0) max=Math.max(max,Math.sqrt(Math.min(2,num))*get.effect(target,{name:'guohe_copy2'},player,player)); }, 选项四:function(target){ max=Math.max(max,get.effect(target,{name:'wuzhong'},player,player)); }, }[choice]; game.countPlayer(function(current){ if(!listx.contains(current)) func(current); }); return max; }; return list.sort(function(a,b){ return gett(b)-gett(a); })[0]; }); 'step 1' if(result.control!='cancel2'){ var index=['选项一','选项二','选项三','选项四'].indexOf(result.control); event.index=index; var listx=(player.storage.luochong_round||[[],[]])[1]; var list=[ ['选择一名角色,令其回复1点体力',function(target){ var player=_status.event.player; return get.recoverEffect(target,player,player); }], ['选择一名角色,令其失去1点体力',function(target){ return get.effect(target,{name:'losehp'},player,player); }], ['选择一名角色,令其弃置两张牌',function(target){ var player=_status.event.player; return get.effect(target,{name:'guohe_copy2'},player,player)*Math.sqrt(Math.min(2,target.countCards('he'))); }], ['选择一名角色,令其摸两张牌',function(target){ var player=_status.event.player; return get.effect(target,{name:'wuzhong'},player,player); }] ][index]; var targets=game.filterPlayer(function(current){ return !listx.contains(current)&&lib.skill.luochong.filterx[event.index](current); }) var next=player.chooseTarget(list[0],true,function(card,player,target){ return _status.event.targets.contains(target); }); next.set('targets',targets); next.set('ai',list[1]); } else event.finish(); 'step 2' if(result.bool){ var target=result.targets[0]; player.logSkill('luochong',target); if(player!=target) player.addExpose(0.2); player.addTempSkill('luochong_round','roundStart'); if(!player.storage.luochong_round) player.storage.luochong_round=[[],[]]; player.storage.luochong_round[0].push(event.index); player.storage.luochong_round[1].push(target); switch(event.index){ case 0: target.recover(); break; case 1: target.loseHp(); break; case 2: target.chooseToDiscard(true,'he',2); break; case 3: target.draw(2); break; } } }, subSkill:{ round:{ charlotte:true, onremove:true, }, }, }, aichen:{ audio:2, trigger:{player:'dying'}, forced:true, filter:function(event,player){ return player.hasSkill('luochong',null,null,false)&&player.getStorage('luochong').length<3; }, content:function(){ 'step 0' //var num=1-player.hp; //if(num>0) player.recover(num); var list=[]; var choiceList=[ '令一名角色回复1点体力。', '令一名角色失去1点体力。', '令一名角色弃置两张牌。', '令一名角色摸两张牌。', ]; var storage2=player.getStorage('luochong'); for(var i=0;i<4;i++){ if(storage2.contains(i)){ choiceList[i]=(''+choiceList[i]+''); } else list.push('选项'+get.cnNumber(i+1,true)) } player.chooseControl(list).set('prompt','哀尘:选择移去一个〖落宠〗的选项').set('choiceList',choiceList).set('ai',function(){ var controls=_status.event.controls.slice(0); var list=['选项三','选项四','选项二','选项一']; for(var i of list){ if(controls.contains(i)) return i; } return 0; }); 'step 1' var index=['选项一','选项二','选项三','选项四'].indexOf(result.control); player.markAuto('luochong',[index]); game.log(player,'移去了','#g【落宠】','的','#y'+[ '令一名角色回复1点体力', '令一名角色失去1点体力', '令一名角色弃置两张牌', '令一名角色摸两张牌', ][index],'的选项'); }, }, //SP孟获 spmanwang:{ audio:2, enable:'phaseUse', filter:function(event,player){ return player.countCards('he')>0; }, filterCard:true, position:'he', selectCard:[1,Infinity], check:function(card){ var player=_status.event.player; var max=Math.min(player.isDamaged()?3:2,4-player.countMark('spmanwang')); if(!max&&!player.hasSkill('sppanqin')) return 0; if(max==0&&ui.selected.length>0) return 0; return 7-ui.selected.cards.length-get.value(card); }, content:function(){ var num=Math.min(cards.length,4-player.countMark('spmanwang')); if(num>=1) player.addSkill('sppanqin'); if(num>=2) player.draw(); if(num>=3) player.recover(); if(num>=4){ player.draw(2); player.removeSkill('sppanqin'); } }, intro:{content:'已经移去过#个选项'}, ai:{ order:2, result:{ player:function(player,target){ if(player.getUseValue({name:'nanman'})<=0) return 0; if(player.getStat('skill').spmanwang&&player.hasSkill('sppanqin')) return 0; return 1; }, }, }, derivation:'sppanqin', }, sppanqin:{ audio:2, trigger:{player:['phaseUseEnd','phaseDiscardEnd']}, filter:function(event,player){ var cards=[],bool=true; player.getHistory('lose',function(evt){ if(!bool||evt.type!='discard'||evt.getParent(event.name)!=event) return false; for(var i of evt.cards2){ if(get.position(i,true)=='d'){ cards.add(i); if(!game.checkMod(i,player,'unchanged','cardEnabled2',player)) bool=false; } } }); if(!bool||!cards.length) return false; return player.hasUseTarget(get.autoViewAs({name:'nanman'},cards)); }, prompt2:function(event,player){ var cards=[]; player.getHistory('lose',function(evt){ if(evt.type!='discard'||evt.getParent(event.name)!=event) return false; for(var i of evt.cards2){ if(get.position(i,true)=='d'){ cards.add(i); } } }); return '将'+get.translation(cards)+'(共计'+get.cnNumber(cards.length)+'张牌)当做【南蛮入侵】使用' }, check:function(event,player){ var cards=[],bool=true; player.getHistory('lose',function(evt){ if(!bool||evt.type!='discard'||evt.getParent(event.name)!=event) return false; for(var i of evt.cards2){ if(get.position(i,true)=='d'){ cards.add(i); if(!game.checkMod(i,player,'unchanged','cardEnabled2',player)) bool=false; } } }); if(!bool||!cards.length) return false; return player.hasValueTarget(get.autoViewAs({name:'nanman'},cards)); }, content:function(){ 'step 0' var cards=[]; player.getHistory('lose',function(evt){ if(evt.type!='discard'||evt.getParent(trigger.name)!=trigger) return false; for(var i of evt.cards2){ if(get.position(i,true)=='d'){ cards.add(i); } } }); player.chooseUseTarget(true,{name:'nanman'},cards); player.addTempSkill('sppanqin_eff'); }, subSkill:{ eff:{ trigger:{player:'useCard'}, charlotte:true, forced:true, popup:false, filter:function(event,player){ return event.card.name=='nanman'&&event.getParent(2).name=='sppanqin'&&player.countMark('spmanwang')<4&&player.hasSkill('spmanwang',null,null,false)&&event.cards.length<=event.targets.length; }, content:function(){ player.addMark('spmanwang',1,false); switch(player.countMark('spmanwang')){ case 1: player.draw(2); player.removeSkill('sppanqin'); break; case 2: player.recover(); break; case 3: player.draw(); break; case 4: player.addSkill('sppanqin'); break; } }, } } }, //清河公主 zengou:{ audio:2, trigger:{global:'useCard'}, filter:function(event,player){ return event.card.name=='shan'&&player.inRange(event.player)&&(player.hp>0||player.hasCard(function(card){ return get.type(card)!='basic'&&lib.filter.cardDiscardable(card,player,'zengou'); },'eh')) }, logTarget:'player', check:function(event,player){ if(get.attitude(player,event.player)>=0) return false; if(get.damageEffect(event.player,event.getParent(3).player,player,get.nature(event.card))<=0) return false; if(player.hasCard(function(card){ return get.type(card)!='basic'&&get.value(card)<7&&lib.filter.cardDiscardable(card,player,'zengou'); },'eh')) return true; return player.hp>Math.max(1,event.player.hp); }, content:function(){ 'step 0' trigger.all_excluded=true; var str='弃置一张非基本牌'; if(player.hp>0) str+=',或点「取消」失去一点体力'; var next=player.chooseToDiscard(str,function(card){ return get.type(card)!='basic'; },'he').set('ai',function(card){ return 7-get.value(card); }); if(player.hp<=0) next.set('forced',true); 'step 1' if(!result.bool) player.loseHp(); 'step 2' var cards=trigger.cards.filterInD(); if(cards.length) player.gain(cards,'gain2'); }, }, qhzhangji:{ audio:2, trigger:{global:'phaseJieshuBegin'}, direct:true, filter:function(event,player){ if(!event.player.isIn()) return false; if(player.getHistory('sourceDamage').length>0) return true; if(player.getHistory('damage').length>0) return event.player.countCards('he')>0; return false; }, content:function(){ 'step 0' event.target=trigger.player; if(player.getHistory('sourceDamage').length) player.chooseBool(get.prompt('qhzhangji',event.target),'令'+get.translation(event.target)+'摸两张牌').set('choice',get.attitude(player,event.target)>0).set('ai',()=>_status.event.choice); else event.goto(2); 'step 1' if(result.bool){ player.logSkill('qhzhangji',target); event.logged=true; target.draw(2); } 'step 2' if(target.isIn()&&target.countCards('he')>0&&player.getHistory('damage').length>0) player.chooseBool(get.prompt('qhzhangji',event.target),'令'+get.translation(event.target)+'弃置两张牌').set('choice',get.attitude(player,event.target)<0).set('ai',()=>_status.event.choice); else event.finish(); 'step 3' if(result.bool){ if(!event.logged) player.logSkill('qhzhangji',target); target.chooseToDiscard('he',true,2); } }, }, //十周年夏侯霸 rebaobian:{ audio:2, trigger:{player:'damageEnd'}, filter:function(event,player){ for(var i of lib.skill.rebaobian.derivation){ if(!player.hasSkill(i,null,null,false)) return true; } return false; }, forced:true, content:function(){ for(var i of lib.skill.rebaobian.derivation){ if(!player.hasSkill(i,null,null,false)){ player.addSkillLog(i); break; } } }, ai:{ maixie:true, effect:{ target:function(card,player,target){ if(get.tag(card,'damage')&&!target.hasSkill('oltiaoxin',null,null,false)){ if(!target.hasFriend()) return; if(target.hp>=4) return [0,1]; } } } }, derivation:['oltiaoxin','new_repaoxiao','xinshensu'], }, //范强张达 yuanchou:{ audio:2, trigger:{ player:'useCardToPlayered', target:'useCardToTargeted', }, filter:function(event){ return event.card.name=='sha'&&get.color(event.card)=='black'; }, forced:true, logTarget:'target', content:function(){ trigger.target.addTempSkill('qinggang2'); trigger.target.storage.qinggang2.add(trigger.card); }, ai:{ unequip_ai:true, skillTagFilter:function(player,tag,arg){ if(arg&&arg.name=='sha'&&get.color(arg.card)=='black') return true; return false; } }, global:'yuanchou_ai', subSkill:{ ai:{ unequip_ai:true, skillTagFilter:function(player,tag,arg){ if(arg&&arg.name=='sha'&&get.color(arg.card)=='black'&&arg.target&&arg.target.hasSkill('yuanchou')) return true; return false; } }, }, }, juesheng:{ audio:2, enable:'phaseUse', limited:true, skillAnimation:true, animationColor:'orange', viewAs:{name:'juedou',isCard:true}, filterCard:()=>false, selectCard:-1, precontent:function(){ player.awakenSkill('juesheng'); player.addTempSkill('juesheng_counter'); }, ai:{ result:{ player:function(player,target){ return target.getAllHistory('useCard',(evt)=>evt.card.name=='sha').length*lib.card.juedou.ai.result.player.apply(this,arguments); }, target:function(player,target){ var num=target.getAllHistory('useCard',(evt)=>evt.card.name=='sha').length; if(numevt.card.name=='sha').length); target.addTempSkill('juesheng',{player:'phaseAfter'}); }, }, }, }, //田之间 saodi:{ audio:2, trigger:{ player:'useCardToPlayer', }, direct:true, filter:function(event,player){ if(event.targets.length!=1||event.target==player||event.target.hasSkill('nodis')) return false; if(event.card.name!='sha'&&get.type(event.card)!='trick') return false; var target=event.target; var left=[],right=[],left2=player,right2=player; while(left2!=target&&right2!=target){ left2=left2.getPrevious(); right2=right2.getNext(); if(left2!=target) left.push(left2); if(right2!=target) right.push(right2); } if(target==left2){ for(var i of left){ if(lib.filter.targetEnabled2(event.card,player,i)) return true; } } if(target==right2){ for(var i of right){ if(lib.filter.targetEnabled2(event.card,player,i)) return true; } } return false; }, aiJudge:function(card,player,target,bool){ var left=[],right=[],left2=player,right2=player,left3=false,right3=false; var eff_left=0,eff_right=0; while(left2!=target&&right2!=target){ left2=left2.getPrevious(); right2=right2.getNext(); if(left2!=target) left.push(left2); if(right2!=target) right.push(right2); } if(target==left2){ for(var i of left){ if(lib.filter.targetEnabled2(card,player,i)){ left3=true; eff_left+=get.effect(i,card,player,player); } } } if(target==right2){ for(var i of right){ if(lib.filter.targetEnabled2(card,player,i)){ right3=true; eff_right+=get.effect(i,card,player,player); } } } if(left3&&right3){ if(!bool) return Math.max(eff_left,eff_right); if(eff_left>Math.max(0,eff_right)) return '↖顺时针'; if(eff_right>Math.max(0,eff_left)) return '逆时针↗'; return 'cancel2'; } else if(left3){ if(bool) return eff_left>0?'↖顺时针':'cancel2'; return eff_left; } else if(right3){ if(bool) return eff_right>0?'逆时针↗':'cancel2'; return eff_right; } else return bool?'cancel2':0; }, content:function(){ 'step 0' var choices=[]; var target=trigger.target; var left=[],right=[],left2=player,right2=player; while(left2!=target&&right2!=target){ left2=left2.getPrevious(); right2=right2.getNext(); if(left2!=target) left.push(left2); if(right2!=target) right.push(right2); } if(target==left2){ for(var i of left){ if(lib.filter.targetEnabled2(trigger.card,player,i)){ choices.push('↖顺时针'); break; } } } if(target==right2){ for(var i of right){ if(lib.filter.targetEnabled2(trigger.card,player,i)){ choices.push('逆时针↗'); break; } } } choices.push('cancel2'); player.chooseControl(choices).set('prompt',get.prompt('saodi')).set('prompt2','令自己和'+get.translation(trigger.target)+'某个方向之间的所有角色均成为'+get.translation(trigger.card)+'的目标').set('choices',choices).set('ai',function(){ var evt=_status.event.getTrigger(); return lib.skill.saodi.aiJudge(evt.card,evt.player,evt.target,true); }); 'step 1' if(result.control!='cancel2'){ var targets=[]; if(result.control=='↖顺时针'){ var current=player.getPrevious(); while(current!=trigger.target){ if(lib.filter.targetEnabled2(trigger.card,player,current)) targets.push(current); current=current.getPrevious(); } } else{ var current=player.getNext(); while(current!=trigger.target){ if(lib.filter.targetEnabled2(trigger.card,player,current)) targets.push(current); current=current.getNext(); } } event.targets=targets; if(!event.isMine()&&!event.isOnline()) game.delayx(); } else event.finish(); 'step 2' player.logSkill('saodi',targets); trigger.targets.addArray(targets); }, ai:{ effect:{ player_use:function(card,player,target){ if(!target||player._saodi_judging||ui.selected.targets.length||player==target||target.hasSkill('nodis')) return; if(typeof card!='object'||card.name!='sha'&&get.type(card)!='trick') return false; player._saodi_judging=true; var effect=lib.skill.saodi.aiJudge(card,player,target); delete player._saodi_judging; if(effect>0) return [1,effect/Math.max(0.01,get.attitude(player,player))]; }, }, }, }, zhuitao:{ audio:2, direct:true, locked:false, trigger:{player:'phaseZhunbeiBegin'}, filter:function(event,player){ var storage=player.getStorage('zhuitao'); return game.hasPlayer(function(current){ return current!=player&&!storage.contains(current); }); }, content:function(){ 'step 0' player.chooseTarget(get.prompt('zhuitao'),'令自己至一名其他角色的距离-1',function(card,player,target){ return target!=player&&!player.getStorage('zhuitao').contains(target); }).set('ai',function(target){ var player=_status.event.player; var att=get.attitude(player,target); if(att<0&&get.distance(player,target)==2) return 100; return get.distance(player,target)*(1-get.sgn(att)/3); }); 'step 1' if(result.bool){ player.logSkill('zhuitao',result.targets[0]); player.markAuto('zhuitao',result.targets); game.delayx(); } }, intro:{ content:'至$的距离-1', onunmark:true, }, onremove:true, mod:{ globalFrom:function(player,target,distance){ if(player.getStorage('zhuitao').contains(target)) return distance-1; }, }, group:'zhuitao_remove', subSkill:{ remove:{ audio:'zhuitao', trigger:{ source:'damageSource', }, forced:true, filter:function(event,player){ return player.getStorage('zhuitao').contains(event.player); }, logTarget:'player', content:function(){ player.unmarkAuto('zhuitao',[trigger.player]); }, }, }, }, //生鱼片 olfengji:{ audio:2, trigger:{player:'phaseDrawBegin2'}, forced:true, locked:false, filter:function(event,player){ return !player.numFixed; }, content:function(){ 'step 0' player.chooseTarget('丰积:请选择增加摸牌的目标','令自己本回合的额定摸牌数-1,且目标下回合的额定摸牌数+2。或者点击「取消」,令自己的额定摸牌数+1',lib.filter.notMe).set('ai',function(target){ var player=_status.event.player; if(target.hasJudge('lebu')||target.hasJudge('bingliang')) return 0; var att=get.attitude(player,target),dist=get.distance(player,target,'absolute'); if(_status.event.goon){ return att/dist; } if(game.countPlayer(function(current){ return current!=player&¤t!=target&&get.attitude(player,current)<0&&get.distance(player,current,'absolute')=target.hp) return 0; return att/dist; }).set('goon',player.skipList.contains('lebu')); 'step 1' if(!player.storage.olfengji_draw) player.storage.olfengji_draw=0; if(result.bool){ var target=result.targets[0]; player.line(target,'thunder'); player.storage.olfengji_draw--; if(!target.storage.olfengji_draw) target.storage.olfengji_draw=0; target.storage.olfengji_draw+=2; target.addTempSkill('olfengji_draw',{player:'phaseAfter'}); target.markSkill('olfengji_draw'); } else{ player.storage.olfengji_draw++; } player.addTempSkill('olfengji_draw'); player.markSkill('olfengji_draw'); 'step 2' player.chooseTarget('丰积:请选择增加使用杀次数的目标','令自己本回合使用杀的次数上限-1,且目标下回合使用杀的次数上限+2。或者点击「取消」,令自己使用杀的次数上限+1',lib.filter.notMe).set('ai',function(target){ var player=_status.event.player; if(target.countMark('olfengji_draw')>0&&target.getCardUsable('sha')<2) return get.attitude(player,target); return 0; }); 'step 3' if(!player.storage.olfengji_sha) player.storage.olfengji_sha=0; if(result.bool){ var target=result.targets[0]; player.line(target,'fire'); player.storage.olfengji_sha--; if(!target.storage.olfengji_sha) target.storage.olfengji_sha=0; target.storage.olfengji_sha+=2; target.addTempSkill('olfengji_sha',{player:'phaseAfter'}); target.markSkill('olfengji_sha'); } else{ player.storage.olfengji_sha++; } player.addTempSkill('olfengji_sha'); player.markSkill('olfengji_sha'); }, subSkill:{ sha:{ charlotte:true, onremove:true, intro:{ content:function(storage){ return '使用【杀】的次数上限'+(storage>=0?'+':'')+storage; }, }, mod:{ cardUsable:function(card,player,num){ if(card.name=='sha') return num+player.storage.olfengji_sha; }, }, }, draw:{ charlotte:true, onremove:true, intro:{ content:function(storage){ return '额定摸牌数'+(storage>=0?'+':'')+storage; }, }, trigger:{player:'phaseDrawBegin2'}, forced:true, filter:function(event,player){ return !event.numFixed; }, content:function(){ trigger.num+=player.storage.olfengji_draw; }, }, }, }, //朱灵 jixian:{ audio:2, trigger:{player:'phaseDrawAfter'}, direct:true, filter:function(event,player){ return game.hasPlayer(function(current){ return current!=player&&lib.skill.jixian.getNum(player,current)>0&&player.canUse('sha',current,false); }) }, content:function(){ 'step 0' player.chooseTarget(get.prompt('jixian'),'视为对一名满足条件的角色使用一张【杀】',function(card,player,target){ return target!=player&&lib.skill.jixian.getNum(player,target)>0&&player.canUse('sha',target,false); }).set('ai',function(target){ var player=_status.event.player; return get.effect(target,{name:'sha'},player,player)*Math.sqrt(lib.skill.jixian.getNum(player,target)); }); 'step 1' if(result.bool){ var target=result.targets[0]; player.logSkill('jixian',target); var num=lib.skill.jixian.getNum(player,target); player.useCard({name:'sha',isCard:true},target,false); if(num>0) player.draw(num); } else event.finish(); 'step 2' if(!player.hasHistory('sourceDamage',function(evt){ var card=evt.card; if(!card||card.name!='sha') return false; var evtx=evt.getParent('useCard'); return evtx.card==card&&evtx.getParent()==event; })) player.loseHp(); }, getNum:function(player,target){ var num=0; if(target.isHealthy()) num++; if(target.getEquips(2).length) num++; var countSkill=function(player){ return player.getSkills(null,false,false).filter(function(skill){ var info=get.info(skill); if(!info||info.charlotte) return false; if(info.zhuSkill) return player.hasZhuSkill(skill); return true; }).length; } if(countSkill(player)(current==player||current.countCards('h')>=ph)).sortBySeat(); player.line(targets,'green'); event.targets=targets; event.num=0; 'step 1' var target=targets[num]; event.num++; if(target.isIn()){ event.target=target; target.chooseBool('是否令'+(player==target?'自己':get.translation(player))+'摸一张牌?').set('ai',()=>get.attitude(_status.event.player,_status.event.getParent().player)>0); } else{ event.goto(event.num0&&player.getExpansions('spolzhouxuan').length<5; }, direct:true, content:function(){ 'step 0' player.chooseCard('h',get.prompt('spolzhouxuan'),[1,5-player.getExpansions('spolzhouxuan').length],'将至多'+get.cnNumber(5-player.getExpansions('spolzhouxuan').length)+'张手牌置于武将牌上').set('ai',function(card){ if(ui.selected.cards.length>=player.needsToDiscard()) return 6-get.value(card); return 100-get.useful(card); }); 'step 1' if(result.bool){ var cards=result.cards; player.logSkill('spolzhouxuan'); player.addToExpansion(cards,player,'give').gaintag.add('spolzhouxuan'); } }, marktext:'旋', intro:{ content:'expansion', markcount:'expansion', }, onremove:function(player,skill){ var cards=player.getExpansions(skill); if(cards.length) player.loseToDiscardpile(cards); }, group:['spolzhouxuan_use','spolzhouxuan_discard'], subSkill:{ use:{ audio:'spolzhouxuan', trigger:{player:'useCard'}, filter:function(event,player){ return player.getExpansions('spolzhouxuan').length>0; }, forced:true, locked:false, content:function(){ 'step 0' player.loseToDiscardpile(player.getExpansions('spolzhouxuan').randomGet()); 'step 1' var num=1; if(!player.isMaxHandcard(true)) num+=player.getExpansions('spolzhouxuan').length; player.draw(num); }, }, discard:{ audio:'spolzhouxuan', trigger:{player:'phaseUseEnd'}, filter:function(event,player){ return player.getExpansions('spolzhouxuan').length>0; }, forced:true, locked:false, content:function(){ player.loseToDiscardpile(player.getExpansions('spolzhouxuan')); }, }, }, }, //董昭 olxianlve:{ audio:2, mode:['identity'], trigger:{ global:'phaseZhunbeiBegin', }, direct:true, filter:function(event,player){ return event.player==game.zhu&&event.player.isZhu; }, content:function(){ 'step 0' var list=lib.inpile.filter(function(i){ return get.type2(i)=='trick'; }).map(function(i){ return ['锦囊','',i]; }); if(!list.length) event.finish(); else player.chooseButton([get.prompt('olxianlve'),[list,'vcard']]).set('ai',function(button){ switch(button.link[2]){ case 'wuxie': return 0.6+Math.random(); case 'wuzhong': case 'dongzhuxianji':return 0.5+Math.random(); case 'guohe': case 'zhujinqiyuan': return 0.4+Math.random(); default: return Math.random(); } }); 'step 1' if(result.bool){ var name=result.links[0][2]; player.logSkill('olxianlve'); player.storage.olxianlve=name; player.markSkill('olxianlve'); game.log(player,'声明了','#g'+get.translation(name)); } }, intro:{content:'已声明【$】'}, group:['olxianlve_use','olxianlve_count'], subSkill:{ count:{ trigger:{global:'useCard1'}, silent:true, forced:true, popup:false, firstDo:true, filter:function(event,player){ return event.player!=player&&event.card.name==player.storage.olxianlve; }, content:function(){ if(!trigger.olxianlve_map) trigger.olxianlve_map={}; trigger.olxianlve_map[player.playerid]=true; }, }, use:{ audio:'olxianlve', trigger:{global:'useCardAfter'}, forced:true, locked:false, usable:1, filter:function(event,player){ return event.player!=player&&event.olxianlve_map&&event.olxianlve_map[player.playerid]&&event.card.name==player.storage.olxianlve; }, content:function(){ 'step 0' player.draw(2); 'step 1' var cards=result; if(get.itemtype(cards)!='cards'){ event.goto(5); return; } var hs=player.getCards('h'); cards=cards.filter(function(card){ return hs.contains(card); }); if(!cards.length){ event.goto(5); return; } event.cards=cards; if(_status.connectMode) game.broadcastAll(function(){_status.noclearcountdown=true}); event.given_map={}; event.ai_list=[]; 'step 2' player.chooseCardTarget({ filterCard:function(card){ return _status.event.cards.contains(card)&&!card.hasGaintag('olxianlve'); }, cards:cards, filterTarget:lib.filter.notMe, selectCard:[1,cards.length], prompt:'是否将得到的牌分配给其他角色?', ai1:function(card){ if(!ui.selected.cards.length) return 1; return 0; }, ai2:function(target){ var player=_status.event.player,card=ui.selected.cards[0]; var val=target.getUseValue(card); if(target.isPhaseUsing()&&get.type2(card)=='trick') val*=3; if(val>0) return val*get.attitude(player,target)*2; return get.value(card,target)*get.attitude(player,target); }, }); 'step 3' if(result.bool){ var res=result.cards,target=result.targets[0].playerid; player.addGaintag(res,'olxianlve'); cards.removeArray(res); if(!event.given_map[target]) event.given_map[target]=[]; event.given_map[target].addArray(res); if(result.targets[0].isPhaseUsing()&&get.type2(res[0])=='trick') event.ai_list.push(res[0].name); if(cards.length) event.goto(2); } 'step 4' if(_status.connectMode){ game.broadcastAll(function(){delete _status.noclearcountdown;game.stopCountChoose()}); } var map=[],cards=[]; for(var i in event.given_map){ var source=(_status.connectMode?lib.playerOL:game.playerMap)[i]; player.line(source,'green'); map.push([source,event.given_map[i]]); cards.addArray(event.given_map[i]); } if(map.length) game.loseAsync({ gain_list:map, player:player, cards:cards, giver:player, animate:'giveAuto', }).setContent('gaincardMultiple') 'step 5' var list=lib.inpile.filter(function(i){ return get.type2(i)=='trick'; }).map(function(i){ return ['锦囊','',i]; }); if(!list.length) event.finish(); else player.chooseButton([get.prompt('olxianlve'),[list,'vcard']]).set('list',event.ai_list).set('ai',function(button){ if(_status.event.list.contains(button.link[2])) return 2+Math.random(); switch(button.link[2]){ case 'wuxie': return 0.6+Math.random(); case 'wuzhong': case 'dongzhuxianji':return 0.5+Math.random(); case 'guohe': case 'zhujinqiyuan': return 0.4+Math.random(); default: return Math.random(); } }); 'step 6' if(result.bool){ var name=result.links[0][2]; player.storage.olxianlve=name; player.markSkill('olxianlve'); game.log(player,'声明了','#g'+get.translation(name)); } }, }, }, }, olzaowang:{ mode:['identity'], audio:2, enable:'phaseUse', limited:true, skillAnimation:true, animationColor:'water', filterTarget:true, content:function(){ player.awakenSkill('olzaowang'); target.gainMaxHp(); target.recover(); target.draw(3); target.addSkill('olzaowang2'); }, ai:{ order:2, result:{ target:function(player,target){ if(player.hasUnknown(2)) return 0; if(target.identity=='zhong') return 20; if(target.identity=='zhu') return 10; if(target.identity=='nei') return 5; if(!target.hasFriend()) return 5; return 0; }, }, }, }, olzaowang2:{ charlotte:true, trigger:{global:'dieBegin'}, forced:true, filter:function(event,player){ return event.player.identity=='zhu'&&(player.identity=='zhong'||player.identity=='mingzhong'); }, logTarget:'player', skillAnimation:true, animationColor:'orange', content:function(){ game.broadcastAll(function(player,target){ target.identity=player.identity; if(player.identity=='mingzhong') game.zhong=target; delete target.isZhu; player.identity='zhu'; game.zhu=player; player.showIdentity(); target.showIdentity(); },player,trigger.player); event.trigger('zhuUpdate'); }, mark:true, marktext:'王', intro:{content:'造了个王'}, group:'olzaowang2_kill', subSkill:{ kill:{ trigger:{player:'die'}, forced:true, forceDie:true, skillAnimation:true, animationColor:'wood', filter:function(event,player){ return player.identity=='fan'&&event.source&&(event.source.identity=='zhu'||event.source.identity=='zhong'||event.source.identity=='mingzhong'); }, content:function(){ game.over((game.me.identity=='zhu'||game.me.identity=='zhong'||game.me.identity=='mingzhong')); }, }, }, }, //冯方女 zhuangshu:{ audio:2, trigger:{global:'phaseBegin'}, direct:true, filter:function(event,player){ return event.player.isIn()&&event.player.hasEmptySlot(5)&&player.hasCard(lib.skill.zhuangshu.filterCard,'he'); }, filterCard:function(card){ if(_status.connectMode) return true; var type=get.type2(card); return type=='basic'||type=='trick'||type=='equip'; }, content:function(){ 'step 0' player.chooseToDiscard('he',get.prompt('zhuangshu',trigger.player),'弃置一张牌,并根据此牌的类型,按如下关系将一张宝物牌置入该角色的装备区:{<基本牌,【琼梳】>,<锦囊牌,【犀梳】>,<装备牌,【金梳】>}。',function(card){ var type=get.type2(card); return type=='basic'||type=='trick'||type=='equip'; }).set('ai',function(card){ var player=_status.event.player; if(get.attitude(player,_status.event.getTrigger().player)<4) return 0; var name='zhuangshu_'+get.type2(card,player); if(game.hasPlayer(function(current){ return current.getEquip(name)&&get.attitude(player,current)>0; })) return 0; return 7-get.value(card); }).logSkill=['zhuangshu',trigger.player]; 'step 1' if(result.bool){ var name='zhuangshu_'+get.type2(result.cards[0],result.cards[0].original=='h'?player:false); if(lib.card[name]&&trigger.player.isIn&&trigger.player.hasEmptySlot(5)){ var target=game.findPlayer(function(current){ var equip=current.getEquip(name); return equip&&equip.name==name; }); if(target){ var card=target.getEquip(name); target.$give(card,trigger.player,false); } else{ var card=game.createCard(name,lib.card[name].suit,12); trigger.player.$gain2(card,false); } game.delayx(); trigger.player.equip(card); } } }, group:'zhuangshu_gameStart', subSkill:{ gameStart:{ trigger:{global:'phaseBefore'}, direct:true, filter:function(event,player){ return game.phaseNumber==0; }, content:function(){ 'step 0' player.chooseButton([get.prompt('zhuangshu'),[['zhuangshu_basic','zhuangshu_trick','zhuangshu_equip'],'vcard']]).set('filterButton',function(button){ return !game.hasPlayer(function(current){ return current.getEquip(button.link[2]); }) }); 'step 1' if(result.bool){ player.logSkill('zhuangshu'); var name=result.links[0][2],card=game.createCard(name,lib.card[name].suit,12); player.$gain2(card,false); game.delayx(); player.equip(card); } }, }, }, }, chuiti:{ audio:2, usable:1, trigger:{ global:['loseAfter','loseAsyncAfter'], }, direct:true, filter:function(event,player){ if(event.type!='discard'||event.getlx===false) return false; return game.hasPlayer(function(current){ if(player!=current){ var cards=current.getEquips(5); if(!cards.some(card=>card.name.indexOf('zhuangshu_')==0)) return false; } var evt=event.getl(current); if(!evt||!evt.cards2) return false; for(var i of evt.cards2){ if(get.position(i,true)=='d'&&player.hasUseTarget(i)) return true; } return false; }); }, content:function(){ 'step 0' var cards=[]; game.countPlayer(function(current){ if(player!=current){ var cards2=current.getEquips(5); if(!cards2.some(card=>card.name.indexOf('zhuangshu_')==0)) return false; } var evt=trigger.getl(current); for(var i of evt.cards2){ if(get.position(i,true)=='d'&&player.hasUseTarget(i)) cards.push(i); } return false; }); player.chooseButton(['垂涕:是否使用其中的一张牌?',cards]).set('ai',function(button){ return _status.event.player.getUseValue(button.link); }); 'step 1' if(result.bool){ player.$gain2(result.links[0],false); game.delayx(); player.chooseUseTarget(true,result.links[0],false).logSkill='chuiti'; } else player.storage.counttrigger.chuiti--; }, }, zhuangshu_basic:{ equipSkill:true, trigger:{player:'damageBegin2'}, direct:true, filter:function(event,player){ var equip=player.getEquip('zhuangshu_basic'); return event.num<=player.countCards('he',function(card){ return card!=equip; }) }, content:function(){ 'step 0' player.chooseToDiscard('he',trigger.num,get.prompt('zhuangshu_basic'),'弃置'+get.cnNumber(trigger.num)+'张牌并防止伤害',function(card,player){ return card!=player.getEquip('zhuangshu_basic'); }).set('ai',function(card){ var player=_status.event.player; return 4+player.getUseValue(card)-get.value(card,player); }); 'step 1' if(result.bool) trigger.cancel(); }, /*usable:1, trigger:{player:'useCard2'}, direct:true, filter:function(event,player){ if(event.targets.length!=1) return false; if(event.card.name!='sha'&&get.type(event.card)!='trick') return false; var info=get.info(event.card); if(info.allowMultiple==false) return false; if(event.targets&&!info.multitarget){ var target=event.targets[0],hp=target.hp,hs=target.countCards('h'),card=event.card; return game.hasPlayer(function(current){ return current!=target&¤t!=player&&(current.hp==hp||current.countCards('h')==hs)&&lib.filter.targetEnabled2(card,player,current); }); } return false; }, content:function(){ 'step 0' player.chooseTarget(get.prompt('zhuangshu_basic'),'为'+get.translation(trigger.card)+'增加一个满足条件的额外目标',function(card,player,current){ var card=_status.event.getTrigger().card,target=_status.event.target,hp=target.hp,hs=target.countCards('h'); return current!=target&¤t!=player&&(current.hp==hp||current.countCards('h')==hs)&&lib.filter.targetEnabled2(card,player,current); }).set('target',trigger.targets[0]).set('ai',function(target){ var card=_status.event.getTrigger().card,player=_status.event.player; return get.effect(target,card,player,player); }); 'step 1' if(result.bool){ if(player!=event.player&&!player.isOnline()) game.delayx(); } else{ player.storage.counttrigger.zhuangshu_basic--; event.finish(); } 'step 2' var targets=result.targets; player.logSkill('zhuangshu_basic',targets); trigger.targets.addArray(targets); trigger.directHit.addArray(targets); },*/ }, zhuangshu_trick:{ trigger:{player:['phaseJudgeBefore']}, equipSkill:true, direct:true, content:function(){ 'step 0' player.chooseControl('判定阶段','弃牌阶段','cancel2').set('prompt',get.prompt('zhuangshu_trick')).set('prompt2','跳过本回合的判定阶段或弃牌阶段').set('ai',function(){ var player=_status.event.player; if(player.hasCard(function(card){ return get.effect(player,{ name:card.viewAs||card.name, cards:[card], },player,player)<0; },'j')) return '判定阶段'; return '弃牌阶段'; }); 'step 1' if(result.control!='cancel2'){ player.logSkill('zhuangshu_trick'); if(result.control=='判定阶段'){ trigger.cancel(); game.log(player,'跳过了','#y判定阶段'); } else{ player.skip('phaseDiscard'); game.log(player,'跳过了','#g弃牌阶段'); } } }, }, zhuangshu_equip:{ trigger:{player:'phaseUseEnd'}, forced:true, equipSkill:true, filter:function(event,player){ return player.countCards('h')0) list.push(eff); } list.sort().reverse(); if(!list.length) return 0; return list[0]+(list[1]||0)+(list[2]||0); }); 'step 1' if(result.bool){ var target=result.targets[0]; event.target=target; player.logSkill('oljuanxia',target); } else event.finish(); 'step 2' var list=[]; for(var name of lib.inpile){ var info=lib.card[name]; if(!info||info.type!='trick'||info.notarget||(info.selectTarget&&info.selectTarget!=1)) continue; list.push(name); } if(!list.length) event.finish(); else{ event.list=list; event.count=0; } 'step 3' var list=event.list.filter(function(name){ return player.canUse(name,target,false); }); if(list.length){ var next=player.chooseButton(['视为对'+get.translation(target)+'使用一张牌',[list,'vcard']]).set('ai',function(button){ var evt=_status.event.getParent(); return get.effect(evt.target,{name:button.link[2]},evt.player,evt.player); }); if(event.count==0) next.set('forced',true); } else{ event.stopped=true; event.goto(5); } 'step 4' if(result.bool){ event.count++; var name=result.links[0][2]; event.list.remove(name); player.useCard({name:name,isCard:true},target,false); } else event.stopped=true; 'step 5' if(target.isIn()&&event.count>0){ if(event.count<3&&!event.stopped&&event.list.length>0) event.goto(3); else{ target.addTempSkill('oljuanxia_counter',{player:'phaseAfter'}); if(!target.storage.oljuanxia_counter) target.storage.oljuanxia_counter={}; if(!target.storage.oljuanxia_counter[player.playerid]) target.storage.oljuanxia_counter[player.playerid]=0; target.storage.oljuanxia_counter[player.playerid]+=event.count; } } }, subSkill:{ counter:{ trigger:{player:'phaseEnd'}, forced:true, charlotte:true, onremove:true, filter:function(event,player){ var map1=(_status.connectMode?lib.playerOL:game.playerMap),map2=player.storage.oljuanxia_counter; if(!map2) return false; for(var i in map2){ if(map1[i]&&map1[i].isIn()&&player.canUse('sha',map1[i],false)) return true; } return false; }, logTarget:function(event,player){ var list=[]; var map1=(_status.connectMode?lib.playerOL:game.playerMap),map2=player.storage.oljuanxia_counter; if(!map2) return false; for(var i in map2){ if(map1[i]&&map1[i].isIn()) list.push(map1[i]); } return list; }, content:function(){ 'step 0' var list=[]; var map1=(_status.connectMode?lib.playerOL:game.playerMap),map2=player.storage.oljuanxia_counter; if(!map2) return false; for(var i in map2){ if(map1[i]&&map1[i].isIn()) list.push(map1[i]); } list.sortBySeat(); event.num=0; event.targets=list; 'step 1' var target=targets[num]; event.target=target; if(target.isIn()&&player.canUse('sha',target,false)) player.chooseBool('狷狭:是否视为对'+get.translation(target)+'依次使用'+get.cnNumber(player.storage.oljuanxia_counter[target.playerid])+'张【杀】?').set('goon',get.effect(target,{name:'sha'},player,player)>0).set('ai',()=>_status.event.goon); 'step 2' event.num++; if(result.bool) event.count=player.storage.oljuanxia_counter[target.playerid]; else if(event.num0) event.redo(); else if(event.num1){ var color=get.color(result[0],player); for(var i=1;i=1+event.num-event.player.hp) return false; return true; }, content:function(){ player.removeMark('zhaosong_trick',1); player.removeSkill('zhaosong_trick'); //player.loseMaxHp(); if(player.hp<1) player.recover(1-player.hp); player.draw(); }, }, equip:{ marktext:'赋', intro:{ name:'诏颂(赋)', name2:'赋', content:'出牌阶段开始时,你可移去“赋”并弃置一名角色区域内的至多两张牌。', }, trigger:{player:'phaseUseBegin'}, direct:true, charlotte:true, onremove:true, filter:function(event,player){ return player.hasMark('zhaosong_equip')&&game.hasPlayer(function(current){ return current.hasCard(function(card){ return lib.filter.canBeDiscarded(card,player,current); },'hej'); }); }, content:function(){ 'step 0' player.chooseTarget('是否弃置“赋”标记?','弃置一名角色区域内的至多两张牌',function(card,player,current){ return current.hasCard(function(card){ return lib.filter.canBeDiscarded(card,player,current); },'hej'); }).set('ai',function(target){ var player=_status.event.player,att=get.attitude(player,target)>0?2:1; return get.effect(target,{name:'guohe_copy'},player,player)*att; }); 'step 1' if(result.bool){ var target=result.targets[0]; event.target=target; player.logSkill('zhaosong_equip',target); player.removeMark('zhaosong_equip',1); player.removeSkill('zhaosong_equip'); player.discardPlayerCard(target,true,'hej',[1,2]); } }, }, }, }, lisi:{ audio:2, trigger:{player:'useCardAfter'}, direct:true, filter:function(event,player){ if(player==_status.currentPhase||!event.cards.filterInD().length) return false; var hs=player.countCards('h'); return game.hasPlayer(function(current){ return current!=player&¤t.countCards('h')<=hs; }); }, content:function(){ 'step 0' player.chooseTarget(get.prompt('lisi'),'将'+get.translation(trigger.cards.filterInD())+'交给一名手牌数不大于你的其他角色',function(card,player,target){ return target!=player&&target.countCards('h')<=player.countCards('h'); }); 'step 1' if(result.bool){ var target=result.targets[0]; player.logSkill('lisi',target); target.gain(trigger.cards.filterInD(),'gain2'); } }, }, //王荣 olfengzi:{ audio:2, trigger:{player:'useCard'}, direct:true, usable:1, filter:function(event,player){ if(event.olfengzi_buff||!event.targets.length||!player.isPhaseUsing()||player.hasSkill('olfengzi_buff')) return false; var type=get.type(event.card,false); if(type!='basic'&&type!='trick') return false; return player.hasCard(function(i){ if(_status.connectMode) return true; return get.type2(i,player)==type; },'h'); }, content:function(){ 'step 0' if(player!=game.me&&!player.isUnderControl()&&!player.isOnline()) game.delayx(); var type=get.type(trigger.card,false); player.chooseToDiscard('h',get.prompt('olfengzi'),'弃置一张'+get.translation(type)+'牌,令'+get.translation(trigger.card)+'结算两次',function(card,player){ return get.type2(card,player)==_status.event.type; }).set('type',type).set('ai',function(card){ var player=_status.event.player; var trigger=_status.event.getTrigger(); if(trigger.card.name=='tiesuo') return 0; var num=0; for(var i of trigger.targets) num+=get.effect(i,trigger.card,player,player); if(num<=0) return 0; return 7-get.value(card); }).logSkill='olfengzi'; 'step 1' if(result.bool){ trigger.effectCount++; } else player.storage.counttrigger.olfengzi--; }, /*subSkill:{ buff:{ trigger:{global:'useCardToTargeted'}, forced:true, charlotte:true, popup:false, lastDo:true, filter:function(event,player){ return (event.parent.olfengzi_buff==player&&event.targets.length==event.parent.triggeredTargets4.length); }, content:function(){ trigger.getParent().targets=trigger.getParent().targets.concat(trigger.targets); trigger.getParent().triggeredTargets4=trigger.getParent().triggeredTargets4.concat(trigger.targets); }, onremove:function(player){ delete player.storage.counttrigger.olfengji; }, }, },*/ }, oljizhan:{ audio:2, trigger:{player:'phaseDrawBegin1'}, filter:function(event,player){ return !event.numFixed; }, content:function(){ 'step 0' trigger.changeToZero(); var card=get.cards()[0]; game.cardsGotoOrdering(card); event.cards=[card]; event.num=get.number(card,false); player.showCards(card,get.translation(player)+'发动了【吉占】'); 'step 1' var str=get.strNumber(num); player.chooseControl('大于'+str,'小于'+str,'cancel2').set('prompt','吉占:猜测下一张牌的点数').set('choice',num<7?0:1).set('ai',()=>_status.event.choice); 'step 2' var card=get.cards()[0]; game.cardsGotoOrdering(card); event.cards.push(card); var num=get.number(card,false); if(num>event.num&&result.index==0||numplayer.maxHp; }); }, content:function(){ 'step 0' player.chooseTarget(get.prompt('olfusong'),'令一名体力上限大于你的其他角色获得〖丰姿〗或〖吉占〗',function(card,player,target){ return target.maxHp>player.maxHp; }).set('forceDie',true).set('ai',(target)=>get.attitude(_status.event.player,target)); 'step 1' if(result.bool){ var target=result.targets[0]; event.target=target; player.logSkill('olfusong',target); target.chooseControl('olfengzi','oljizhan').set('prompt','令'+get.translation(target)+'获得其中一个技能').set('ai',()=>(Math.random()>0.5?0:1)); } else event.finish(); 'step 2' target.addSkillLog(result.control); }, }, //邓芝 olxiuhao:{ audio:2, trigger:{ player:'damageBegin4', source:'damageBegin2', }, usable:1, filter:function(event,player){ return event.source&&event.source.isIn()&&event.source!=event.player; }, logTarget:function(event,player){ return player==event.player?event.source:event.player; }, check:function(event,player){ _status.olxiuhao_judging=true; var bool=false; if(player==event.source){ if(get.attitude(player,event.player)>0) bool=true; if(get.damageEffect(event.player,player,player,event.nature)<=0) bool=true; } else{ if(get.attitude(player,event.source)>0) bool=true; if(get.damageEffect(player,event.source,player,event.nature)<0){ if(event.source.hasSkillTag('nogain')) bool=true; if(event.num>=player.hp+player.countCards('hs',{name:['tao','jiu']})&&(!player.hasFriend()||player==get.zhu(player))) bool=true; } } delete _status.olxiuhao_judging; return bool; }, content:function(){ trigger.cancel(); trigger.source.draw(2); }, ai:{ effect:{ target:function(card,player,target){ if(!_status.olxiuhao_judging&&get.tag(card,'damage')&&get.attitude(target,player)>0&&player!=target&&(!target.storage.counttrigger||!target.storage.counttrigger.olxiuhao)) return [0,0.5,0,0.5]; }, player:function(card,player,target){ if(!_status.olxiuhao_judging&&get.tag(card,'damage')&&get.attitude(player,target)>0&&player!=target&&(!player.storage.counttrigger||!player.storage.counttrigger.olxiuhao)) return [0,0.5,0,0.5]; }, }, }, }, olsujian:{ trigger:{player:'phaseDiscardBefore'}, forced:true, content:function(){ trigger.setContent(lib.skill.olsujian.phaseDiscard); }, phaseDiscard:function(){ 'step 0' game.log(player,'进入了弃牌阶段'); game.broadcastAll(function(player){ if(lib.config.show_phase_prompt){ player.popup('弃牌阶段',null,false); } },player); event.trigger('phaseDiscard'); 'step 1' var cards=lib.skill.olsujian.update(player); if(!cards.length) event.finish(); else{ event.cards=cards; var str=get.translation(cards); player.chooseControl().set('choiceList',[ '将'+str+'分配给任意名其他角色', '弃置'+str+'并弃置一名其他角色至多等量的牌', ]).set('ai',function(){ var cards=_status.event.getParent().cards,player=_status.event.player; if(!game.hasPlayer(function(current){ return get.attitude(player,current)>0; })) return 1; if(game.hasPlayer(function(current){ var att=get.attitude(player,current); return att!=0&¤t.countDiscardableCards(player,'he',function(i){ if(att>0) return get.value(i,current)>=4; return get.value(i,current)<=0; })>=cards.length&&get.effect(current,{name:'guohe_copy2'},player,player)>0; })) return 1; return 0; }); } 'step 2' if(result.index==1){ cards=event.cards.filter(function(i){ return lib.filter.cardDiscardable(i,player,'olsujian'); }); if(cards.length){ event.num=cards.length; player.discard(cards); event.cards=cards; } else event.finish(); } else event.goto(5); 'step 3' if(game.hasPlayer(function(current){ return current!=player&¤t.countDiscardableCards(player,'he')>0; })){ player.chooseTarget(true,'弃置一名其他角色的至多'+get.cnNumber(num)+'张牌',function(card,player,current){ return current!=player&¤t.countDiscardableCards(player,'he')>0; }).set('ai',function(current){ var att=get.attitude(player,current); if(current.countDiscardableCards(player,'he',function(i){ if(att>0) return get.value(i,current)>=4; return get.value(i,current)<=0; })>=num) return 4*get.effect(current,{name:'guohe_copy2'},player,player); return get.effect(current,{name:'guohe_copy2'},player,player); }); } else event.finish(); 'step 4' if(result.bool){ var target=result.targets[0]; player.line(target,'green'); player.discardPlayerCard(target,true,[1,num]); } event.finish(); 'step 5' if(_status.connectMode) game.broadcastAll(function(){_status.noclearcountdown=true}); event.given_map={}; 'step 6' player.chooseCardTarget({ filterCard:function(card){ return card.hasGaintag('olsujian'); }, filterTarget:lib.filter.notMe, selectCard:[1,cards.length], forced:true, prompt:'请选择要分配的卡牌和目标', ai1:function(card){ if(!ui.selected.cards.length) return 1; return 0; }, ai2:function(target){ var player=_status.event.player,card=ui.selected.cards[0]; var val=target.getUseValue(card); if(val>0) return val*get.attitude(player,target)*2; return get.value(card,target)*get.attitude(player,target); }, }); 'step 7' if(result.bool){ var res=result.cards,target=result.targets[0].playerid; player.removeGaintag('olsujian',res); player.addGaintag(res,'olsujian_given'); cards.removeArray(res); if(!event.given_map[target]) event.given_map[target]=[]; event.given_map[target].addArray(res); if(cards.length) event.goto(6); } else event.finish(); 'step 8' if(_status.connectMode){ game.broadcastAll(function(){delete _status.noclearcountdown;game.stopCountChoose()}); } var map=[],cards=[]; for(var i in event.given_map){ var source=(_status.connectMode?lib.playerOL:game.playerMap)[i]; player.line(source,'green'); map.push([source,event.given_map[i]]); cards.addArray(event.given_map[i]); } if(map.length) game.loseAsync({ gain_list:map, player:player, cards:cards, giver:player, animate:'giveAuto', }).setContent('gaincardMultiple'); 'step 9' event.cards=[]; }, update:function(player){ player.removeGaintag('olsujian'); var hs=player.getCards('h'); player.getHistory('gain',function(evt){ hs.removeArray(evt.cards); }); if(hs.length) player.addGaintag(hs,'olsujian'); return hs; }, group:'olsujian_sync', subSkill:{ sync:{ trigger:{player:['phaseBeginStart','gainBegin']}, forced:true, popup:false, firstDo:true, filter:function(event,player){ if(event.name=='gain') return (player==_status.currentPhase)&&(event.getParent('olsujian').player!=player); return true; }, content:function(){ lib.skill.olsujian.update(player); }, }, }, }, //卞夫人 fuwei:{ audio:'wanwei', trigger:{ player:'loseAfter', global:'gainAfter', }, filter:function(event,player){ var evt=event; if(event.name=='lose'){ if(event.type!='discard') return false; evt=event.getParent(); } if(evt[event.name=='gain'?'bySelf':'notBySelf']!=true) return false; var evtx=event.getl(player); return evtx&&evtx.cards2&&evtx.cards2.length>0; }, prompt2:function(event,player){ var evt=event.getl(player),origins=evt.cards2.map(function(i){ return get.name(i,evt.hs.contains(i)?player:false); }); return '从牌堆中获得'+get.translation(origins)+';若没有则改为摸一张牌'; }, usable:1, content:function(){ var num=0,cards=[],evt=trigger.getl(player),origins=evt.cards2.map(function(i){ return get.name(i,evt.hs.contains(i)?player:false); }); for(var i of origins){ var card=get.cardPile2(function(card){ return card.name==i&&!cards.contains(card); }); if(card) cards.push(card); else num++; } if(cards.length) player.gain(cards,'gain2'); if(num) player.draw(num); }, }, yuejian:{ audio:2, usable:2, trigger:{global:'useCardAfter'}, filter:function(event,player){ return player!=event.player&&event.targets&&event.targets.contains(player)&&player.countCards('h')>0; }, prompt2:function(event,player){ var suit=get.suit(event.card),hs=player.getCards('h'),cards=event.cards.filterInD(); if(!lib.suit.contains(suit)||!cards.length){ return '展示所有手牌,然后无事发生'; } for(var i of hs){ if(get.suit(i)==suit){ return '展示所有手牌,然后无事发生'; } } return '展示所有手牌,然后获得'+get.translation(cards)+''; }, check:function(event,player){ var suit=get.suit(event.card),hs=player.getCards('h'),cards=event.cards.filterInD(); if(!lib.suit.contains(suit)||!cards.length){ return false; } for(var i of hs){ if(get.suit(i)==suit){ return false; } } return true; }, content:function(){ 'step 0' player.showHandcards(get.translation(player)+'发动了【约俭】'); var suit=get.suit(trigger.card),hs=player.getCards('h'); if(!lib.suit.contains(suit)){event.finish();return;} for(var i of hs){ if(get.suit(i)==suit){ event.finish(); return; } } 'step 1' var cards=trigger.cards.filterInD(); if(cards.length) player.gain(cards,'gain2'); }, }, //杜袭 quxi:{ audio:2, trigger:{player:'phaseUseEnd'}, direct:true, limited:true, skillAnimation:true, animationColor:'water', filter:function(event,player){ if(player.isTurnedOver()) return false; var list=game.filterPlayer((target)=>target!=player&&!target.hasMark('quxi_gain')&&!target.hasMark('quxi_lose')); if(list.length<2) return false; var nf=list[0].countCards('h'); for(var i=1;ihs&&!current.hasMark('quxi_gain')&&!current.hasMark('quxi_lose'); })) return get.attitude(player,target)/(Math.sqrt(1+target.countCards('h'))); return 0; } if(target.countCards('h')>ui.selected.targets[0].countCards('h')) return -get.attitude(_status.event.player,target); return 0; }); 'step 1' if(result.bool){ player.logSkill('quxi',result.targets); player.awakenSkill('quxi'); player.skip('phaseDiscard'); if(result.targets[0].countCards('h')>result.targets[1].countCards('h')) result.targets.reverse(); event.gainner=result.targets[0]; event.giver=result.targets[1]; player.turnOver(); } else event.finish(); 'step 2' event.gainner.gainPlayerCard(event.giver,true,'he'); 'step 3' player.addSkill('quxi_effect'); event.gainner.addMark('quxi_gain',1); event.giver.addMark('quxi_lose',1); }, subSkill:{ effect:{ global:'quxi_gainlose', trigger:{global:['roundStart','die']}, charlotte:true, direct:true, filter:function(event,player){ if(event.name=='die') return event.player.countMark('quxi_gain')>0||event.player.countMark('quxi_lose')>0; return game.hasPlayer(function(target){ return target!=player&&(target.countMark('quxi_gain')>0||target.countMark('quxi_lose')>0) }); }, content:function(){ 'step 0' if(trigger.name=='die'){ var gain=trigger.player.countMark('quxi_gain'),lose=trigger.player.countMark('quxi_lose'); player.chooseTarget('是否令一名角色获得'+get.translation(trigger.player)+'的“'+(gain&&lose?'丰”和“歉':(gain?'丰':'歉'))+'”标记?',function(card,player,target){ return !target.hasMark('quxi_gain')&&!target.hasMark('quxi_lose'); }).set('goon',gain-lose).set('ai',function(target){ var evt=_status.event; return evt.goon*get.attitude(evt.player,target); }); } else event.goto(2); 'step 1' if(result.bool){ var targets=result.targets; if(targets.length<2) targets.unshift(trigger.player); player.logSkill('quxi_effect',targets,false); player.line2(targets); var gain=targets[0].countMark('quxi_gain'),lose=targets[0].countMark('quxi_lose'); if(gain){ targets[0].removeMark('quxi_gain',gain); targets[1].addMark('quxi_gain',gain); } if(lose){ targets[0].removeMark('quxi_lose',lose); targets[1].addMark('quxi_lose',lose); } game.delayx(); event.finish(); } 'step 2' if(game.hasPlayer(function(target){ return target.countMark('quxi_gain')>0; })) player.chooseTarget(2,'是否转移“丰”标记?',function(card,player,target){ if(ui.selected.targets.length) return (!target.hasMark('quxi_gain')&&!target.hasMark('quxi_lose')); return target.countMark('quxi_gain')>0; }).set('complexTarget',true).set('complexSelect',true).set('targetprompt',['移走标记','获得标记']).set('ai',function(target){ var player=_status.event.player; if(!ui.selected.targets.length){ return -get.attitude(player,target); } return get.attitude(player,target); }); else event.goto(4); 'step 3' if(result.bool){ var targets=result.targets; player.logSkill('quxi_effect',targets,false); player.line2(targets); var gain=targets[0].countMark('quxi_gain'); if(gain){ targets[0].removeMark('quxi_gain',gain); targets[1].addMark('quxi_gain',gain); } game.delayx(); } 'step 4' if(game.hasPlayer(function(target){ return target.countMark('quxi_lose')>0; })) player.chooseTarget(2,'是否转移“歉”标记?',function(card,player,target){ if(ui.selected.targets.length) return (!target.hasMark('quxi_gain')&&!target.hasMark('quxi_lose')); return target.countMark('quxi_lose')>0; }).set('complexTarget',true).set('complexSelect',true).set('targetprompt',['移走标记','获得标记']).set('ai',function(target){ var player=_status.event.player; if(!ui.selected.targets.length){ return get.attitude(player,target); } return -get.attitude(player,target); }); else event.finish(); 'step 5' if(result.bool){ var targets=result.targets; player.logSkill('quxi_effect',targets,false); player.line2(targets); var gain=targets[0].countMark('quxi_lose'); if(gain){ targets[0].removeMark('quxi_lose',gain); targets[1].addMark('quxi_lose',gain); } game.delayx(); } }, }, gainlose:{ trigger:{player:'phaseDrawBegin'}, forced:true, filter:function(event,player){ if(event.numFixed) return false; return player.countMark('quxi_gain')-player.countMark('quxi_lose')!=0; }, content:function(){ trigger.num+=(player.countMark('quxi_gain')-player.countMark('quxi_lose')); }, }, gain:{ marktext:'丰', intro:{ name:'驱徙(丰)', name2:'丰', content:'mark', }, }, lose:{ marktext:'歉', intro:{ name:'驱徙(歉)', name2:'歉', content:'mark', }, }, }, }, bixiong:{ trigger:{ player:'loseAfter', global:'loseAsyncAfter', }, forced:true, filter:function(event,player){ if(event.type!='discard'||event.getlx===false||event.getParent('phaseDiscard').player!=player) return false; var evt=event.getl(player); return evt&&evt.hs&&evt.hs.length>0; }, content:function(){ var cards=[],hs=trigger.getl(player).hs; for(var i of hs) cards.add(get.suit(i,player)); player.addTempSkill('bixiong2',{player:'phaseBegin'}); player.markAuto('bixiong2',cards); }, }, bixiong2:{ onremove:true, mod:{ targetEnabled:function(card,player,target){ if(target.getStorage('bixiong2').contains(get.suit(card))) return false; }, }, intro:{content:'不能成为$牌的目标'}, }, //高干 juguan:{ audio:2, enable:'phaseUse', usable:1, filter:function(event,player){ return event.filterCard({ name:'sha', },player,event)||event.filterCard({ name:'juedou', },player,event); }, chooseButton:{ dialog:function(){ return ui.create.dialog('拒关',[['sha','juedou'],'vcard']); }, filter:function(button,player){ var evt=_status.event.getParent(); return evt.filterCard({ name:button.link[2], },player,evt); }, check:function(button){ return _status.event.player.getUseValue({ name:button.link[2], })*(button.link[2]=='juedou'?3:1); }, backup:function(links){ return { audio:'juguan', viewAs:{name:links[0][2]}, filterCard:true, check:function(card){ return 6-get.value(card); }, position:'hs', onuse:function(result,player){ player.addTempSkill('juguan_effect'); }, } }, prompt:function(links){ return '将一张手牌当做'+get.translation(links[0][2])+'使用'; }, }, ai:{ order:function(item,player){ return Math.max(get.order({name:'sha'}),get.order({name:'juedou'}))+0.2; }, result:{player:1}, }, subSkill:{ effect:{ trigger:{global:'damage'}, forced:true, charlotte:true, firstDo:true, silent:true, popup:false, filter:function(event,player){ var evt=event.getParent('useCard'); return event.card&&evt&&event.card==evt.card&&evt.skill=='juguan_backup'&&evt.player==player; }, content:function(){ player.addSkill('juguan_draw'); player.markAuto('juguan_draw',[trigger.player]); }, }, draw:{ audio:'juguan', trigger:{player:'phaseDrawBegin'}, forced:true, charlotte:true, onremove:true, content:function(){ player.removeSkill('juguan_draw'); if(!trigger.numFixed) trigger.num+=2; }, group:'juguan_clear', intro:{ content:'若没有受到$的伤害,则下个摸牌阶段多摸两张牌', }, }, clear:{ trigger:{player:'damage'}, forced:true, charlotte:true, firstDo:true, silent:true, popup:false, filter:function(event,player){ return player.storage.juguan_draw&&player.storage.juguan_draw.contains(event.source); }, content:function(){ player.unmarkAuto('juguan_draw',[trigger.source]); if(!player.storage.juguan_draw||!player.storage.juguan_draw.length) player.removeSkill('juguan_draw'); }, }, }, }, //OL鲍三娘 olwuniang:{ audio:'xinfu_wuniang', trigger:{player:'useCardAfter'}, usable:1, filter:function(event,player){ return event.card.name=='sha'&&event.targets.length==1&&event.targets[0].isIn(); }, logTarget:'targets', content:function(){ 'step 0' var target=trigger.targets[0]; target.chooseToUse(function(card,player,event){ if(get.name(card)!='sha') return false; return lib.filter.filterCard.apply(this,arguments); },'武娘:是否对'+get.translation(player)+'使用一张杀?').set('targetRequired',true).set('complexSelect',true).set('filterTarget',function(card,player,target){ if(target!=_status.event.sourcex&&!ui.selected.targets.contains(_status.event.sourcex)) return false; return lib.filter.filterTarget.apply(this,arguments); }).set('sourcex',player); 'step 1' player.addTempSkill('olwuniang2'); player.addMark('olwuniang2',1,false); player.draw(); }, }, olwuniang2:{ onremove:true, charlotte:true, mod:{ cardUsable:function(card,player,num){ if(card.name=='sha') return num+player.countMark('olwuniang2'); }, }, }, olxushen:{ derivation:'olzhennan', audio:'xinfu_xushen', trigger:{player:'dying'}, limited:true, skillAnimation:true, animationColor:'fire', filter:function(event,player){ return player.hp<1; }, content:function(){ 'step 0' player.awakenSkill('olxushen'); player.addSkill('olzhennan'); player.recover(1-player.hp); 'step 1' if(!player.isDying()&&!game.hasPlayer(function(current){ return current.name1=='guansuo'||current.name2=='guansuo'; })){ player.chooseTarget(function(card,player,current){ return current!=player&¤t.hasSex('male'); },'许身:是否令一名其他男性角色选择是否将其武将牌替换为“关索”?').set('ai',function(target){ return get.attitude(_status.event.player,target)-4; }); } else event.finish(); 'step 2' if(!result.bool){ event.finish(); return; } var target=result.targets[0]; event.target=target; player.line(target,'fire'); target.chooseBool('许身:是否将自己的一张武将牌替换为“关索”?'); 'step 3' if(result.bool){ if(target.name2!=undefined){ target.chooseControl(target.name1,target.name2).set('prompt','请选择要更换的武将牌'); } else event._result={control:target.name1}; } else event.finish(); 'step 4' target.reinit(result.control,'guansuo'); if(target.name=='guansuo'&&target.group!='shu') target.changeGroup('shu'); if(_status.characterlist){ _status.characterlist.add(result.control); _status.characterlist.remove('guansuo'); } }, }, olzhennan:{ audio:'xinfu_zhennan', enable:'phaseUse', usable:1, viewAs:{name:'nanman'}, filterCard:true, selectCard:function(){ if(ui.selected.targets.length) return [ui.selected.targets.length,Math.min(ui.selected.targets.length+1,game.players.length-1)]; return [1,Infinity]; }, check:function(card){ var player=_status.event.player; if(game.countPlayer(function(current){ return current!=player&&player.canUse('nanman',current)&&get.effect(current,{name:'nanman'},player,player)>0; })<=ui.selected.cards.length) return 0; return 6-get.value(card); }, selectTarget:function(){ return ui.selected.cards.length; }, ai:{ order:2, }, group:'olzhennan2', }, olzhennan2:{ trigger:{target:'useCardToBefore'}, forced:true, locked:false, audio:'olzhennan', filter:function(event,player){ return event.card.name=='nanman'; }, content:function(){ trigger.cancel(); }, }, //黄承彦 guanxu:{ enable:'phaseUse', usable:1, filter:function(event,player){ return game.hasPlayer((current)=>lib.skill.guanxu.filterTarget(null,player,current)); }, filterTarget:function(card,player,target){ return target!=player&&target.countCards('h')>0; }, content:function(){ 'step 0' var cards=get.cards(5); for(var i=cards.length-1;i>=0;i--){ ui.cardPile.insertBefore(cards[i],ui.cardPile.firstChild); } game.updateRoundNumber(); var hs=target.getCards('h'); var dialog=['观虚:选择要操作的牌','
    '+get.translation(target)+'的手牌
    ',hs,'
    牌堆顶
    ',cards]; player.chooseButton(dialog,2).set('filterButton',function(button){ if(ui.selected.buttons.length) return get.position(button.link)!=get.position(ui.selected.buttons[0].link); return true; }).set('cards1',hs).set('cards2',cards).set('ai',function(button){ var card=button.link,cards1=_status.event.cards1.slice(0); var cards2=_status.event.cards2.slice(0),target=_status.event.getParent().target; if(!ui.selected.buttons.length){ if(!cards1.contains(card)) return 0; cards1.remove(card); var suits=cards2.map(function(i){ return get.suit(i,target); }); for(var i of lib.suit){ var num=cards1.filter(function(c){ return get.suit(c,target)==i; }).length; if(num>2||(num>1&&suits.contains(i))) return 20+get.value(card); } return get.value(card); } cards1.remove(ui.selected.buttons[0].link); cards1.push(card); for(var i of lib.suit){ if(cards1.filter(function(c){ return get.suit(c,target)==i; }).length>2) return 20-get.value(card); return get.value(ui.selected.buttons[0].link)-get.value(card); } }); 'step 1' if(result.bool){ var cards=result.links; if(get.position(cards[0])!='h') cards.reverse(); var next=target.lose(cards[0],ui.cardPile); next.insert_index_card=cards[1]; next.insert_index=function(event){ return event.insert_index_card; } target.gain(cards[1],'draw'); } else event.finish(); 'step 2' game.updateRoundNumber(); var suits=[],map={},hs=target.getCards('h'); if(hs.length){ for(var i of hs){ if(!lib.filter.canBeDiscarded(i,player,target,'guanxu')) continue; var suit=get.suit(i,target); if(!map[suit]) map[suit]=1; else map[suit]++; if(map[suit]>2) suits.add(suit); } var next=player.discardPlayerCard(target,3,'visible','h'); next.set('suits',suits); next.set('filterButton',function(button){ var suit=get.suit(button.link); if(!ui.selected.buttons.length) return _status.event.suits.contains(suit); return suit==get.suit(ui.selected.buttons[0].link) }); if(suits.length) next.set('forced',true); } }, ai:{ order:9, result:{ target:function(player,target){ if(target.countCards('h')>3) return -5; if(target.countCards('h')==3) return -3; return -0.5; }, }, }, }, yashi:{ trigger:{player:'damageEnd'}, direct:true, filter:function(event,player){ if(event.source&&event.source.isIn()) return true; return game.hasPlayer((current)=>lib.skill.guanxu.filterTarget(null,player,current)); }, content:function(){ 'step 0' event.addIndex=0; var choiceList=[]; if(trigger.source&&trigger.source.isIn()){ choiceList.push('令'+get.translation(trigger.source)+'的所有非锁定技失效'); } else event.addIndex++; if(game.hasPlayer((current)=>lib.skill.guanxu.filterTarget(null,player,current))) choiceList.push('发动一次〖观虚〗'); player.chooseControl('cancel2').set('prompt',get.prompt('yashi')).set('choiceList',choiceList).set('ai',function(){ var player=_status.event.player,source=_status.event.getTrigger().source,index=_status.event.getParent().addIndex; if(game.hasPlayer(function(current){ return current!=player&¤t.countCards('h')>3&&get.attitude(player,current)<0; })) return 1-index; if(source&&source.isIn()&&get.attitude(player,source)<0&&!source.hasSkill('fengyin')) return 0; if(game.hasPlayer(function(current){ return current!=player&¤t.countCards('h')>0&&get.attitude(player,current)<0; })) return 1-index; return 'cancel2'; }); 'step 1' if(result.control!='cancel2'){ if(result.index+event.addIndex==0){ var target=trigger.source; player.logSkill('yashi',target); //target.removeSkill('fengyin'); target.addTempSkill('fengyin',{player:'phaseBegin'}); event.finish(); } else player.chooseTarget(true,'请选择〖观虚〗的目标',lib.skill.guanxu.filterTarget).set('ai',function(target){ var player=_status.event.player; return get.effect(target,'guanxu',player,player); }); } else event.finish(); 'step 2' if(result.bool){ var target=result.targets[0]; player.logSkill('yashi',target); var next=game.createEvent('yashi_guanxu'); next.player=player; next.target=target; next.setContent(lib.skill.guanxu.content); } }, }, //黄祖 wangong:{ audio:2, trigger:{player:'useCard'}, forced:true, filter:function(event,player){ return get.type(event.card,false)=='basic'; }, content:function(){ player.addSkill('wangong2'); }, }, wangong2:{ trigger:{player:'useCard1'}, forced:true, popup:false, firstDo:true, charlotte:true, content:function(){ player.removeSkill('wangong2'); if(trigger.card.name=='sha') trigger.baseDamage++; }, mod:{ cardUsable:function(card){ if(card.name=='sha') return Infinity; }, targetInRange:function(card){ if(card.name=='sha') return true; }, }, mark:true, intro:{ content:'使用【杀】无距离和次数限制且伤害+1', }, }, //潘淑 weiyi:{ trigger:{global:'damageEnd'}, filter:function(event,player){ if(player.getStorage('weiyi').contains(event.player)||!event.player.isIn()) return false; return event.player.hp>=player.hp||event.player.isDamaged(); }, direct:true, content:function(){ 'step 0' var list=[]; if(trigger.player.hp>=player.hp) list.push('失去体力'); if(trigger.player.hp<=player.hp&&trigger.player.isDamaged()) list.push('回复体力'); list.push('cancel2') player.chooseControl(list).set('prompt',get.prompt2('weiyi',trigger.player)).set('ai',function(){ var player=_status.event.player,target=_status.event.getTrigger().player; var att=get.attitude(player,target),eff=get.recoverEffect(target,player,player); if(target.hp<=player.hp&&target.isDamaged()&&att>2&&eff>0){ if(player==target){ var storage=player.getStorage('weiyi'); if(player.hp>=2&&game.hasPlayer(function(current){ return current.hp==player.hp+1&&!storage.contains(current)&&get.attitude(player,current)<0; })) return 'cancel2'; } return '回复体力'; } if(target.hp>=player.hp&&att<-2&&eff<0) return '失去体力'; return 'cancel2'; }); 'step 1' if(result.control!='cancel2'){ var target=trigger.player; player.logSkill('weiyi',target); player.markAuto('weiyi',[target]); target[result.control=='失去体力'?'loseHp':'recover'](); } }, onremove:true, intro:{ content:'已令$对汝威服', }, }, jinzhi:{ audio:2, enable:['chooseToUse','chooseToRespond'], hiddenCard:function(player,name){ if(get.type(name)=='basic'&&lib.inpile.contains(name)&&player.countMark('jinzhi2')=player.countCards('he')) return false; for(var i of lib.inpile){ if(get.type(i)=='basic'&&event.filterCard({name:i},player,event)) return true; } return false; }, chooseButton:{ dialog:function(event,player){ var list=[]; for(var i of lib.inpile){ if(get.type(i)=='basic'&&event.filterCard({name:i},player,event)){ list.push(['基本','',i]); if(i=='sha'){ for(var j of lib.inpile_nature) list.push(['基本','','sha',j]); } } } return ui.create.dialog('锦织',[list,'vcard'],'hidden') }, check:function(button){ if(button.link[2]=='shan') return 3; var player=_status.event.player; if(button.link[2]=='jiu'){ if(player.getUseValue({name:'jiu'})<=0) return 0; if(player.countCards('h','sha')) return player.getUseValue({name:'jiu'}); } return player.getUseValue({name:button.link[2],nature:button.link[3]})/4; }, backup:function(links,player){ return { selectCard:player.countMark('jinzhi2')+1, filterCard:function(card,player){ if(ui.selected.cards.length){ if(get.color(card)!=get.color(ui.selected.cards[0])) return false; } return lib.filter.cardDiscardable.apply(this,arguments); }, complexCard:true, viewAs:{ name:links[0][2], nature:links[0][3], suit:'none', number:null, isCard:true, }, position:'he', ignoreMod:true, check:function(card){ var player=_status.event.player,color=get.color(card,player); if(player.countCards('he',{color:color})<=player.countMark('jinzhi2')||(ui.selected.cards.length&&get.color(ui.selected.cards[0],player)!=color)) return -1; if(lib.skill.jinzhi_backup.viewAs.name=='jiu'&&!player.countCards('h',function(cardx){ return card!=cardx&&!ui.selected.cards.contains(cardx)&&get.name(cardx,player)=='sha'; })) return 0; return Math.min(0.01,6-get.value(card)); }, precontent:function(){ player.logSkill('jinzhi'); player.addTempSkill('jinzhi2','roundStart'); player.addMark('jinzhi2',1,false); var cards=event.result.cards; player.discard(cards); player.draw(); event.result.card={ name:event.result.card.name, nature:event.result.card.nature, isCard:true, }; event.result.cards=[]; delete event.result.skill; if(cards.length>1){ var color=get.color(cards[0],player); for(var i=1;i0&&player.countCards('h','sha')) return get.order({name:'jiu'})+1; return 1; }, respondShan:true, respondSha:true, skillTagFilter:function(player){ if(player.countMark('jinzhi2')>=player.countCards('he')) return false; }, result:{ player:function(player){ if(_status.event.dying) return get.attitude(player,_status.event.dying); return 1; } } } }, jinzhi2:{ onremove:true, intro:{ content:'本轮已发动过#次', }, }, //宗预 zyqiao:{ audio:2, trigger:{target:'useCardToTargeted'}, logTarget:'player', usable:2, preHidden:true, filter:function(event,player){ var source=event.player; if(source==player) return false; if(get.mode()=='guozhan'&&source.isFriendOf(player)) return false; return source.countDiscardableCards(player,'he')>0; }, check:function(event,player){ var target=event.player; if(get.attitude(player,target)>=0) return false; if(!player.countCards('he',function(card){ return lib.filter.cardDiscardable(card,player,'zyqiao'); })) return true; if(player.countCards('he',(card)=>get.value(card,player)<5)) return true; if(target.countCards('he',(card)=>get.value(card,target)>6)&&player.countCards('he',(card)=>get.value(card,player)<7)) return true; return false; }, content:function(){ 'step 0' player.discardPlayerCard(trigger.player,true,'he'); 'step 1' if(player.countCards('he',function(card){ return lib.filter.cardDiscardable(card,player,'zyqiao'); })) player.chooseToDiscard('he',true); }, }, chengshang:{ audio:2, trigger:{player:'useCardAfter'}, filter:function(event,player){ if(!lib.suit.contains(get.suit(event.card,false))||typeof get.number(event.card)!='number') return false; if(player.getHistory('sourceDamage',function(evt){ return evt.card==event.card; }).length) return false; var phsu=event.getParent('phaseUse'); if(!phsu||phsu.player!=player) return false; if(player.getHistory('gain',function(evt){ return evt.getParent().name=='chengshang'; }).length) return false; for(var i of event.targets){ if(i!=player&&(get.mode()!='guozhan'||i.isEnemyOf(player))) return true; } return false; }, preHidden:true, content:function(){ var suit=get.suit(trigger.card); var number=get.number(trigger.card); var cards=[]; for(var i=0;i0; })){ delete player._reduanbingtmp; return [1,1]; } delete player._reduanbingtmp; } } } }, group:'reduanbing_sha', subSkill:{ sha:{ audio:'duanbing', audioname:['heqi'], trigger:{player:'useCardToPlayered'}, forced:true, filter:function(event,player){ return event.card.name=='sha'&&!event.getParent().directHit.contains(event.target)&&get.distance(player,event.target)<=1; }, logTarget:'target', content:function(){ var id=trigger.target.playerid; var map=trigger.getParent().customArgs; if(!map[id]) map[id]={}; if(typeof map[id].shanRequired=='number'){ map[id].shanRequired++; } else{ map[id].shanRequired=2; } }, ai:{ directHit_ai:true, skillTagFilter:function(player,tag,arg){ if(arg.card.name!='sha'||arg.target.countCards('h','shan')>1||get.distance(player,arg.target)>1) return false; }, }, }, }, }, refenxun:{ audio:'fenxun', enable:'phaseUse', usable:1, position:'he', filterTarget:function(card,player,target){ return target!=player; }, content:function(){ player.markAuto('refenxun2',targets); player.addTempSkill('refenxun2'); }, ai:{ order:6.5, result:{ player:function(player,target){ if(get.distance(player,target)<=1) return 0; var hs=player.getCards('h','shunshou'); if(hs.length&&player.canUse(hs[0],target,false)){ return 1; } var geteff=function(current){ return player.canUse('sha',current,false,true)&&get.effect(current,{name:'sha'},player,player)>0; } if(player.hasSha()&&geteff(target)){ var num=game.countPlayer(function(current){ return current!=player&&get.distance(player,current)<=1&&geteff(current); }); if(num==0){ if(game.hasPlayer(function(current){ return player.canUse('sha',current)&&geteff(current)&¤t!=target; })){ return 1; } } else if(num==1){ return 1; } } return 0; } } } }, refenxun2:{ audio:'fenxun', trigger:{ player:'phaseJieshuBegin', }, forced:true, charlotte:true, filter:function(event,player){ return player.getHistory('sourceDamage',function(evt){ return player.storage.refenxun2.contains(evt.player); }).length==0&&player.countCards('he',function(card){ return lib.filter.cardDiscardable(card,player,'refenxun2'); })>0; }, content:function(){ player.chooseToDiscard('he',true); }, onremove:true, intro:{ content:'到$的距离视为1' }, mod:{ globalFrom:function(from,to){ if(from.storage.refenxun2.contains(to)){ return -Infinity; } } }, }, //蔡阳新技能 zhuixi:{ mod:{ cardUsable:function(card,player,num){ if(card.name=='sha') return num+1; }, }, }, //新塌顿 reluanzhan:{ audio:'luanzhan', trigger:{ player:'damageEnd', source:'damageSource', }, forced:true, locked:false, content:function(){ player.addMark('reluanzhan',1,false); }, intro:{content:'mark'}, ai:{notemp:true}, group:['reluanzhan_add','reluanzhan_remove'], }, reluanzhan_add:{ trigger:{player:'useCard2'}, direct:true, filter:function(event,player){ if(event.card.name!='sha'&&(get.color(event.card)!='black'||get.type(event.card)!='trick')||!player.countMark('reluanzhan')) return false; var info=get.info(event.card); if(info.allowMultiple==false) return false; if(event.targets&&!info.multitarget){ if(game.hasPlayer(function(current){ return !event.targets.contains(current)&&lib.filter.targetEnabled2(event.card,player,current)&&lib.filter.targetInRange(event.card,player,current); })){ return true; } } return false; }, content:function(){ 'step 0' var num=player.countMark('reluanzhan'); var prompt2='为'+get.translation(trigger.card)+'增加至多'+get.cnNumber(num)+'个目标' player.chooseTarget(get.prompt('reluanzhan'),function(card,player,target){ if(_status.event.targets.contains(target)) return false; var player=_status.event.player; return lib.filter.targetEnabled2(_status.event.card,player,target)&&lib.filter.targetInRange(_status.event.card,player,target); },[1,num]).set('prompt2',prompt2).set('ai',function(target){ var trigger=_status.event.getTrigger(); var player=_status.event.player; return get.effect(target,trigger.card,player,player); }).set('card',trigger.card).set('targets',trigger.targets); 'step 1' if(result.bool){ if(!event.isMine()&&!event.isOnline()) game.delayx(); event.targets=result.targets; } else{ event.finish(); } 'step 2' if(event.targets){ player.logSkill('reluanzhan',event.targets); trigger.targets.addArray(event.targets); } }, }, reluanzhan_remove:{ audio:'luanzhan', trigger:{player:'useCardToPlayered'}, forced:true, locked:false, filter:function(event,player){ if(!event.isFirstTarget||(event.card.name!='sha'&&(get.color(event.card)!='black'||get.type(event.card)!='trick'))||!player.countMark('reluanzhan')) return false; var info=get.info(event.card); if(info.allowMultiple==false||info.multitarget) return false; return event.targets.length'; td.link=i; td.addEventListener(lib.config.touchscreen?'touchend':'click',ui.click.button); for(var j in lib.element.button){ td[j]=lib.element.button[j]; } table.appendChild(td); dialog.buttons.add(td); } dialog.content.appendChild(table); var type=player.storage.youlong?'basic':'trick'; var list=[]; for(var name of lib.inpile){ if(player.storage.youlong2.contains(name)) continue; if(get.type(name)!=type) continue; if(event.filterCard({name:name,isCard:true},player,event)){ list.push([type,'',name]); if(name=='sha'){ for(var j of lib.inpile_nature) list.push(['基本','','sha',j]); } } } dialog.add([list,'vcard']); return dialog; }, filter:function(button){ if(ui.selected.buttons.length&&typeof button.link==typeof ui.selected.buttons[0].link) return false; return true; }, select:2, check:function(button){ var player=_status.event.player; if(typeof button.link=='number'){ var card=player.getEquip(button.link); if(card){ var val=get.value(card); if(val>0) return 0; return 5-val; } switch(button.link){ case 3:return 4.5;break; case 4:return 4.4;break; case 5:return 4.3;break; case 2:return (3-player.hp)*1.5;break; case 1:{ if(game.hasPlayer(function(current){ return (get.realAttitude||get.attitude)(player,current)<0&&get.distance(player,current)>1; })) return 0; return 3.2; } } } var name=button.link[2]; var evt=_status.event.getParent(); if(get.type(name)=='basic'){ if(name=='shan') return 2; if(evt.type=='dying'){ if(get.attitude(player,evt.dying)<2) return false; if(name=='jiu') return 2.1; return 1.9; } if(evt.type=='phase') return player.getUseValue({name:name,nature:button.link[3],isCard:true}); return 1; } if(!['chuqibuyi','shuiyanqijunx','juedou','nanman','wanjian','shunshou','zhujinqiyuan'].contains(name)) return 0; var card={name:name,isCard:true}; if(['shunshou','zhujinqiyuan'].contains(card.name)){ if(!game.hasPlayer(function(current){ return get.attitude(player,current)!=0&&get.distance(player,current)<=1&&player.canUse(card,current)&&get.effect(current,card,player,player)>0; })) return 0; return player.getUseValue(card)-7; } return player.getUseValue(card)-4; }, backup:function(links,player){ if(typeof links[1]=='number') links.reverse(); var equip=links[0]; var name=links[1][2]; var nature=links[1][3]; return { filterCard:function(){return false}, selectCard:-1, equip:equip, viewAs:{ name:name, nature:nature, isCard:true, }, popname:true, precontent:function(){ player.logSkill('youlong'); player.disableEquip(lib.skill.youlong_backup.equip); delete event.result.skill; player.addTempSkill('youlong_'+(player.storage.youlong||false),'roundStart'); player.changeZhuanhuanji('youlong'); player.storage.youlong2.add(event.result.card.name); }, } }, prompt:function(links,player){ if(typeof links[1]=='number') links.reverse(); var equip='equip'+links[0]; var name=links[1][2]; var nature=links[1][3]; return '废除自己的'+get.translation(equip)+'栏,视为使用'+(get.translation(nature)||'')+get.translation(name); }, }, ai:{ respondSha:true, respondShan:true, skillTagFilter:function(player,tag,arg){ if(arg=='respond') return false; if(!player.storage.youlong||player.hasSkill('youlong_true')) return false; var name=(tag=='respondSha'?'sha':'shan'); return !player.storage.youlong2.contains(name); }, order:1, result:{ player:1, }, }, }, youlong_true:{charlotte:true}, youlong_false:{charlotte:true}, luanfeng:{ audio:2, audioname:['key_sakuya'], trigger:{global:'dying'}, filter:function(event,player){ return event.player.maxHp>=player.maxHp&&event.player.hp<1; }, limited:true, skillAnimation:true, animationColor:'soil', logTarget:'player', check:function(event,player){ if(get.attitude(player,event.player)<4) return false; if(player.countCards('h',function(card){ var mod2=game.checkMod(card,player,'unchanged','cardEnabled2',player); if(mod2!='unchanged') return mod2; var mod=game.checkMod(card,player,event.player,'unchanged','cardSavable',player); if(mod!='unchanged') return mod; var savable=get.info(card).savable; if(typeof savable=='function') savable=savable(card,player,event.player); return savable; })>=1-event.player.hp) return false; if(event.player==player||event.player==get.zhu(player)) return true; return !player.hasUnknown(); }, content:function(){ 'step 0' player.awakenSkill('luanfeng'); trigger.player.recover(3-trigger.player.hp); 'step 1' var list=[],target=trigger.player; for(var i=1;i<6;i++){ for(var j=0;j0) target.enableEquip(list); if(list.length<6) target.drawTo(6-list.length); if(target.storage.kotarou_rewrite) target.storage.kotarou_rewrite=[]; if(player==target) player.storage.youlong2=[]; }, }, //曹爽,韩遂,何进 xiaoxi:{ audio:2, audioname:['machao','hansui','pangde'], trigger:{ player:'enterGame', global:'phaseBefore', }, filter:function(event,player){ return (event.name!='phase'||game.phaseNumber==0); }, direct:true, content:function(){ player.chooseUseTarget('sha',get.prompt('xiaoxi'),'视为使用一张【杀】').logSkill='xiaoxi'; }, }, spmouzhu:{ enable:'phaseUse', audio:'mouzhu', usable:1, filter:function(event,player){ return game.hasPlayer((current)=>lib.skill.spmouzhu.filterTarget(null,player,current)); }, filterTarget:function(card,player,target){ if(!target.countCards('h')) return false; return player!=target&&(target.hp==player.hp||get.distance(player,target)==1); }, selectTarget:[1,Infinity], content:function(){ 'step 0' target.chooseCard('h','交给'+get.translation(player)+'一张牌',true); 'step 1' if(result.bool) target.give(result.cards,player); 'step 2' if(player.countCards('h')<=target.countCards('h')){ event.finish(); return; } var list=[]; if(target.canUse('sha',player,false)) list.push('sha'); if(target.canUse('juedou',player,false)) list.push('juedou'); if(!list.length) event.finish(); else if(list.length==1) event._result={control:list[0]}; else target.chooseControl(list).set('prompt','对'+get.translation(player)+'使用一张【杀】或【决斗】。').ai=function(){ return get.effect(player,{name:'sha'},target,target)>=get.effect(player,{name:'juedou'},target,target)?'sha':'juedou'; }; 'step 3' target.useCard({name:result.control,isCard:true},player,'noai'); }, ai:{ order:7, result:{ target:-1.2, player:function(player,target){ if(ui.selected.targets.length) return 0; if(target.countCards('h')-player.countCards('h')>1) return 1; if(get.damageEffect(target,player,player,player)>0) return 1; if(player.hp>3||player.countCards('h','sha')&&player.countCards('h','shan')) return 0; if(player.hp>2) return -1.1; return -2; }, }, }, }, spyanhuo:{ audio:'yanhuo', trigger:{player:'die'}, forceDie:true, skillAnimation:true, animationColor:'soil', content:function(){ player.line(game.players,'green'); game.addGlobalSkill('spyanhuo_damage'); if(!_status.yanhuo) _status.yanhuo=0; _status.yanhuo++; }, subSkill:{ damage:{ trigger:{player:'useCard'}, forced:true, filter:function(event,player){ return event.card.name=='sha'; }, content:function(){ trigger.baseDamage+=(_status.yanhuo||0); }, }, }, }, spniluan:{ enable:'phaseUse', audio:'niluan', viewAs:{name:'sha'}, check:function(card){ return 5.1-get.value(card); }, filterCard:{color:'black'}, position:'hes', audio:'niluan', viewAsFilter:function(player){ return player.countCards('hes',lib.skill.spniluan.filterCard)>0; }, group:'spniluan_clear', }, spniluan_clear:{ trigger:{player:'useCardAfter'}, forced:true, silent:true, charlotte:true, filter:function(event,player){ return event.skill=='spniluan'&&event.addCount!==false&&player.getHistory('sourceDamage',function(card){ return card.card==event.card; }).length==0; }, content:function(){ trigger.addCount=false; if(player.stat[player.stat.length-1].card.sha>0){ player.stat[player.stat.length-1].card.sha--; } }, }, spweiwu:{ audio:2, enable:'phaseUse', usable:1, viewAs:{ name:'shunshou', storage:{spweiwu:true}, }, filterCard:{color:'red'}, position:'hes', check:function(card){ return 7-get.value(card); }, mod:{ targetInRange:function(card){ if(card.storage&&card.storage.spweiwu) return true; }, }, }, tuogu:{ audio:2, trigger:{global:'die'}, filter:function(event,player){ return event.player.getStockSkills('仲村由理','天下第一').filter(function(skill){ var info=get.info(skill); return info&&!info.juexingji&&!info.hiddenSkill&&!info.zhuSkill&&!info.charlotte&&!info.limited&&!info.dutySkill; }).length>0; }, logTarget:'player', skillAnimation:true, limited:true, animationColor:'thunder', content:function(){ 'step 0' player.awakenSkill('tuogu'); var list=trigger.player.getStockSkills('仲村由理','天下第一').filter(function(skill){ var info=get.info(skill); return info&&!info.juexingji&&!info.hiddenSkill&&!info.zhuSkill&&!info.charlotte&&!info.limited&&!info.dutySkill; }); if(list.length==1) event._result={control:list[0]}; else trigger.player.chooseControl(list).set('prompt','选择令'+get.translation(player)+'获得一个技能').set('forceDie',true).set('ai',function(){ return list.randomGet(); }); 'step 1' player.addSkillLog(result.control); game.broadcastAll(function(skill){ var list=[skill];game.expandSkills(list); for(var i of list){ var info=lib.skill[i]; if(!info) continue; if(!info.audioname2) info.audioname2={}; info.audioname2.caoshuang='tuogu'; } },result.control); }, }, retuogu:{ audio:'tuogu', trigger:{global:'die'}, filter:function(event,player){ return event.player.getStockSkills('仲村由理','天下第一').filter(function(skill){ var info=get.info(skill); return info&&!info.juexingji&&!info.hiddenSkill&&!info.zhuSkill&&!info.charlotte&&!info.limited&&!info.dutySkill; }).length>0; }, logTarget:'player', check:function(event,player){ var list=event.player.getStockSkills('仲村由理','天下第一').filter(function(skill){ var info=get.info(skill); return info&&!info.juexingji&&!info.hiddenSkill&&!info.zhuSkill&&!info.charlotte&&!info.limited&&!info.dutySkill; }); var negSkill=list.some(function(skill){ return get.skillRank(skill,'inout')<=0; }); var att=get.sgnAttitude(event.player,player); if(!player.storage.retuogu){ if(negSkill&&att<0) return false; return true; } list.sort(function(a,b){ return att*(get.skillRank(b,'inout')-get.skillRank(a,'inout')); })[0]; return get.skillRank(list[0],'inout')>=get.skillRank(player.storage.retuogu,'inout'); }, content:function(){ 'step 0' var list=trigger.player.getStockSkills('仲村由理','天下第一').filter(function(skill){ var info=get.info(skill); return info&&!info.juexingji&&!info.hiddenSkill&&!info.zhuSkill&&!info.charlotte&&!info.limited&&!info.dutySkill; }); if(list.length==1) event._result={control:list[0]}; else trigger.player.chooseControl(list).set('prompt','选择令'+get.translation(player)+'获得一个技能').set('forceDie',true).set('ai',function(){ var att=get.sgnAttitude(_status.event.getTrigger().player,player); if(att==0) return list.randomGet(); var listx=list.map(function(skill){ return [skill,get.skillRank(skill,'inout')]; }).sort(function(a,b){ return att*(b[1]-a[1]); }).slice(0,2); var listx2=[0]; if(Math.abs(listx[0][1]-listx[1][1])<=0.5&&Math.sign(listx[0][1])==Math.sign(listx[1][1])) listx2.push(1); return listx[listx2.randomGet()][0]; }); 'step 1' if(player.storage.retuogu) player.removeSkill(player.storage.retuogu); player.storage.retuogu=result.control; player.markSkill('retuogu'); player.addSkillLog(result.control); game.broadcastAll(function(skill){ var list=[skill]; game.expandSkills(list); for(var i of list){ var info=lib.skill[i]; if(!info) continue; if(!info.audioname2) info.audioname2={}; info.audioname2.caoshuang='tuogu'; } },result.control); }, mark:true, intro:{content:'当前托孤技能:$'}, }, shanzhuan:{ trigger:{source:'damageSource'}, audio:2, direct:true, filter:function(event,player){ return player!=event.player&&!event.player.isDisabledJudge()&&event.player.countCards('he')&&!event.player.countCards('j'); }, content:function(){ 'step 0' player.choosePlayerCard(trigger.player,'he',get.prompt('shanzhuan',trigger.player)).set('ai',function(card){ if(get.attitude(_status.event.player,_status.event.target)>=0) return 0; return get.buttonValue(card); }); 'step 1' if(result.bool){ player.logSkill('shanzhuan',trigger.player); var card=result.cards[0]; trigger.player.$throw(card); game.delayx(); if(get.type(card,false)=='delay') trigger.player.addJudge(card); else trigger.player.addJudge({name:get.color(card,false)=='red'?'lebu':'bingliang'},result.cards); } }, group:'shanzhuan_draw', subfrequent:['draw'], subSkill:{ draw:{ audio:'shanzhuan', trigger:{player:'phaseEnd'}, frequent:true, prompt:'是否发动【擅专】摸一张牌?', filter:function(event,player){ return !player.getHistory('sourceDamage').length; }, content:function(){ player.draw(); }, }, }, }, olxingshen:{ trigger:{player:'damageEnd'}, frequent:true, audio:'xingshen', content:function(){ 'step 0' var next=player.draw(); if(get.isLuckyStar(player)||Math.random()<0.5) next.num=2; var num=player.countMark('olxingshen'); if(num<6) player.addMark('olxingshen',Math.min(6-num,player.getDamagedHp()),false) }, intro:{ content:'下一次发动〖严教〗时多展示X张牌', }, }, //张道陵 zlhuji:{ mod:{ globalFrom:function(player,target,distance){ return distance-1; }, }, trigger:{player:'damageEnd'}, forced:true, filter:function(event,player){ return player!=_status.currentPhase; }, content:function(){ 'step 0' var func=function(result){ if(get.color(result)=='red') return 1; return 0; }; if(get.itemtype(trigger.source)!='player'||!player.canUse('sha',trigger.source,false)) func=function(result){ return 0; }; else if(get.effect(trigger.source,{name:'sha'},player,player)<0) func=function(result){ if(get.color(result)=='red') return -1; return 0; }; player.judge(func).judge2=function(result){ return result.color=='red'?true:false; }; 'step 1' if(result.color=='red'&&get.itemtype(trigger.source)=='player'&&player.canUse('sha',trigger.source,false)){ player.useCard({name:'sha',isCard:true},trigger.source,false,'noai'); } }, }, zlshoufu:{ enable:'phaseUse', usable:1, delay:false, content:function(){ 'step 0' player.draw(); 'step 1' var filterTarget=function(card,player,target){ return target!=player&&!target.hasSkill('zlshoufu2'); }; if(!player.countCards('h')||!game.hasPlayer(function(current){ return filterTarget(null,player,current); })) event.finish(); else player.chooseCardTarget({ forced:true, prompt:'将一张手牌作为“箓”置于其他角色的武将牌上', filterTarget:filterTarget, filterCard:true, position:'h', ai1:function(card){ if(get.type(card,false)=='equip') return 1-get.value(card); return 7-get.value(card); }, ai2:function(target){ var player=_status.event.player; var att=get.attitude(player,target); if(att>0) return -att; return -att/get.distance(player,target,'absolute'); }, }); 'step 2' var target=result.targets[0]; var cards=result.cards; target.addToExpansion(cards,player,'give').gaintag.add('zlshoufu2'); player.line(target,'green'); target.addSkill('zlshoufu2'); 'step 3' game.delayx(); }, ai:{ notemp:true, order:1, result:{ player:function(player){ if(game.hasPlayer(function(target){ return target!=player&&!target.hasSkill('zlshoufu2')&&get.attitude(player,target)<0; })||!game.hasPlayer(function(target){ return target!=player&&!target.hasSkill('zlshoufu2')&&get.attitude(player,target)>0; })) return 1; return 0; }, }, }, }, zlshoufu2:{ marktext:'箓', intro:{ content:'expansion', markcount:'expansion', }, charlotte:true, onremove:function(player,skill){ var cards=player.getExpansions(skill); if(cards.length) player.loseToDiscardpile(cards); }, mod:{ cardEnabled:function(card,player){ if(player.getExpansions('zlshoufu2').filter(function(magic){ return get.type2(magic)==get.type2(card); }).length) return false; }, cardRespondable:function(card,player){ if(player.getExpansions('zlshoufu2').filter(function(magic){ return get.type2(magic)==get.type2(card); }).length) return false; }, cardSavable:function(card,player){ if(player.getExpansions('zlshoufu2').filter(function(magic){ return get.type2(magic)==get.type2(card); }).length) return false; }, }, trigger:{ player:['damageEnd','loseAfter'], global:'loseAsyncAfter', }, forced:true, filter:function(event,player){ var storage=player.getExpansions('zlshoufu2'); if(!storage.length) return false; if(event.name=='damage') return true; if(event.type!='discard'||event.getlx===false||event.getParent('phaseDiscard').player!=player) return false; var num=0,evt=event.getl(player); if(!evt||!evt.cards2) return false; for(var i of evt.cards2){ if(storage.filter(function(magic){ return get.type2(magic)==get.type2(i,event.hs.contains(i)?player:false); }).length) num++; } return num>1; }, content:function(){ player.removeSkill('zlshoufu2'); }, }, //蔡阳 yinka:{ trigger:{player:['drawBegin','judgeBegin']}, direct:true, filter:function(){ return ui.cardPile.childNodes.length>0; }, content:function(){ 'step 0' player.chooseButton(['印卡:请选择要置于牌堆'+(trigger.bottom?'底':'顶')+'的牌(先选择的在上)',Array.from(ui.cardPile.childNodes)],[1,trigger.num||1]); 'step 1' if(result.bool){ while(result.links.length){ if(trigger.bottom){ var card=result.links.shift(); ui.cardPile.removeChild(card); ui.cardPile.appendChild(card); } else{ var card=result.links.pop(); ui.cardPile.removeChild(card); ui.cardPile.insertBefore(card,ui.cardPile.firstChild) } } } }, ai:{isLuckyStar:true}, }, //新王允 xinlianji:{ enable:'phaseUse', audio:'wylianji', usable:1, check:function(card){ return 5-get.value(card); }, filterTarget:function(card,player,target){ if(ui.selected.targets.length) return true; return target!=player; }, filterCard:true, selectTarget:2, multitarget:true, targetprompt:['打人','被打'], content:function(){ 'step 0' //player.addMark('xinlianji',1,false); var card=get.cardPile2(function(card){ return get.subtype(card)=='equip1'&&targets[0].hasUseTarget(card); }); if(card){ if(card.name=='qinggang'&&!lib.inpile.contains('qibaodao')){ card.remove(); card=game.createCard('qibaodao',card.suit,card.number); } targets[0].chooseUseTarget(card,true,'nopopup','nothrow'); } else{ player.chat('没有装备牌了吗'); game.log('但是牌堆里已经没有装备牌了!'); } 'step 1' game.updateRoundNumber(); targets[0].chooseToUse('对'+get.translation(targets[1])+'使用一张杀,或将装备区里的武器牌交给一名其他角色', {name:'sha'}).set('targetRequired',true).set('complexSelect',true).set('filterTarget',function(card,player,target){ if(target!=_status.event.sourcex&&!ui.selected.targets.contains(_status.event.sourcex)) return false; return lib.filter.filterTarget.apply(this,arguments); }).set('sourcex',targets[1]).set('addCount',false); 'step 2' var cards=targets[0].getEquips(1); if(!result.bool&&cards.length){ event.cards=cards; player.chooseTarget(true,'将'+get.translation(cards)+'交给一名其他角色').set('ai',function(target){ var card=_status.event.getParent().cards; return (target.hasSkillTag('nogain')?0:get.attitude(_status.event.player,target))*Math.max(0.1,target.getUseValue(cards[0])); }); } else event.finish(); 'step 3' result.targets[0].gain(cards,result.targets[0],'give').giver=player; }, ai:{ order:4, result:{ target:function(player,target){ if(ui.selected.targets.length){ var pretarget=ui.selected.targets[0]; if(pretarget.hasSha()&&pretarget.canUse({name:'sha'},target)) return get.effect(target,{name:'sha'},pretarget,target); return Math.random(); } if(!target.getEquip(1)){ if(game.hasPlayer(function(current){ return current!=target&&!current.hasSkillTag('nogain')&&get.attitude(current,target)>0; })) return 3; return -3; } if(!game.hasPlayer(function(current){ return current!=target&&!current.hasSkillTag('nogain')&&get.attitude(current,target)>0; })) return -6; return 4-get.value(target.getEquip(1)); }, }, }, }, xinmoucheng:{ trigger:{player:'phaseZhunbeiBegin'}, audio:'moucheng', forced:true, juexingji:true, skillAnimation:true, animationColor:'gray', derivation:'xinjingong', unique:true, filter:function(event,player){ return game.hasPlayer2(function(current){ return current.getAllHistory('sourceDamage',function(evt){ if(!evt.card||evt.card.name!='sha'||evt.getParent().type!='card') return false; var evt2=evt.getParent(4); return evt2&&evt2.name=='xinlianji'&&evt2.player==player; }).length>0; }); }, content:function(){ player.awakenSkill('xinmoucheng'); player.addSkill('xinjingong'); player.removeSkill('xinlianji'); }, }, xinjingong:{ audio:'jingong', enable:'phaseUse', usable:1, filter:function(event,player){ return event.xinjingong_list&&player.countCards('hes',function(card){ return card.name=='sha'||get.type(card)=='equip'; }); }, onChooseToUse:function(event){ if(!game.online){ var evt=event.getParent(); if(evt.name!='phaseUse') return; if(!evt.xinjingong_list){ var list=get.inpile('trick').randomGets(2); if(Math.random()<0.5){ list.push('wy_meirenji'); } else{ list.push('wy_xiaolicangdao'); } evt.xinjingong_list=list; } if(!event.xinjingong_list) event.set('xinjingong_list',evt.xinjingong_list); } }, chooseButton:{ dialog:function(event,player){ var list=[]; for(var i of event.xinjingong_list) list.push(['锦囊','',i]); return ui.create.dialog('矜功',[list,'vcard']); }, filter:function(button,player){ return lib.filter.filterCard({name:button.link[2]},player,_status.event.getParent()); }, check:function(button){ return _status.event.player.getUseValue({name:button.link[2]}); }, backup:function(links,player){ return { audio:'jingong', filterCard:true, popname:true, position:'hes', viewAs:{name:links[0][2]}, check:function(card){ return 6-get.value(card); }, filterCard:function(card){ return card.name=='sha'||get.type(card)=='equip'; }, }; }, prompt:function(links,player){ return '将一张【杀】或装备牌当做'+get.translation(links[0][2])+'使用'; } }, ai:{ order:2, result:{ player:1 } } }, //孙邵 bizheng:{ trigger:{player:'phaseDrawEnd'}, direct:true, audio:2, content:function(){ 'step 0' player.chooseTarget(get.prompt2('bizheng'),lib.filter.notMe).set('ai',function(target){ var player=_status.event.player; if(player.countCards('h')>player.maxHp) return 0; var att=get.attitude(player,target); if(att<=0||target.hasSkillTag('nogain')) return 0; if(target.maxHp-target.countCards('h')>=2) return att; return att/2; }); 'step 1' if(result.bool){ var target=result.targets[0]; event.target=target; player.logSkill('bizheng',target); target.draw(2); } else event.finish(); 'step 2' if(player.countCards('h')>player.maxHp) player.chooseToDiscard(2,'he',true); 'step 3' if(target.countCards('h')>target.maxHp) target.chooseToDiscard(2,'he',true); }, ai:{ expose:0.25, }, }, yidian:{ trigger:{player:'useCard2'}, filter:function(event,player){ var info=get.info(event.card); if(info.allowMultiple==false) return false; if(event.targets&&!info.multitarget){ for(var i=0;i0; })){ player.chooseControl('cancel2').set('choiceList',[ '摸两张牌,然后弃置一张牌', '获得场上的一张牌,然后弃置一张牌', ]).set('prompt',get.prompt('neifa')).set('ai',function(){ if(game.hasPlayer(function(current){ var att=get.attitude(player,current); if(att==0) return false; if(att<0) return current.countCards('e',function(card){ return get.value(card,current)>5; })>0; return current.countCards('ej',function(card){ return get.position(card)=='j'||get.value(card,current)<=0; })>0; })) return 1; return 0; }); } else{ player.chooseControl('ok','cancel2').set('prompt',get.prompt2('neifa')); } 'step 1' if(result.control=='cancel2'){ delete _status.noclearcountdown; if(!_status.noclearcountdown){ game.stopCountChoose(); } event.finish(); return; } else if(result.index==1){ player.chooseTarget('请选择一名角色,获得其装备区或判定区内的一张牌',true,function(card,player,target){ return target.countGainableCards(player,'ej')>0; }).set('ai',function(target){ var player=_status.event.player; var att=get.attitude(player,target); if(att>0&&target.countCards('ej',function(card){ return get.position(card)=='j'||get.value(card,target)<=0; })) return 2*att; else if(att<0&&target.countCards('e',function(card){ return get.value(card,target)>5; })) return -att; return -1; }); } else{ delete _status.noclearcountdown; if(!_status.noclearcountdown){ game.stopCountChoose(); } player.logSkill('neifa'); player.draw(2); event.goto(3) } 'step 2' delete _status.noclearcountdown; if(!_status.noclearcountdown){ game.stopCountChoose(); } if(result.bool){ var target=result.targets[0]; player.logSkill('neifa',target); player.gainPlayerCard(target,'ej',true); } 'step 3' player.chooseToDiscard(true,'he').set('ai',function(cardx){ var player=_status.event.player; var num=0; var hs=player.getCards('h'); var muniu=player.getEquip('muniu'); var subs=[]; if(muniu&&muniu.cards) hs=hs.concat(muniu.cards); if(get.type(cardx)=='basic'){ var shas=hs.filter(function(card){ return card!=cardx&&get.name(card,player)=='sha'&&player.hasValueTarget(card); }); var numx=player.countCards('h',function(card){ return get.type(card,player)!='basic'; }); num+=Math.min(numx,Math.max(0,shas.length-player.getCardUsable('sha')))*0.7; num+=Math.min(player.getCardUsable('sha')+numx,shas.filter(function(card){ return game.countPlayer(function(current){ return player.canUse(card,current)&&get.effect(current,card,player,player)>0; })>1; }).length)*1.1; var taos=Math.min(player.maxHp-player.hp,hs.filter(function(card){ return cardx!=card&&get.name(card,player)=='tao'; }).length); num+=taos*player.getDamagedHp()*1.2; } else{ var numx=Math.sqrt(Math.min(5,player.countCards('h',function(card){ return get.type(card,player)=='basic'; }))); if(numx) num+=numx*Math.min(2,hs.filter(function(card){ if(card==cardx||get.type(card)!='equip'||!player.hasUseTarget(card)) return false; subs.add(get.subtype(card)); return true; }).length)*(2.5+player.countCards('e'))/2.5; num+=hs.filter(function(card){ return card!=cardx&&get.type2(card)=='trick'&&player.hasValueTarget(card); }).length*0.65; } if(get.position(cardx)=='e'&&cardx.name!='muniu'&&subs.contains(get.subtype(card))) num+=3; return num*1.5-get.value(cardx); }); 'step 4' if(result.bool&&result.cards&&result.cards.length){ var name=get.type(result.cards[0])=='basic'?'neifa_basic':'neifa_nobasic'; player.addTempSkill(name); var num=Math.min(5,player.countCards('h',function(cardx){ return (name=='neifa_basic')!=(get.type(cardx,player)=='basic') })); if(num>0) player.addMark(name,num,false); else player.storage[name]=0; } }, ai:{ threaten:3, }, }, neifa_basic:{ mark:true, marktext:'伐', onremove:true, intro:{ name:'内伐 - 基本牌', content:'本回合内不能使用锦囊牌和装备牌,且使用【杀】选择目标时可以多选择1个目标,且使用【杀】的目标次数上限+#。', }, mod:{ cardEnabled:function(card,player){ if(['trick','equip'].contains(get.type(card,'trick'))) return false; }, cardSavable:function(card,player){ if(['trick','equip'].contains(get.type(card,'trick'))) return false; }, cardUsable:function(card,player,num){ if(card.name=='sha'){ return num+player.countMark('neifa_basic'); } }, }, trigger:{player:'useCard2'}, filter:function(event,player){ if(event.card.name!='sha') return false; return game.hasPlayer(function(current){ return !event.targets.contains(current)&&player.canUse(event.card,current); }); }, direct:true, content:function(){ 'step 0' player.chooseTarget(get.prompt('neifa'),'为'+get.translation(trigger.card)+'额外指定一个目标',function(card,player,target){ return !_status.event.sourcex.contains(target)&&player.canUse(_status.event.card,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){ if(!event.isMine()&&!event.isOnline()) game.delayx(); event.targets=result.targets; } else{ event.finish(); } 'step 2' player.logSkill('neifa',event.targets); trigger.targets.addArray(event.targets); }, }, neifa_nobasic:{ trigger:{player:'useCard2'}, direct:true, mark:true, marktext:'伐', onremove:true, mod:{ cardEnabled:function(card,player){ if(get.type(card)=='basic') return false; }, cardSavable:function(card,player){ if(get.type(card)=='basic') return false; }, }, intro:{ name:'内伐 - 非基本牌', content:'本回合内不能使用基本牌,且使用普通锦囊牌选择目标时可以多选择1个目标,且本回合的出牌阶段内前两次使用装备牌时摸#张牌。' }, filter:function(event,player){ if(get.type(event.card)!='trick') return false; if(event.targets&&event.targets.length>0) return true; var info=get.info(event.card); if(info.allowMultiple==false) return false; if(event.targets&&!info.multitarget){ if(game.hasPlayer(function(current){ return !event.targets.contains(current)&&lib.filter.targetEnabled2(event.card,player,current)&&lib.filter.targetInRange(event.card,player,current); })){ return true; } } return false; }, content:function(){ 'step 0' var prompt2='为'+get.translation(trigger.card)+'增加或减少一个目标' player.chooseTarget(get.prompt('neifa'),function(card,player,target){ var player=_status.event.player; if(_status.event.targets.contains(target)) return true; return lib.filter.targetEnabled2(_status.event.card,player,target)&&lib.filter.targetInRange(_status.event.card,player,target); }).set('prompt2',prompt2).set('ai',function(target){ var trigger=_status.event.getTrigger(); var player=_status.event.player; return get.effect(target,trigger.card,player,player)*(_status.event.targets.contains(target)?-1:1); }).set('targets',trigger.targets).set('card',trigger.card); 'step 1' if(result.bool){ if(!event.isMine()&&!event.isOnline()) game.delayx(); event.targets=result.targets; } else{ event.finish(); } 'step 2' if(event.targets){ player.logSkill('neifa',event.targets); if(trigger.targets.contains(event.targets[0])) trigger.targets.removeArray(event.targets); else trigger.targets.addArray(event.targets); } }, group:'neifa_use', ai:{ reverseOrder:true, skillTagFilter:function(player){ if(player.storage.counttrigger&&player.storage.counttrigger.neifa_use>=2) return false; }, effect:{ target:function(card,player,target){ if((!player.storage.counttrigger||!player.storage.counttrigger.neifa_use||player.storage.counttrigger.neifa_use<2)&&player==target&&get.type(card)=='equip') return [1,3]; }, }, }, }, neifa_use:{ audio:'neifa', usable:2, trigger:{player:'useCard'}, forced:true, filter:function(event,player){ return get.type(event.card)=='equip'&&player.countMark('neifa_nobasic')>0; }, content:function(){ player.draw(player.countMark('neifa_nobasic')); }, }, //许靖 yuxu:{ audio:2, trigger:{player:'useCardAfter'}, filter:function(event,player){ var evt=event.getParent('phaseUse'); if(!evt||evt.player!=player) return false; return true; }, direct:true, content:function(){ 'step 0' var draw=!player.hasMark('yuxu_used'); if(draw) player.chooseBool(get.prompt2('yuxu')).set('ai',()=>1); else event.goto(2); 'step 1' if(result.bool){ player.logSkill('yuxu'); player.draw(); player.addMark('yuxu_used',1,false); player.addTempSkill('yuxu_used','phaseUseAfter'); } event.finish(); 'step 2' player.logSkill('yuxu'); player.removeMark('yuxu_used',player.countMark('yuxu_used'),false); player.chooseToDiscard('he',true); }, subSkill:{ used:{ charlotte:true, onremove:true } } }, xjshijian:{ audio:2, trigger:{global:'useCardAfter'}, direct:true, filter:function(event,player){ if(event.player==player) return false; var evt=event.getParent('phaseUse'); if(!evt||evt.player!=event.player) return false; return event.player.getHistory('useCard',function(evtt){ return evtt.getParent('phaseUse')==evt; }).indexOf(event)==1&&player.countCards('he')>0; }, content:function(){ 'step 0' var next=player.chooseToDiscard('he',get.prompt('xjshijian',trigger.player),'弃置一张牌并令其获得技能〖誉虚〗至回合结束'); next.set('logSkill',['xjshijian',trigger.player]); next.set('check',get.attitude(player,trigger.player)>0&&trigger.player.countCards('h')>2); next.ai=function(card){ if(_status.event.check) return 5-get.value(card); return -1; }; 'step 1' if(result.bool) trigger.player.addTempSkill('yuxu'); }, ai:{ expose:0.25, }, }, //新1v1 yanhuo:{ audio:2, trigger:{player:'die'}, forceDie:true, filter:function(event,player){ return player.countCards('he')>0; }, direct:true, skillAnimation:true, animationColor:'thunder', content:function(){ 'step 0' player.chooseTarget(get.prompt2('yanhuo'),function(card,player,target){ return target!=player&&target.countDiscardableCards(player,'he')>0 }).set('forceDie',true).ai=function(target){ return -target.countCards('he')*get.attitude(player,target); }; 'step 1' if(result.bool){ var target=result.targets[0]; event.target=target; player.logSkill('yanhuo',target); event.count=player.countCards('he'); } else event.finish() 'step 2' if(target.countDiscardableCards(player,'he')){ player.line(target); player.discardPlayerCard(target,'he',true).set('forceDie',true); event.count--; if(event.count) event.redo(); } }, }, mouzhu:{ audio:2, enable:'phaseUse', usable:1, filterTarget:function(card,player,target){ return target!=player&&target.countCards('h')>0; }, content:function(){ 'step 0' target.chooseCard('h','交给'+get.translation(player)+'一张手牌',true); 'step 1' if(result.bool) target.give(result.cards,player); 'step 2' if(player.countCards('h')<=target.countCards('h')){ event.finish(); return; } var list=[]; if(target.canUse('sha',player,false)) list.push('sha'); if(target.canUse('juedou',player,false)) list.push('juedou'); if(!list.length) event.finish(); else if(list.length==1) event._result={control:list[0]}; else target.chooseControl(list).set('prompt','对'+get.translation(player)+'使用一张【杀】或【决斗】。').ai=function(){ return get.effect(player,{name:'sha'},target,target)>=get.effect(player,{name:'juedou'},target,target)?'sha':'juedou'; }; 'step 3' target.useCard({name:result.control,isCard:true},player,'noai'); }, ai:{ order:7, result:{ target:-1.2, player:function(player,target){ if(target.countCards('h')-player.countCards('h')>1) return 1; if(get.damageEffect(target,player,player,player)>0) return 1; if(player.hp>3||player.countCards('h','sha')&&player.countCards('h','shan')) return 0; if(player.hp>2) return -1.1; return -2; }, }, }, }, niluan:{ audio:2, trigger:{global:'phaseJieshuBegin'}, filter:function(event,player){ return event.player!=player&&(event.player.hp>player.hp||event.player.getHistory('useCard',function(card){ return card.card.name=='sha'; }).length>0); }, direct:true, content:function(){ var next=player.chooseToUse(); next.logSkill='niluan'; next.set('openskilldialog',get.prompt2('niluan')); next.set('norestore',true); next.set('_backupevent','niluanx'); next.set('custom',{ add:{}, replace:{window:function(){}} }); next.backup('niluanx'); }, }, niluanx:{ viewAs:{name:'sha'}, filterCard:{color:'black'}, position:'hes', selectCard:1, check:function(card){return 5-get.value(card)}, }, cuorui:{ audio:2, trigger:{ global:'phaseBefore', player:'enterGame', }, forced:true, filter:function(event,player){ return player.maxHp>0&&!get.is.single()&&(event.name!='phase'||game.phaseNumber==0); }, content:function(){ player.draw(Math.min(5,player.maxHp),false); }, group:'cuorui_nojudge', subSkill:{ nojudge:{ trigger:{ player:'phaseJudgeBefore', }, forced:true, audio:'cuorui', filter:function(event,player){ return !player.storage.cuorui&&(get.is.single()||player.countCards('j')); }, content:function(){ player.storage.cuorui=true; trigger.cancel(); game.log(player,'跳过了','#g判定阶段'); }, }, }, }, liewei:{ audio:2, trigger:{source:'dieAfter'}, frequent:true, content:function(){ player.draw(3); }, }, //蒋干 weicheng:{ audio:2, trigger:{ global:'gainAfter', player:'loseAsyncAfter', }, //forced:true, frequent:true, filter:function(event,player){ if(player.getHp()<=player.countCards('h')) return false; if(event.name=='loseAsync'){ if(event.type!='gain') return false; var cards=event.getl(player).hs; return game.hasPlayer(function(current){ if(current==player) return false; var cardsx=event.getg(current); for(var i of cardsx){ if(cards.contains(i)) return true; } return false; }); } if(event.player==player) return false; var evt=event.getl(player); return evt&&evt.hs&&evt.hs.length>0; }, preHidden:true, content:function(){ player.draw(); }, }, daoshu:{ audio:2, enable:'phaseUse', filterTarget:function(c,p,t){ return t!=p&&t.countGainableCards(p,'h')>0; }, filter:function(e,p){ return !p.hasSkill('daoshu_used') }, content:function(){ 'step 0' player.chooseControl(lib.suit).set('prompt','请选择一个花色').ai=function(){return lib.suit.randomGet()}; 'step 1' event.suit=result.control; player.popup(event.suit+2); game.log(player,'选择了',event.suit+2); player.gainPlayerCard(target,true,'h','visibleMove'); 'step 2' if(result.bool){ var suit2=get.suit(result.cards[0]); if(suit2==event.suit){ target.damage(); event.finish(); } else{ player.addTempSkill('daoshu_used','phaseUseEnd'); if(player.countCards('h',function(card){return get.suit(card)!=suit2})==0){ player.showHandcards(); event.finish(); } else player.chooseCard('h',true,function(card){ return get.suit(card)!=_status.event.suit2 },'交给'+get.translation(target)+'一张不为'+get.translation(suit2)+'花色的牌').set('suit2',suit2); } } else event.finish(); 'step 3' player.give(result.cards,target,true); }, ai:{ order:1, result:{ target:-1, }, }, subSkill:{ used:{sub:true}, }, }, //统率三军诸葛瑾和文聘 "zhenwei_three":{ global:"zhenwei_three_others", subSkill:{ others:{ mod:{ globalTo:function (from,to,distance){ if(from.side!=to.side&&game.hasPlayer(function(current){ return current!=to&¤t.side==to.side&¤t.hasSkill('zhenwei_three'); }))return distance+1; }, }, sub:true, }, }, }, "huanshi_three":{ audio:"huanshi", trigger:{ global:"judge", }, filter:function (event,player){ return player.countCards('hes')>0&&player.side==event.player.side; }, direct:true, content:function (){ "step 0" player.chooseCard(get.translation(trigger.player)+'的'+(trigger.judgestr||'')+'判定为'+ get.translation(trigger.player.judging[0])+','+get.prompt('huanshi_three'),'hes',function(card){ var player=_status.event.player; var mod2=game.checkMod(card,player,'unchanged','cardEnabled2',player); if(mod2!='unchanged') return mod2; var mod=game.checkMod(card,player,'unchanged','cardRespondable',player); if(mod!='unchanged') return mod; return true; }).set('ai',function(card){ var trigger=_status.event.getTrigger(); var player=_status.event.player; var judging=_status.event.judging; var result=trigger.judge(card)-trigger.judge(judging); var attitude=get.attitude(player,trigger.player); if(attitude==0||result==0) return 0; if(attitude>0){ return result-get.value(card)/2; } else{ return -result-get.value(card)/2; } }).set('judging',trigger.player.judging[0]); "step 1" if(result.bool){ player.respond(result.cards,'highlight','huanshi_three','noOrdering'); } else{ event.finish(); } "step 2" if(result.bool){ if(trigger.player.judging[0].clone){ trigger.player.judging[0].clone.classList.remove('thrownhighlight'); game.broadcast(function(card){ if(card.clone){ card.clone.classList.remove('thrownhighlight'); } },trigger.player.judging[0]); game.addVideo('deletenode',player,get.cardsInfo([trigger.player.judging[0].clone])); } game.cardsDiscard(trigger.player.judging[0]); trigger.player.judging[0]=result.cards[0]; trigger.orderingCards.addArray(result.cards); game.log(trigger.player,'的判定牌改为',result.cards[0]); game.delay(2); } }, ai:{ rejudge:true, tag:{ rejudge:1, }, }, }, //英文版特典武将凯撒 zhengfu:{ trigger:{ player:"useCardToPlayered", }, check:function (event,player){ return get.attitude(player,event.target)<0; }, filter:function(event,player){ return event.card.name=='sha'; }, logTarget:"target", line:false, content:function (){ 'step 0' player.line(trigger.target,{color:[220, 90, 139]}); player.chooseControl(['basic','trick','equip']).set('ai',function(){ var player=_status.event.target; if(!player.countCards('h','sha')&&player.countCards('h','shan')) return 'trick'; return 'basic'; }).set('prompt','请选择一种牌的类别').set('target',trigger.target); 'step 1' trigger.target.chooseCard('he','交给'+get.translation(player)+'一张'+get.translation(result.control)+'牌,否则此【杀】不可被闪避。',function(card){ return get.type(card,'trick')==result.control; }).set('ai',function(card){ var num=_status.event.num; if(num==0) return 0; if(card.name=='shan') return num>1?2:0; return 8-get.value(card); }).set('num',trigger.target.countCards('h','shan')) 'step 2' if(result.bool){ var cards=result.cards; trigger.target.give(cards,player); } else{ trigger.getParent().directHit.add(trigger.target); game.delay(); } }, }, //变权移植 wanwei:{ trigger:{target:['rewriteGainResult','rewriteDiscardResult']}, direct:true, preHidden:true, filter:function(event,player){ return event.player!=player; }, audio:2, content:function(){ 'step 0' var prompt='即将失去'+get.translation(trigger.result.cards)+',是否发动【挽危】?'; var next=player.choosePlayerCard(player,prompt,trigger.position); next.set('ai',function(button){ return 20-get.value(button.link); }); next.filterButton=trigger.filterButton; next.selectButton=trigger.result.cards.length; next.setHiddenSkill('wanwei'); 'step 1' if(result.bool){ player.logSkill('wanwei'); trigger.result.cards=result.links.slice(0); trigger.result.links=result.links.slice(0); trigger.cards=result.links.slice(0); trigger.untrigger(); } } }, gzjili:{ mod:{ aiOrder:function(player,card,num){ if(player.isPhaseUsing()&&get.subtype(card)=='equip1'&&!get.cardtag(card,'gifts')){ var range0=player.getAttackRange(); var range=0; var info=get.info(card); if(info&&info.distance&&info.distance.attackFrom){ range-=info.distance.attackFrom; } if(player.getEquip(1)){ var num=0; var info=get.info(player.getEquip(1)); if(info&&info.distance&&info.distance.attackFrom){ num-=info.distance.attackFrom; } range0-=num; } range0+=range; if(range0==(player.getHistory('useCard').length+player.getHistory('respond').length+2)&&player.countCards('h',function(cardx){ return get.subtype(cardx)!='equip1'&&player.getUseValue(cardx)>0; })) return num+10; } }, }, trigger:{player:['useCard','respond']}, frequent:true, locked:false, preHidden:true, filter:function(event,player){ return player.getHistory('useCard').length+player.getHistory('respond').length==player.getAttackRange(); }, audio:2, content:function(){ player.draw(player.getHistory('useCard').length+player.getHistory('respond').length); }, ai:{ threaten:1.8, effect:{ target:function(card,player,target,current){ if(player!=target||!player.isPhaseUsing()) return; if(get.subtype(card)=='equip1'&&!get.cardtag(card,'gifts')){ var range0=player.getAttackRange(); var range=0; var info=get.info(card); if(info&&info.distance&&info.distance.attackFrom){ range-=info.distance.attackFrom; } if(player.getEquip(1)){ var num=0; var info=get.info(player.getEquip(1)); if(info&&info.distance&&info.distance.attackFrom){ num-=info.distance.attackFrom; } range0-=num; } range0+=range; var delta=range0-(player.getHistory('useCard').length+player.getHistory('respond').length); if(delta<0) return; var num=player.countCards('h',function(card){ return (get.cardtag(card,'gifts')||get.subtype(card)!='equip1')&&player.getUseValue(card)>0; }); if(delta==2&&num>0) return [1,3]; if(num>=delta) return 'zeroplayertarget'; } }, }, } }, xiongsuan:{ audio:2, }, diancai:{ audio:2, }, diaodu:{ audio:2, }, zhengbi:{ audio:2, }, fengying:{ audio:2, }, //新服曹笨 xinshanjia:{ group:["xinshanjia_count"], locked:false, mod:{ aiValue:function(player,card,num){ if((player.storage.xinshanjia||0)<3&&get.type(card)=='equip'&&!get.cardtag(card,'gifts')){ return num/player.hp; } }, }, audio:"shanjia", trigger:{ player:"phaseUseBegin", }, intro:{ content:"本局游戏内已失去过#张装备牌", }, frequent:true, sync:function(player){ var history=player.actionHistory; var num=0; for(var i=0;i0) player.markSkill('xinshanjia'); }, content:function (){ 'step 0' player.draw(3); 'step 1' lib.skill.xinshanjia.sync(player); var num=3-player.storage.xinshanjia; if(num>0){ player.chooseToDiscard('he',true,num).ai=get.disvalue; } 'step 2' var bool1=true,bool2=true; if(result.cards){ var cards=result.cards; for(var i=0;i2) return false; }, effect:{ target:function(card,player,target){ if(player.storage.xinshanjia<3&&get.type(card)=='equip'&&!get.cardtag(card,'gifts')) return [1,3]; }, }, }, subSkill:{ count:{ forced:true, silent:true, popup:false, trigger:{ player:"loseEnd", }, filter:function(event,player){ return event.cards2&&event.cards2.length>0; }, content:function (){ lib.skill.xinshanjia.sync(player); }, }, sha:{ mark:true, charlotte:true, intro:{content:'使用【杀】的次数上限+1'}, mod:{ cardUsable:function(card,player,num){ if(card.name=='sha') return num+1; } } }, nodis:{ mark:true, charlotte:true, intro:{content:'使用牌无距离限制'}, mod:{ targetInRange:()=>true } } } }, //OL马超 ol_shichou:{ audio:2, trigger:{ player:'useCard2', }, direct:true, filter:function(event,player){ return event.card&&event.card.name=='sha';//&&player.isDamaged(); }, content:function(){ 'step 0' var num=player.getDamagedHp()+1; player.chooseTarget('是否发动【誓仇】?','为'+get.translation(trigger.card)+'添加至多'+get.cnNumber(num)+'个目标',[1,num],function(card,player,target){ var evt=_status.event.getTrigger(); return target!=player&&!evt.targets.contains(target)&&lib.filter.targetEnabled2(evt.card,player,target)&&lib.filter.targetInRange(evt.card,player,target); }).set('ai',function(target){ return get.effect(target,_status.event.getTrigger().card,_status.event.player); }); 'step 1' if(result.bool&&result.targets&&result.targets.length){ var targets=result.targets; player.logSkill('ol_shichou',targets); player.line(targets,trigger.card.nature); trigger.targets.addArray(targets); trigger.ol_shichou=true; player.addTempSkill('ol_shichou2'); } }, }, ol_shichou2:{ trigger:{player:'useCardAfter'}, forced:true, popup:false, onremove:true, filter:function(event,player){ return event.ol_shichou==true&&player.countMark('ol_shichou2')<3&&!player.getHistory('sourceDamage',function(evt){ return evt.card==event.card; }).length&&event.cards.filterInD().length>0; }, content:function(){ player.addMark('ol_shichou2',1,false); player.gain(trigger.cards.filterInD(),'gain2'); }, }, //新大小乔 new_xingwu:{ audio:"xingwu", trigger:{ player:"phaseDiscardBegin", }, direct:true, intro:{ content:"expansion", markcount:'expansion', onunmark:function(storage,player){ player.removeAdditionalSkill('new_luoyan'); }, }, onremove:function(player,skill){ var cards=player.getExpansions(skill); if(cards.length) player.loseToDiscardpile(cards); }, filter:function(event,player){ return player.countCards('he')>0; }, content:function(){ 'step 0' player.chooseCard('he',get.prompt('new_xingwu'),'将一张牌置于武将牌上作为“舞”').set('ai',function(card){ if(_status.event.goon) return 20-get.value(card); return 7-get.value(card); }).set('goon',player.needsToDiscard()||player.getStorage('new_xingwu').length>1); 'step 1' if(result.bool){ player.logSkill('new_xingwu'); var cards=result.cards; player.addToExpansion(cards,player,'give').gaintag.add('new_xingwu'); if(player.hasSkill('new_luoyan')) player.addAdditionalSkill('new_luoyan',['oltianxiang','liuli']); } else event.finish(); 'step 2' game.delayx(); var choices=[]; event.addIndex=0; if(player.getExpansions('new_xingwu').length>2){ choices.push('将三张“星舞”牌置入弃牌堆'); } else event.addIndex++; if(player.countCards('h',function(card){ return lib.filter.cardDiscardable(card,player,'new_xingwu'); })>1) choices.push('弃置两张手牌并将武将牌翻面'); if(choices.length){ player.chooseControl('cancel2').set('prompt','星舞:是否发射核弹?').set('choiceList',choices).set('ai',function(){ var player=_status.event.player; if(player.getExpansions('new_xingwu').length>2) return 0; if(player.isTurnedOver()||player.identity=='fan'||player.getEnemies().length==1) return 0; return 'cancel2'; }); } else event.finish(); 'step 3' if(result.control!='cancel2'){ var num=result.index+event.addIndex; if(num==1){ event.goto(5); return; } if(player.getExpansions('new_xingwu').length>3) player.chooseButton(['请选择要移去的“星舞”牌',player.getExpansions('new_xingwu')],3,true); else event._result={ bool:true, links:player.getExpansions('new_xingwu').slice(0), } } else event.finish(); 'step 4' if(result.bool&&result.links&&result.links.length==3){ var cards=result.links; player.loseToDiscardpile(cards); event.goto(6); } else event.finish(); 'step 5' player.chooseToDiscard(true,'h',2); player.turnOver(); 'step 6' player.chooseTarget('请选择【星舞】的目标','弃置其装备区内的所有牌。然后对其造成两点伤害(目标为女性角色则改为1点)',true,lib.filter.notMe).set('ai',function(target){ return -get.attitude(_status.event.player,target)*Math.sqrt(4+target.countCards('e',function(card){ return get.value(card,target)>0; }))*(target.hasSex('female')?1:2); }); 'step 7' if(result.bool&&result.targets&&result.targets.length){ var target=result.targets[0]; player.line(target,'green'); var num=target.countCards('e'); if(num) player.discardPlayerCard(target,'e',num,true); target.damage(target.hasSex('female')?1:2); } }, ai:{ threaten:1.5, }, }, new_luoyan:{ init:function(player){ if(player.getStorage('new_xingwu').length) player.addAdditionalSkill('new_luoyan',['oltianxiang','liuli']); }, onremove:function(player){ player.removeAdditionalSkill('new_luoyan'); }, derivation:['oltianxiang','liuli'], locked:true, }, //新孙鲁育 "new_meibu":{ audio:"meibu", trigger:{ global:"phaseUseBegin", }, filter:function (event,player){ return event.player!=player&&event.player.isIn()&&player.countCards('he')>0&&event.player.inRange(player); }, direct:true, derivation:["new_zhixi"], checkx:function (event,player){ if(get.attitude(player,event.player)>=0) return false; var e2=player.getEquip(2); if(e2){ if(e2.name=='tengjia') return true; if(e2.name=='bagua') return true; } return event.player.countCards('h')>event.player.hp; }, content:function (){ "step 0" var check=lib.skill.new_meibu.checkx(trigger,player); player.chooseToDiscard(get.prompt2('new_meibu',trigger.player),'he').set('ai',function(card){ if(_status.event.check) return 6-get.value(card); return 0; }).set('check',check).set('logSkill','new_meibu'); "step 1" if(result.bool){ var target=trigger.player; var card=result.cards[0]; player.line(target,'green'); target.addTempSkill('new_zhixi','phaseUseAfter'); if(card.name!='sha'&&get.type(card)!='trick'&&get.color(card)!='black'){ target.addTempSkill('new_meibu_range','phaseUseEnd'); target.storage.meibu=player; } target.markSkillCharacter('new_meibu',player,'魅步','锁定技,出牌阶段,你至多可使用X张牌,你使用了锦囊牌后不能再使用牌(X为你的体力值)。'); } }, ai:{ expose:0.2, }, subSkill:{ range:{ mod:{ globalFrom:function (from,to,num){ if(to==from.storage.meibu){ return -Infinity; } }, }, sub:true, }, }, }, "new_mumu":{ audio:"mumu", trigger:{ player:"phaseUseBegin", }, direct:true, content:function (){ 'step 0' player.chooseTarget(get.prompt('new_mumu'),'弃置一名角色装备区内的一张牌,或者获得一名角色装备区内的防具牌',function(card,player,target){ if(target==player) return target.getEquips(2).length>0; return target.countCards('e')>0; }).set('ai',function(target){ var player=_status.event.player; var att=get.attitude(player,target) if(target.getEquip(2)&&player.hasEmptySlot(2)){ return -2*att; } return -att; }); 'step 1' if(result.bool&&result.targets&&result.targets.length){ event.target=result.targets[0]; player.logSkill('new_mumu',event.target); player.line(event.target,'green'); var e=event.target.getEquips(2); event.e=e; if(target==player) event.choice='获得一张防具牌'; else if(e.length>0){ player.chooseControl('弃置一张装备牌','获得一张防具牌').set('ai',function(){ if(_status.event.player.getEquips(2).length>0){ return '弃置一张装备牌'; } return '获得一张防具牌'; }); } else{ event.choice='弃置一张装备牌'; } } else event.finish(); 'step 2' var choice=event.choice||result.control; if(choice=='弃置一张装备牌'){ player.discardPlayerCard(event.target,'e',true); } else{ if(event.e){ player.gain(event.e,event.target,'give','bySelf'); player.addTempSkill('new_mumu2') } } }, }, "new_zhixi":{ mod:{ cardEnabled:function(card,player){ if(player.storage.new_zhixi2||player.countMark('new_zhixi')>=player.hp) return false; }, cardUsable:function(card,player){ if(player.storage.new_zhixi2||player.countMark('new_zhixi')>=player.hp) return false; }, cardRespondable:function(card,player){ if(player.storage.new_zhixi2||player.countMark('new_zhixi')>=player.hp) return false; }, cardSavable:function(card,player){ if(player.storage.new_zhixi2||player.countMark('new_zhixi')>=player.hp) return false; }, }, trigger:{ player:"useCard1", }, forced:true, popup:false, onremove:true, firstDo:true, init:function(player,skill){ player.storage[skill]=0; var evt=_status.event.getParent('phaseUse'); if(evt&&evt.player==player){ player.getHistory('useCard',function(evtx){ if(evtx.getParent('phaseUse')==evt){ player.storage[skill]++; if(get.type2(evtx.card)=='trick') player.storage.new_zhixi2=true; } }); } }, onremove:function(player){ player.unmarkSkill('new_meibu'); delete player.storage.new_zhixi; delete player.storage.new_zhixi2; }, content:function(){ player.addMark('new_zhixi',1,false); if(get.type2(trigger.card)=='trick') player.storage.new_zhixi2=true; }, ai:{presha:true,pretao:true,nokeep:true}, }, "new_mumu2":{ mod:{ cardEnabled:function(card){ if(card.name=='sha') return false; }, }, }, qingzhong:{ audio:2, trigger:{player:'phaseUseBegin'}, check:function(event,player){ if(game.hasPlayer(function(current){ return current!=player&¤t.isMinHandcard()&&get.attitude(player,current)>0; })){ return true; } if(player.countCards('h')<=2) return true; // if(player.countCards('h')<=3&&!player.countCards('h','shan')) return true; //if(player.countCards('h',{type:'basic'})<=1) return true; return false; }, content:function(){ player.draw(2); player.addTempSkill('qingzhong_give'); }, subSkill:{ give:{ audio:'qingzhong', trigger:{player:'phaseUseEnd'}, filter:function(event,player){ return !player.isMinHandcard(true); }, forced:true, content:function(){ 'step 0' var list=game.filterPlayer(function(current){ return current.isMinHandcard(); }); if(list.length==1){ if(list[0]!=player){ player.line(list[0],'green'); player.swapHandcards(list[0]); } event.finish(); } else{ player.chooseTarget(true,'清忠:选择一名手牌最少的角色与其交换手牌',function(card,player,target){ return target.isMinHandcard(); }).set('ai',function(target){ return get.attitude(_status.event.player,target); }); } 'step 1' if(result.bool){ var target=result.targets[0]; if(target!=player){ player.line(target,'green'); player.swapHandcards(target); } } } } } }, weijing:{ audio:2, group:['weijing_sha','weijing_shan'], subSkill:{ sha:{ audio:'weijing', enable:'chooseToUse', viewAs:{name:'sha',isCard:true}, filterCard:function(){return false}, viewAsFilter:function(player){ if(player.hasSkill('weijing_disable')) return false; }, selectCard:-1, mark:false, precontent:function(){ player.addTempSkill('weijing_disable','roundStart'); }, prompt:'视为使用一张杀', ai:{ order:function(){ var player=_status.event.player; if(!player.hasShan()&&!game.hasPlayer(function(current){ return player.canUse('sha',current)&¤t.hp==1&&get.effect(current,{name:'sha'},player,player)>0; })){ return 0; } return 2.95; }, skillTagFilter:function(player,tag,arg){ if(player.hasSkill('weijing_disable')) return false; if(arg!='use') return false; }, respondSha:true, } }, shan:{ audio:'weijing', enable:'chooseToUse', viewAs:{name:'shan',isCard:true}, mark:false, filterCard:function(){return false}, viewAsFilter:function(player){ if(player.hasSkill('weijing_disable')) return false; return true; }, onuse:function(event,player){ player.addTempSkill('weijing_disable','roundStart'); }, selectCard:-1, prompt:'视为使用一张闪', ai:{ order:function(){ var player=_status.event.player; if(player.hasSkill('qingzhong_give')) return 2.95; return 3.15; }, skillTagFilter:function(player){ if(player.hasSkill('weijing_disable')) return false; }, respondShan:true, } }, disable:{ mark:true, intro:{ content:'本轮已发动' } } } }, zishu:{ audio:2, locked:true, subSkill:{ discard:{ trigger:{global:'phaseEnd'}, audio:"zishu", forced:true, filter:function(event,player){ if(_status.currentPhase!=player){ var he=player.getCards('h'); var bool=false; player.getHistory('gain',function(evt){ if(!bool&&evt&&evt.cards){ for(var i=0;i0) return false; return event.cards.filterInD().length>0 }, content:function(){ 'step 0' player.chooseTarget(get.prompt('yingyuan'),'将'+get.translation(trigger.cards)+'交给一名其他角色',function(card,player,target){ return target!=player; }).set('ai',function(target){ if(target.hasJudge('lebu')) return 0; var att=get.attitude(_status.event.player,target); if(att<3) return 0; if(target.hasSkillTag('nogain')) att/=10; if(target.hasSha()&&_status.event.sha){ att/=5; } if(event.wuxie&&target.needsToDiscard(1)){ att/=5; } return att/(1+get.distance(player,target,'absolute')); }).set('sha',trigger.cards[0].name=='sha').set('wuxie',trigger.cards[0].name=='wuxie'); 'step 1' if(result.bool){ player.logSkill('yingyuan',result.targets[0]); result.targets[0].gain(trigger.cards.filterInD(),'gain2'); player.getHistory('custom').push({yingyuan_name:trigger.card.name}); } }, }, shuimeng:{ audio:2, trigger:{player:'phaseUseAfter'}, direct:true, filter:function(event,player){ return player.countCards('h'); }, content:function(){ 'step 0' player.chooseTarget(get.prompt2('shuimeng'),function(card,player,target){ return player.canCompare(target); }).set('ai',function(target){ if(!_status.event.goon) return 0; return -get.attitude(_status.event.player,target); }).set('goon',player.needsToDiscard()||player.hasCard(function(card){ var val=get.value(card); if(val<0) return true; if(val<=5){ return card.number>=11; } if(val<=6){ return card.number>=12; } return false; })); 'step 1' if(result.bool){ player.logSkill('shuimeng',result.targets); event.target=result.targets[0]; player.chooseToCompare(event.target); } else{ event.finish(); } 'step 2' if(result.bool){ player.chooseUseTarget({name:'wuzhong',isCard:true},true); } else{ event.target.useCard({name:'guohe',isCard:true},player); } } }, qianya:{ audio:2, trigger:{target:'useCardToTargeted'}, direct:true, filter:function(event,player){ return get.type(event.card,'trick')=='trick'&&player.countCards('h'); }, content:function(){ 'step 0' var nh=player.countCards('h'); player.chooseCardTarget({ filterCard:true, filterTarget:function(card,player,target){ return target!=player; }, selectCard:[1,nh], ai1:function(card){ var player=_status.event.player; var cardname=_status.event.cardname; if(_status.event.du) return -get.value(card,player,'raw'); else if(_status.event.shuimeng){ if(cardname=='wuzhong'){ if(player.needsToDiscard(2-ui.selected.cards.length)){ return 10-get.value(card,player,'raw'); } } else if(cardname=='guohe'){ if(player.needsToDiscard(-1-ui.selected.cards.length)){ return 10-get.value(card,player,'raw'); } } return 0; } else if(cardname=='lebu'){ if(player.needsToDiscard(1-ui.selected.cards.length)){ return 8-get.value(card,player,'raw'); } else{ if(!ui.selected.cards.length){ return 6-get.value(card,player,'raw'); } return 0; } } else if(cardname=='shunshou'){ if(_status.event.nh<=2) return get.value(card,player,'raw'); } else if(cardname=='huogong'){ if(player.hp==1) return get.value(card,player,'raw'); } if(ui.selected.cards.length) return 0; return 7-get.value(card,player,'raw'); }, ai2:function(target){ var att=get.attitude(_status.event.player,target); var nh2=target.countCards('h'); var num=Math.sqrt(1+nh2); var cardname=_status.event.cardname; if(_status.event.du) return 0.5-att; else if(_status.event.shuimeng){ return att/num; } else if(cardname=='lebu'){ return att/num; } else if(cardname=='shunshou'){ if(_status.event.nh<=2) return att/num; } else if(cardname=='huogong'){ if(_status.event.player.hp==1) return att/num; } if(_status.event.nh>nh2+1){ return att/num; } return 0; }, du:player.hasCard(function(card){ return get.value(card,player,'raw')<0; }), shuimeng:trigger.getParent(2).name=='shuimeng', nh:nh, cardname:trigger.card.name, prompt:get.prompt2('qianya') }); 'step 1' if(result.bool){ player.logSkill('qianya',result.targets); player.give(result.cards,result.targets[0]); } } }, xianfu:{ trigger:{ global:'phaseBefore', player:'enterGame', }, forced:true, filter:function(event,player){ return game.hasPlayer(current=>current!=player)&&(event.name!='phase'||game.phaseNumber==0); }, audio:6, content:function(){ 'step 0' player.chooseTarget('请选择【先辅】的目标',lib.translate.xianfu_info,true,function(card,player,target){ return target!=player&&(!player.storage.xianfu2||!player.storage.xianfu2.contains(target)); }).set('ai',function(target){ var att=get.attitude(_status.event.player,target); if(att>0) return att+1; if(att==0) return Math.random(); return att; }).animate=false; 'step 1' if(result.bool){ var target=result.targets[0]; if(!player.storage.xianfu2) player.storage.xianfu2=[]; player.storage.xianfu2.push(target); player.addSkill('xianfu2'); } } }, xianfu_mark:{ marktext:'辅', intro:{ name:'先辅', content:'当你受到伤害后,$受到等量的伤害,当你回复体力后,$回复等量的体力' }, }, xianfu2:{ audio:'xianfu', charlotte:true, trigger:{global:['damageEnd','recoverEnd']}, forced:true, filter:function(event,player){ if(event.player.isDead()||!player.storage.xianfu2||!player.storage.xianfu2.contains(event.player)||event.num<=0) return false; if(event.name=='damage') return true; return player.isDamaged(); }, logTarget:'player', content:function(){ 'step 0' var target=trigger.player; if(!target.storage.xianfu_mark) target.storage.xianfu_mark=[]; target.storage.xianfu_mark.add(player); target.storage.xianfu_mark.sortBySeat(); target.markSkill('xianfu_mark'); game.delayx(); 'step 1' player[trigger.name](trigger.num,'nosource'); }, onremove:function(player){ if(!player.storage.xianfu2) return; game.countPlayer(function(current){ if(player.storage.xianfu2.contains(current)&¤t.storage.xianfu_mark){ current.storage.xianfu_mark.remove(player); if(!current.storage.xianfu_mark.length) current.unmarkSkill('xianfu_mark'); else current.markSkill('xianfu_mark'); } }); delete player.storage.xianfu2; }, group:'xianfu3', }, xianfu3:{ trigger:{global:'dieBegin'}, silent:true, filter:function(event,player){ return event.player==player||player.storage.xianfu2&&player.storage.xianfu2.contains(player); }, content:function(){ if(player==trigger.player) lib.skill.xianfu2.onremove(player); else player.storage.xianfu2.remove(event.player); } }, chouce:{ trigger:{player:'damageEnd'}, content:function(){ 'step 0' event.num=trigger.num; 'step 1' player.judge(); 'step 2' event.color=result.color; if(event.color=='black'){ if(game.hasPlayer(function(current){ return current.countDiscardableCards(player,'hej')>0; })) player.chooseTarget('弃置一名角色区域内的一张牌',function(card,player,target){ return target.countDiscardableCards(player,'hej'); },true).set('ai',function(target){ var player=_status.event.player; var att=get.attitude(player,target); if(att<0){ att=-Math.sqrt(-att); } else{ att=Math.sqrt(att); } return att*lib.card.guohe.ai.result.target(player,target); }); else event.finish(); } else{ var next=player.chooseTarget('令一名角色摸一张牌'); if(player.storage.xianfu2&&player.storage.xianfu2.length){ next.set('prompt2','(若目标为'+get.translation(player.storage.xianfu2)+'则改为摸两张牌)'); } next.set('ai',function(target){ var player=_status.event.player; var att=get.attitude(player,target)/Math.sqrt(1+target.countCards('h')); if(target.hasSkillTag('nogain')) att/=10; if(player.storage.xianfu2&&player.storage.xianfu2.contains(target)) return att*2; return att; }) } 'step 3' if(result.bool){ var target=result.targets[0]; player.line(target,'green'); if(event.color=='black'){ player.discardPlayerCard(target,'hej',true); } else{ if(player.storage.xianfu2&&player.storage.xianfu2.contains(target)){ if(!target.storage.xianfu_mark) target.storage.xianfu_mark=[]; target.storage.xianfu_mark.add(player); target.storage.xianfu_mark.sortBySeat(); target.markSkill('xianfu_mark'); target.draw(2); } else{ target.draw(); } } } 'step 4' if(--event.num>0&&player.hasSkill('chouce')){ player.chooseBool(get.prompt2('chouce')); } else{ event.finish(); } 'step 5' if(result.bool){ player.logSkill('chouce'); event.goto(1); } }, ai:{ maixie:true, maixie_hp:true, effect:{ target:function(card,player,target){ if(get.tag(card,'damage')){ if(player.hasSkillTag('jueqing',false,target)) return [1,-2]; if(!target.hasFriend()) return; if(target.hp>=4) return [1,get.tag(card,'damage')*1.5]; if(target.hp==3) return [1,get.tag(card,'damage')*1]; if(target.hp==2) return [1,get.tag(card,'damage')*0.5]; } } } } }, fuqi:{ audio:2, forced:true, trigger:{ player:"useCard", }, filter:function(event,player){ return event.card&&(get.type(event.card)=='trick'||get.type(event.card)=='basic'&&!['shan','tao','jiu','du'].contains(event.card.name))&&game.hasPlayer(function(current){ return current!=player&&get.distance(current,player)<=1; }); }, content:function(){ trigger.directHit.addArray(game.filterPlayer(function(current){ return current!=player&&get.distance(current,player)<=1; })); }, ai:{ directHit_ai:true, skillTagFilter:function(player,tag,arg){ return get.distance(arg.target,player)<=1; }, }, }, wylianji:{ enable:'phaseUse', audio:2, usable:1, filter:function(event,player){ return player.hasCard(lib.skill.wylianji.filterCard); }, check:function(card){ if(card.name=='sha') return 1; else{ if(get.tag(card,'damage')){ if(get.tag(card,'multineg')) return 5; return 2; } } return 0; }, filterCard:function(card){ return get.name(card)=='sha'||(get.type(card,'trick')=='trick'&&get.color(card)=='black'&&!get.info(card).multitarget)&&get.info(card).enable; }, filterTarget:function(card,player,target){ return target!=player&&!target.isMin()&& (player.canUse(card,target,false)||game.hasPlayer(function(current){ return current!=player&&target.canUse(card,current); })); }, discard:false, lose:true, delay:false, content:function(){ 'step 0' player.showCards(get.translation(player)+'对'+get.translation(target)+'发动了【连计】',cards); 'step 1' var equip1=get.cardPile2(function(card){ return get.subtype(card)=='equip1'; }); if(!equip1){ player.popup('连计失败'); game.log('牌堆中无装备'); event.finish(); return; } if(equip1.name=='qinggang'&&!lib.inpile.contains('qibaodao')){ equip1.remove(); equip1=game.createCard2('qibaodao',equip1.suit,equip1.number); } target.$draw(equip1); target.chooseUseTarget(true,equip1,'nothrow','nopopup'); game.delay(); 'step 2' game.updateRoundNumber(); var card=cards[0]; var bool1=game.hasPlayer(function(current){ return current!=player&&target.canUse(card,current); }); var bool2=player.canUse(card,target,false); if(bool1&&bool2){ target.chooseControl(function(){ return 0; }).set('choiceList',[ '对除'+get.translation(player)+'以外的角色使用'+get.translation(cards)+',并将装备区里的武器牌交给该牌的一个目标角色', '视为'+get.translation(player)+'对你使用'+get.translation(cards)+',并将装备区内的武器牌交给'+get.translation(player) ]); } else if(bool1){ event.directindex=0; } else if(bool2){ event.directindex=1; } else{ event.finish(); } 'step 3' var card=cards[0]; if(result&&typeof event.directindex!='number'){ event.directindex=result.index; } if(event.directindex==1){ event.insert(lib.skill.wylianji.content_use,{ player:player, target:target, card:card }) } else{ event.insert(lib.skill.wylianji.content_give,{ player:target, card:card, targets:game.filterPlayer(function(current){ return current!=player; }) }); } }, content_use:function(){ 'step 0' player.useCard(card,target); 'step 1' if(!get.owner(card)){ target.gain(card,'gain2'); } 'step 2' var equip1=target.getEquips(1); if(equip1.length){ game.delay(); target.give(equip1,player); target.line(player); } }, content_give:function(){ 'step 0' var select=get.select(get.info(card).selectTarget); if(select[1]==-1){ for(var i=0;i1){ player.chooseTarget(true,'将'+get.translation(equip1)+'交给一名角色',function(card,player,target){ return _status.event.list.contains(target); }).set('ai',function(target){ return get.attitude(player,target); }).set('list',_status.event.list); event.equip1=equip1; } else{ if(event.list.length==1){ player.give(equip1,event.list[0]); player.line(event.list); } event.finish(); } } else{ event.finish(); } 'step 3' if(result.bool&&result.targets.length&&event.equip1){ player.give(event.equip1,result.targets[0]); player.line(result.targets); } }, ai:{ order:7, result:{ target:function(player,target){ if(ui.selected.cards.length){ var card=ui.selected.cards[0]; var bool=(card.name!='sha'); if(game.hasPlayer(function(current){ return target.canUse(card,current,bool)&&get.effect(current,card,target,player)>0; })){ var num=1; if(target.getEquip(1)){ num=0.6; } if(target.hasSkillTag('noe')) 2*num; return num; } } return 0; } } } }, moucheng:{ audio:2, derivation:['jingong','wy_meirenji','wy_xiaolicangdao'], trigger:{global:'damageEnd'}, forced:true, popup:false, filter:function(event,player){ return event.source!=player&&event.getParent(2).name=='useCard'&&event.getParent(3).name=='wylianjiInserted'; }, init:function(player){ player.storage.moucheng=0; }, intro:{ content:'已造成#点伤害' }, unique:true, juexingji:true, content:function(){ player.storage.moucheng+=trigger.num; if(player.hasSkill('moucheng')){ player.markSkill('moucheng'); player.syncStorage('moucheng'); } if(player.storage.moucheng>=3){ event.trigger('mouchengAwaken'); } }, group:'moucheng_awaken', subSkill:{ awaken:{ trigger:{player:'mouchengAwaken'}, forced:true, skillAnimation:true, animationColor:'gray', content:function(){ player.awakenSkill('moucheng'); player.removeSkill('wylianji'); game.log(player,'失去了技能','#g【连计】'); player.addSkillLog('jingong'); } } } }, jingong:{ audio:2, enable:'phaseUse', usable:1, filter:function(event,player){ return event.xinjingong_list&&player.countCards('hes',function(card){ return card.name=='sha'||get.type(card)=='equip'; }); }, onChooseToUse:function(event){ if(!game.online){ var evt=event.getParent(); if(evt.name!='phaseUse') return; if(!evt.xinjingong_list){ var list=get.inpile('trick').randomGets(2); if(Math.random()<0.5){ list.push('wy_meirenji'); } else{ list.push('wy_xiaolicangdao'); } evt.xinjingong_list=list; } if(!event.xinjingong_list) event.set('xinjingong_list',evt.xinjingong_list); } }, chooseButton:{ dialog:function(event,player){ var list=[]; for(var i of event.xinjingong_list) list.push(['锦囊','',i]); return ui.create.dialog('矜功',[list,'vcard']); }, filter:function(button,player){ return lib.filter.filterCard({name:button.link[2]},player,_status.event.getParent()); }, check:function(button){ return _status.event.player.getUseValue({name:button.link[2]}); }, backup:function(links,player){ return { audio:'jingong', filterCard:true, popname:true, position:'hes', viewAs:{name:links[0][2]}, check:function(card){ return 6-get.value(card); }, filterCard:function(card){ return card.name=='sha'||get.type(card)=='equip'; }, precontent:function(){ player.addTempSkill('jingong2'); }, }; }, prompt:function(links,player){ return '将一张【杀】或装备牌当做'+get.translation(links[0][2])+'使用'; } }, ai:{ order:2, result:{ player:function(player){ if((player.hp<=2||player.needsToDiscard())&&!player.getStat('damage')) return 0; return 1; } } } }, jingong2:{ trigger:{player:'phaseJieshuBegin'}, forced:true, filter:function(event,player){ return !player.getStat('damage'); }, content:function(){ player.loseHp(); } }, jingong3:{charlotte:true}, weikui:{ audio:'kuiwei', enable:'phaseUse', usable:1, filterTarget:function(card,player,target){ return target!=player&&target.countCards('h'); }, content:function(){ 'step 0' player.loseHp(); 'step 1' if(target.countCards('h','shan')){ player.viewHandcards(target); if(player.canUse({name:'sha',isCard:true},target,false)) player.useCard({name:'sha',isCard:true},target,false); player.storage.weikui2=target; player.addTempSkill('weikui2'); } else{ player.discardPlayerCard(target,'visible',true,'h').set('ai',function(button){ return get.value(button.link,_status.event.target); }); } }, ai:{ order:8, result:{ target:function(player,target){ if(player.hp<=2) return 0; if(player.hp==3) return target.hp<=2?-1:0; return -1; } } } }, weikui2:{ onremove:true, mod:{ globalFrom:function(from,to){ if(to==from.storage.weikui2) return -Infinity; } }, mark:'character', intro:{ content:'与$的距离视为1直到回合结束' }, }, lizhan:{ audio:'yanzheng', trigger:{player:'phaseJieshuBegin'}, direct:true, filter:function(event,player){ for(var i=0;i=num) return false; return player.countCards('h')>0; }, filterTarget:function(event,player,target){ return player.canCompare(target); }, content:function(){ 'step 0' player.chooseToCompare(target); 'step 1' if(!result.bool) event.finish(); event.num=result.num1; 'step 2' if(num<=5&&target.countGainableCards(player,'he')>0) player.gainPlayerCard(target,'he',true); 'step 3' if(num<=9){ var card=get.cardPile2(function(x){ return x.name=='sha'; }); if(card) player.gain(card,'gain2'); } 'step 4' if(num<=13){ var card={name:'sha',nature:'thunder'}; if(player.canUse(card,target,false)) player.useCard(card,target,false); } }, ai:{ order:4, result:{ target:function(player,target){ var sort=function(a,b){ return b.number-a.number; }; var ps=player.getCards('h').sort(sort); var ts=target.getCards('h').sort(sort); if(ps[0].number>ts[0].number){ var effect=get.effect(target,{name:'sha',nature:'thunder'},player,player) if(ps[0].number<6&&target.countCards('he')>1) effect-=2; if(ps[0].number<10) effect-=1; return effect; } return ps.length>=ts.length?-0.5:0; }, }, }, }, fenyue:{ audio:2, enable:'phaseUse', filter:function(event,player){ if(!player.countCards('h')) return false; var num; if(get.mode()=='identity'){ num=game.countPlayer(function(current){ return current.identity=='zhong'||current.identity=='mingzhong'; }); } else{ num=1; } if(player.getStat().skill.fenyue>=num) return false; return true; }, filterTarget:function(card,player,target){ return player.canCompare(target); }, ai:{ order:2.8, result:{ target:function(player,target){ if(get.attitude(player,target)<0&&player.hasCard(function(card){ return (card.number>=9&&get.value(card)<=5)||get.value(card)<=3; })){ return get.effect(target,{name:'sha'},player,target); } else{ return 0; } } } }, content:function(){ 'step 0' player.chooseToCompare(target); 'step 1' if(result.bool){ player.chooseControl(function(){ return 1; }).set('choiceList',[ '令'+get.translation(target)+'不能使用或打出手牌直到回合结束', '视为对'+get.translation(target)+'使用一张杀(不计入次数限制)' ]); } else{ var evt=_status.event.getParent('phaseUse'); if(evt&&evt.name=='phaseUse'){ evt.skipped=true; } event.finish(); } 'step 2' if(result.control=='选项一'){ target.addTempSkill('fenyue2'); } else{ player.useCard({name:'sha',isCard:true},target,false); } } }, fenyue2:{ mark:true, mod:{ cardEnabled2:function (card){ if(get.position(card)=='h') return false; }, }, intro:{ content:'不能使用或打出手牌' } }, zfengshi:{ audio:2, trigger:{player:'useCardToPlayered'}, filter:function(event,player){ return event.card.name=='sha'&&event.target.countCards('e'); }, logTarget:'target', check:function(event,player){ if(event.target.hasSkillTag('noe')) return false; return get.attitude(player,event.target)<0; }, content:function(){ trigger.target.chooseToDiscard('e',true); } }, chuanxin:{ audio:2, trigger:{source:'damageBegin2'}, preHidden:true, filter:function(event,player){ if(_status.currentPhase!=player) return false; if(!_status.event.getParent('phaseUse')) return false; if(event.card&&(event.card.name=='sha'||event.card.name=='juedou')&&event.getParent().name==event.card.name){ if(get.mode()=='guozhan'){ return (event.player.identity!='qun'||player.identity=='ye')&& !event.player.isUnseen()&&event.player.hasViceCharacter(); } else{ var info=lib.character[event.player.name]; if(!info) return false; var skills=event.player.getSkills(); for(var i=0;i=2) return 1; return 0; }).set('choiceList',['弃置装备区内的所有牌并失去一点体力',get.mode()=='guozhan'?'移除副将牌':'随机移除武将牌上的一个技能']); } else{ event._result={index:1}; } 'step 1' if(result.index==1){ if(get.mode()!='guozhan'){ var info=lib.character[trigger.player.name]; var skills=trigger.player.getSkills(); var list=[]; for(var i=0;i0; }, logTarget:function(){ return _status.currentPhase; }, content:function(){ var source=_status.currentPhase; if(source.hasSkill('hengjiang2')){ source.storage.hengjiang2+=trigger.num; source.storage.hengjiang3.add(player); source.updateMarks(); } else{ source.storage.hengjiang3=[player]; source.storage.hengjiang2=trigger.num; source.addTempSkill('hengjiang2'); } }, ai:{ maixie_defend:true, } }, hengjiang2:{ mark:true, charlotte:true, intro:{ content:'手牌上限-#' }, mod:{ maxHandcard:function(player,num){ return num-player.storage.hengjiang2; } }, onremove:function(player){ delete player.storage.hengjiang2; delete player.storage.hengjiang3; }, trigger:{player:'phaseDiscardEnd'}, filter:function(event,player){ if(event.cards&&event.cards.length) return false; var players=player.storage.hengjiang3; for(var i=0;i0; }, logTarget:function(){ return _status.currentPhase; }, preHidden:true, content:function(){ "step 0" event.count=trigger.num; "step 1" event.count--; var source=_status.currentPhase; source.addTempSkill('rehengjiang2'); source.addMark('rehengjiang2',1,false); player.addTempSkill('rehengjiang3'); "step 2" if(event.count&&player.hasSkill('rehengjiang')){ player.chooseBool(get.prompt2('rehengjiang',_status.currentPhase)).set('ai',function(){ return lib.skill.rehengjiang.check(_status.event.getTrigger(),_status.event.player); }) } else event.finish(); "step 3" if(result.bool){ player.logSkill('rehengjiang',_status.currentPhase); event.goto(1); } }, ai:{ maixie_defend:true, notemp:true, } }, rehengjiang2:{ mark:true, charlotte:true, onremove:true, intro:{ content:'手牌上限-#' }, mod:{ maxHandcard:function(player,num){ return num-player.storage.rehengjiang2; } }, }, rehengjiang3:{ audio:'hengjiang', trigger:{global:'phaseEnd'}, forced:true, charlotte:true, filter:function(event,player){ if(!event.player.countMark('rehengjiang2')) return false; if(event.player.hasHistory('lose',function(evt){ return evt.type=='discard'&&evt.cards2.length>0&&evt.getParent('phaseDiscard').player==event.player; })) return false; return true; }, logTarget:'player', content:function(){ var num=player.getHistory('useSkill',function(evt){ return evt.skill=='rehengjiang'&&evt.targets.contains(trigger.player); }).length; if(num>0) player.draw(num); }, }, shuangren:{ trigger:{player:'phaseUseBegin'}, direct:true, preHidden:true, filter:function(event,player){ return player.countCards('h')>0&&game.hasPlayer(function(current){ return current!=player&&player.canCompare(current); }) }, content:function(){ 'step 0' var goon; if(player.needsToDiscard()>1){ goon=player.hasCard(function(card){ return card.number>10&&get.value(card)<=5; }); } else{ goon=player.hasCard(function(card){ return (card.number>=9&&get.value(card)<=5)||get.value(card)<=3; }); } player.chooseTarget(get.prompt2('shuangren'),function(card,player,target){ return player.canCompare(target); }).set('ai',function(target){ var player=_status.event.player; if(_status.event.goon&&get.attitude(player,target)<0){ return get.effect(target,{name:'sha'},player,player); } return 0; }).set('goon',goon).setHiddenSkill(event.name); 'step 1' if(result.bool){ var target=result.targets[0]; event.target=target; player.logSkill('shuangren',target); player.chooseToCompare(target); } else{ event.finish(); } 'step 2' if(result.bool){ var target=event.target; if(game.hasPlayer(function(current){ if(target==current) return false; if(!player.canUse('sha',current,false)) return false; return target.isFriendOf(current); })){ var str='对一名与'+get.translation(target)+'势力相同的'; player.chooseTarget(str+'角色使用一张杀',true,function(card,player,target){ if(!player.canUse('sha',target,false)) return false; if(get.mode()=='guozhan'){ return target.isFriendOf(_status.event.identity); } return true; }).set('ai',function(target){ var player=_status.event.player; return get.effect(target,{name:'sha'},player,player); }).set('identity',target); } else{ player.useCard({name:'sha',isCard:true},target,false); event.finish(); } } else{ player.addTempSkill('zishou2'); event.finish(); } 'step 3' if(result.bool&&result.targets&&result.targets.length){ player.useCard({name:'sha',isCard:true},result.targets[0],false); } } }, kuanshi:{ audio:2, trigger:{player:'phaseJieshuBegin'}, direct:true, content:function(){ 'step 0' player.chooseTarget(get.prompt2('kuanshi')).set('ai',function(target){ if(get.attitude(_status.event.player,target)>0){ return 1/Math.sqrt(target.hp+1); } return 0; }).animate=false; 'step 1' if(result.bool){ var target=result.targets[0]; player.logSkill('kuanshi'); target.storage.kuanshi2=player; target.addSkill('kuanshi2'); } } }, kuanshi2:{ /*mark:'character', intro:{ content:'下一次受到超过1点的伤害时,防止此伤害,然后$跳过下个回合的摸牌阶段' },*/ trigger:{player:'damageBegin4'}, forced:true, filter:function(event,player){ return event.num>1; }, //priority:-11, content:function(){ trigger.cancel(); player.storage.kuanshi2.skip('phaseDraw'); player.removeSkill('kuanshi2'); }, group:'kuanshi2_remove', onremove:true, subSkill:{ remove:{ trigger:{global:['phaseZhunbeiBegin','dieAfter']}, forced:true, popup:false, filter:function(event,player){ return event.player==player.storage.kuanshi2; }, content:function(){ player.removeSkill('kuanshi2'); } } } }, xiashu:{ audio:2, trigger:{player:'phaseUseBegin'}, direct:true, filter:function(event,player){ return player.countCards('h')>0; }, content:function(){ 'step 0' var maxval=0; var hs=player.getCards('h'); for(var i=0;i0) return 0.1; if(maxval>=8) return 0; if(att==0) return 0.2; if(dh>=3) return dh; if(dh==2){ if(maxval<=7) return dh; } if(maxval<=6) return dh; return 0; }).set('maxval',maxval); 'step 1' if(result.bool){ player.logSkill('xiashu',result.targets); event.target=result.targets[0]; var hs=player.getCards('h'); player.give(hs,event.target); } else{ event.finish(); } 'step 2' var hs=event.target.getCards('h'); if(!hs.length){ event.finish(); return; } hs.sort(function(a,b){ return get.value(b,player,'raw')-get.value(a,player,'raw'); }); event.target.chooseCard([1,hs.length],'展示至少一张手牌',true).set('ai',function(card){ var rand=_status.event.rand; var list=_status.event.list; if(_status.event.att){ if(ui.selected.cards.length>=Math.ceil(list.length/2)) return 0; var value=get.value(card); if(_status.event.getParent().player.isHealthy()){ value+=(get.tag(card,'damage')?1.5:0)+(get.tag(card,'draw')?2:0); } return value; } if(ui.selected.cards.length>=Math.floor(list.length/2)) return 0; return (list.indexOf(card)%2==rand)?1:0; }).set('rand',(Math.random()<0.6)?1:0).set('list',hs).set('att',get.attitude(event.target,player)>0); 'step 3' event.target.showCards(result.cards); event.cards1=result.cards; event.cards2=event.target.getCards('h',function(card){ return !event.cards1.contains(card); }); 'step 4' var choice; var num1=event.cards1.length; var num2=event.cards2.length; if(get.attitude(event.target,player)>0&&num1>=num2){ choice=0; } else if(num1==num2){ choice=(Math.random()<0.45)?0:1; } else if(num1>num2){ if(num1-num2==1){ choice=(Math.random()<0.6)?0:1; } else{ choice=0; } } else{ if(num2-num1==1){ choice=(Math.random()<0.6)?1:0; } else{ choice=1; } } player.chooseControl(function(event,player){ return _status.event.choice; }).set('choiceList',['获得'+get.translation(event.target)+'展示的牌', '获得'+get.translation(event.target)+'未展示的牌']).set('choice',choice); 'step 5' if(result.index==0){ player.gain(event.cards1,target,'give','bySelf'); } else{ player.gain(event.cards2,target,'giveAuto','bySelf'); } }, ai:{ expose:0.1 } }, sheyan:{ audio:2, trigger:{target:'useCardToTarget'}, filter:function(event,player){ if(!event.targets||!event.targets.contains(player)) return false; var info=get.info(event.card); if(info.type!='trick') return false; if(info.multitarget) return false; if(event.targets.length>1) return true; return game.hasPlayer(function(current){ return !event.targets.contains(current)&&lib.filter.targetEnabled2(event.card,event.player,current); }); }, direct:true, content:function(){ 'step 0' var bool1=(trigger.targets.length>1); var bool2=game.hasPlayer(function(current){ return !trigger.targets.contains(current)&&lib.filter.targetEnabled2(trigger.card,trigger.player,current); }); if(bool1&&bool2){ player.chooseControlList(get.prompt('sheyan'),['为'+get.translation(trigger.card)+'增加一个目标','为'+get.translation(trigger.card)+'减少一个目标'],function(event,player){ if(_status.event.add) return 0; return 1; }).set('add',get.effect(player,trigger.card,trigger.player,player)>=0); } else if(bool2){ event.type='add'; event.goto(2); event.unchosen=true; } else{ event.type='remove'; event.goto(2); event.unchosen=true; } 'step 1' if(result.control=='cancel2'){ event.finish(); } else if(result.index==1){ event.type='remove'; } else{ event.type='add'; } 'step 2' if(event.type=='add'){ player.chooseTarget(event.unchosen?get.prompt('sheyan'):null,'为'+get.translation(trigger.card)+'增加一个目标',function(card,player,target){ var trigger=_status.event.getTrigger(); return !trigger.targets.contains(target)&&lib.filter.targetEnabled2(trigger.card,trigger.player,target); }).set('ai',function(target){ var trigger=_status.event.getTrigger(); return get.effect(target,trigger.card,trigger.player,_status.event.player); }); } else{ player.chooseTarget(event.unchosen?get.prompt('sheyan'):null,'为'+get.translation(trigger.card)+'减少一个目标',function(card,player,target){ return _status.event.targets.contains(target); }).set('ai',function(target){ var trigger=_status.event.getTrigger(); return -get.effect(target,trigger.card,trigger.player,_status.event.player); }).set('targets',trigger.targets); } 'step 3' if(result.bool){ if(!event.isMine()&&!event.isOnline()) game.delayx(); event.target=result.targets[0]; } else{ event.finish(); } 'step 4' player.logSkill('sheyan',event.target); if(event.type=='add'){ trigger.targets.push(event.target); } else{ trigger.getParent().excluded.add(event.target); } }, ai:{ expose:0.2 } }, bingzheng:{ audio:2, trigger:{player:'phaseUseEnd'}, direct:true, content:function(){ 'step 0' player.chooseTarget(get.prompt2('bingzheng'),function(card,player,target){ return target.countCards('h')!=target.hp; }).set('ai',function(target){ var player=_status.event.player; var att=get.attitude(player,target); var nh=target.countCards('h'); if(att>0){ if(nh==target.hp-1){ if(player==target) return att+1; return att+2; } if(player==target&&player.needsToDiscard()) return att/3; return att; } else{ if(nh==target.hp+1) return -att; if(nh==0) return 0; return -att/2; } }); 'step 1' if(result.bool){ player.logSkill('bingzheng',result.targets); event.target=result.targets[0]; if(event.target.countCards('h')){ player.chooseControl(function(event,player){ var target=event.target; if(get.attitude(player,target)<0) return 1; return 0; }).set('choiceList',['令'+get.translation(event.target)+'摸一张牌', '令'+get.translation(event.target)+'弃置一张手牌']); } else{ event.directfalse=true; } } else{ event.finish(); } 'step 2' if(event.directfalse||result.index==0){ event.target.draw(); } else{ event.target.chooseToDiscard('h',true); } 'step 3' if(event.target.countCards('h')==event.target.hp){ player.draw(); if(event.target==player){ event.finish(); return; } var next=player.chooseCard('是否交给'+get.translation(event.target)+'一张牌?','he'); next.set('ai',function(card){ if(get.position(card)!='h') return 0; if(_status.event.shan&&card.name=='shan'){ return 11; } if(_status.event.goon){ return 10-get.value(card); } return -get.value(card,_status.event.player,'raw'); }); if(get.attitude(player,event.target)>1&& player.countCards('h','shan')>1&&player.countCards('h')>event.target.countCards('h')){ next.set('shan',true); } if(get.attitude(player,event.target)>0&&player.needsToDiscard()){ next.set('goon',true); } } else{ event.finish(); } 'step 4' if(result.bool){ player.give(result.cards,target); } }, ai:{ expose:0.2, threaten:1.4 } }, fuman:{ audio:2, enable:'phaseUse', filterTarget:function(card,player,target){ if(target==player) return false; var stat=player.getStat('skill').fuman_targets; return !stat||!stat.contains(target); }, filter:function(event,player){ return player.countCards('h')>0&&game.hasPlayer((current)=>lib.skill.fuman.filterTarget(null,player,current)); }, discard:false, lose:false, delay:false, filterCard:true, content:function(){ player.give(cards,target).gaintag.add('fuman'); target.addSkill('fuman2'); player.addSkill('fuman_draw'); var stat=player.getStat('skill'); if(!stat.fuman_targets) stat.fuman_targets=[]; stat.fuman_targets.push(target); }, check:function(card){ return 6-get.value(card); }, ai:{ order:2, result:{ target:function(player,target){ if(!target.hasSha()) return 1.2; return 1; } } }, subSkill:{ draw:{ trigger:{global:'useCardAfter'}, forced:true, charlotte:true, filter:function(event,player){ return event.player.hasHistory('lose',function(evt){ if(evt.getParent()!=event) return false; for(var i in evt.gaintag_map){ if(evt.gaintag_map[i].contains('fuman')) return true; } return false; }); }, logTarget:'player', content:function(){ player.draw(trigger.player.hasHistory('sourceDamage',function(evt){ return evt.card==trigger.card; })?2:1); }, }, }, }, fuman2:{ mod:{ aiOrder:function(player,card,num){ if(get.itemtype(card)=='card'&&card.hasGaintag('fuman')) return num+1; }, cardname:function(card,player){ if(get.itemtype(card)=='card'&&card.hasGaintag('fuman')) return 'sha'; }, }, }, qizhou:{ trigger:{player:['phaseBefore','equipEnd','loseEnd']}, forced:true, popup:false, derivation:['mashu','reyingzi','reduanbing','fenwei'], filter:function(event,player){ if(player.equiping) return false; var suits=[]; var es=player.getCards('e'); for(var i=0;i0; } }, content:function(){ var suits=[]; var es=player.getCards('e'); for(var i=0;i0; } if(player.hasSha()&&geteff(target)){ var num=game.countPlayer(function(current){ return current!=player&&get.distance(player,current)<=1&&geteff(current); }); if(num==0){ if(game.hasPlayer(function(current){ return player.canUse('sha',current)&&geteff(current)&¤t!=target; })){ return 1; } } else if(num==1){ return 1; } } return 0; } } } }, fenxun2:{ mark:'character', onremove:true, intro:{ content:'到$的距离视为1' }, mod:{ globalFrom:function(from,to){ if(from.getStorage('fenxun2').contains(to)){ return -Infinity; } } } }, duanbing:{ audio:2, audioname:['heqi'], trigger:{player:'useCard2'}, filter:function(event,player){ if(event.card.name!='sha') return false; return game.hasPlayer(function(current){ return !event.targets.contains(current)&&get.distance(player,current)<=1&&player.canUse(event.card,current); }); }, direct:true, content:function(){ 'step 0' player.chooseTarget(get.prompt('duanbing'),'为'+get.translation(trigger.card)+'增加一个目标',function(card,player,target){ return !_status.event.sourcex.contains(target)&&get.distance(player,target)<=1&&player.canUse(_status.event.card,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){ if(!event.isMine()&&!event.isOnline()) game.delayx(); event.target=result.targets[0]; } else{ event.finish(); } 'step 2' player.logSkill('duanbing',event.target); trigger.targets.push(event.target); }, ai:{ effect:{ player:function(card,player,target,current,isLink){ if(!isLink&&card.name=='sha'){ if(player._duanbingtmp) return; player._duanbingtmp=true; if(get.effect(target,card,player,player)<=0){ delete player._duanbingtmp; return; } if(game.hasPlayer(function(current){ return current!=target&&get.distance(player,current)<=1&& player.canUse(card,current)&&get.effect(current,card,player,player)>0; })){ delete player._duanbingtmp; return [1,1]; } delete player._duanbingtmp; } } } } }, fuhan:{ audio:2, trigger:{player:'phaseBegin'}, unique:true, limited:true, skillAnimation:true, animationColor:'orange', forceunique:true, //filter:function(event,player){ // return player.storage.fanghun2>0; //}, prompt:function(event,player){ var num=Math.max(2,player.storage.fanghun2||0); num=Math.min(num,8); return get.prompt('fuhan')+'(体力上限:'+num+')'; }, check:function(event,player){ var num=Math.max(2,player.storage.fanghun2||0); if(num==1) return false; if(player.hp<=1) return true; if(num==2) return false; if(num==3) return player.hp<3&&player.isMinHp(); return true; }, content:function(){ 'step 0' if(player.storage.fanghun) player.draw(player.storage.fanghun); player.removeMark('fanghun',player.storage.fanghun); event.num=Math.max(2,player.storage.fanghun2||0); var list; if(_status.characterlist){ list=[]; for(var i=0;i<_status.characterlist.length;i++){ var name=_status.characterlist[i]; if(lib.character[name][1]=='shu') list.push(name); } } else if(_status.connectMode){ list=get.charactersOL(function(i){ return lib.character[i][1]!='shu'; }); } else{ list=get.gainableCharacters(function(info){ return info[1]=='shu'; }); } var players=game.players.concat(game.dead); for(var i=0;i0) player.gainMaxHp(num); else player.loseMaxHp(-num); player.recover(); } }, refuhan:{ audio:'fuhan', trigger:{player:'phaseZhunbeiBegin'}, unique:true, limited:true, skillAnimation:true, animationColor:'orange', forceunique:true, filter:function(event,player){ return player.countMark('fanghun')>0; }, content:function(){ 'step 0' if(player.storage.fanghun) player.draw(player.storage.fanghun); player.removeMark('fanghun',player.storage.fanghun); player.awakenSkill('refuhan'); 'step 1' var list; if(_status.characterlist){ list=[]; for(var i=0;i<_status.characterlist.length;i++){ var name=_status.characterlist[i]; if(lib.character[name][1]=='shu') list.push(name); } } else if(_status.connectMode){ list=get.charactersOL(function(i){ return lib.character[i][1]!='shu'; }); } else{ list=get.gainableCharacters(function(info){ return info[1]=='shu'; }); } var players=game.players.concat(game.dead); for(var i=0;i'; td.addEventListener(lib.config.touchscreen?'touchend':'click',function(){ if(_status.dragged) return; if(_status.justdragged) return; _status.tempNoButton=true; setTimeout(function(){ _status.tempNoButton=false; },500); var link=this.link; if(!this.classList.contains('bluebg')){ if(rSkill.length>=2) return; rSkill.add(link); this.classList.add('bluebg'); } else{ this.classList.remove('bluebg'); rSkill.remove(link); } }); } dialog.content.appendChild(table); dialog.add('  '); dialog.open(); event.switchToAuto=function(){ event.dialog.close(); event.control.close(); game.resume(); _status.imchoosing=false; }; event.control=ui.create.control('ok',function(link){ event.dialog.close(); event.control.close(); game.resume(); _status.imchoosing=false; }); for(var i=0;i0; if(name=='jiu') return player.countCards('hs','tao')>0; return false; }, audio:2, marktext:'影', intro:{ content:'mark', name:'梅影', }, trigger:{ source:'damageSource', player:'damageEnd', }, forced:true, locked:false, filter:function(event){ return event.card&&event.card.name=='sha'; }, content:function(){ player.addMark('fanghun',trigger.num||1); player.addMark('fanghun2',trigger.num||1,false); }, group:['fanghun_sha','fanghun_draw'], subSkill:{ draw:{ trigger:{player:['useCardAfter','respondAfter']}, forced:true, popup:false, filter:function(event){ return event.skill=='fanghun_sha'||event.skill=='fanghun_shan'; }, content:function(){ player.draw(); } }, sha:{ audio:'fanghun', enable:['chooseToUse','chooseToRespond'], prompt:'弃置一枚【梅影】标记,将杀当做闪,或将闪当做杀,或将桃当做酒,或将酒当做桃使用或打出', viewAs:function(cards,player){ var name=false; switch(get.name(cards[0],player)){ case 'sha':name='shan';break; case 'shan':name='sha';break; case 'tao':name='jiu';break; case 'jiu':name='tao';break; } if(name) return {name:name}; return null; }, position:'hs', check:function(card){ var player=_status.event.player; if(_status.event.type=='phase'){ var max=0; var name2; var list=['sha','tao','jiu']; var map={sha:'shan',tao:'jiu',jiu:'tao'} for(var i=0;i(name=='jiu'?1:0)&&player.getUseValue({name:name})>0){ var temp=get.order({name:name}); if(temp>max){ max=temp; name2=map[name]; } } } if(name2==get.name(card,player)) return 1; return 0; } return 1; }, filterCard:function(card,player,event){ event=event||_status.event; var filter=event._backup.filterCard; var name=get.name(card,player); if(name=='sha'&&filter({name:'shan',cards:[card]},player,event)) return true; if(name=='shan'&&filter({name:'sha',cards:[card]},player,event)) return true; if(name=='tao'&&filter({name:'jiu',cards:[card]},player,event)) return true; if(name=='jiu'&&filter({name:'tao',cards:[card]},player,event)) return true; return false; }, filter:function(event,player){ if(!player.storage.fanghun||player.storage.fanghun<=0) return false; var filter=event.filterCard; if(filter({name:'sha'},player,event)&&player.countCards('hs','shan')) return true; if(filter({name:'shan'},player,event)&&player.countCards('hs','sha')) return true; if(filter({name:'tao'},player,event)&&player.countCards('hs','jiu')) return true; if(filter({name:'jiu'},player, event)&&player.countCards('hs','tao')) return true; return false; }, onrespond:function(){return this.onuse.apply(this,arguments)}, onuse:function(result,player){ player.removeMark('fanghun',1); }, ai:{ respondSha:true, respondShan:true, skillTagFilter:function(player,tag){ if(!player.storage.fanghun||player.storage.fanghun<0) return false; var name; switch(tag){ case 'respondSha':name='shan';break; case 'respondShan':name='sha';break; } if(!player.countCards('hs',name)) return false; }, order:function(item,player){ if(player&&_status.event.type=='phase'){ var max=0; var list=['sha','tao','jiu']; var map={sha:'shan',tao:'jiu',jiu:'tao'} for(var i=0;i(name=='jiu'?1:0)&&player.getUseValue({name:name})>0){ var temp=get.order({name:name}); if(temp>max) max=temp; } } if(max>0) max+=((player.storage.refuhan||player.storage.twfuhan)?0.3:-0.3); return max; } if(!player) player=_status.event.player; return (player.storage.refuhan||player.storage.twfuhan)?4:1; }, }, }, } }, yjixi:{ derivation:'rewangzun', trigger:{player:'phaseJieshuBegin'}, forced:true, filter:function(event,player){ return player.countMark('yjixi')>=3; }, skillAnimation:true, animationColor:'gray', unique:true, juexingji:true, content:function(){ 'step 0' player.awakenSkill('yjixi'); player.gainMaxHp(); player.recover(); 'step 1' var str='摸两张牌'; var mode=get.mode(); var choice='选项一'; if(mode=='identity'||(mode=='versus'&&_status.mode=='four')){ var list=[]; var zhu=get.zhu(player); if(zhu&&zhu!=player&&zhu.skills){ for(var i=0;i=6) return 0; return 20-num; } else{ if(_status.event.player.needsToDiscard()){ return 7-num; } } return 0; }, discard:false, lose:false, delay:false, content:function(){ 'step 0' player.give(cards,target); if(get.color(cards[0])=='black'){ target.chooseToDiscard(2,'he','弃置两张牌,或令'+get.translation(player)+'摸两张牌').set('ai',function(card){ if(_status.event.goon) return 7-get.value(card); return 0; }).set('goon',get.attitude(target,player)<0); } else{ event.finish(); } 'step 1' if(!result.bool){ player.draw(2); } }, ai:{ order:8, expose:0.2, result:{ target:function(player,target){ if(ui.selected.cards.length&&get.color(ui.selected.cards[0])=='red'){ if(target.countCards('h')0; } return false; }, content:function(){ var cards=trigger.getl(player).cards2; game.countPlayer(function(current){ if(current==player) return; var hs=current.getCards('h'),cardsx=trigger.getg(current).filter(function(card){ return hs.contains(card)&&cards.contains(card)&&get.color(card,player)=='black'; }); if(cardsx.length>0){ current.addSkill('xiehui2'); current.addGaintag(cards,'xiehui'); } }); } }, xiehui2:{ mark:true, intro:{ content:'不能使用、打出或弃置得到的黑色牌', }, mod:{ cardDiscardable:function(card,player){ if(card.hasGaintag('xiehui')) return false; }, cardEnabled2:function(card,player){ if(get.itemtype(card)=='card'&&card.hasGaintag('xiehui')) return false; }, }, trigger:{player:'changeHp'}, forced:true, popup:false, charlotte:true, filter:function(event){ return event.num<0; }, content:function(){ player.removeSkill('xiehui2'); }, onremove:function(player){ player.removeGaintag('xiehui'); }, }, shanjia:{ sync:function(player){ if(game.online) return; var history=player.actionHistory; var num=0; for(var i=0;i0) player.markSkill('shanjia'); }, audio:2, intro:{ content:function(storage){ if(storage==0) return '未使用过装备牌'; return '已使用过'+storage+'张装备牌'; } }, group:'shanjia2', trigger:{player:'phaseUseBegin'}, frequent:true, filter:function(event,player){ lib.skill.shanjia.sync(player); return player.storage.shanjia>0; }, content:function(){ 'step 0' lib.skill.shanjia.sync(player); player.draw(Math.min(7,player.storage.shanjia)); 'step 1' player.chooseToDiscard('he',Math.min(7,player.storage.shanjia),true); 'step 2' var useCard=false; if(result.bool&&result.cards){ for(var i=0;i0) })){ return 6-get.value(card); } } return 0; }, content:function(){ player.loseHp(); switch(get.type(cards[0],'trick')){ case 'basic':player.addTempSkill('zhanyi_basic');break; case 'equip':player.addTempSkill('zhanyi_equip');break; case 'trick':player.addTempSkill('zhanyi_trick');player.draw(2);break; } }, ai:{ order:9.1, result:{ player:1 } } }, zhanyi_basic:{ group:['zhanyi_basic_sha','zhanyi_basic_jiu','zhanyi_basic_tao'] }, zhanyi_basic_tao:{ enable:'chooseToUse', filterCard:{type:'basic'}, viewAs:{name:'tao'}, viewAsFilter:function(player){ if(!player.countCards('h',{type:'basic'})) return false; }, prompt:'将一张基本牌当桃使用', check:function(card){ return 8-get.value(card); }, ai:{ skillTagFilter:function(player){ if(!player.countCards('h',{type:'basic'})) return false; }, save:true, } }, zhanyi_basic_sha:{ enable:'chooseToUse', filterCard:{type:'basic'}, viewAs:{name:'sha'}, viewAsFilter:function(player){ if(!player.countCards('h',{type:'basic'})) return false; }, prompt:'将一张基本牌当杀使用', check:function(card){return 4-get.value(card)}, ai:{ skillTagFilter:function(player){ if(!player.countCards('h',{type:'basic'})) return false; }, respondSha:true, } }, zhanyi_basic_jiu:{ enable:'chooseToUse', filterCard:{type:'basic'}, viewAs:{name:'jiu'}, viewAsFilter:function(player){ if(!player.countCards('h',{type:'basic'})) return false; }, prompt:'将一张基本牌当酒使用', check:function(card){ if(_status.event.type=='dying') return 1; return 4-get.value(card); }, ai:{ skillTagFilter:function(player){ return player.countCards('h',{type:'basic'})>0&&player.hp<=0; }, save:true, } }, zhanyi_equip:{ trigger:{player:'shaBegin'}, forced:true, filter:function(event,player){ return event.target.countCards('he')>0; }, check:function(event,player){ return get.attitude(player,event.target)<0; }, content:function(){ trigger.target.chooseToDiscard('he',true,2); } }, zhanyi_trick:{ mod:{ targetInRange:function(){ return true; } } }, dingpan:{ enable:'phaseUse', filter:function(event,player){ var num; var mode=get.mode(); if(mode=='identity'){ if(_status.mode=='purple') num=player.getEnemies().length; else num=get.population('fan'); } else if(mode=='versus'){ num=player.getEnemies().length; } else{ num=1; } if((player.getStat().skill.dingpan||0)>=num) return false; return true; }, filterTarget:function(card,player,target){ return target.countCards('e')>0; }, content:function(){ 'step 0' target.draw(); 'step 1' var goon=get.damageEffect(target,player,target)>=0; if(!goon&&target.hp>=4&&get.attitude(player,target)<0){ var es=target.getCards('e'); for(var i=0;i=8){ goon=true;break; } } } target.chooseControl(function(){ if(_status.event.goon) return '选项二'; return '选项一'; }).set('goon',goon).set('prompt','定叛').set('choiceList',['令'+get.translation(player)+'弃置你装备区里的一张牌','获得你装备区内的所有牌并受到一点伤害']); 'step 2' if(result.control=='选项一'){ player.discardPlayerCard(target,true,'e'); event.finish(); } else{ target.gain(target.getCards('e'),'gain2'); } 'step 3' game.delay(0.5); target.damage(); }, ai:{ order:7, result:{ target:function(player,target){ if(get.damageEffect(target,player,target)>=0) return 2; var att=get.attitude(player,target); if(att==0) return 0; var es=target.getCards('e'); if(att>0&&(target.countCards('h')>2||target.needsToDiscard(1))) return 0; if(es.length==1&&att>0) return 0; for(var i=0;i0){ return 1; } } else if(val>=7){ if(att<0){ return -1; } } } return 0; } } } }, hongde:{ audio:2, trigger:{ player:['loseAfter','gainAfter'], global:['equipAfter','addJudgeAfter','gainAfter','loseAsyncAfter','addToExpansionAfter'], }, direct:true, filter:function(event,player){ var num=event.getl(player).cards2.length; if(event.getg) num=Math.max(num,event.getg(player).length) return num>1; }, content:function(){ 'step 0' player.chooseTarget(get.prompt('hongde'),'令一名其他角色摸一张牌',function(card,player,target){ return target!=player; }).set('ai',function(target){ return get.attitude(player,target); }); 'step 1' if(result.bool){ player.logSkill('hongde',result.targets); result.targets[0].draw(); } } }, ziyuan:{ audio:2, enable:'phaseUse', usable:1, filterCard:function(card){ var num=0; for(var i=0;i0); })){ return 10; } return 1; }, result:{ player:function(player,target){ if(get.attitude(player,target)<0) return -1; var eff=get.recoverEffect(target,player,player); if(eff<0) return 0; if(eff>0){ if(target.hp==1) return 3; return 2; } if(player.needsToDiscard()) return 1; return 0; } }, threaten:1.3 } }, jugu:{ audio:2, mod:{ maxHandcard:function(player,num){ return num+player.maxHp; } }, trigger:{global:'phaseBefore',player:'enterGame'}, forced:true, filter:function(event,player){ return (event.name!='phase'||game.phaseNumber==0); }, content:function(){ player.draw(player.maxHp); } }, tuifeng:{ audio:2, trigger:{player:'damageEnd'}, direct:true, notemp:true, filter:function(event,player){ return player.countCards('he')>0; }, content:function(){ 'step 0' player.chooseCard(get.prompt2('tuifeng'),'he',[1,trigger.num]).set('ai',function(card){ if(card.name=='du') return 20; return 7-get.useful(card); }); 'step 1' if(result.bool){ player.logSkill('tuifeng'); player.addToExpansion(result.cards,player,'give').gaintag.add('tuifeng'); } }, onremove:function(player,skill){ var cards=player.getExpansions(skill); if(cards.length) player.loseToDiscardpile(cards); }, marktext:'锋', intro:{ content:'expansion', markcount:'expansion', }, group:'tuifeng2', ai:{ threaten:0.8, maixie:true, maixie_hp:true } }, tuifeng2:{ audio:'tuifeng', trigger:{player:'phaseZhunbeiBegin'}, forced:true, filter:function(event,player){ return player.getExpansions('tuifeng').length>0; }, content:function(){ var cards=player.getExpansions('tuifeng'); player.draw(2*cards.length); player.addTempSkill('tuifeng3'); player.addMark('tuifeng3',cards.length,false); player.loseToDiscardpile(cards); } }, tuifeng3:{ mod:{ cardUsable:function(card,player,num){ if(card.name=='sha') return num+player.countMark('tuifeng3'); } }, onremove:true, charlotte:true, }, weidi:{ trigger:{global:['gameStart','zhuUpdate']}, forced:true, audio:2, filter:function(event,player){ var mode=get.mode(); return (mode=='identity'||(mode=='versus'&&_status.mode=='four')); }, content:function(){ var list=[]; var zhu=get.zhu(player); if(zhu&&zhu!=player&&zhu.skills){ for(var i=0;i0; }, init:function(player){ player.storage.jianshu=false; }, filterTarget:function(card,player,target){ if(target==player) return false; if(ui.selected.targets.length){ return ui.selected.targets[0]!=target&&!ui.selected.targets[0].hasSkillTag('noCompareSource')&&target.countCards('h') &&!target.hasSkillTag('noCompareTarget'); } return true; }, filterCard:{color:'black'}, mark:true, discard:false, lose:false, delay:false, check:function(card){ if(_status.event.player.hp==1) return 8-get.value(card); return 6-get.value(card); }, selectTarget:2, multitarget:true, content:function(){ 'step 0' player.awakenSkill('jianshu'); player.storage.jianshu=true; player.give(cards,targets[0],'give'); 'step 1' targets[0].chooseToCompare(targets[1]); 'step 2' if(result.bool){ targets[0].chooseToDiscard('he',2,true); targets[1].loseHp(); } else if(result.tie){ targets[0].loseHp() targets[1].loseHp() } else{ targets[1].chooseToDiscard('he',2,true); targets[0].loseHp(); } }, intro:{ content:'limited' }, ai:{ expose:0.4, order:4, result:{ target:function(player,target){ if(player.hasUnknown()) return 0; if(ui.selected.targets.length) return -1; return -0.5; } } } }, yongdi:{ audio:2, audioname:['xinping'], unique:true, limited:true, trigger:{player:'phaseZhunbeiBegin'}, animationColor:'thunder', skillAnimation:'legend', mark:true, direct:true, content:function(){ 'step 0' player.chooseTarget(get.prompt2('yongdi'),function(card,player,target){ return (target.hasSex('male')||target.name=='key_yuri')&&target!=player; }).set('ai',function(target){ if(!_status.event.goon) return 0; var player=_status.event.player; var att=get.attitude(player,target); if(att<=1) return 0; var mode=get.mode(); if(mode=='identity'||(mode=='versus'&&(_status.mode=='four'||_status.mode=='guandu'))){ if(target.name&&lib.character[target.name]){ for(var i=0;i{ if(target.hasSkill(skill)) return false; var info=get.info(skill); return info&&info.zhuSkill; }); if(skills.length){ for(var i of skills) target.addSkillLog(i); } } }, ai:{expose:0.2}, }, regushe:{ audio:'gushe', enable:'phaseUse', filterTarget:function(card,player,target){ return player.canCompare(target); }, selectTarget:[1,3], filter:function(event,player){ return (player.countMark('regushe')+player.countMark('regushe2')<7)&&player.countCards('h')>0; }, multitarget:true, multiline:true, content:function(){ player.addTempSkill('regushe2'); player.chooseToCompare(targets).callback=lib.skill.regushe.callback; }, intro:{ name:'饶舌', content:'mark' }, callback:function(){ 'step 0' if(event.num1<=event.num2){ target.chat(lib.skill.gushe.chat[player.countMark('regushe')]); game.delay(); player.addMark('regushe',1); if(player.countMark('regushe')>=7){ player.die(); } } else player.addMark('regushe2',1,false); 'step 1' if(event.num1<=event.num2){ player.chooseToDiscard('he','弃置一张牌,或摸一张牌').set('ai',function(){return -1;}); } else event.goto(3); 'step 2' if(!result.bool){ player.draw(); } 'step 3' if(event.num1>=event.num2){ target.chooseToDiscard('he','弃置一张牌,或令'+get.translation(player)+'摸一张牌').set('ai',function(card){ if(_status.event.goon) return 6-get.value(card); return 0; }).set('goon',get.attitude(target,player)<0); } else event.finish(); 'step 4' if(!result.bool) player.draw(); }, ai:{ order:7, result:{ target:function(player,target){ var num=ui.selected.targets.length+1; if(num+player.countMark('regushe')<=6) return -1; var hs=player.getCards('h'); for(var i=0;i5&&player.countMark('regushe')+num<=6) return -1; } } } return 0; }, } }, marktext:'饶', }, regushe2:{ charlotte:true, onremove:true, }, rejici:{ audio:'jici', trigger:{ player:'compare', target:'compare', }, forced:true, filter:function(event,player){ // if(player!=event.target&&event.iwhile) return false; return (player==event.player?event.num1:event.num2)<=player.countMark('regushe'); }, content:function(){ if(player==trigger.target||!trigger.iwhile){ trigger[player==trigger.player?'num1':'num2']+=player.countMark('regushe'); game.log(player,'的拼点牌点数+'+player.countMark('regushe')); } game.delayx(); // var cards=[trigger.card1]; // if(trigger.cardlist) cards.addArray(trigger.cardlist); // else cards.push(trigger.card2); // cards.sort(function(a,b){ // return get.number(b)-get.number(a); // }); // var num=get.number(cards[0]); // for(var i=1;itrigger.num2) cards.push(trigger.card1); if(trigger.num10) trigger.source.chooseToDiscard(num,true,'he'); trigger.source.loseHp(); }, }, gushe:{ audio:2, enable:'phaseUse', usable:1, filterTarget:function(card,player,target){ return player.canCompare(target); }, selectTarget:[1,3], filter:function(event,player){ return player.countCards('h')>0; }, multitarget:true, multiline:true, content:function(){ player.chooseToCompare(targets).callback=lib.skill.gushe.callback; }, intro:{ name:'饶舌', content:'mark' }, chat:['粗鄙之语','天地不容','谄谀之臣','皓首匹夫,苍髯老贼','二臣贼子','断脊之犬','我从未见过有如此厚颜无耻之人!'], callback:function(){ 'step 0' if(event.num1<=event.num2){ target.chat(lib.skill.gushe.chat[player.countMark('gushe')]); game.delay(); player.addMark('gushe',1); if(player.countMark('gushe')>=7){ player.die(); } } 'step 1' if(event.num1<=event.num2){ player.chooseToDiscard('he','弃置一张牌,或摸一张牌').set('ai',function(){return -1;}); } else event.goto(3); 'step 2' if(!result.bool){ player.draw(); } 'step 3' if(event.num1>=event.num2){ target.chooseToDiscard('he','弃置一张牌,或令'+get.translation(player)+'摸一张牌').set('ai',function(card){ if(_status.event.goon) return 6-get.value(card); return 0; }).set('goon',get.attitude(target,player)<0); } else event.finish(); 'step 4' if(!result.bool) player.draw(); }, ai:{ order:7, result:{ target:function(player,target){ var num=ui.selected.targets.length+1; if(num>3) num=3; var hs=player.getCards('h'); for(var i=0;i5&&player.countMark('gushe')+num<=6) return -1; } } } return 0; }, } } }, jici:{ audio:2, trigger:{player:'compare'}, filter:function(event,player){ return event.getParent().name=='gushe'&&!event.iwhile&&event.num1<=player.countMark('gushe'); }, content:function(){ if(trigger.num10; }, filterTarget:function(card,player,target){ return target!=player&&target.countCards('he')>0&&player.inRange(target); }, filterCard:{name:'sha'}, content:function(){ 'step 0' target.chooseToDiscard('he',true); 'step 1' if(target.hp>=player.hp&&result.bool&&result.cards[0].name!='sha'){ player.useCard({name:'juedou',isCard:true},target); } }, ai:{ order:2, result:{ target:function(player,target){ if(get.effect(target,{name:'juedou'},player,player)<=0){ return 0; } if(target.hpplayer.hp) return -0.1; return 0; } var hs1=target.getCards('h','sha'); var hs2=player.getCards('h','sha'); if(hs1.length>hs2.length){ return 0; } var hsx=target.getCards('h'); if(hsx.length>2&&hs2.length<=1&&hsx[0].number<6){ return 0; } if(hsx.length>3&&hs2.length<=1){ return 0; } if(hs1.length>hs2.length-1&&hs1.length>0&&(hs2.length<=1||hs1[0].number>hs2[0].number)){ return 0; } return -1; } } } }, shefu:{ trigger:{player:'phaseJieshuBegin'}, direct:true, audio:2, init:function(player){ if(!player.storage.shefu) player.storage.shefu=[]; if(!player.storage.shefu2) player.storage.shefu2=[]; }, filter:function(event,player){ return player.countCards('he')>0; }, onremove:function(player,skill){ var cards=player.getExpansions(skill); if(cards.length) player.loseToDiscardpile(cards); }, intro:{ content:'cards', onunmark:function(storage,player){ player.storage.shefu=[]; player.storage.shefu2=[]; }, mark:function(dialog,content,player){ if(content&&content.length){ dialog.addAuto(content); if(player.isUnderControl(true)){ var str=''; for(var i=0;i'+str+'') } } }, }, content:function(){ 'step 0' var list1=[],list2=[],list3=[]; for(var i=0;inh2&&event.source.isIn()) return true; if(nh1num2&&trigger.source.isIn()) bool2=true; if(bool1&&bool2){ event.chosen=true; player.chooseControl('cancel2').set('prompt',get.prompt('benyu',trigger.source)).set('choiceList',[ '将手牌摸至'+get.cnNumber(Math.min(num2,5))+'张', '弃置至少'+get.cnNumber(num2+1)+'张牌并对其造成1点伤害', ]) } else if(bool2) event.goto(3); "step 1" if(event.chosen){ if(result.control=='cancel2') event.finish(); else if(result.index==1) event.goto(3); else event._result={bool:true}; } else player.chooseBool(get.prompt('benyu',trigger.source),'将手牌摸至'+get.cnNumber(Math.min(trigger.source.countCards('h'),5))+'张'); "step 2" if(result.bool){ player.logSkill('benyu',trigger.source); player.drawTo(Math.min(trigger.source.countCards('h'),5)); } event.finish(); "step 3" var num=trigger.source.countCards('h')+1; var args=[[num,player.countCards('he')],'he']; if(event.chosen){ player.logSkill('benyu',trigger.source); args.push(true); } else{ args.push(get.prompt('benyu',trigger.source)); args.push('弃置'+get.cnNumber(num)+'张牌并对其造成1点伤害'); } var next=player.chooseToDiscard.apply(player,args); if(!event.chosen) next.logSkill=['benyu',trigger.source]; next.set('ai',function(card){ var trigger=_status.event.getTrigger(); var player=_status.event.player; if(ui.selected.cards.length>=_status.event.num){ return -1; } if(get.damageEffect(trigger.source,player,player)>0&&(get.value(card,player)<0||_status.event.num<=2)){ return 8-get.value(card); } return -1; }); next.set('num',num); "step 4" if(result.bool) trigger.source.damage(); }, }, jili:{ audio:2, trigger:{ global:'useCardToTarget' }, forced:true, check:function(event,player){ return get.effect(player,event.card,event.player,player)>0; }, filter:function(event,player){ if(get.color(event.card)!='red') return false; if(!event.targets) return false; if(event.player==player) return false; if(event.targets.contains(player)) return false; if(get.info(event.card).multitarget) return false; var type=get.type(event.card); if(type!='basic'&&type!='trick') return false; if(lib.filter.targetEnabled2(event.card,event.player,player)){ for(var i=0;i0&&event.player!=player&&!player.hasSkill('zhidao2'); }, forced:true, content:function(){ var num=0; if(trigger.player.countCards('h')) num++; if(trigger.player.countCards('e')) num++; if(trigger.player.countCards('j')) num++; if(num){ player.gainPlayerCard(trigger.player,num,'hej',true).set('filterButton',function(button){ for(var i=0;i0; }); }, content:function(){ 'step 0' player.chooseTarget(get.prompt('qizhi'),'弃置一名角色的一张牌,然后其摸一张牌',function(card,player,target){ return !_status.event.targets.contains(target)&&target.countCards('he')>0; }).set('ai',function(target){ var player=_status.event.player; if(target==player) return 2; if(get.attitude(player,target)<=0){ return 1 } return 0.5; }).set('targets',trigger.targets); 'step 1' if(result.bool){ player.getHistory('custom').push({qizhi:true}); player.logSkill('qizhi',result.targets); player.discardPlayerCard(result.targets[0],true,'he'); event.target=result.targets[0]; } else{ event.finish(); } 'step 2' event.target.draw(); }, }, jinqu:{ audio:2, trigger:{player:'phaseJieshuBegin'}, check:function(event,player){ return player.getHistory('custom',function(evt){ return evt.qizhi==true; }).length>=player.countCards('h'); }, prompt:function(event,player){ var num=player.getHistory('custom',function(evt){ return evt.qizhi==true; }).length; return '进趋:是否摸两张牌并将手牌弃置至'+get.cnNumber(num)+'张?'; }, content:function(){ 'step 0' player.draw(2); 'step 1' var dh=player.countCards('h')-player.getHistory('custom',function(evt){ return evt.qizhi==true; }).length; if(dh>0){ player.chooseToDiscard(dh,true); } }, ai:{combo:'qizhi'}, }, jiaozi:{ audio:2, trigger:{player:'damageBegin3',source:'damageBegin1'}, forced:true, filter:function(event,player){ return player.isMaxHandcard(true); }, content:function(){ trigger.num++; }, ai:{presha:true}, }, jiqiao:{ audio:2, trigger:{player:'phaseUseBegin'}, direct:true, filter:function(event,player){ return player.countCards('he',{type:'equip'})>0; }, content:function(){ 'step 0' player.chooseToDiscard(get.prompt2('jiqiao'),[1,player.countCards('he',{type:'equip'})],'he',function(card){ return get.type(card)=='equip'; }).set('ai',function(card){ if(card.name=='bagua') return 10; return 7-get.value(card); }).logSkill='jiqiao'; 'step 1' if(result.bool){ event.cards=get.cards(2*result.cards.length); player.showCards(event.cards); } else{ event.finish(); } 'step 2' var gained=[]; var tothrow=[]; for(var i=0;islot=='equip2'||slot=='equip5')) return false; }, /*cardDiscardable:function (card,player){ if(player.getEquip(5)) return; if(get.position(card)=='e') return false; },*/ } }, linglong_bagua:{ audio:'linglong', audioname2:{re_jsp_huangyueying:'relinglong'}, inherit:'bagua_skill', filter:function(event,player){ if(!lib.skill.bagua_skill.filter(event,player)) return false; if(!player.hasEmptySlot(2)) return false; return true; }, ai:{ respondShan:true, effect:{ target:function(card,player,target){ if(player==target&&get.subtype(card)=='equip2'){ if(get.equipValue(card)<=7.5) return 0; } if(target.getEquip(2)) return; return lib.skill.bagua_skill.ai.effect.target.apply(this,arguments); } } }, }, zhenwei:{ audio:2, audioname:['re_wenpin'], trigger:{ global:'useCardToTarget' }, direct:true, filter:function(event,player){ if(player==event.target||player==event.player) return false; if(!player.countCards('he')) return false; if(event.targets.length>1) return false; if(!event.target) return false; if(event.target.hp>=player.hp) return false; var card=event.card; if(card.name=='sha') return true; if(get.color(card)=='black'&&get.type(card,'trick')=='trick') return true; return false; }, content:function(){ "step 0" var save=false; if(get.attitude(player,trigger.target)>2){ if(trigger.card.name=='sha'){ if(player.countCards('h','shan')||player.getEquip(2)|| trigger.target.hp==1||player.hp>trigger.target.hp+1){ if(!trigger.target.countCards('h','shan')||trigger.target.countCards('h')0){ trigger.player.addSkill('zhenwei2'); trigger.player.addToExpansion(cards,'gain2').gaintag.add('zhenwei2'); } trigger.targets.length=0; trigger.getParent().triggeredTargets2.length=0; } }, ai:{ threaten:1.1 } }, zhenwei2:{ audio:false, intro:{ content:'expansion', markcount:'expansion', }, trigger:{global:'phaseEnd'}, forced:true, charlotte:true, onremove:function(player,skill){ var cards=player.getExpansions(skill); if(cards.length) player.loseToDiscardpile(cards); }, content:function(){ 'step 0' var cards=player.getExpansions('zhenwei2'); if(cards.length) player.gain(cards,'gain2'); 'step 1' player.removeSkill('zhenwei2'); } }, xunzhi:{ audio:2, trigger:{player:'phaseZhunbeiBegin'}, locked:false, init:function(player){ player.storage.xunzhi=0; }, filter:function(event,player){ var previous=player.getPrevious(); var next=player.getNext(); if(previous&&next){ return player.hp!=previous.hp&&player.hp!=next.hp; } return false; }, check:function(event,player){ return player.hp>=3&&player.countCards('h')>player.hp+1+player.storage.xunzhi; }, content:function(){ player.loseHp(); player.storage.xunzhi+=2; }, mark:true, intro:{ content:function(storage,player){ return '手牌上限+'+player.storage.xunzhi; } }, mod:{ maxHandcard:function(player,num){ if(typeof player.storage.xunzhi=='number'){ return num+player.storage.xunzhi; } } } }, yawang:{ audio:2, trigger:{player:'phaseDrawBegin1'}, forced:true, filter:function(event,player){ return !event.numFixed; }, check:function(event,player){ var num=game.countPlayer(function(target){ return target.hp==player.hp; }); if(!player.hasSkill('xunzhi2')){ var nh=player.countCards('h'); if(nh>5) return false; if(num==3&&nh>3) return false; } return num>=3; }, content:function(){ trigger.changeToZero(); var num=game.countPlayer(function(target){ return target.hp==player.hp; }); if(num){ player.draw(num); } player.storage.yawang=num; player.addTempSkill('yawang2'); } }, yawang2:{ mod:{ cardEnabled:function(card,player){ if(_status.currentPhase!=player) return; if(player.countUsed()>=player.storage.yawang) return false; }, cardSavable:function(card,player){ if(_status.currentPhase!=player) return; if(player.countUsed()>=player.storage.yawang) return false; } } }, luoyan_tianxiang:{ inherit:'tianxiang', filter:function(event,player){ if(!player.storage.xingwu||!player.storage.xingwu.length) return false; if(player.hasSkill('tianxiang')) return false; return lib.skill.tianxiang.filter(event,player); }, }, luoyan_liuli:{ inherit:'liuli', filter:function(event,player){ if(!player.storage.xingwu||!player.storage.xingwu.length) return false; if(player.hasSkill('liuli')) return false; return lib.skill.liuli.filter(event,player); }, }, luoyan:{ group:['luoyan_tianxiang','luoyan_liuli'], }, xingwu:{ audio:2, group:['xingwu_color','xingwu_color2'], subSkill:{ color:{ trigger:{player:'phaseZhunbeiBegin'}, silent:true, content:function(){ player.storage.xingwu_color=['black','red']; } }, color2:{ trigger:{player:'useCard'}, silent:true, filter:function(event,player){ return Array.isArray(player.storage.xingwu_color)&&_status.currentPhase==player; }, content:function(){ player.storage.xingwu_color.remove(get.color(trigger.card)); } } }, trigger:{player:'phaseDiscardBegin'}, direct:true, filter:function(event,player){ if(!player.storage.xingwu_color) return false; var length=player.storage.xingwu_color.length; if(length==0) return false; var hs=player.getCards('h'); if(hs.length==0) return false; if(length==2) return true; var color=player.storage.xingwu_color[0]; for(var i=0;i0&& get.attitude(player,current)<0) })) return 0; } return 7-get.value(card); }); 'step 1' if(result.bool){ player.logSkill('xingwu'); if(player.storage.xingwu.length<2){ player.$give(result.cards,player); } player.lose(result.cards,ui.special); player.storage.xingwu=player.storage.xingwu.concat(result.cards); player.markSkill('xingwu'); player.syncStorage('xingwu'); } else{ event.finish(); } 'step 2' if(player.storage.xingwu.length==3){ player.$throw(player.storage.xingwu); while(player.storage.xingwu.length){ player.storage.xingwu.shift().discard(); } player.unmarkSkill('xingwu'); player.chooseTarget(function(card,player,target){ return target!=player&&target.hasSex('male'); },'对一名男性角色造成两点伤害并弃置其装备区内的牌').set('ai',function(target){ var player=_status.event.player; if(get.attitude(player,target)>0) return -1; return get.damageEffect(target,player,player)+target.countCards('e')/2; }); } else{ event.finish(); } 'step 3' if(result.bool){ var target=result.targets[0]; target.damage(2); event.target=target; player.line(target,'green'); } else{ event.finish(); } 'step 4' if(event.target&&event.target.isIn()){ var es=event.target.getCards('e'); if(es.length){ event.target.discard(es); } } }, ai:{ threaten:1.5 } }, yinbing:{ trigger:{player:'phaseJieshuBegin'}, direct:true, audio:2, preHidden:true, filter:function(event,player){ return player.countCards('he',{type:'basic'})0&& (event.card.name=='sha'||event.card.name=='juedou'); }, content:function(){ 'step 0' player.chooseCardButton('移去一张引兵牌',true,player.getExpansions('yinbing')); 'step 1' if(result.bool) player.loseToDiscardpile(result.links); } } }, group:'yinbing_discard' }, juedi:{ trigger:{player:'phaseZhunbeiBegin'}, filter:function(event,player){ return player.getExpansions('yinbing').length>0; }, forced:true, audio:2, content:function(){ 'step 0' player.chooseTarget(get.prompt2('juedi'),true,function(card,player,target){ return player.hp>=target.hp; }).set('ai',function(target){ var player=_status.event.player; var att=get.attitude(player,target); if(att<2) return att-10; var num=att/10; if(target==player){ num+=player.maxHp-player.countCards('h')+0.5; } else{ num+=_status.event.n2*2; if(target.isDamaged()){ if(target.hp==1){ num+=3; } else if(target.hp==2){ num+=2; } else{ num+=0.5; } } } if(target.hasJudge('lebu')){ num/=2; } return num; }).set('n2',player.getExpansions('yinbing').length); 'step 1' if(result.bool){ player.line(result.targets[0],'green'); var cards=player.getExpansions('yinbing'); if(result.targets[0]==player){ player.loseToDiscardpile(cards); var num=player.maxHp-player.countCards('h'); if(num>0) player.draw(num); } else{ var target=result.targets[0]; target.recover(); player.give(cards,target,'give'); target.draw(cards.length); } } } }, meibu:{ trigger:{global:'phaseUseBegin'}, filter:function(event,player){ return event.player!=player&&get.distance(event.player,player,'attack')>1; }, logTarget:'player', check:function(event,player){ if(get.attitude(player,event.player)>=0) return false; var e2=player.getEquip(2); if(e2){ if(e2.name=='tengjia') return true; if(e2.name=='bagua') return true; } return player.countCards('h','shan')>0; }, content:function(){ var target=trigger.player; target.addTempSkill('meibu_viewas'); target.addTempSkill('meibu_range'); target.storage.meibu=player; target.markSkillCharacter('meibu',player,'魅步','锦囊牌均视为杀且'+get.translation(player)+'视为在攻击范围内'); }, ai:{ expose:0.2 }, subSkill:{ range:{ mod:{ targetInRange:function(card,player,target){ if(card.name=='sha'&&target==player.storage.meibu){ return true; } } }, onremove:function(player){ game.broadcast(function(player){ if(player.marks.meibu){ player.marks.meibu.delete(); delete player.marks.meibu; } },player); if(player.marks.meibu){ player.marks.meibu.delete(); delete player.marks.meibu; game.addVideo('unmark',player,'meibu'); } }, trigger:{player:'useCard'}, forced:true, popup:false, filter:function(event,player){ return event.skill=='meibu_viewas' }, content:function(){ player.removeSkill('meibu_viewas'); game.broadcastAll(function(player){ if(player.marks.meibu&&player.marks.meibu.info){ player.marks.meibu.info.content=player.marks.meibu.info.content.slice(8); } },player); } }, viewas:{ mod:{ cardEnabled:function(card,player){ if(card.name!='sha'&&get.type(card,'trick')=='trick') return false; }, cardUsable:function(card,player){ if(card.name!='sha'&&get.type(card,'trick')=='trick') return false; }, cardRespondable:function(card,player){ if(card.name!='sha'&&get.type(card,'trick')=='trick') return false; }, cardSavable:function(card,player){ if(card.name!='sha'&&get.type(card,'trick')=='trick') return false; }, }, enable:['chooseToUse','chooseToRespond'], filterCard:function(card){ return get.type(card,'trick')=='trick'; }, viewAs:{name:'sha'}, check:function(){return 1}, ai:{ effect:{ target:function(card,player,target,current){ if(get.tag(card,'respondSha')&¤t<0) return 0.8 } }, respondSha:true, order:4, useful:-1, value:-1 } } } }, mumu:{ enable:'phaseUse', usable:1, filterCard:function(card,player,target){ return card.name=='sha'||(get.type(card,'trick')=='trick'&&get.color(card)=='black'); }, check:function(card){ return 7-get.value(card); }, filterTarget:function(card,player,target){ if(target==player) return false; return target.getEquips(1).length>0||target.getEquips(2).length>0; }, content:function(){ 'step 0' var e1=target.getEquips(1); var e2=target.getEquips(2); event.e1=e1; event.e2=e2; if(e1.length&&e2.length){ player.chooseControl('武器牌','防具牌').set('ai',function(){ if(_status.event.player.getEquip(2)){ return '武器牌'; } return '防具牌'; }); } else if(e1.length){ event.choice='武器牌'; } else{ event.choice='防具牌'; } 'step 1' var choice=event.choice||result.control; if(choice=='武器牌'){ if(event.e1){ target.discard(event.e1); } player.draw(); } else{ if(event.e2){ player.equip(event.e2); target.$give(event.e2,player); } } }, ai:{ order:8, result:{ target:function(player,target){ if(target.getEquip(2)&&!player.getEquip(2)){ return -2; } return -1; } } } }, fentian:{ audio:2, trigger:{player:'phaseJieshuBegin'}, direct:true, filter:function(event,player){ if(player.countCards('h')>=player.hp) return false; return game.hasPlayer(function(current){ return player!=current&&player.inRange(current)&¤t.countCards('he'); }); }, intro:{ content:'expansion', markcount:'expansion', }, onremove:function(player,skill){ var cards=player.getExpansions(skill); if(cards.length) player.loseToDiscardpile(cards); }, content:function(){ 'step 0' player.chooseTarget('焚天:选择一名攻击范围内的角色,将其一张牌置于你的武将牌上',true,function(card,player,target){ return player!=target&&player.inRange(target)&&target.countCards('he')>0; }).set('ai',function(target){ return -get.attitude(_status.event.player,target) }); 'step 1' if(result.bool){ player.logSkill('fentian',result.targets); event.target=result.targets[0]; player.choosePlayerCard(result.targets[0],'he',true); } else{ event.finish(); } 'step 2' if(result.bool){ player.addToExpansion(result.links,target,'give').gaintag.add('fentian'); } }, mod:{ attackRange:function(from,distance){ return distance+from.getExpansions('fentian').length; } } }, zhiri:{ trigger:{player:'phaseZhunbeiBegin'}, forced:true, unique:true, juexingji:true, audio:2, skillAnimation:true, animationColor:'fire', derivation:'xintan', filter:function(event,player){ return player.getExpansions('fentian').length>=3; }, content:function(){ player.loseMaxHp(); player.addSkill('xintan'); player.storage.zhiri=true; player.awakenSkill('zhiri'); } }, xintan:{ enable:'phaseUse', usable:1, audio:2, unique:true, filter:function(event,player){ return player.getExpansions('fentian').length>=2; }, filterTarget:true, prompt:'移去两张“焚”并令一名角色失去一点体力', content:function(){ 'step 0' player.chooseCardButton(2,'移去两张“焚”并令'+get.translation(target)+'失去一点体力',player.getExpansions('fentian'),true); 'step 1' if(result.bool){ player.loseToDiscardpile(result.links); target.loseHp(); } }, ai:{ order:8, result:{ target:-1 } } }, danji:{ skillAnimation:true, animationColor:'water', trigger:{player:'phaseZhunbeiBegin'}, forced:true, unique:true, juexingji:true, derivation:['mashu','nuzhan'], filter:function(event,player){ var zhu=get.zhu(player); if(zhu&&zhu.isZhu){ var name=zhu.name while(name.indexOf('_')!=-1){ name=name.slice(name.indexOf('_')+1); } if(name.indexOf('liubei')==0) return false; } return !player.storage.danji&&player.countCards('h')>player.hp; }, content:function(){ player.storage.danji=true; player.loseMaxHp(); player.addSkill('mashu'); player.addSkill('nuzhan'); player.awakenSkill('danji'); } }, nuzhan:{ audio:2, popup:false, silent:true, firstDo:true, trigger:{player:'useCard1'}, filter:function(event,player){ return event.card&&event.card.name=='sha'&&event.addCount!==false&&event.cards&& event.cards.length==1&&get.type(event.cards[0],'trick')=='trick'; }, forced:true, content:function(){ trigger.addCount=false; if(player.stat[player.stat.length-1].card.sha>0){ player.stat[player.stat.length-1].card.sha--; } }, group:'nuzhan2' }, nuzhan2:{ audio:'nuzhan', trigger:{player:'useCard1'}, forced:true, popup:false, silent:true, firstDo:true, filter:function(event,player){ return event.card&&event.card.name=='sha'&&event.cards&& event.cards.length==1&&get.type(event.cards[0])=='equip'; }, content:function(){ trigger.baseDamage++; } }, jieyuan:{ group:['jieyuan_more','jieyuan_less'], subSkill:{ more:{ audio:true, trigger:{source:'damageBegin1'}, direct:true, filter:function(event,player){ if(!player.countCards(player.hasSkill('fenxin_nei')?'he':'h',function(card){ if(player.hasSkill('fenxin_nei')||(_status.connectMode&&get.position(card)=='h')) return true; return get.color(card)=='black'; })) return false; return (event.player.hp>=player.hp||player.hasSkill('fenxin_fan'))&&player!=event.player; }, content:function(){ 'step 0' var goon=(get.attitude(player,trigger.player)<0); var next=player.chooseToDiscard(get.prompt('jieyuan',trigger.player),player.hasSkill('fenxin_nei')?'he':'h'); if(!player.hasSkill('fenxin_nei')){ next.set('filterCard',function(card){ return get.color(card)=='black'; }); next.set('prompt2','弃置一张黑色手牌令伤害+1'); } else{ next.set('prompt2','弃置一张手牌令伤害+1'); } next.set('ai',function(card){ if(_status.event.goon){ return 8-get.value(card); } return 0; }); next.set('goon',goon); next.logSkill=['jieyuan_more',trigger.player]; 'step 1' if(result.bool){ trigger.num++; } } }, less:{ audio:true, trigger:{player:'damageBegin2'}, filter:function(event,player){ if(!player.countCards(player.hasSkill('fenxin_nei')?'he':'h',function(card){ if(player.hasSkill('fenxin_nei')||(_status.connectMode&&get.position(card)=='h')) return true; return get.color(card)=='red'; })) return false; return event.source&&(event.source.hp>=player.hp||player.hasSkill('fenxin_zhong'))&&player!=event.source; }, direct:true, content:function(){ "step 0" var next=player.chooseToDiscard(get.prompt('jieyuan'),player.hasSkill('fenxin_nei')?'he':'h'); if(!player.hasSkill('fenxin_nei')){ next.set('filterCard',function(card){ return get.color(card)=='red'; }); next.set('prompt2','弃置一张红色手牌令伤害-1'); } else{ next.set('prompt2','弃置一张手牌令伤害-1'); } next.set('ai',function(card){ var player=_status.event.player; if(player.hp==1||_status.event.getTrigger().num>1){ return 9-get.value(card); } if(player.hp==2){ return 8-get.value(card); } return 7-get.value(card); }); next.logSkill='jieyuan_less'; "step 1" if(result.bool){ trigger.num--; } } } }, ai:{ expose:0.2, threaten:1.5 } }, fenxin:{ mode:['identity'], available:function(mode){ if(mode=='identity'&&_status.mode=='purple') return false; }, trigger:{global:'dieAfter'}, filter:function(event,player){ return ['fan','zhong','nei'].contains(event.player.identity)&&!player.hasSkill('fenxin_'+event.player.identity); }, forced:true, content:function(){ player.addSkill('fenxin_'+trigger.player.identity); player.markSkill('fenxin'); }, intro:{ mark:function(dialog,content,player){ if(player.hasSkill('fenxin_zhong')){ dialog.addText('你发动“竭缘”减少伤害无体力值限制'); } if(player.hasSkill('fenxin_fan')){ dialog.addText('你发动“竭缘”增加伤害无体力值限制'); } if(player.hasSkill('fenxin_nei')){ dialog.addText('将“竭缘”中的黑色手牌和红色手牌改为一张牌'); } } }, subSkill:{ fan:{charlotte:true}, zhong:{charlotte:true}, nei:{charlotte:true} }, ai:{ combo:'jieyuan' } }, xisheng:{ enable:'chooseToUse', usable:1, viewAs:{name:'tao'}, viewAsFilter:function(player){ return player!=_status.currentPhase&&player.countCards('hes')>1; }, selectCard:2, filterCard:true, position:'hes', }, shulv:{ inherit:'zhiheng', prompt:'弃置一张牌并摸一张牌', selectCard:1, filter:function(event,player){ return player.countCards('hs')>player.hp; }, }, xiandeng:{ mod:{ cardUsable:function(card,player,num){ if(card.name=='sha') return num+1; }, targetInRange:function(card,player){ if(card.name=='sha'&&player.countUsed('sha',true)==0) return true; }, }, }, qingyi:{ audio:2, trigger:{player:'phaseJudgeBefore'}, direct:true, content:function(){ "step 0" var check= player.countCards('h')>2; player.chooseTarget(get.prompt("qingyi"),"跳过判定阶段和摸牌阶段,视为对一名其他角色使用一张【杀】",function(card,player,target){ if(player==target) return false; return player.canUse({name:'sha'},target,false); }).set('check',check).set('ai',function(target){ if(!_status.event.check) return 0; return get.effect(target,{name:'sha'},_status.event.player); }); "step 1" if(result.bool){ player.logSkill('qingyi',result.targets); player.useCard({name:'sha',isCard:true},result.targets[0],false); trigger.cancel(); player.skip('phaseDraw'); } }, }, qingyi1:{ audio:true, trigger:{player:'phaseZhunbeiBegin'}, direct:true, content:function(){ "step 0" player.addSkill('qingyi3'); var check= player.countCards('h')>2; player.chooseTarget(get.prompt2('qingyi'),function(card,player,target){ if(player==target) return false; return player.canUse({name:'sha'},target); }).ai=function(target){ if(!check) return 0; return get.effect(target,{name:'sha'},_status.event.player); } "step 1" if(result.bool){ player.logSkill('qingyi1',result.targets); player.useCard({name:'sha',isCard:true},result.targets[0],false); player.skip('phaseJudge'); player.skip('phaseDraw'); } player.removeSkill('qingyi3'); } }, qingyi2:{ audio:true, trigger:{player:'phaseUseBefore'}, direct:true, filter:function(event,player){ return player.countCards('he',{type:'equip'})>0; }, content:function(){ "step 0" player.addSkill('qingyi3'); var check=player.countCards('h')<=player.hp; player.chooseCardTarget({ prompt:get.prompt2('qingyi'), filterCard:function(card,player){ return get.type(card)=='equip'&&lib.filter.cardDiscardable(card,player); }, position:'he', filterTarget:function(card,player,target){ if(player==target) return false; return player.canUse({name:'sha'},target); }, ai1:function(card){ if(!_status.event.check) return 0; return 6-get.value(card); }, ai2:function(target){ if(!_status.event.check) return 0; return get.effect(target,{name:'sha'},_status.event.player); }, check:check }); "step 1" if(result.bool){ player.logSkill('qingyi2',result.targets); player.discard(result.cards[0]); player.useCard({name:'sha',isCard:true},result.targets[0]); trigger.cancel(); } player.removeSkill('qingyi3'); } }, qingyi3:{ mod:{ targetInRange:function(card,player,target,now){ return true; } }, }, qirang:{ audio:2, trigger:{player:'equipEnd'}, frequent:true, content:function(){ var card=get.cardPile(function(card){ return get.type(card,'trick')=='trick'; }); if(card){ var next=player.gain(card,'gain2'); if(get.type(card)=='trick') next.gaintag.add('qirang'); else{ player.addMark('qirang_mark',1,false); player.addTempSkill('qirang_mark',{player:'phaseBegin'}); } } }, ai:{ effect:{ target:function(card,player,target,current){ if(get.type(card)=='equip'&&!get.cardtag(card,'gifts')) return [1,3]; } }, threaten:1.3 }, group:'qirang_use', subSkill:{ mark:{ charlotte:true, onremove:function(player){ var evt=_status.event; if(evt.name!='phase') evt=evt.getParent('phase'); if(evt&&evt.player==player){ if(!evt.qirang_num) evt.qirang_num=0; evt.qirang_num+=player.storage.qirang_mark; } delete player.storage.qirang_mark; }, intro:{ content:'下回合发动〖羽化〗时卜算量+#', }, }, use:{ audio:'qirang', trigger:{player:'useCard2'}, direct:true, filter:function(event,player){ if(get.type(event.card)!='trick') return false; if(!event.targets||event.targets.length!=1) return false; var info=get.info(event.card); if(info.allowMultiple==false) return false; if(!player.hasHistory('lose',function(evt){ if(evt.getParent()!=event) return false; for(var i in evt.gaintag_map){ if(evt.gaintag_map[i].contains('qirang')) return true; } return false; })) return false; if(!info.multitarget){ if(game.hasPlayer(function(current){ return !event.targets.contains(current)&&lib.filter.targetEnabled2(event.card,player,current)&&lib.filter.targetInRange(event.card,player,current); })){ return true; } } return false; }, content:function(){ 'step 0' var prompt2='为'+get.translation(trigger.card)+'增加一个目标' player.chooseTarget(get.prompt('qirang'),function(card,player,target){ var player=_status.event.player; if(_status.event.targets.contains(target)) return false; return lib.filter.targetEnabled2(_status.event.card,player,target)&&lib.filter.targetInRange(_status.event.card,player,target); }).set('prompt2',prompt2).set('ai',function(target){ var trigger=_status.event.getTrigger(); var player=_status.event.player; return get.effect(target,trigger.card,player,player)*(_status.event.targets.contains(target)?-1:1); }).set('targets',trigger.targets).set('card',trigger.card); 'step 1' if(result.bool){ if(!event.isMine()&&!event.isOnline()) game.delayx(); event.targets=result.targets; } else{ event.finish(); } 'step 2' if(event.targets){ player.logSkill('qirang_use',event.targets); trigger.targets.addArray(event.targets); } }, }, }, }, yuhua:{ trigger:{player:['phaseZhunbeiBegin','phaseJieshuBegin']}, forced:true, audio:2, content:function(){ "step 0" var num=1,evt=trigger.getParent(); if(evt.qirang_num) num+=evt.qirang_num; var cards=get.cards(Math.min(5,num)); game.cardsGotoOrdering(cards); var next=player.chooseToMove(); next.set('list',[ ['牌堆顶',cards], ['牌堆底'], ]); next.set('prompt','羽化:点击将牌移动到牌堆顶或牌堆底'); next.processAI=function(list){ var cards=list[0][1],player=_status.event.player; var target=(_status.event.getTrigger().name=='phaseZhunbei')?player:player.next; var att=get.sgn(get.attitude(player,target)); var top=[]; var judges=target.getCards('j'); var stopped=false; if(player!=target||!target.hasWuxie()){ for(var i=0;i0)) break; top.unshift(cards.shift()); } } bottom=cards; return [top,bottom]; } "step 1" var top=result.moved[0]; var bottom=result.moved[1]; top.reverse(); for(var i=0;i0){ var att1=get.attitude(target,player); var att2=get.attitude(target,trigger.player); var att3=get.attitude(player,target); if(att3<0) return 0; return att1/2+att2+att3; } else{ return 0; // return get.attitude(player,target); } }); 'step 1' if(result.bool){ player.addTempSkill('chenqing2','roundStart'); event.target=result.targets[0]; event.target.draw(4); player.logSkill('chenqing',event.target); } else{ event.finish(); } 'step 2' var target=event.target; var tosave=trigger.player; var att=get.attitude(target,tosave); var hastao=target.countCards('h','tao'); target.chooseToDiscard(4,true,'he').set('ai',function(card){ var hastao=_status.event.hastao; var att=_status.event.att; if(!hastao&&att>0){ var suit=get.suit(card); for(var i=0;i0&&player.countCards('hs')>0; }, content:function(){ "step 0" event.count=2; event.history=player.getHistory('useCard',function(evt){ return evt.isPhaseUsing()&&['basic','trick'].contains(get.type(evt.card)); }) "step 1" event._result={}; if(event.count&&event.history.length&&player.countCards('hs')){ event.count--; var card=event.history.shift().card; card={name:card.name,nature:card.nature}; if(card.name!='jiu'&&lib.filter.cardEnabled(card)){ if(game.hasPlayer(function(current){ return player.canUse(card,current); })){ lib.skill.mozhix.viewAs=card; var next=player.chooseToUse(); if(next.isOnline()){ player.send(function(card){ lib.skill.mozhix.viewAs=card; },card) } next.logSkill='mozhi'; next.set('openskilldialog','默识:将一张手牌当'+get.translation(card)+'使用'); next.set('norestore',true); next.set('_backupevent','mozhix'); next.set('custom',{ add:{}, replace:{window:function(){}} }); next.backup('mozhix'); } } } "step 2" if(result&&result.bool) event.goto(1); }, }, mozhix:{ filterCard:function(card){ return get.itemtype(card)=='card'; }, selectCard:1, position:'hs', popname:true, }, chenqing2:{charlotte:true}, ranshang:{ audio:2, trigger:{player:'damageEnd'}, filter:function(event,player){ return event.nature=='fire'; }, forced:true, check:function(){ return false; }, content:function(){ player.addMark('ranshang',trigger.num); }, intro:{ name2:'燃', content:'mark' }, ai:{ effect:{ target:function(card,player,target,current){ if(card.name=='sha'){ if(card.nature=='fire'||player.hasSkill('zhuque_skill')) return 2; } if(get.tag(card,'fireDamage')&¤t<0) return 2; } } }, group:'ranshang2' }, ranshang2:{ audio:2, trigger:{player:'phaseJieshuBegin'}, forced:true, filter:function(event,player){ return player.countMark('ranshang')>0; }, content:function(){ player.loseHp(player.countMark('ranshang')); if(player.countMark('ranshang')>2){ player.loseMaxHp(2); player.draw(2); } } }, hanyong:{ trigger:{player:'useCard'}, filter:function(event,player){ return event.card&&(event.card.name=='nanman'||event.card.name=='wanjian'||(event.card.name=='sha'&&!event.card.nature&&get.suit(event.card)=='spade'))&&player.isDamaged(); }, content:function(){ trigger.baseDamage++; if(game.roundNumber<=player.hp) player.addMark('ranshang',1); }, }, hanyong3:{ audio:false, trigger:{source:'damageBegin1'}, forced:true, onremove:true, filter:function(event,player){ return event.card==player.storage.hanyong3; }, content:function(){ trigger.num++; } }, yishe:{ audio:2, trigger:{player:'phaseJieshuBegin'}, filter:function(event,player){ return !player.getExpansions('yishe').length; }, intro:{ content:'expansion', markcount:'expansion', }, content:function(){ 'step 0' player.draw(2); 'step 1' var cards=player.getCards('he'); if(!cards.length) event.finish(); else if(cards.length<=2) event._result={bool:true,cards:cards}; else player.chooseCard(2,'he',true,'选择两张牌作为“米”'); 'step 2' if(result.bool) player.addToExpansion(result.cards,player,'give').gaintag.add('yishe'); }, group:'yishe_recover', ai:{combo:'bushi'}, subSkill:{ recover:{ audio:'yishe', trigger:{ player:['loseAfter'], global:['equipAfter','addJudgeAfter','gainAfter','loseAsyncAfter','addToExpansionAfter'], }, filter:function(event,player){ if(player.isHealthy()) return false; var evt=event.getl(player); if(!evt||!evt.xs||!evt.xs.length||player.getExpansions('yishe').length>0) return false; if(event.name=='lose'){ for(var i in event.gaintag_map){ if(event.gaintag_map[i].contains('yishe')) return true; } return false; } return player.hasHistory('lose',function(evt){ if(event!=evt.getParent()) return false; for(var i in evt.gaintag_map){ if(evt.gaintag_map[i].contains('yishe')) return true; } return false; }); }, forced:true, content:function(){ player.recover(); }, }, }, }, bushi:{ audio:2, trigger:{player:'damageEnd',source:'damageEnd'}, filter:function(event,player){ if(event._notrigger.contains(event.player)) return false; return event.player.isIn()&&player.getExpansions('yishe').length>0; }, direct:true, content:function(){ 'step 0' event.count=trigger.num; 'step 1' trigger.player.chooseCardButton('选择获得一张“米”',player.getExpansions('yishe')); 'step 2' if(result.bool){ event.count--; player.logSkill('bushi',trigger.player); trigger.player.gain(result.links[0],'give',player,'bySelf'); } else event.finish(); 'step 3' if(event.count>0&&player.getExpansions('yishe').length&&player.hasSkill('bushi')){ event.goto(1); } }, ai:{combo:'yishe'}, }, midao:{ audio:2, trigger:{global:'judge'}, direct:true, filter:function(event,player){ return player.getExpansions('yishe').length&&event.player.isIn(); }, content:function(){ "step 0" var list=player.getExpansions('yishe'); player.chooseButton([get.translation(trigger.player)+'的'+(trigger.judgestr||'')+'判定为'+get.translation(trigger.player.judging[0])+ ','+get.prompt('midao'),list,'hidden'],function(button){ var card=button.link; var trigger=_status.event.getTrigger(); var player=_status.event.player; var judging=_status.event.judging; var result=trigger.judge(card)-trigger.judge(judging); var attitude=get.attitude(player,trigger.player); return result*attitude; }).set('judging',trigger.player.judging[0]).set('filterButton',function(button){ var player=_status.event.player; var card=button.link; var mod2=game.checkMod(card,player,'unchanged','cardEnabled2',player); if(mod2!='unchanged') return mod2; var mod=game.checkMod(card,player,'unchanged','cardRespondable',player); if(mod!='unchanged') return mod; return true; }); "step 1" if(result.bool){ event.forceDie=true; player.respond(result.links,'midao','highlight','noOrdering'); result.cards=result.links; var card=result.cards[0]; event.card=card; } else{ event.finish(); } "step 2" if(result.bool){ if(trigger.player.judging[0].clone){ trigger.player.judging[0].clone.classList.remove('thrownhighlight'); game.broadcast(function(card){ if(card.clone){ card.clone.classList.remove('thrownhighlight'); } },trigger.player.judging[0]); game.addVideo('deletenode',player,get.cardsInfo([trigger.player.judging[0].clone])); } game.cardsDiscard(trigger.player.judging[0]); trigger.player.judging[0]=result.cards[0]; trigger.orderingCards.addArray(result.cards); game.log(trigger.player,'的判定牌改为',card); game.delay(2); } }, ai:{ combo:'yishe', rejudge:true, tag:{ rejudge:0.6 } } }, fengpo:{ shaRelated:true, audio:2, trigger:{ player:'useCardToPlayered', }, filter:function(event,player){ if(event.targets.length!=1||!['sha','juedou'].contains(event.card.name)) return false; var evtx=event.getParent(); return !player.hasHistory('useCard',function(evt){ return evt!=evtx&&evt.card.name==event.card.name; },evtx) }, direct:true, content:function(){ 'step 0' var str1=get.translation(trigger.card),str2=get.translation(trigger.target); player.chooseControl('摸X加1伤','摸1加X伤','cancel2').set('prompt',get.prompt('fengpo',trigger.target)).set('prompt2','你可以选择一项:1.摸X张牌,令'+str1+'的伤害+1;2.摸一张牌,令'+str1+'的伤害+X(X为'+str2+'的♦牌的数量)。'); 'step 1' if(result.control&&result.control!='cancel2'){ player.logSkill('fengpo',trigger.target); var nd=trigger.target.countCards('he',{suit:'diamond'}); var draw=1,damage=1; if(result.control=='摸X加1伤') draw=nd; else damage=nd; player.draw(draw); var trigger2=trigger.getParent(); if(typeof trigger2.baseDamage!='number'){ trigger2.baseDamage=1; } trigger2.baseDamage+=damage; } } }, fengpo2:{ trigger:{source:'damageBegin1'}, filter:function(event){ return event.card&&(event.card.name=='sha'||event.card.name=='juedou')&&event.notLink(); }, forced:true, audio:false, content:function(){ if(typeof player.storage.fengpo=='number'){ trigger.num+=player.storage.fengpo; } } }, fengpo3:{charlotte:true}, biluan:{ audio:2, trigger:{player:'phaseDrawBegin1'}, mark:true, //unique:true, intro:{ content:function(storage){ if(storage>0){ return '其他角色计算与你的距离时+'+storage; } else if(storage<0){ return '其他角色计算与你的距离时'+storage; } else{ return '无距离变化'; } } }, init:function(player){ if(typeof player.storage.biluan!='number') player.storage.biluan=0; }, check:function(event,player){ if(player.countCards('h')>player.hp) return true; if(player.hasJudge('lebu')) return true; var ng=[]; var players=game.filterPlayer(); for(var i=0;i1){ nai++; } } } return nai>=2; }, filter:function(event,player){ return !event.numFixed&&game.hasPlayer(function(current){ return current!=player&&get.distance(current,player)<=1; }); }, content:function(){ var ng=[]; var players=game.filterPlayer(); for(var i=0;i1; }, forced:true, content:function(){ 'step 0' player.chooseTarget(function(card,player,target){ return target==player||target==_status.event.source; },true,'礼下:选择一个目标摸一张牌').set('ai',function(target){ return player==target?1:0; }).set('source',trigger.player); 'step 1' if(result.targets.length){ result.targets[0].draw(); player.line(result.targets[0],'green'); } player.storage.biluan--; player.markSkill('biluan'); game.addVideo('storage',player,['biluan',player.storage.biluan]); } }, rebiluan2:{ mark:true, charlotte:true, intro:{ content:function(storage){ if(storage>0){ return '其他角色计算与你的距离时+'+storage; } else if(storage<0){ return '其他角色计算与你的距离时'+storage; } else{ return '无距离变化'; } } }, init:function(player){ if(typeof player.storage.rebiluan2!='number') player.storage.rebiluan2=0; }, mod:{ globalTo:function(from,to,distance){ if(typeof to.storage.rebiluan2=='number'){ return distance+to.storage.rebiluan2; } } } }, rebiluan:{ audio:'biluan', trigger:{player:'phaseJieshuBegin'}, checkx:function(player){ var ng=Math.min(4,game.countPlayer()); var nai=0; for(var i=0;i1){ nai++; } } } return nai>=2; }, filter:function(event,player){ return player.countCards('he')&&game.hasPlayer(function(current){ return current!=player&&get.distance(current,player)<=1; }); }, direct:true, content:function(){ "step 0" player.chooseToDiscard('he',get.prompt2('rebiluan')).set('logSkill','rebiluan').set('check',lib.skill.rebiluan.checkx(player)).set('ai',function(card){ if(_status.event.check) return 6-get.value(card); return 0; }); "step 1" if(result.bool){ player.addSkill('rebiluan2'); var ng=Math.min(4,game.countPlayer()); player.$damagepop(ng,'unknownx'); player.storage.rebiluan2+=ng; player.markSkill('rebiluan2'); game.addVideo('storage',player,['rebiluan2',player.storage.rebiluan2]); } }, }, relixia:{ audio:'lixia', trigger:{global:'phaseJieshuBegin'}, filter:function(event,player){ return event.player.isIn()&&event.player!=player&&!player.inRangeOf(event.player); }, forced:true, content:function(){ 'step 0' if(trigger.player.isDead()){ event._result={bool:true,links:[0]}; return; } event.videoId=lib.status.videoId++; var func=function(card,id,bool){ var list=[ '令自己摸一张牌', '令XXX摸两张牌', '令XXX回复1点体力', ]; var choiceList=ui.create.dialog('【礼下】:请选择一至两项','forcebutton'); choiceList.videoId=id; for(var i=0;i3; }, prompt:function(event,player){ var num=game.countPlayer(function(current){ if(player.hasZhuSkill('guiming')&¤t.group=='wu'&¤t!=player) return true; return current.isDamaged(); }); return '残蚀:是否改为摸'+get.cnNumber(num)+'张牌?'; }, filter:function(event,player){ return !event.numFixed; }, content:function(){ trigger.changeToZero(); var num=game.countPlayer(function(current){ if(player.hasZhuSkill('guiming')&¤t.group=='wu'&¤t!=player) return true; return current.isDamaged(); }); if(num>0){ player.draw(num); } player.addTempSkill('canshi2'); } }, canshi2:{ trigger:{player:'useCard'}, forced:true, filter:function(event,player){ if(player.countCards('he')==0) return false; var type=get.type(event.card,'trick'); return type=='basic'||type=='trick'; }, autodelay:true, content:function(){ player.chooseToDiscard(true,'he'); } }, chouhai:{ audio:2, trigger:{player:'damageBegin3'}, forced:true, check:function(){ return false; }, filter:function(event,player){ return player.countCards('h')==0; }, content:function(){ trigger.num++; }, ai:{ effect:{ target:function(card,player,target,current){ if(get.tag(card,'damage')&&target.countCards('h')==0) return [1,-2]; } } } }, recanshi:{ audio:'canshi', trigger:{player:'phaseDrawBegin2'}, check:function(event,player){ if(player.skipList.contains('phaseUse')||!player.countCards('h',function(card){ return get.type(card,'trick')=='trick'&&player.hasUseTarget(card); })) return true; var num=game.countPlayer(function(current){ if(player.hasZhuSkill('guiming')&¤t.group=='wu') return true; return current.isDamaged(); }); return num>1; }, prompt:function(event,player){ var num=game.countPlayer(function(current){ if(player.hasZhuSkill('guiming')&¤t.group=='wu'&¤t!=player) return true; return current.isDamaged(); }); return '残蚀:是否多摸'+get.cnNumber(num)+'张牌?'; }, filter:function(event,player){ return !event.numFixed&&game.hasPlayer(function(current){ if(player.hasZhuSkill('guiming')&¤t.group=='wu'&¤t!=player) return true; return current.isDamaged(); }); }, content:function(){ var num=game.countPlayer(function(current){ if(player.hasZhuSkill('guiming')&¤t.group=='wu'&¤t!=player) return true; return current.isDamaged(); }); if(num>0){ trigger.num+=num; } player.addTempSkill('recanshi2'); } }, recanshi2:{ trigger:{player:'useCard'}, forced:true, filter:function(event,player){ if(player.countCards('he')==0) return false; if(event.card.name=='sha') return true; return get.type(event.card)=='trick'; }, autodelay:true, content:function(){ player.chooseToDiscard(true,'he'); } }, rechouhai:{ audio:'chouhai', trigger:{player:'damageBegin3'}, forced:true, check:function(){ return false; }, filter:function(event,player){ return event.card&&event.card.name=='sha'&&player.countCards('h')==0; }, content:function(){ trigger.num++; }, ai:{ effect:{ target:function(card,player,target,current){ if(card.name=='sha'&&target.countCards('h')==0) return [1,-2]; } } } }, kunfen:{ audio:2, trigger:{player:'phaseJieshuBegin'}, locked:function(skill,player){ if(!player||!player.storage.kunfen) return true; return false; }, direct:true, content:function(){ "step 0" if(player.storage.kunfen|| (get.mode()=='guozhan'&&player.hiddenSkills.contains('kunfen'))){ if(!player.storage.kunfen){ event.skillHidden=true; } player.chooseBool(get.prompt('kunfen'),'结束阶段开始时,你可以失去1点体力,然后摸两张牌。').set('ai',function(){ var player=_status.event.player; if(player.hp>3) return true; if(player.hp==3&&player.countCards('h')<3) return true; if(player.hp==2&&player.countCards('h')==0) return true; return false; }); } else{ event.forced=true; } "step 1" if(event.forced||result.bool){ player.logSkill('kunfen'); player.loseHp(); } else{ event.finish(); } "step 2" player.draw(2); }, ai:{ threaten:1.5 } }, fengliang:{ skillAnimation:true, animationColor:'thunder', unique:true, juexingji:true, audio:2, derivation:'oltiaoxin', trigger:{player:'dying'}, //priority:10, forced:true, filter:function(event,player){ return !player.storage.kunfen; }, content:function(){ "step 0" player.loseMaxHp(); "step 1" if(player.hp<2){ player.recover(2-player.hp); } "step 2" player.addSkill('oltiaoxin'); player.storage.kunfen=true; player.awakenSkill('fengliang'); }, }, zhuiji:{ mod:{ globalFrom:function(from,to){ if(from.hp>=to.hp) return -Infinity; } } }, oldcihuai:{ audio:'cihuai', trigger:{player:'phaseUseBegin'}, filter:function(event,player){ return player.countCards('h')>0; }, check:function(event,player){ return !player.countCards('h','sha'); }, content:function(){ player.showHandcards(); if(!player.countCards('h','sha')) player.addTempSkill('oldcihuai2'); }, }, oldcihuai2:{ group:'oldcihuai3', prompt:'视为使用一张杀', enable:'chooseToUse', viewAs:{name:'sha',isCard:true}, filterCard:function(){return false}, selectCard:-1, ai:{ presha:true, respondSha:true, }, }, oldcihuai3:{ trigger:{ player:['loseAfter'], global:['equipAfter','addJudgeAfter','gainAfter','loseAsyncAfter','addToExpansionAfter','die'], }, silent:true, firstDo:true, filter:function(event,player){ if(event.name=='die') return true; var evt=event.getl(player); return evt&&evt.hs&&evt.hs.length>0; }, content:function(){ player.removeSkill('oldcihuai2'); }, }, cihuai:{ trigger:{player:'phaseUseBegin'}, direct:true, filter:function(event,player){ return player.countCards('h','sha')==0; }, content:function(){ "step 0" player.chooseTarget(get.prompt2('cihuai'),function(card,player,target){ return player.canUse({name:'sha',isCard:true},target); }).set('ai',function(target){ var player=_status.event.player; return get.effect(target,{name:'sha',isCard:true},player,player); }); "step 1" if(result.bool){ player.logSkill('cihuai'); player.showHandcards(); player.useCard({name:'sha',isCard:true},result.targets); } }, ai:{ expose:0.2, } }, jilei:{ trigger:{player:'damageEnd'}, audio:2, direct:true, filter:function(event){ return event.source&&event.source.isIn(); }, content:function(){ 'step 0' player.chooseControl('basic','trick','equip','cancel2',function(){ var source=_status.event.source; if(get.attitude(_status.event.player,source)>0) return 'cancel2'; var list=['basic','trick','equip'].filter(function(name){ return (!source.storage.jilei2||!source.storage.jilei2.contains(name)); }); if(!list.length) return 'cancel2'; if(list.contains('trick')&&source.countCards('h',function(card){ return get.type(card,source)=='trick'&&source.hasValueTarget(card); })>1) return 'trick'; return list[0]; }).set('prompt',get.prompt2('jilei',trigger.source)).set('source',trigger.source); 'step 1' if(result.control!='cancel2'){ player.logSkill('jilei',trigger.source); player.popup(get.translation(result.control)+'牌'); trigger.source.addTempSkill('jilei2',{player:'phaseBegin'}); trigger.source.storage.jilei2.add(result.control); trigger.source.updateMarks('jilei2'); } }, ai:{ maixie_defend:true, threaten:0.7 } }, jilei2:{ unique:true, charlotte:true, intro:{ content:function(storage){ return '不能使用、打出或弃置'+get.translation(storage)+'牌'; } }, init:function(player,skill){ if(!player.storage[skill]) player.storage[skill]=[]; }, mark:true, onremove:true, mod:{ cardDiscardable:function(card,player){ if(player.storage.jilei2.contains(get.type(card,'trick'))) return false; }, cardEnabled:function(card,player){ if(player.storage.jilei2.contains(get.type(card,'trick'))){ var hs=player.getCards('h'),cards=[card]; if(Array.isArray(card.cards)) cards.addArray(card.cards); for(var i of cards){ if(hs.contains(i)) return false; } } }, cardRespondable:function(card,player){ if(player.storage.jilei2.contains(get.type(card,'trick'))){ var hs=player.getCards('h'),cards=[card]; if(Array.isArray(card.cards)) cards.addArray(card.cards); for(var i of cards){ if(hs.contains(i)) return false; } } }, cardSavable:function(card,player){ if(player.storage.jilei2.contains(get.type(card,'trick'))){ var hs=player.getCards('h'),cards=[card]; if(Array.isArray(card.cards)) cards.addArray(card.cards); for(var i of cards){ if(hs.contains(i)) return false; } } }, }, }, danlao:{ audio:2, filter:function(event,player){ return (event.card.name=='sha'||get.type(event.card)=='trick')&&event.targets&&event.targets.length>1; }, check:function(event,player){ return event.getParent().excluded.contains(player)||get.tag(event.card,'multineg')||get.effect(player,event.card,event.player,player)<=0; }, trigger:{target:'useCardToTargeted'}, content:function(){ trigger.getParent().excluded.add(player); player.draw(); }, ai:{ effect:{ target:function(card){ if(get.type(card)!='trick') return; if(card.name=='tiesuo') return [0,0]; if(card.name=='yihuajiemu') return [0,1]; if(get.tag(card,'multineg')) return [0,2]; } } } }, taichen:{ enable:'phaseUse', usable:1, filterTarget:function(card,player,target){ return player.canUse('sha',target); }, content:function(){ "step 0" player.loseHp(); "step 1" player.useCard({name:'sha',isCard:true},target,false); }, ai:{ order:1, result:{ target:function(player,target){ if(player.hp>2&&player.hp>target.hp&&target.countCards('he')<4){ return get.effect(target,{name:'sha'},player,target); } return 0; } } } }, naman:{ audio:2, trigger:{global:'respondAfter'}, filter:function(event,player){ if(event.card.name!='sha') return false; if(event.player==player) return false; if(event.cards){ for(var i=0;i0; }, filterCard:{name:'sha'}, check:function(card){return 6-get.value(card)}, content:function(){ 'step 0' var list=lib.group.filter(function(group){ return ['wei','shu','wu','qun'].contains(group)||game.hasPlayer(function(current){ return current.group==group; }) }); if(player.storage.xiemu2) list.removeArray(player.storage.xiemu2); var list2=list.slice(0); list2.sort(function(a,b){ return lib.skill.xiemu.count(b)-lib.skill.xiemu.count(a); }); player.chooseControl(list).set('prompt','请选择一个势力').set('ai',function(){return _status.event.group}).set('group',list2[0]); 'step 1' player.popup(result.control+2,get.groupnature(result.control)); game.log(player,'选择了','#g'+get.translation(result.control+2)); player.addTempSkill('xiemu2',{player:'phaseBegin'}); player.storage.xiemu2.add(result.control); player.updateMarks('xiemu2'); }, ai:{ order:1, result:{player:1}, }, count:function(group){ var player=_status.event.player; return game.countPlayer(function(current){ return current!=player&¤t.group==group&&get.attitude(current,player)<0; }); }, }, xiemu2:{ onremove:true, mark:true, forced:true, audio:'xiemu', intro:{ content:function(storage){ return '已指定'+get.translation(storage)+'势力'; }, }, trigger:{ target:'useCardToTargeted' }, init:function(player){ if(!player.storage.xiemu2) player.storage.xiemu2=[]; }, filter:function(event,player){ if(!player.storage.xiemu2) return false; if(get.color(event.card)!='black') return false; if(!event.player) return false; if(event.player==player||!player.storage.xiemu2.contains(event.player.group)) return false; return true; }, content:function(){ player.draw(2); }, }, oldxiemu:{ audio:'xiemu', trigger:{target:'useCardToTargeted'}, filter:function(event,player){ if(get.color(event.card)!='black') return false; if(!event.player) return false; if(event.player==player) return false; if(get.mode()!='guozhan') return false; return player.countCards('h','sha')>0; }, direct:true, content:function(){ "step 0" var next=player.chooseToDiscard('协穆:是否弃置一张杀并摸两张牌?',{name:'sha'}); next.set('ai',function(card){ return 9-get.value(card); }); next.logSkill='xiemu'; "step 1" if(result.bool){ player.draw(2); } }, ai:{ effect:{ target:function(card,player,target){ if(get.color(card)=='black'&&target.countCards('h')>0){ return [1,0.5]; } } } } }, spmengjin:{ trigger:{player:'shaBegin'}, filter:function(event,player){ return event.target.countCards('he')>0; }, direct:true, content:function(){ "step 0" var att=get.attitude(player,trigger.target); player.choosePlayerCard(get.prompt('spmengjin',trigger.target),'he',trigger.target).ai=function(button){ var val=get.buttonValue(button); if(att>0) return -val; return val; }; "step 1" if(result.bool){ trigger.target.discard(result.links); player.logSkill('spmengjin',trigger.target); trigger.target.addTempSkill('mengjin2','shaAfter'); } }, ai:{ expose:0.2 } }, fenxun_old:{ audio:2, trigger:{player:'shaBefore'}, direct:true, filter:function(event,player){ return event.targets.length==1; }, position:'he', content:function(){ "step 0" player.chooseCardTarget({ filterCard:lib.filter.cardDiscardable, filterTarget:function(card,player,target){ var trigger=_status.event.getTrigger(); return lib.filter.targetEnabled(trigger.card,player,target)&&target!=trigger.targets[0]; }, ai1:function(card){ return 6-get.value(card); }, ai2:function(target){ var trigger=_status.event.getTrigger(); var player=_status.event.player; return get.effect(target,trigger.card,player,player); }, prompt:get.prompt2('fenxun') }); "step 1" if(result.bool){ player.discard(result.cards); trigger.targets.push(result.targets[0]); player.logSkill('fenxun',result.targets); } } }, rezhoufu:{ audio:'zhoufu', enable:'phaseUse', usable:1, filter:function(event,player){ return player.countCards('he')>0; }, filterCard:true, filterTarget:function(card,player,target){ return target!=player&&!target.getExpansions('rezhoufu2').length; }, check:function(card){ return 6-get.value(card) }, position:'he', discard:false, lose:false, delay:false, content:function(){ if(!target.storage.rezhoufu2_markcount) target.storage.rezhoufu2_markcount=0; target.addToExpansion(cards,player,'give').gaintag.add('rezhoufu2'); target.addSkill('rezhoufu_judge'); }, ai:{ order:1, result:{ target:-1, }, }, group:['rezhoufu_losehp'], subSkill:{ judge:{ audio:'zhoufu', trigger:{player:'judgeBefore'}, forced:true, charlotte:true, filter:function(event,player){ return !event.directresult&&player.getExpansions('rezhoufu2').length; }, content:function(){ var cards=[player.getExpansions('rezhoufu2')[0]]; trigger.directresult=cards[0]; }, }, losehp:{ audio:'zhoufu', trigger:{global:'phaseEnd'}, forced:true, filter:function(event,player){ return game.hasPlayer(function(current){ return current.hasHistory('lose',function(evt){ if(!evt||!evt.xs||!evt.xs.length) return false; for(var i in evt.gaintag_map){ if(evt.gaintag_map[i].contains('rezhoufu2')) return true; } return false; }); }); }, logTarget:function(current){ return game.filterPlayer(function(current){ return current.hasHistory('lose',function(evt){ if(!evt||!evt.xs||!evt.xs.length) return false; for(var i in evt.gaintag_map){ if(evt.gaintag_map[i].contains('rezhoufu2')) return true; } return false; }); }).sortBySeat(); }, content:function(){ var targets=game.filterPlayer(function(current){ return current.hasHistory('lose',function(evt){ if(!evt||!evt.xs||!evt.xs.length) return false; for(var i in evt.gaintag_map){ if(evt.gaintag_map[i].contains('rezhoufu2')) return true; } return false; }); }).sortBySeat(); while(targets.length){ targets.shift().loseHp(); } }, }, }, }, rezhoufu2:{ intro:{ content:'expansion', }, }, rezhoufu3:{}, reyingbing:{ audio:'yingbin', trigger:{global:'useCard'}, forced:true, filter:function(event,player){ var cards=event.player.getExpansions('rezhoufu2'); return cards.length&&get.color(cards[0])==get.color(event.card); }, logTarget:'player', content:function(){ 'step 0' player.draw(); 'step 1' trigger.player.storage.rezhoufu2_markcount++; if(trigger.player.storage.rezhoufu2_markcount>=2){ delete trigger.player.storage.rezhoufu2_markcount; var cards=trigger.player.getExpansions('rezhoufu2'); player.gain(cards,trigger.player,'give','bySelf'); } else trigger.player.markSkill('rezhoufu2'); }, }, zhoufu:{ audio:2, }, yingbin:{ audio:2, }, kuiwei:{ audio:2, trigger:{player:'phaseJieshuBegin'}, check:function(event,player){ if(player.isTurnedOver()) return true; var num=game.countPlayer(function(current){ return current.getEquip(1); }); return num>1; }, content:function(){ "step 0" player.turnOver(); "step 1" var num=game.countPlayer(function(current){ return current.getEquips(1).length; }); player.draw(2+num); player.addSkill('kuiwei2'); }, ai:{ effect:{ target:function(card){ if(card.name=='guiyoujie') return [0,2]; } } } }, kuiwei2:{ trigger:{player:'phaseDrawBegin'}, forced:true, audio:false, content:function(){ var num=game.countPlayer(function(current){ return current.getEquips(1).length; }); if(num>=player.countCards('he')){ player.discard(player.getCards('he')); } else if(num){ player.chooseToDiscard('he',num,true); } player.removeSkill('kuiwei2'); } }, yanzheng:{ enable:'chooseToUse', audio:2, filter:function(event,player){ return player.hp0; }, viewAsFilter:function(player){ return player.hp0; }, filterCard:true, position:'e', viewAs:{name:'wuxie'}, prompt:'将一张装备区内的牌当无懈可击使用', check:function(card){return 8-get.equipValue(card)}, threaten:1.2 }, tongji:{ global:'tongji_disable', audio:2, trigger:{global:"useCard1"}, forced:true, filter:function (event,player){ return event.targets.contains(player)&&player!=event.player&&event.card.name=='sha'&&player.hp=0; }, logTarget:'target', content:function(){ "step 0" player.draw(); if(trigger.target!=player){ player.chooseCard(true,'he','交给'+get.translation(trigger.target)+'一张牌').set('ai',function(card){ if(get.position(card)=='e') return -1; if(card.name=='shan') return 1; if(get.type(card)=='equip') return 0.5; return 0; }); } else{ event.finish(); } "step 1" player.give(result.cards,trigger.target,'give'); game.delay(); event.card=result.cards[0]; "step 2" if(trigger.target.getCards('h').contains(card)&&get.type(card)=='equip'){ trigger.target.chooseUseTarget(card); } }, ai:{ threaten:1.1 } }, liangzhu:{ audio:2, trigger:{global:'recoverAfter'}, direct:true, filter:function(event,player){ return event.player.isPhaseUsing(); }, content:function(){ 'step 0' if(player==trigger.player){ player.chooseControl('摸一张','摸两张','cancel2',function(){ return '摸两张'; }).set('prompt',get.prompt2('liangzhu')); event.single=true; } else{ player.chooseTarget(get.prompt2('liangzhu'),function(card,player,target){ return target==_status.event.player||target==_status.event.target; }).set('target',trigger.player).set('ai',function(target){ var player=_status.event.player; if(player==target) return 1; return get.attitude(player,target)-1.5; }); } 'step 1' if(event.single){ if(result.control!='cancel2'){ player.logSkill('liangzhu',player); if(result.control=='摸一张'){ player.draw(); } else{ player.draw(2); if(!player.storage.liangzhu) player.storage.liangzhu=[]; player.storage.liangzhu.add(player); } } } else if(result.bool){ var target=result.targets[0]; player.logSkill('liangzhu',target); if(target==player){ target.draw(); } else{ target.draw(2); if(target.storage.liangzhu){ target.storage.liangzhu.add(player); } else{ target.storage.liangzhu=[player]; } } } }, ai:{ expose:0.1 } }, fanxiang:{ skillAnimation:true, animationColor:'fire', audio:2, unique:true, juexingji:true, forceunique:true, derivation:'xiaoji', trigger:{player:'phaseZhunbeiBegin'}, filter:function(event,player){ if(player.storage.fanxiang) return false; return game.hasPlayer(function(current){ return current.storage.liangzhu&¤t.storage.liangzhu.contains(player)&¤t.isDamaged(); }); }, forced:true, content:function(){ player.storage.fanxiang=true; player.gainMaxHp(); player.recover(); player.removeSkill('liangzhu'); player.addSkill('xiaoji'); player.awakenSkill('fanxiang'); }, }, mingshi:{ audio:2, trigger:{player:'damageBegin3'}, direct:true, filter:function(event,player){ return event.source&&event.source.hp>player.hp; }, content:function(){ "step 0" var next=player.chooseToDiscard(get.prompt2('mingshi'),{color:'black'}); next.set('ai',function(card){ return 9-get.value(card); }); next.set('logSkill','mingshi'); "step 1" if(result.bool){ trigger.num--; } }, ai:{ threaten:0.8 } }, lirang:{ audio:2, trigger:{ player:'loseAfter', global:'loseAsyncAfter', }, filter:function(event,player){ if(!game.hasPlayer(current=>current!=player)) return false; if(event.type!='discard'||event.getlx===false) return false; var evt=event.getl(player); if(!evt||!evt.cards2) return false; for(var i=0;i1; }); } player.chooseButton(['礼让:是否分配本次弃置的牌?',event.cards], [1,event.cards.length]).set('ai',function(button){ if(_status.event.goon&&ui.selected.buttons.length==0) return 1+Math.abs(get.value(button.link)); return 0; }).set('goon',goon).setHiddenSkill('lirang'); 'step 2' if(result.bool){ event.cards.removeArray(result.links); event.togive=result.links.slice(0); player.chooseTarget('选择一名其他角色获得'+get.translation(result.links),true,lib.filter.notMe).set('ai',function(target){ var att=get.attitude(_status.event.player,target); if(_status.event.enemy){ return -att; } else if(att>0){ return att/(1+target.countCards('h')); } else{ return att/100; } }).set('enemy',get.value(event.togive[0],player,'raw')<0); } else event.goto(4); 'step 3' if(result.targets.length){ var id=result.targets[0].playerid,map=event.given_map; if(!map[id]) map[id]=[]; map[id].addArray(event.togive); } if(cards.length>0) event.goto(1); 'step 4' if(_status.connectMode){ game.broadcastAll(function(){delete _status.noclearcountdown;game.stopCountChoose()}); } var list=[],targets=[]; for(var i in event.given_map){ var source=(_status.connectMode?lib.playerOL:game.playerMap)[i]; list.push([source,event.given_map[i]]); targets.push(source); } if(targets.length){ player.logSkill('lirang',targets); game.loseAsync({ gain_list:list, giver:player, animate:'gain2', }).setContent('gaincardMultiple'); } }, ai:{ expose:0.1, effect:{ target:function(card,player,target,current){ if(target.hasFriend()&&get.tag(card,'discard')){ if(current<0) return 0; return [1,1]; } } } } }, moukui:{ trigger:{player:'useCardToPlayered'}, direct:true, filter:function(event,player){ return event.card.name=='sha'; }, audio:2, content:function(){ "step 0" var controls=['draw_card']; if(trigger.target.countCards('he')){ controls.push('discard_card'); } controls.push('cancel'); player.chooseControl(controls).set('ai',function(){ var trigger=_status.event.getTrigger(); if(trigger.target.countCards('he')&&get.attitude(_status.event.player,trigger.target)<0){ return 'discard_card'; } else{ return 'draw_card'; } }).set('prompt',get.prompt2('moukui')); "step 1" if(result.control=='draw_card'){ player.draw(); player.logSkill('moukui'); } else if(result.control=='discard_card'&&trigger.target.countCards('he')){ player.discardPlayerCard(trigger.target,'he',true).logSkill=['moukui',trigger.target]; } else event.finish(); "step 2" player.addTempSkill('moukui2','shaEnd'); }, ai:{ expose:0.1 } }, moukui2:{ audio:false, trigger:{player:'shaMiss'}, forced:true, filter:function(event,player){ return player.countCards('he')>0; }, content:function(){ trigger.target.discardPlayerCard(player,true); } }, shenxian:{ audio:2, trigger:{global:['loseAfter','loseAsyncAfter']}, filter:function(event,player){ if(event.type!='discard'||_status.currentPhase==player||event.getlx===false) return false; if(event.name=='lose'&&event.player==player) return false; if(player.hasSkill('shenxian2')) return false; var cards=event.cards.slice(0); var evt=event.getl(player); if(evt&&evt.cards) cards.removeArray(evt.cards); for(var i=0;iplayer.storage.qiangwu) return Infinity; } }, trigger:{player:'useCard1'}, filter:function(event,player){ if(_status.currentPhase==player&&event.card.name=='sha'&& get.number(event.card)>player.storage.qiangwu&&event.addCount!==false) return true; return false; }, forced:true, popup:false, firstDo:true, content:function(){ trigger.addCount=false; if(player.stat[player.stat.length-1].card.sha>0){ player.stat[player.stat.length-1].card.sha--; } }, }, zhendu:{ audio:2, trigger:{global:'phaseUseBegin'}, filter:function(event,player){ return /*(get.mode()!='guozhan'||event.player!=player)&&*/event.player.isIn()&&player.countCards('h')>0&&event.player.hasUseTarget({name:'jiu'},null,true); }, direct:true, preHidden:true, content:function(){ "step 0" var nono=(Math.abs(get.attitude(player,trigger.player))<3); if(player==trigger.player||get.damageEffect(trigger.player,player,player)<=0||!trigger.player.hasUseTarget({name:'jiu'},null,true)){ nono=true } else if(trigger.player.hp>2){ nono=true; } else if(trigger.player.hp>1&&player.countCards('h')<3&&(trigger.player.canUse('sha',player)&&!player.countCards('h','shan')&&trigger.player.countCards('h')>=3)){ nono=true; } var next=player.chooseToDiscard(get.prompt2('zhendu',trigger.player)); next.set('ai',function(card){ if(_status.event.nono) return -1; return 7-get.useful(card); }); next.set('logSkill',['zhendu',trigger.player]); next.set('nono',nono); next.setHiddenSkill('zhendu'); "step 1" if(result.bool){ trigger.player.chooseUseTarget({name:'jiu'},true,'noTargetDelay','nodelayx'); } else{ event.finish(); } "step 2" if(result.bool&&trigger.player!=player) trigger.player.damage(); }, ai:{ threaten:2, expose:0.3 } }, qiluan:{ audio:'qiluan2', preHidden:true, trigger:{global:'phaseEnd'}, frequent:true, filter:function(event,player){ return game.hasPlayer2(function(current){ return current.getStat('kill')>0 }); }, prompt:function(event,player){ var num=game.countPlayer2(function(current){ return (current.getStat('kill')||0)*(current==player?3:1); }); return get.prompt('qiluan')+'(可摸'+get.cnNumber(num)+'张牌)'; }, content:function(){ //if(get.mode()=='guozhan'){ // player.draw(3); //} //else{ player.draw(game.countPlayer2(function(current){ return (current.getStat('kill')||0)*(current==player?3:1); })); //} }, subSkill:{ draw:{ trigger:{global:'dieAfter'}, frequent:true, filter:function(event,player){ return /*get.mode()!='guozhan'&&*/player!=event.source; }, content:function(){player.draw()}, }, }, }, qiluan2:{ audio:2, }, zniaoxiang:{ shaRelated:true, audio:2, trigger:{player:'useCardToPlayered'}, forced:true, filter:function(event,player){ return event.card.name=='sha'&&!event.getParent().directHit.contains(event.target); }, //priority:-1, logTarget:'target', content:function(){ var id=trigger.target.playerid; var map=trigger.getParent().customArgs; if(!map[id]) map[id]={}; if(typeof map[id].shanRequired=='number'){ map[id].shanRequired++; } else{ map[id].shanRequired=2; } } }, shangyi:{ audio:2, enable:'phaseUse', usable:1, filterTarget:function(card,player,target){ return player!=target&&target.countCards('h'); }, content:function(){ "step 0" player.chooseCardButton(target,target.getCards('h')).set('filterButton',function(button){ return get.color(button.link)=='black'; }); "step 1" if(result.bool){ target.discard(result.links[0]); } }, ai:{ order:11, result:{ target:function(player,target){ return -target.countCards('h'); } }, threaten:1.1 }, }, shengxi:{ trigger:{player:'phaseDiscardBegin'}, frequent:true, filter:function(event,player){ return !player.getStat('damage'); }, content:function(){ player.draw(2); }, audio:2, audioname:['liushan'] }, shoucheng:{ trigger:{ global:['equipAfter','addJudgeAfter','loseAfter','gainAfter','loseAsyncAfter','addToExpansionAfter'], }, audio:2, direct:true, filter:function(event,player){ return game.hasPlayer(function(current){ if(current==_status.currentPhase) return false; var evt=event.getl(current); return evt&&evt.hs&&evt.hs.length&¤t.countCards('h')==0; }); }, content:function(){ "step 0" event.list=game.filterPlayer(function(current){ if(current==_status.currentPhase) return false; var evt=trigger.getl(current); return evt&&evt.hs&&evt.hs.length; }).sortBySeat(_status.currentPhase); "step 1" var target=event.list.shift(); event.target=target; if(target.isIn()&&target.countCards('h')==0){ player.chooseBool(get.prompt2('shoucheng',target)).set('ai',function(){ return get.attitude(_status.event.player,_status.event.getParent().target)>0; }); } else event.goto(3); "step 2" if(result.bool){ player.logSkill(event.name,target); target.draw(); } "step 3" if(event.list.length) event.goto(1); }, ai:{ threaten:1.3, expose:0.2, noh:true, } }, hengzheng:{ audio:2, trigger:{player:'phaseDrawBegin1'}, preHidden:true, filter:function(event,player){ return !event.numFixed&&(player.hp==1||player.countCards('h')==0); }, check:function(event,player){ var num=game.countPlayer(function(current){ if(current.countCards('he')&¤t!=player&&get.attitude(player,current)<=0){ return true; } if(current.countCards('j')&¤t!=player&&get.attitude(player,current)>0){ return true; } }); return num>=2; }, content:function(){ "step 0" var targets=game.filterPlayer(); targets.remove(player); targets.sort(lib.sort.seat); event.targets=targets; event.num=0; trigger.changeToZero(); player.line(targets,'green'); "step 1" if(num【勇决】
    每当其他角色于回合内使用一张杀,若目标不是你,你可以获得之,每回合限一次
    '); "step 1" player.turnOver(); }, intro:{ content:'limited' }, ai:{ order:4, result:{ target:function(player,target){ if(target.isMin()) return 0; if(player.hp>1){ if(game.phaseNumber2) return 0; if(get.attitude(player,target)<5) return 0; } if(get.attitude(player,target)<5) return 0; if(target.hp==1&&target.maxHp>2) return 0.2; if(target==game.me) return 1.2; return 1; } }, expose:0.5, threaten:1.5 } }, fenming:{ audio:2, trigger:{player:'phaseJieshuBegin'}, check:function(event,player){ var num=game.countPlayer(function(current){ if(current.isLinked()&¤t.countCards('he')){ return get.effect(current,{name:'guohe_copy2'},player,player); } }); return num<0; }, filter:function(event,player){ return player.isLinked(); }, preHidden:true, prompt:'是否发动【奋命】?', logTarget:function(event,player){ return game.filterPlayer(function(current){ if(current.isLinked()&¤t.countCards('he')){ return true; } }); }, content:function(){ "step 0" event.targets=game.filterPlayer(function(current){ if(current.isLinked()&¤t.countCards('he')){ return true; } }); event.num=0; event.targets.sort(lib.sort.seat); "step 1" if(event.num=0); trigger.player.chooseToDiscard('he','弃置一张装备牌并令'+get.translation(player)+'摸一张牌,或受到一点伤害',{type:'equip'}).set('ai',function(card){ if(_status.event.nono){ return 0; } if(_status.event.player.hp==1) return 10-get.value(card); return 9-get.value(card); }).set('nono',nono); } else{ event.finish(); } "step 2" if(result.bool){ player.draw(); } else{ trigger.player.damage(); } }, ai:{ expose:0.3, threaten:1.3 } }, suishi:{ audio:2, trigger:{global:'dying'}, forced:true, popup:false, //priority:12, check:function(){ return false; }, filter:function(event,player){ return event.player!=player&&event.parent.name=='damage'&&event.parent.source&&event.parent.source!=event.player; }, content:function(){ 'step 0' var str; if(trigger.parent.source==player){ str='随势:是否摸一张牌?'; } else{ str='随势:是否令'+get.translation(player)+'摸一张牌?' } trigger.parent.source.chooseBool(str).set('ai',function(){ return get.attitude(_status.event.player,_status.event.target)>0; }).set('target',player); 'step 1' if(result.bool){ player.logSkill('suishi'); trigger.parent.source.line(player,'green'); player.draw(); } }, group:'suishi2' }, suishi2:{ trigger:{global:'dieAfter'}, forced:true, popup:false, check:function(){ return false; }, filter:function(event,player){ return event.player!=player&&event.source&&event.source!=player&&event.source!=event.player; }, content:function(){ 'step 0' var str; if(trigger.source==player){ str='随势:是否流失一点体力?'; } else{ str='随势:是否令'+get.translation(player)+'流失一点体力?' } trigger.source.chooseBool(str).set('ai',function(){ return get.attitude(_status.event.player,_status.event.target)<0; }).set('target',player); 'step 1' if(result.bool){ player.logSkill('suishi'); trigger.source.line(player,'green'); player.loseHp(); } }, }, sijian:{ trigger:{ player:'loseAfter', global:['equipAfter','addJudgeAfter','gainAfter','loseAsyncAfter','addToExpansionAfter'], }, direct:true, audio:2, preHidden:true, filter:function(event,player){ if(player.countCards('h')) return false; if(event.name=='gain'&&event.player==player) return false; var evt=event.getl(player); return evt&&evt.hs&&evt.hs.length>0; }, content:function(){ "step 0" player.chooseTarget(get.prompt('sijian'),'弃置一名其他角色的一张牌',function(card,player,target){ return player!=target&&target.countCards('he')>0; }).set('ai',function(target){ return -get.attitude(_status.event.player,target); }).setHiddenSkill(event.name); "step 1" if(result.bool){ player.logSkill('sijian',result.targets); event.target=result.targets[0]; player.discardPlayerCard(event.target,true); } else{ event.finish(); } }, ai:{ expose:0.2, } }, quji:{ audio:2, enable:'phaseUse', usable:1, position:'he', filterCard:true, selectCard:function(){ var player=_status.event.player; return player.getDamagedHp(); }, filterTarget:function(card,player,target){ return target.hp-1; if(num==2) return att>0; return att>1; } return false; }, content:function(){ "step 0" event.target=player; event.player=trigger.player; var prompt; if(player==event.player) prompt='是否发动【郡兵】摸一张牌?'; else prompt=('###是否对'+get.translation(event.target)+'发动【郡兵】?###'+(event.player==event.target?'摸一张牌':'摸一张牌,将所有手牌交给该角色,然后该角色交给你等量的手牌')); event.player.chooseBool(prompt).set('choice',lib.skill.junbing.checkx(event.target,event.player)); "step 1" if(!result.bool){event.finish();return} target.logSkill('junbing',player); if(player==target) event.finish(); player.draw(); "step 2" var cards=player.getCards('h'); player.give(cards,target); event.num=cards.length; "step 3" var he=target.getCards('he'); if(!he.length) event.finish(); else if(he.length<=num) event._result={cards:he}; else target.chooseCard('选择还给'+get.translation(player)+'的牌',true,event.num,'he'); "step 4" target.give(result.cards,player); }, audio:2, }, xiongyi:{ skillAnimation:true, animationColor:'gray', unique:true, enable:'phaseUse', audio:2, limited:true, filterTarget:function(card,player,target){ if(get.mode()=='guozhan'){ if(player==target) return true; if(player.identity=='ye') return false; if(player.identity=='unknown'){ if(_status.yeidentity.contains(player._group)){ return false; } else if(get.zhu(player)||get.population(player._group)+1<=get.population()/2){ return player._group==target.identity; } else{ return false; } } return player.identity==target.identity; } else{ return true; } }, multitarget:true, multiline:true, selectTarget:function(){ if(get.mode()=='guozhan') return -1; return [1,Infinity]; }, content:function(){ "step 0" player.awakenSkill('xiongyi'); game.asyncDraw(targets,3); "step 1" if(player.isDamaged()){ if(get.mode()=='guozhan'){ if(player.isMinor(true)){ player.recover(); } } else if(player.isMinHp()){ player.recover(); } } }, ai:{ order:1, result:{ target:function(player){ var num=player.countCards('h'); if(player.hp==1) return 1; if(player.hp==2&&num<=2) return 1; if(player.hp==3&&num<=1) return 1; if(game.phaseNumber1){ event.num--; event.goto(1); } } }, ai:{ threaten:0.8, expose:0.1 } }, shushen:{ audio:2, trigger:{player:'recoverAfter'}, direct:true, content:function(){ "step 0" event.count=trigger.num; "step 1" player.chooseTarget(get.prompt('shushen'),'令一名其他角色选择摸两张牌或回复1点体力',function(card,player,target){ return target!=player; }).set('ai',function(target){ return get.attitude(_status.event.player,target); }); "step 2" if(result.bool){ event.count--; player.logSkill('shushen',result.targets); result.targets[0].chooseDrawRecover(2,true); if(event.count) event.goto(1); } }, ai:{ threaten:0.8, expose:0.1 } }, shenzhi:{ audio:2, trigger:{player:'phaseZhunbeiBegin'}, check:function(event,player){ if(player.hp>2) return false; var cards=player.getCards('h'); if(cards.length3) return false; for(var i=0;i7||get.tag(cards[i],'recover')>=1) return false; } return true; }, filter:function(event,player){ return player.countCards('h')>0; }, preHidden:true, content:function(){ "step 0" var cards=player.getCards('h'); event.bool=cards.length>=player.hp; player.discard(cards); "step 1" if(event.bool){ player.recover(); } } }, wuji:{ skillAnimation:true, animationColor:'orange', audio:2, trigger:{player:'phaseJieshuBegin'}, forced:true, unique:true, juexingji:true, filter:function(event,player){ return player.getStat('damage')>=3&&!player.storage.wuji; }, content:function(){ "step 0" player.removeSkill('huxiao'); player.gainMaxHp(); "step 1" player.recover(); player.awakenSkill('wuji'); player.storage.wuji=true; var card=get.cardPile('qinglong','field'); if(card){ player.gain(card,'gain2','log'); } } }, xueji_old:{ audio:2, enable:'phaseUse', usable:1, filter:function(event,player){ return player.hp0; }, filterTarget:function(card,player,target){ return player!=target&&get.distance(player,target,'attack')<=1; }, selectTarget:function(){ return [1,_status.event.player.maxHp-_status.event.player.hp]; }, position:'he', filterCard:function(card){ return get.color(card)=='red'; }, check:function(card){ return 8-get.useful(card); }, content:function(){ "step 0" target.damage(); "step 1" target.draw(); }, ai:{ order:7, result:{ target:function(player,target){ return get.damageEffect(target,player); } }, threaten:function(player,target){ if(target.hp==1) return 2; if(target.hp==2) return 1.5; return 0.5; }, maixie:true, effect:{ target:function(card,player,target){ if(get.tag(card,'damage')){ if(target.hp==target.maxHp&&target.hasFriend()) return [0,1]; } if(get.tag(card,'recover')&&player.hp>=player.maxHp-1) return [0,0]; } } } }, xueji:{ audio:2, enable:'phaseUse', usable:1, filter:function(event,player){ return player.countCards('he',{color:'red'})>0; }, filterTarget:true, selectTarget:function(){ var player=_status.event.player return [1,Math.max(1,player.getDamagedHp())]; }, position:'he', filterCard:{color:'red'}, check:function(card){ return 8-get.value(card); }, multitarget:true, multiline:true, line:'fire', content:function(){ 'step 0' event.delay=false; for(var i=0;i=0;i--){ ui.cardPile.insertBefore(cards[i].fix(),ui.cardPile.firstChild); } var aozhan=player.hasSkill('aozhan'); player.chooseButton(['傲才:选择要'+(evt.name=='chooseToUse'?'使用':'打出')+'的牌',cards]).set('filterButton',function(button){ return _status.event.cards.contains(button.link); }).set('cards',cards.filter(function(card){ if(aozhan&&card.name=='tao'){ return evt.filterCard({ name:'sha',isCard:true,cards:[card], },evt.player,evt)||evt.filterCard({ name:'shan',isCard:true,cards:[card], },evt.player,evt); } return evt.filterCard(card,evt.player,evt); })).set('ai',function(button){ var evt=_status.event.getParent(3); if(evt&&evt.ai){ var tmp=_status.event; _status.event=evt; var result=(evt.ai||event.ai1)(button.link,_status.event.player,evt); _status.event=tmp; return result; } return 1; }); 'step 1' var evt=event.getParent(2); if(result.bool&&result.links&&result.links.length){ var card=result.links[0]; var name=card.name,aozhan=(player.hasSkill('aozhan')&&name=='tao'); if(aozhan){ name=evt.filterCard({ name:'sha',isCard:true,cards:[card], },evt.player,evt)?'sha':'shan'; } if(evt.name=='chooseToUse'){ game.broadcastAll(function(result,name){ lib.skill.aocai_backup.viewAs={name:name,cards:[result],isCard:true}; },card,name); evt.set('_backupevent','aocai_backup'); evt.set('openskilldialog',('请选择'+get.translation(card)+'的目标')) evt.backup('aocai_backup'); } else{ delete evt.result.skill; delete evt.result.used; evt.result.card=get.autoViewAs(result.links[0]); if(aozhan) evt.result.card.name=name; evt.result.cards=[result.links[0]]; evt.redo(); return; } } evt.goto(0); }, ai:{ effect:{ target:function(card,player,target,effect){ if(get.tag(card,'respondShan')) return 0.7; if(get.tag(card,'respondSha')) return 0.7; } }, order:11, respondShan:true, respondSha:true, result:{ player:function(player){ if(_status.event.dying) return get.attitude(player,_status.event.dying); return 1; } } } }, aocai_backup:{ sourceSkill:'aocai', precontent:function(){ delete event.result.skill; var name=event.result.card.name,cards=event.result.card.cards.slice(0); event.result.cards=cards; var rcard=cards[0],card; if(rcard.name==name) card=get.autoViewAs(rcard); else card=get.autoViewAs({name,isCard:true}); event.result.card=card; }, filterCard:function(){return false}, selectCard:-1, }, hongyuan:{ trigger:{player:'phaseDrawBegin2'}, direct:true, audio:2, filter:function(event,player){ return !event.numFixed&&event.num>0; }, content:function(){ "step 0" var check; if(player.countCards('h')==0){ check=false; } else{ check=(game.countPlayer(function(current){ return player!=current&&get.attitude(player,current)>1; })>=2); } if(get.is.versus()){ event.versus=true; player.chooseBool(get.prompt2('hongyuan')).ai=function(){ return game.countPlayer(function(current){ return player.side==current.side; })>2; }; } else{ player.chooseTarget(get.prompt2('hongyuan'),[1,2],function(card,player,target){ return player!=target; },function(target){ if(!_status.event.check) return 0; return get.attitude(_status.event.player,target); }).set('check',check); } "step 1" if(result.bool){ var targets; if(event.versus){ targets=game.filterPlayer(function(current){ return current!=player&¤t.side==player.side; }); } else{ targets=result.targets; } player.logSkill('hongyuan',targets); game.asyncDraw(targets); trigger.num--; } }, }, huanshi:{ audio:2, trigger:{global:'judge'}, filter:function(event,player){ return player.countCards('he')>0; }, logTarget:'player', check:function(event,player){ if(get.attitude(player,event.player)<=0) return false; var cards=player.getCards('he'); var judge=event.judge(event.player.judging[0]); for(var i=0;ijudge) return true; if(_status.currentPhase!=player&&judge2==judge&&get.color(cards[i])=='red'&&get.useful(cards[i])<5) return true; } return false; }, content:function(){ "step 0" var target=trigger.player; var judge=trigger.judge(target.judging[0]); var attitude=get.attitude(target,player); target.choosePlayerCard('请选择代替判定的牌','he','visible',true,player).set('ai',function(button){ var card=button.link; var judge=_status.event.judge; var attitude=_status.event.attitude; var result=trigger.judge(card)-judge; var player=_status.event.player; if(result>0){ return 20+result; } if(result==0){ if(_status.currentPhase==player) return 0; if(attitude>=0){ return get.color(card)=='red'?7:0-get.value(card); } else{ return get.color(card)=='black'?10:0+get.value(card); } } if(attitude>=0){ return get.color(card)=='red'?0:-10+result; } else{ return get.color(card)=='black'?0:-10+result; } }).set('filterButton',function(button){ var player=_status.event.target; var card=button.link; var mod2=game.checkMod(card,player,'unchanged','cardEnabled2',player); if(mod2!='unchanged') return mod2; var mod=game.checkMod(card,player,'unchanged','cardRespondable',player); if(mod!='unchanged') return mod; return true; }).set('judge',judge).set('attitude',attitude); "step 1" if(result.bool){ event.card=result.links[0]; player.respond(event.card,'highlight','noOrdering').nopopup=true; } else{ event.finish(); } "step 2" if(result.bool){ if(trigger.player.judging[0].clone){ trigger.player.judging[0].clone.classList.remove('thrownhighlight'); game.broadcast(function(card){ if(card.clone){ card.clone.classList.remove('thrownhighlight'); } },trigger.player.judging[0]); game.addVideo('deletenode',player,get.cardsInfo([trigger.player.judging[0].clone])); } game.cardsDiscard(trigger.player.judging[0]); trigger.player.judging[0]=event.card; trigger.orderingCards.add(event.card); game.log(trigger.player,'的判定牌改为',event.card); game.delay(2); } }, ai:{ rejudge:true, tag:{ rejudge:1, } } }, mingzhe:{ audio:2, trigger:{ player:['useCard','respond','loseAfter'], global:'loseAsyncAfter', }, frequent:true, filter:function(event,player){ if(player==_status.currentPhase) return false; if(event.name.indexOf('lose')!=0) return get.color(event.card)=='red'; if(event.type!='discard') return false; var evt=event.getl(player); if(evt&&evt.cards2){ for(var i=0;i0&¤t.hp<=player.countCards('he')&&player.inRange(current); }); }, filterCard:function(){ if(ui.selected.targets.length) return false; return true; }, position:'he', selectCard:[1,Infinity], complexSelect:true, complexCard:true, filterTarget:function(card,player,target){ return target!=player&&target.hp>0&&player.inRange(target)&&ui.selected.cards.length==target.hp; }, check:function(card){ var player=_status.event.player; if(game.hasPlayer(function(current){ return current!=player&¤t.hp>0&&player.inRange(current)&&ui.selected.cards.length==current.hp&&get.damageEffect(current,player,player)>0; })) return 0; switch(ui.selected.cards.length){ case 0:return 8-get.value(card); case 1:return 6-get.value(card); case 2:return 3-get.value(card); default:return 0; } }, content:function(){ player.addTempSkill('duwu3'); target.damage('nocard'); }, ai:{ damage:true, order:2, result:{ target:function(player,target){ return get.damageEffect(target,player); } }, threaten:1.5, expose:0.3 } }, duwu2:{charlotte:true}, duwu3:{ trigger:{global:'dyingAfter'}, forced:true, popup:false, charlotte:true, filter:function(event,player){ return event.player.isIn()&&event.reason&&event.reason.getParent().name=='duwu'; }, content:function(){ player.loseHp(); player.addTempSkill('duwu2'); } }, yicong:{ trigger:{ player:["changeHp"], }, audio:2, audioname:['re_gongsunzan'], forced:true, filter:function(event,player){ return get.sgn(player.hp-2.5)!=get.sgn(player.hp-2.5-event.num); }, content:function (){}, mod:{ globalFrom:function(from,to,current){ if(from.hp>2) return current-1; }, globalTo:function(from,to,current){ if(to.hp<=2) return current+1; }, }, ai:{ threaten:0.8 } }, yongsi:{ audio:'yongsi1', group:['yongsi1','yongsi2'], locked:true, ai:{ threaten:2.2 } }, yongsi1:{ audio:2, trigger:{player:'phaseDrawBegin2'}, forced:true, filter:function(event,player){ return !event.numFixed; }, content:function(){ trigger.num+=game.countGroup(); } }, yongsi2:{ audio:2, trigger:{player:'phaseDiscardBegin'}, forced:true, content:function(){ player.chooseToDiscard(game.countGroup(),'he',true); } }, bifa:{ trigger:{player:'phaseJieshuBegin'}, direct:true, audio:2, filter:function(event,player){ return player.countCards('h')>0; }, content:function(){ "step 0" player.chooseCardTarget({ filterCard:true, filterTarget:function(card,player,target){ return player!=target&&!target.getExpansions('bifa2').length; }, ai1:function(card){ return 7-get.value(card); }, ai2:function(target){ var num=target.hasSkillTag('maixie')?2:0; return -get.attitude(_status.event.player,target)-num; }, prompt:get.prompt2('bifa'), }); "step 1" if(result.bool){ event.forceDie=true; var target=result.targets[0]; event.target=target; player.logSkill('bifa',result.targets[0]); event.card=result.cards[0]; target.storage.bifa2=[result.cards[0],player]; if(!_status.connectMode&&player.isUnderControl(true)) player.$giveAuto(result.cards[0],target,false); else player.$give(1,target,false); target.addToExpansion(result.cards[0]).gaintag.add('bifa2'); } else event.finish(); "step 2" if(target.getExpansions('bifa2').contains(card)){ target.addSkill('bifa2'); } else delete target.storage.bifa2; }, ai:{ threaten:1.7, expose:0.3 } }, bifa2:{ trigger:{player:'phaseZhunbeiBegin'}, forced:true, charlotte:true, audio:false, filter:function(event,player){ return player.storage.bifa2&&player.getExpansions('bifa2').contains(player.storage.bifa2[0]); }, content:function(){ "step 0" if(player.storage.bifa2[1].isIn()&&player.countCards('h')){ player.chooseCard(get.translation(player.storage.bifa2[1])+'的笔伐牌为:',function(card){ return get.type(card,'trick')==_status.event.type; }).set('ai',function(card){ return 8-get.value(card); }).set('type',get.type(player.storage.bifa2[0],'trick')).set('promptx',[[player.storage.bifa2[0]],'请交给其一张与此牌类别相同的手牌,否则失去1点体力' ]); } else{ event.directfalse=true; } "step 1" if(result.bool&&!event.directfalse){ player.give(result.cards,player.storage.bifa2[1]); player.gain(player.storage.bifa2[0],'draw'); } else{ player.loseHp(); } "step 2" player.removeSkill('bifa2'); }, marktext:'檄', intro:{ markcount:()=>1, name:'笔伐', content:'已成为〖笔伐〗的目标', }, onremove:function(player,skill){ var cards=player.getExpansions(skill); if(cards.length) player.loseToDiscardpile(cards); delete player.storage[skill]; }, }, songci:{ audio:2, enable:'phaseUse', filter:function(event,player){ if(!player.storage.songci) return true; return game.hasPlayer(function(current){ return !player.storage.songci.contains(current); }); }, init:function(player){ if(!player.storage.songci) player.storage.songci=[]; }, filterTarget:function(card,player,target){ return (!player.storage.songci||!player.storage.songci.contains(target)); }, content:function(){ if(target.countCards('h')>target.hp){ target.chooseToDiscard(2,'he',true); } else{ target.draw(2); } if(!player.storage.songci) player.storage.songci=[]; player.storage.songci.push(target); player.storage.songci.sortBySeat(); player.markSkill('songci'); }, intro:{ content:'已对$发动过〖颂词〗' }, ai:{ order:7, threaten:1.6, expose:0.2, result:{ target:function(player,target){ if(target.countCards('h')<=target.hp){ return 1; } else if(target.countCards('h')>target.hp){ return -1; } } } }, group:'songci_draw', }, songci_draw:{ audio:'songci', trigger:{player:'phaseDiscardEnd'}, forced:true, filter:function(event,player){ if(!player.storage.songci) return false; return !game.hasPlayer(function(current){ return !player.storage.songci.contains(current); }); }, content:function(){ player.draw(); }, }, baobian:{ audio:2, trigger:{player:['phaseBefore','changeHp']}, forced:true, popup:false, init:function(player){ if(game.online) return; player.removeAdditionalSkill('baobian'); var list=[]; if(player.hp<=3){ //if(trigger.num!=undefined&&trigger.num<0&&player.hp-trigger.num>1) player.logSkill('baobian'); list.push('oltiaoxin'); } if(player.hp<=2){ list.push('olpaoxiao'); } if(player.hp<=1){ list.push('xinshensu'); } if(list.length){ player.addAdditionalSkill('baobian',list); } }, derivation:['oltiaoxin','olpaoxiao','xinshensu'], content:function(){ player.removeAdditionalSkill('baobian'); var list=[]; if(player.hp<=3){ if(trigger.num!=undefined&&trigger.num<0&&player.hp-trigger.num>1) player.logSkill('baobian'); list.push('oltiaoxin'); } if(player.hp<=2){ list.push('olpaoxiao'); } if(player.hp<=1){ list.push('xinshensu'); } if(list.length){ player.addAdditionalSkill('baobian',list); } }, ai:{ maixie:true, effect:{ target:function(card,player,target){ if(get.tag(card,'damage')){ if(!target.hasFriend()) return; if(target.hp>=4) return [0,1]; } if(get.tag(card,'recover')&&player.hp>=player.maxHp-1) return [0,0]; } } } }, chongzhen:{ group:['chongzhen1','chongzhen2'], audio:'chongzhen1', ai:{ combo:'ollongdan', mingzhi:false, effect:{ target:function(card,player,target,current){ if(get.tag(card,'respondShan')||get.tag(card,'respondSha')){ if(get.attitude(target,player)<=0){ if(current>0) return; if(target.countCards('h')==0) return 1.6; if(target.countCards('h')==1) return 1.2; if(target.countCards('h')==2) return [0.8,0.2,0,-0.2]; return [0.4,0.7,0,-0.7]; } } }, }, } }, chongzhen1:{ audio:2, trigger:{player:'useCard'}, filter:function(event,player){ if((event.card.name!='sha'&&event.card.name!='shan')||(event.skill!='longdan_shan'&&event.skill!='longdan_sha'&& event.skill!='fanghun_shan'&&event.skill!='fanghun_sha'&&event.skill!='ollongdan')) return false; var target=lib.skill.chongzhen1.logTarget(event,player); return target&&target.countGainableCards(player,'h')>0; }, logTarget:function(event,player){ if(event.card.name=='sha') return event.targets[0]; return event.respondTo[0]; }, prompt2:'当你因发动〖龙胆〗而使用或打出【杀】或【闪】时,你可以获得对方的一张手牌。', content:function(){ var target=lib.skill.chongzhen1.logTarget(trigger,player); player.gainPlayerCard(target,'h',true); } }, chongzhen2:{ audio:2, trigger:{player:'respond'}, filter:function(event,player){ if(event.skill!='longdan_shan'&&event.skill!='longdan_sha'&& event.skill!='fanghun_shan'&&event.skill!='fanghun_sha'&&event.skill!='ollongdan') return false; return event.source&&event.source.countGainableCards(player,'h')>0; }, logTarget:'source', prompt2:'当你因发动〖龙胆〗而使用或打出【杀】或【闪】时,你可以获得对方的一张手牌。', content:function(){ player.gainPlayerCard(trigger.source,'h',true); } }, lihun:{ audio:2, enable:'phaseUse', usable:1, filterTarget:function(card,player,target){ return player!=target&&target.hasSex('male'); }, filterCard:true, position:'he', content:function(){ player.gainPlayerCard(target,true,'h',target.countCards('h')); player.turnOver(); player.addSkill('lihun2'); player.storage.lihun=target; }, check:function(card){return 8-get.value(card)}, ai:{ order:10, result:{ player:function(player){ if(player.classList.contains('turnedover')) return 10; return 0; }, target:function(player,target){ if(target.countCards('h')>target.hp) return target.hp-target.countCards('h'); return 0; } }, threaten:1.5, effect:{ target:function(card){ if(card.name=='guiyoujie') return [0,2]; } } }, }, lihun2:{ trigger:{player:'phaseUseEnd'}, forced:true, popup:false, audio:false, content:function(){ "step 0" var cards=player.getCards('he'); player.removeSkill('lihun2'); if(player.storage.lihun.classList.contains('dead')||player.storage.lihun.hp<=0||cards.length==0){ event.finish(); } else{ if(cards.length0; }, content:function(){ "step 0" player.chooseCardTarget({ filterCard:function(card){ return get.type(card)=='equip'; }, position:'he', filterTarget:function(card,player,target){ return target.canEquip(card); }, ai1:function(card){ return 6-get.value(card); }, ai2:function(target){ return get.attitude(_status.event.player,target)-3; }, prompt:get.prompt2('yuanhu') }); "step 1" if(result.bool){ player.logSkill('yuanhu',result.targets); var thisTarget=result.targets[0]; var thisCard=result.cards[0]; thisTarget.equip(thisCard); event.target=thisTarget; if(thisTarget!=player){ player.$give(thisCard,thisTarget,false); } switch(get.subtype(thisCard)){ case 'equip1':{ if(!game.hasPlayer(function(current){ return get.distance(thisTarget,current)<=1; })){ event.finish(); return; } game.delay(); player.chooseTarget(true,function(card,player,target){ return get.distance(_status.event.thisTarget,target)<=1&&target.countCards('hej'); }).set('ai',function(target){ var attitude=get.attitude(_status.event.player,target); if(attitude>0&&target.countCards('j')){ return attitude*1.5; } return -attitude; }).set('thisTarget',thisTarget); return; } case 'equip2':{ thisTarget.draw();event.finish(); return; } case 'equip5':{ event.finish(); return; } default:{ thisTarget.recover(); event.finish(); return; } } } else{ event.finish(); } "step 2" if(result.targets.length){ player.discardPlayerCard(true,result.targets[0],'hej'); } }, }, tianming:{ audio:2, trigger:{target:'useCardToTargeted'}, check:function(event,player){ var cards=player.getCards('h'); if(cards.length<=2){ for(var i=0;iplayers[1].hp&&players[0]!=player){ players[0].chooseBool(get.prompt2('tianming')); event.player=players[0]; } else{ event.finish(); } "step 1" if(result.bool){ player.chooseToDiscard(2,true,'he'); player.draw(2); } }, ai:{ effect:{ target:function(card,player,target,current){ if(card.name=='sha') return [1,0.5]; } } } }, mizhao:{ enable:'phaseUse', usable:1, audio:2, filter:function(event,player){ return player.countCards('h')>0; }, filterCard:true, selectCard:-1, filterTarget:function(card,player,target){ return player!=target; }, discard:false, lose:false, delay:false, ai:{ order:1, result:{ player:0, target:function(player,target){ if(target.hasSkillTag('nogain')) return 0; if(player.countCards('h')>1){ return 1; } var players=game.filterPlayer(); for(var i=0;i0){ return eff-10; } return eff; }).set('target1',event.target1).set('forceDie',true); "step 3" if(result.targets.length){ event.target2=result.targets[0]; event.target1.line(event.target2); event.target1.chooseToCompare(event.target2); } else{ event.finish(); } "step 4" if(!result.tie){ if(result.bool){ if(event.target1.canUse({name:'sha',isCard:true},event.target2,false)) event.target1.useCard({name:'sha',isCard:true},event.target2); } else if(event.target2.canUse({name:'sha',isCard:true},event.target1,false)){ event.target2.useCard({name:'sha',isCard:true},event.target1); } } } }, gongao:{ audio:2, trigger:{global:'dieAfter'}, forced:true, content:function(){ player.gainMaxHp(); player.recover(); }, ai:{ threaten:1.5 }, }, juyi:{ skillAnimation:true, animationColor:'thunder', audio:2, derivation:['benghuai','weizhong'], trigger:{player:'phaseZhunbeiBegin'}, filter:function(event,player){ return player.maxHp>game.countPlayer()&&!player.storage.juyi; }, forced:true, unique:true, juexingji:true, content:function(){ player.draw(player.maxHp); player.addSkill('benghuai'); player.addSkill('weizhong'); player.storage.juyi=true; player.awakenSkill('juyi'); } }, weizhong:{ audio:2, trigger:{player:['gainMaxHpEnd','loseMaxHpEnd']}, forced:true, content:function(){ player.draw(player.isMinHandcard()?2:1); }, }, kuangfu:{ trigger:{source:'damageSource'}, audio:2, filter:function(event){ if(event._notrigger.contains(event.player)) return false; return event.card&&event.card.name=='sha'&&event.player.countCards('e'); }, logTarget:'player', preHidden:true, check:function(event,player){ return get.attitude(player,event.player)<=0; }, content:function(){ "step 0" var neg=get.attitude(player,trigger.player)<=0; player.choosePlayerCard('e',trigger.player).set('ai',function(button){ if(_status.event.neg){ return get.buttonValue(button); } return 0; }).set('neg',neg); "step 1" if(result.bool){ event.card=result.links[0]; if(player.canEquip(event.card)){ player.chooseBool('是否将'+get.translation(event.card)+'置入自己的装备区?').ai=function(){ return true; }; } else event._result={bool:false}; } else event.finish(); "step 2" if(result.bool){ trigger.player.$give(event.card,player,false); player.equip(event.card); } else trigger.player.discard(event.card); } }, "xinfu_lingren":{ usable:1, audio:2, trigger:{ player:"useCardToPlayered", }, direct:true, filter:function(event,player){ if(event.getParent().triggeredTargets3.length>1) return false; if(!player.isPhaseUsing()) return false; if(!['basic','trick'].contains(get.type(event.card))) return false; if(get.tag(event.card,'damage')) return true; return false; }, content:function(){ 'step 0' player.chooseTarget(get.prompt('xinfu_lingren'),'选择一名目标角色并猜测其手牌构成',function(card,player,target){ return _status.event.targets.contains(target); }).set('ai',function(target){ return 2-get.attitude(_status.event.player,target); }).set('targets',trigger.targets); 'step 1' if(result.bool){ player.logSkill('xinfu_lingren',result.targets); var target=result.targets[0]; event.target=target; event.choice={ basic:false, trick:false, equip:false, } player.chooseButton(['凌人:猜测其有哪些类别的手牌',[['basic','trick','equip'],'vcard']],[0,3],true).set('ai',function(button){ switch(button.link[2]){ case 'basic': var rand=0.95; if(!target.countCards('h',{type:['basic']})) rand=0.05; if(!target.countCards('h')) rand=0; return Math.random()i[2]); if(!event.isMine()&&!event.isOnline()) game.delayx(); var list=[]; event.num=0; ['basic','trick','equip'].forEach(type=>{ if(choices.contains(type)==target.hasCard({type:type},'h')) event.num++; }) } 'step 3' player.popup('猜对'+get.cnNumber(event.num)+'项'); game.log(player,'猜对了'+get.cnNumber(event.num)+'项'); if(event.num>0){ target.addTempSkill('lingren_adddamage'); target.storage.lingren={ card:trigger.card, //player:event.targett, } } if(event.num>1) player.draw(2); if(event.num>2){ player.addTempSkill('lingren_jianxiong',{player:'phaseBegin'}); player.addTempSkill('lingren_xingshang',{player:'phaseBegin'}); } }, ai:{ threaten:2.4, }, }, "lingren_adddamage":{ onremove:function (player){ delete player.storage.lingren; }, trigger:{ player:"damageBegin3", }, filter:function (event,player){ var info=player.storage.lingren; return event.card&&event.card==info.card; }, silent:true, popup:false, forced:true, charlotte:true, content:function (){ trigger.num++; }, }, "lingren_jianxiong":{ audio:1, trigger:{ player:"damageEnd", }, content:function (){ "step 0" if(get.itemtype(trigger.cards)=='cards'&&get.position(trigger.cards[0],true)=='o'){ player.gain(trigger.cards,"gain2"); } player.draw("nodelay"); }, ai:{ maixie:true, "maixie_hp":true, effect:{ target:function (card,player,target){ if(player.hasSkillTag('jueqing',false,target)) return [1,-1]; if(get.tag(card,'damage')&&player!=target) return [1,0.6]; }, }, }, }, "lingren_xingshang":{ audio:1, inherit:'rexingshang', }, "xinfu_fujian":{ audio:2, trigger:{ player:"phaseJieshuBegin", }, filter:function (event,player){ return !game.hasPlayer(function(current){ return current.countCards('h')==0; }); }, forced:true, content:function (){ event.num=0; var list=game.filterPlayer(function(target){ if(target.isMinHandcard()) event.num=target.countCards('h'); return player!=target; }); if(event.num<1){ event.finish(); } else{ var target=list.randomGet(); var cards=target.getCards('h').randomGets(event.num); player.line(target); var content=[get.translation(target)+'的部分手牌',cards]; game.log(player,'观看了',target,'的部分手牌'); player.chooseControl('ok').set('dialog',content); } }, }, "xinfu_xionghuo":{ group:["xinfu_xionghuo_damage","xinfu_xionghuo_begin","xinfu_xionghuo_init"], subSkill:{ begin:{ audio:'xinfu_xionghuo', logTarget:'player', line:false, forced:true, trigger:{ global:"phaseUseBegin", }, filter:function (event,player){ return event.player.countMark('xionghuo')>0&&event.player!=player; }, content:function (){ 'step 0' trigger.player.removeMark('xionghuo',trigger.player.countMark('xionghuo')); var list=[1,2,3]; var num=list.randomGet(); event.goto(num); 'step 1' player.line(trigger.player,'fire'); trigger.player.damage('fire'); if(!trigger.player.storage.xionghuo_disable) trigger.player.storage.xionghuo_disable=[]; trigger.player.storage.xionghuo_disable.push(player); trigger.player.addTempSkill('xionghuo_disable','phaseAfter'); event.goto(4); 'step 2' player.line(trigger.player,'water'); trigger.player.loseHp(); trigger.player.addMark('xionghuo_low',1,false); trigger.player.addTempSkill('xionghuo_low','phaseAfter'); event.goto(4); 'step 3' player.line(trigger.player,'green'); var card1=trigger.player.getCards('h').randomGet(); var card2=trigger.player.getCards('e').randomGet(); var list=[]; if(card1) list.push(card1); if(card2) list.push(card2); if(list.length>0){ player.gain(list,trigger.player,'giveAuto','bySelf'); } 'step 4' game.delay(); }, }, damage:{ audio:"xinfu_xionghuo", sub:true, forced:true, trigger:{ source:"damageBegin1", }, filter:function (event,player){ return event.player.countMark('xionghuo')>0&&event.player!=player; }, content:function (){ trigger.num++; }, }, init:{ audio:'xinfu_xionghuo', trigger:{ global:"phaseBefore", player:"enterGame", }, forced:true, locked:false, filter:function(event,player){ return (event.name!='phase'||game.phaseNumber==0); }, content:function(){ player.addMark("xionghuo",3); }, }, }, audio:2, enable:"phaseUse", filter:function(event,player){ return player.countMark('xionghuo')>0; }, filterTarget:function (card,player,target){ if(target.hasMark('xionghuo')) return false; return player!=target>0; }, content:function (){ player.removeMark('xionghuo',1); target.addMark('xionghuo',1); }, ai:{ order:11, result:{ target:function(player,target){ if((player.countMark('xionghuo')>=2||!game.hasPlayer(function(current){ return current!=player&&get.attitude(player,current)<0&¤t.hasMark('xionghuo'); }))&&player.countCards('h',function(card){ return get.tag(card,'damage')&&player.canUse(card,target,null,true) &&player.getUseValue(card)>0&&get.effect_use(target,card,player)>0 &&target.hasSkillTag('filterDamage',null,{ player:player, card:card, }); })) return 3/Math.max(1,target.hp); if((!player.hasUnknown()&&game.countPlayer(function(current){ return get.attitude(player,current)<0; })<=1)||player.countMark('xionghuo')>=2){ return -1; } return 0; }, }, effect:{ player:function(card,player,target){ if(player!=target&&get.tag(card,'damage')&&target&&target.hasMark('xionghuo')&&!target.hasSkillTag('filterDamage',null,{ player:player, card:card, })) return [1,0,1,-2]; }, }, threaten:1.6, }, }, xionghuo:{ marktext:"戾", mark:true, intro:{ name:'暴戾', content:"mark", }, locked:true, }, "xionghuo_disable":{ mod:{ playerEnabled:function (card,player,target){ if(card.name=='sha'&&(player.storage.xionghuo_disable&&player.storage.xionghuo_disable.contains(target))) return false; }, }, onremove:true, charlotte:true, mark:true, marktext:"禁", intro:{ content:"本回合内不能对$使用【杀】", }, }, "xionghuo_low":{ mod:{ maxHandcard:function (player,num){ return num-player.countMark('xionghuo_low'); }, }, marktext:"减", mark:true, onremove:true, charlotte:true, intro:{ content:"本回合内手牌上限-#", }, }, "xinfu_shajue":{ audio:2, trigger:{ global:"dying", }, filter:function (event,player){ return event.player.hp<0&&event.player!=player; }, forced:true, //priority:7, content:function (){ if(trigger.parent.name=='damage'&&get.itemtype(trigger.parent.cards)=='cards'&&get.position(trigger.parent.cards[0],true)=='o'){ player.gain(trigger.parent.cards,"gain2"); } player.addMark('xionghuo',1); }, }, "xinfu_jianjie":{ derivation:["jianjie_faq"], group:["xinfu_jianjie1","xinfu_jianjie2"], audio:3, trigger:{ player:"phaseZhunbeiBegin", }, direct:true, filter:function(event,player){ if(player.phaseNumber>1) return false; return !game.hasPlayer(function(current){ return current.hasSkill('smh_huoji')||current.hasSkill('smh_lianhuan'); }); }, content:function(){ "step 0" player.chooseTarget('请将「龙印」交给一名角色',true,function(card,player,target){ return target!=player; }).set('ai',function(target){ var player=_status.event.player; return 10+get.attitude(player,target); }); "step 1" if(result.bool&&result.targets&&result.targets.length){ var target=result.targets[0]; player.logSkill('xinfu_jianjie',target); player.line(target,'fire'); target.addSkill('smh_huoji'); game.delay(); } if(game.hasPlayer(function(current){ return !current.hasSkill('smh_huoji')&¤t!=player })){ player.chooseTarget('请将「凤印」交给一名角色',true,function(card,player,target){ return target!=player&&!target.hasSkill('smh_huoji'); }).set('ai',function(target){ var player=_status.event.player; return 10+get.attitude(player,target); }); } else event.finish(); "step 2" if(result.bool&&result.targets&&result.targets.length){ var target=result.targets[0]; player.logSkill('xinfu_jianjie',target); player.line(target,'green'); target.addSkill('smh_lianhuan'); game.delay(); } }, }, "xinfu_jianjie1":{ audio:3, prompt:"你的第一个准备阶段,你令两名不同的角色分别获得龙印与凤印;出牌阶段限一次(你的第一个回合除外),或当拥有龙印、凤印的角色死亡时,你可以转移龙印、凤印。", enable:"phaseUse", usable:1, filter:function (event,player){ if(player.phaseNumber==1) return false; if(!game.hasPlayer(function(current){ return current.hasSkill('smh_huoji')||current.hasSkill('smh_lianhuan'); })) return false; return true; }, filterTarget:function (card,player,target){ if(ui.selected.targets.length==1){ return true; }else{ return target.hasSkill('smh_huoji')||target.hasSkill('smh_lianhuan'); } }, targetprompt:["移走印","得到印"], selectTarget:2, multitarget:true, content:function (){ 'step 0' if(targets[0].hasSkill('smh_huoji')&&targets[0].hasSkill('smh_lianhuan')){ player.chooseControl('龙印','凤印').set('prompt','请选择要移动的印'); } else{ if(targets[0].hasSkill('smh_huoji')) event._result={control:'龙印'}; else event._result={control:'凤印'}; } 'step 1' if(result.control=='龙印'){ targets[0].removeSkill('smh_huoji'); targets[1].addSkill('smh_huoji'); } else{ targets[0].removeSkill('smh_lianhuan'); targets[1].addSkill('smh_lianhuan'); } }, ai:{ order:8, result:{ target:function (player,target){ if(ui.selected.targets.length==0){ return get.attitude(player,target)<0?-999:-3; } else{ return target.countCards('h')+1; } }, }, expose:0.4, threaten:3, }, }, "smh_huoji":{ charlotte:true, group:["smh_yeyan"], mark:true, marktext:"龙", intro:{ name:"龙印", content:"
  • 出牌阶段限三次,你可以将一张红色牌当【火攻】使用。
  • 若你同时拥有「凤印」,则你视为拥有技能〖业炎〗。(发动〖业炎〗后,弃置龙印和凤印)", }, usable:3, audio:2, enable:"chooseToUse", position:"hes", filterCard:function(card){ return get.color(card)=='red'; }, viewAs:{ name:"huogong", }, viewAsFilter:function (player){ if(player.hasSkill('huoji')) return false; if(!game.hasPlayer(function(current){ return current.hasSkill('xinfu_jianjie'); })) return false; if(!player.countCards('hes',{color:'red'})) return false; }, prompt:"将一张红色牌当火攻使用", check:function (card){ var player=_status.currentPhase; if(player.countCards('h')>player.hp){ return 6-get.value(card); } return 4-get.value(card) }, ai:{ fireAttack:true, }, }, "smh_lianhuan":{ audio:2, charlotte:true, enable:"phaseUse", filter:function (event,player){ if(player.hasSkill('lianhuan')||player.hasSkill('xinlianhuan')) return false; if(!game.hasPlayer(function(current){ return current.hasSkill('xinfu_jianjie'); })) return false; if((player.getStat().skill.smh_lianhuan||0)+(player.getStat().skill.smh_lianhuan1||0)>=3) return false; return player.countCards('hs',{suit:'club'})>0; }, filterCard:function (card){ return get.suit(card)=='club'; }, viewAs:{ name:"tiesuo", }, position:'hs', prompt:"将一张梅花牌当铁锁连环使用", check:function (card){return 6-get.value(card)}, mark:true, marktext:"凤", intro:{ name:"凤印", content:"
  • 出牌阶段限三次,你可以将你的任意一张梅花手牌当作【铁索连环】使用或重铸。", }, group:["smh_lianhuan1"], }, "xinfu_jianjie2":{ trigger:{ global:"dieAfter", }, forced:true, direct:true, silent:true, popup:false, filter:function (event,player){ return event.player.hasSkill('smh_huoji')||event.player.hasSkill('smh_lianhuan'); }, content:function (){ "step 0" player.logSkill('xinfu_jianjie'); "step 1" if(trigger.player.hasSkill('smh_huoji')){ player.chooseTarget('请将'+get.translation(trigger.player)+'的「龙印」交给一名角色',true).set('ai',function(target){ var player=_status.event.player; return 10+get.attitude(player,target); }); }else event.goto(2); "step 2" if(result.bool&&result.targets&&result.targets.length){ var target=result.targets[0]; player.line(target,'fire'); target.addSkill('smh_huoji'); game.delay(); } "step 3" if(trigger.player.hasSkill('smh_lianhuan')){ player.chooseTarget('请将'+get.translation(trigger.player)+'的「凤印」交给一名角色',true).set('ai',function(target){ var player=_status.event.player; return 10+get.attitude(player,target); }); }else event.finish(); "step 4" if(result.bool&&result.targets&&result.targets.length){ var target=result.targets[0]; player.line(target,'green'); target.addSkill('smh_lianhuan'); game.delay(); } }, }, "smh_lianhuan1":{ enable:"phaseUse", filter:function (event,player){ if(player.hasSkill('lianhuan')||player.hasSkill('xinlianhuan')) return false; if(!game.hasPlayer(function(current){ return current.hasSkill('xinfu_jianjie'); })) return false; if((player.getStat().skill.smh_lianhuan||0)+(player.getStat().skill.smh_lianhuan1||0)>=3) return false; return player.hasCard(card=>lib.skill.smh_lianhuan1.filterCard(card,player),'h'); }, filterCard:(card,player)=>get.suit(card)=='club'&&player.canRecast(card), check:function(card){ return -1; }, content:function(){ player.recast(cards); }, discard:false, lose:false, delay:false, prompt:"将一张梅花牌置入弃牌堆并摸一张牌", ai:{ basic:{ order:1, }, result:{ player:1 } }, forced:true }, "smh_yeyan":{ unique:true, enable:"phaseUse", audio:3, skillAnimation:true, animationColor:'gray', prompt:"限定技,出牌阶段,你可以对一至三名角色造成至多共3点火焰伤害(你可以任意分配每名目标角色受到的伤害点数),若你将对一名角色分配2点或更多的火焰伤害,你须先弃置四张不同花色的手牌再失去3点体力。", filter:function (event,player){ if(!game.hasPlayer(function(current){ return current.hasSkill('xinfu_jianjie'); })) return false; return player.hasSkill('smh_lianhuan'); }, filterTarget:function (card,player,target){ var length=ui.selected.cards.length; return (length==0||length==4); }, filterCard:function (card){ var suit=get.suit(card); for(var i=0;i1){ player.chooseCardButton('称好:请选择要分配的牌',true,event.cards,[1,event.cards.length]).set('ai',function(button){ if(ui.selected.buttons.length==0) return 1; return 0; }); } else if(event.cards.length==1){ event._result={links:event.cards.slice(0),bool:true}; } else{ event.finish(); } 'step 2' if(result.bool){ event.cards.removeArray(result.links); event.togive=result.links.slice(0); player.chooseTarget('选择一名角色获得'+get.translation(result.links),true).set('ai',function(target){ var att=get.attitude(_status.event.player,target); if(_status.event.enemy){ return -att; } else if(att>0){ return att/(1+target.countCards('h')); } else{ return att/100; } }).set('enemy',get.value(event.togive[0],player,'raw')<0); } 'step 3' if(result.targets.length){ var id=result.targets[0].playerid,map=event.given_map; if(!map[id]) map[id]=[]; map[id].addArray(event.togive); } if(cards.length>0) event.goto(1); 'step 4' if(_status.connectMode){ game.broadcastAll(function(){delete _status.noclearcountdown;game.stopCountChoose()}); } var list=[]; for(var i in event.given_map){ var source=(_status.connectMode?lib.playerOL:game.playerMap)[i]; player.line(source,'green'); list.push([source,event.given_map[i]]); } game.loseAsync({ gain_list:list, giver:player, animate:'draw', }).setContent('gaincardMultiple'); }, }, "jianjie_faq":{}, "xinfu_wuniang":{ trigger:{ player:["useCard","respond"], }, audio:2, direct:true, filter:function (event,player){ return event.card.name=='sha'; }, content:function (){ 'step 0' player.chooseTarget(get.prompt('xinfu_wuniang'),'获得一名其他角色的一张牌,然后其和场上所有的“关索”摸一张牌。',function(card,player,target){ if(player==target) return false; return target.countGainableCards(player,'he')>0; }).set('ai',function(target){ return 10-get.attitude(_status.event.player,target); }); 'step 1' if(result.bool){ var target=result.targets[0]; player.logSkill('xinfu_wuniang',target); player.line(target,'fire'); event.draws=game.filterPlayer(function(current){ if(current==target) return true; return ['guansuo','old_guansuo'].contains(current.name)||['guansuo','old_guansuo'].contains(current.name2); }); player.gainPlayerCard(target,'he',true); } else event.finish(); 'step 2' game.asyncDraw(event.draws,1); game.delay(); }, }, "xinfu_xushen":{ derivation:["xinfu_zhennan"], audio:2, subSkill:{ count:{ trigger:{ player:"recoverBegin", }, forced:true, silent:true, popup:false, filter:function (event,player){ if(!event.card||event.card.name!='tao') return false; if(!event.source||!event.source.hasSex('male')) return false; if(!player.isDying()) return false; if(game.hasPlayer(function(current){ return current.name=='guansuo'||current.name2=='guansuo'; })) return false; return true; }, content:function (){ trigger.xinfu_xushen=true; }, sub:true, }, }, group:["xinfu_xushen_count"], trigger:{ player:"recoverAfter", }, limited:true, init:function (player){ player.storage.xinfu_xushen=false; }, filter:function (event,player){ if(player.storage.xinfu_xushen) return false; if(player.isDying()) return false; return event.xinfu_xushen==true; }, direct:true, skillAnimation:true, animationColor:'fire', content:function (){ "step 0" trigger.source.chooseBool('【许身】:是否将自己的一张武将牌替换为“关索”?').set('ai',function(){ return false; }); "step 1" if(result.bool){ player.awakenSkill('xinfu_xushen'); player.logSkill('xinfu_xushen',trigger.source); if(trigger.source.name2!=undefined){ trigger.source.chooseControl(trigger.source.name,trigger.source.name2).set('prompt','请选择要更换的武将牌'); }else event._result={control:trigger.source.name}; } else event.finish(); "step 2" trigger.source.reinit(result.control,'guansuo'); if(_status.characterlist){ _status.characterlist.add(result.control); _status.characterlist.remove('guansuo'); } player.recover(); player.addSkill('xinfu_zhennan'); }, mark:true, intro:{ content:"limited", }, }, "xinfu_falu":{ subSkill:{ spade:{ marktext:'♠︎️', intro:{ name:'紫薇', content:'mark', }, }, heart:{ marktext:'♥︎️', intro:{ name:'玉清', content:'mark', }, }, club:{ marktext:'♣︎️', intro:{ name:'后土', content:'mark', }, }, diamond:{ marktext:'♦︎', intro:{ name:'勾陈', content:'mark', }, }, }, forced:true, audio:2, trigger:{ player:["loseAfter","enterGame"], global:['loseAsyncAfter',"phaseBefore"], }, filter:function (event,player){ if(event.name.indexOf('lose')!=0) return (event.name!='phase'||game.phaseNumber==0); if(event.type!='discard'||event.getlx===false) return false; var evt=event.getl(player); for(var i=0;i0)) break; top.unshift(cards.shift()); } } bottom=cards; return [top,bottom]; } "step 1" var top=result.moved[0]; var bottom=result.moved[1]; top.reverse(); for(var i=0;i0) return list[0]; return 'cancel2'; }).set('judging',trigger.player.judging[0]); "step 1" if(result.control!='cancel2'){ player.addExpose(0.25); player.removeMark('xinfu_falu_spade'); player.logSkill('xinfu_zhenyi',trigger.player); //player.line(trigger.player); player.popup(result.control); game.log(player,'将判定结果改为了','#y'+get.translation(result.control+2)+5); trigger.fixedResult={ suit:result.control, color:get.color({suit:result.control}), number:5, }; } }, ai:{ rejudge:true, tag:{ rejudge:1, }, expose:0.5, }, }, "zhenyi_club":{ audio:'xinfu_zhenyi', enable:"chooseToUse", viewAsFilter:function(player){ if(player==_status.currentPhase) return false; return player.hasMark('xinfu_falu_club')&&player.countCards('hs')>0; }, filterCard:true, position:"hs", viewAs:{ name:"tao", }, prompt:"弃置「后土♣」标记,将一张手牌当桃使用", check:function(card){return 15-get.value(card)}, precontent:function(){ player.removeMark('xinfu_falu_club'); }, }, zhenyi_heart:{ trigger:{ source:"damageBegin1", }, audio:'xinfu_zhenyi', filter:function (event,player){ return player.hasMark('xinfu_falu_heart'); }, check:function (event,player){ if(get.attitude(player,event.player)>=0) return false; if(event.player.hasSkillTag('filterDamage',null,{ player:player, card:event.card, })) return false; return true; //return player.hasMark('xinfu_falu_spade')||get.color(ui.cardPile.firstChild)=='black'; }, prompt2:function(event){ return '弃置「玉清♥」标记,令对'+get.translation(event.player)+'即将造成的伤害+1。'; }, logTarget:"player", content:function(){ player.removeMark('xinfu_falu_heart'); trigger.num++; }, }, "xinfu_zhennan":{ audio:2, trigger:{ target:"useCardToTargeted", }, filter:function (event,player){ return event.card.name=='nanman'; }, direct:true, content:function (){ "step 0" player.chooseTarget(get.prompt('xinfu_zhennan'),'对一名其他角色造成1-3点随机伤害',function(card,player,target){ return target!=player; }).set('ai',function(target){ var player=_status.event.player; return get.damageEffect(target,player,player); }); "step 1" if(result.bool&&result.targets&&result.targets.length){ game.delay(); player.logSkill('xinfu_zhennan',result.targets); var num=[1,2,3,1,1,2].randomGet(); if(get.isLuckyStar(player)) num=3; //player.line(result.targets[0],'fire'); result.targets[0].damage(num); } }, ai:{ expose:0.25, }, }, }, dynamicTranslate:{ kunfen:function(player){ if(player.storage.kunfen) return '结束阶段开始时,你可以失去1点体力,然后摸两张牌。'; return '锁定技,结束阶段开始时,你失去1点体力,然后摸两张牌。'; }, jieyuan:function(player){ var str='当你对一名其他角色造成伤害时,' if(!player.hasSkill('fenxin_fan')) str+='若其体力值大于或等于你的体力值,'; str+='你可弃置一张'; if(!player.hasSkill('fenxin_nei')) str+='黑色手'; str+='牌,令此伤害+1;当你受到一名其他角色造成的伤害时,'; if(!player.hasSkill('fenxin_zhong')) str+='若其体力值大于或等于你的体力值,'; str+='你可弃置一张' if(!player.hasSkill('fenxin_nei')) str+='红色手'; str+='牌,令此伤害-1。'; return str; }, youlong:function(player){ if(player.storage.youlong) return '转换技,阴,每轮限一次,你可以废除你的一个装备栏,视为使用一张未以此法使用过的普通锦囊牌;阳,每轮限一次,你可以废除你的一个装备栏,视为使用一张未以此法使用过的基本牌。'; return '转换技,阴,每轮限一次,你可以废除你的一个装备栏,视为使用一张未以此法使用过的普通锦囊牌;阳,每轮限一次,你可以废除你的一个装备栏,视为使用一张未以此法使用过的基本牌。'; }, luochong:function(player){ var storage=player.getStorage('luochong'); var str='准备阶段开始时/当你于一回合首次受到伤害后,你可选择本轮内未选择过的一项(每名角色每轮限选一次):' var choiceList=[ '⒈令一名角色回复1点体力。', '⒉令一名角色失去1点体力。', '⒊令一名角色弃置两张牌。', '⒋令一名角色摸两张牌。' ]; for(var i=0;i<4;i++){ if(storage.contains(i)){ choiceList[i]=(''+choiceList[i]+''); } str+=choiceList[i]; } return str; }, spmanwang:function(player){ var num=4-player.countMark('spmanwang'); var str='出牌阶段,你可以弃置任意张牌。然后你依次执行以下选项中的前X项:'; var list=[ '⒈获得〖叛侵〗。', '⒉摸一张牌。', '⒊回复1点体力。', '⒋摸两张牌并失去〖叛侵〗。', ]; for(var i=0;i<4;i++){ if(i==num){ str+=''; } str+=list[i]; } if(num<4) str+=''; return str; }, olbixin:function(player){ var count=player.countMark('olbixin'); if(count<3) return lib.translate.olbixin_info.slice(count*5); return '你可以声明一种牌的类型(每种类型限[3]次),并选择一种你本轮未使用过且有合法目标的的基本牌。你摸[1]张牌,然后若你有此类型的手牌,你将所有此类型的手牌当此基本牌使用。'; }, olfeibai:function(player){ if(player.storage.olfeibai) return '转换技,锁定技。阴:当你因执行你使用的非黑色牌的效果而造成伤害时,此伤害值+1;阳:当你因执行你使用的非红色牌的效果而回复体力时,此回复值+1。'; return '转换技,锁定技。阴:当你因执行你使用的非黑色牌的效果而造成伤害时,此伤害值+1;阳:当你因执行你使用的非红色牌的效果而回复体力时,此回复值+1。' }, olmiuyan:function(player){ if(player.storage.olmiuyan) return '转换技。你可以将一张黑色牌当做【火攻】使用。然后若此技能:处于阳状态且此牌造成了伤害,则你获得此阶段内所有被展示过的牌;处于阴状态且未造成伤害,则你令此技能失效直到本轮结束。'; return '转换技。你可以将一张黑色牌当做【火攻】使用。然后若此技能:处于阳状态且此牌造成了伤害,则你获得此阶段内所有被展示过的牌;处于阴状态且未造成伤害,则你令此技能失效直到本轮结束。'; }, olsaogu:function(player){ if(player.storage.olsaogu) return '转换技。①出牌阶段,你可以。阴:弃置两张牌(不能包含你本阶段弃置过的花色),然后使用其中的【杀】;阳:摸一张牌。②结束阶段,你可以弃置一张牌,令一名其他角色执行你当前〖扫谷①〗的分支。'; return '转换技。①出牌阶段,你可以。阴:弃置两张牌(不能包含你本阶段弃置过的花色),然后使用其中的【杀】;阳:摸一张牌。②结束阶段,你可以弃置一张牌,令一名其他角色执行你当前〖扫谷①〗的分支。'; }, }, characterReplace:{ caoshuang:['caoshuang','ns_caoshuang'], caoang:['caoang','yj_caoang','tw_caoang'], caohong:['tw_re_caohong','caohong','tw_caohong','yj_caohong'], xiahouba:['xiahouba','tw_xiahouba'], maliang:['maliang','re_maliang','tw_maliang','ol_maliang','old_maliang'], dingfeng:['dingfeng','tw_dingfeng','old_dingfeng'], zumao:['zumao','tw_zumao'], beimihu:['tw_beimihu','beimihu'], panfeng:['re_panfeng','panfeng','std_panfeng'], sunluyu:['sunluyu','re_sunluyu'], jin_simazhao:['jin_simazhao','simazhao','sp_simazhao'], jin_wangyuanji:['jin_wangyuanji','wangyuanji','sp_wangyuanji'], wangyun:['re_wangyun','wangyun','dc_wangyun','jsrg_wangyun','old_wangyun','pe_wangyun'], zhangliang:['re_zhangliang','zhangliang'], lingju:['lingju','old_lingju'], guansuo:['guansuo','ol_guansuo'], zhangxingcai:['zhangxingcai','old_zhangxingcai'], lisu:['ol_lisu','lisu'], fuwan:['fuwan','sp_fuwan','tw_fuwan'], huaxin:['ol_huaxin','huaxin','sp_huaxin'], xujing:['xujing','tw_xujing','sp_xujing'], zhaoxiang:['zhaoxiang','tw_zhaoxiang'], dengzhi:['ol_dengzhi','re_dengzhi','tw_dengzhi','dengzhi'], wangrong:['wangrong','ol_wangrong'], zongyu:['tw_zongyu','sp_zongyu','zongyu'], ol_dongzhao:['ol_dongzhao','tw_dongzhao'], mayunlu:['tw_mayunlu','mayunlu'], zhuling:['ol_zhuling','dc_zhuling','zhuling'], zangba:['tw_zangba','zangba'], zhangbao:['zhangbao','re_zhangbao'], jianggan:['jianggan','sp_jianggan'], dc_jiben:['dc_jiben','sp_jiben'], yangyi:['ol_yangyi','tw_yangyi','yangyi'], tianyu:['tw_tianyu','tianyu'], huangchengyan:['huangchengyan','dc_huangchengyan'], puyuan:['puyuan','ol_puyuan'], huangzu:['dc_huangzu','huangzu'], huojun:['dc_huojun','huojun','tw_huojun'], zhaoyǎn:['dc_zhaoyǎn','zhaoyǎn'], furong:['ol_furong','tw_furong','furong'], daxiaoqiao:['tw_daxiaoqiao','daxiaoqiao'], zhugeguo:['tw_zhugeguo','zhugeguo'], wanglang:['wanglang','ol_wanglang','old_wanglang'], tengfanglan:['dc_tengfanglan','tengfanglan'], zhangyì:['ol_zhangyì','zhangyì'], yuantanyuanshang:['yuantanyuanshang','yuantanyuanxiyuanshang'], ruiji:['dc_ruiji','ruiji'], jsp_huangyueying:['jsp_huangyueying','re_jsp_huangyueying'], ganfuren:['dc_ganfuren','ganfuren'], wenqin:['wenqin','pe_wenqin'], zhouqun:['ol_zhouqun','zhouqun'], qianzhao:['ol_qianzhao','qianzhao'], ol_pengyang:['ol_pengyang','sp_pengyang'], }, translate:{ "xinfu_lingren":"凌人", "xinfu_lingren_info":"每回合限一次。当你于出牌阶段内使用带有「伤害」标签的基本牌或普通锦囊牌指定目标后,你可以猜测其中的一个目标的手牌中是否有基本牌,锦囊牌或装备牌。若你猜中的项目数:≥1,此牌对该角色的伤害+1;≥2,你摸两张牌;≥3,你获得技能〖奸雄〗和〖行殇〗直到下回合开始。", "lingren_adddamage":"凌人", "lingren_adddamage_info":"", "lingren_jianxiong":"奸雄", "lingren_jianxiong_info":"当你受到伤害后,你可以获得对你造成伤害的牌并摸一张牌。", "lingren_xingshang":"行殇", "lingren_xingshang_info":"当有角色死亡后,你可以选择一项:1.回复一点体力。2.获得该角色的所有牌。", "xinfu_fujian":"伏间", "xinfu_fujian_info":"锁定技,结束阶段开始时,你观看一名随机的其他角色的随机X张手牌。(X为场上手牌最少的角色的手牌数)", "xinfu_xionghuo":"凶镬", "xinfu_xionghuo_info":"游戏开始时,你获得3个“暴戾”标记。出牌阶段,你可以交给一名其他角色一个“暴戾”标记,你对有“暴戾”标记的其他角色造成伤害时,此伤害+1。有“暴戾”的其他角色的出牌阶段开始时,其移去所有“暴戾”标记并随机执行一项:1.受到1点火焰伤害且本回合不能对你使用【杀】;2.失去1点体力且本回合手牌上限-1;3.你随机获得其一张手牌和一张装备区的牌。", xionghuo:"凶镬", "xionghuo_info":"", "xionghuo_disable":"凶镬", "xionghuo_disable_info":"", "xionghuo_low":"凶镬", "xionghuo_low_info":"", "xinfu_shajue":"杀绝", "xinfu_shajue_info":"锁定技,其他角色进入濒死状态时,若其体力值小于0,则你获得一个“暴戾”标记,并获得使其进入濒死状态的牌。", "xinfu_jianjie":"荐杰", "xinfu_jianjie_info":"你的第一个准备阶段,你令两名其他角色分别获得龙印与凤印;出牌阶段限一次(你的第一个回合除外),或当拥有龙印、凤印的角色死亡时,你可以转移龙印、凤印。", "xinfu_jianjie1":"荐杰", "xinfu_jianjie1_info":"", "smh_huoji":"火计", "smh_huoji_info":"", "smh_lianhuan":"连环", "smh_lianhuan_info":"", "xinfu_jianjie2":"荐杰", "xinfu_jianjie2_info":"", "smh_lianhuan1":"连铸", "smh_lianhuan1_info":"", "smh_yeyan":"业炎", "smh_yeyan_info":"", "xinfu_yinshi":"隐士", "xinfu_yinshi_info":"锁定技,若你没有龙印、凤印且防具栏为空,则当你受到属性伤害或锦囊牌造成的伤害时,防止此伤害。", "xinfu_chenghao":"称好", "xinfu_chenghao_info":"当一名角色受到属性伤害后,若其存活且其武将牌横置且是伤害传导的起点,则你可以观看牌堆顶的X张牌并分配给任意角色。(X为横置的角色数量且包含该角色)", "jianjie_faq":"关于龙凤印", "jianjie_faq_info":"龙印效果:视为拥有〖火计〗。凤印效果:视为拥有〖连环〗。(均一回合限使用三次) 龙凤印齐全:视为拥有〖业炎〗,〖业炎〗发动后移除龙凤印。", "xinfu_wuniang":"武娘", "xinfu_wuniang_info":"当你使用或打出【杀】时,你可以获得一名其他角色的一张牌。若如此做,该角色和场上所有的“关索”各摸一张牌。", "xinfu_xushen":"许身", "xinfu_xushen_info":"限定技,当一名男性角色使用【桃】令你脱离濒死状态时,若场上没有“关索”,则其可以将自己的一张武将牌变更为“关索”。然后你回复一点体力,并获得技能〖镇南〗。", "xinfu_zhennan":"镇南", "xinfu_zhennan_info":"当你成为【南蛮入侵】的目标时,你可以对一名其他角色造成1-3点随机伤害。", "xinfu_falu":"法箓", "xinfu_falu_info":"锁定技,游戏开始时,你获得「紫薇」「后土」「玉清」「勾陈」标记各一个。当你的牌因弃置而进入弃牌堆后,根据这些牌的花色,你获得对应的标记:黑桃,你获得1枚「紫薇」;梅花,你获得1枚「后土」;红桃,你获得1枚「玉清」;方块,你获得1枚「勾陈」。(每种标记限拥有1个)", "xinfu_dianhua":"点化", "xinfu_dianhua_info":"准备阶段或结束阶段,你可以观看牌堆顶的X张牌(X为你的「紫薇」「后土」「玉清」「勾陈」标记数的总和)。若如此做,你将这些牌以任意顺序放回牌堆顶或牌堆底。", "xinfu_zhenyi":"真仪", "xinfu_zhenyi_info":"你可以在以下时机弃置相应的标记来发动以下效果:一名角色的判定牌生效前,你可以弃置一枚「紫薇」,然后将判定结果改为任意花色且点数为5;你的回合外,你可以弃置一枚「后土」,然后将你的一张手牌当【桃】使用;当你造成伤害时,你可以弃置一枚「玉清」,然后令此伤害+1;当你受到伤害后,你可以弃置一张「勾陈」,然后你从牌堆中随机获得三种类型的牌各一张。", "zhenyi_spade":"真仪", "zhenyi_spade_info":"", "zhenyi_club":"真仪", "zhenyi_club_info":"", "zhenyi_heart":"真仪", "zhenyi_heart_info":"", zhangren:'张任', zoushi:'邹氏', zangba:'臧霸', jiling:'纪灵', gz_sp_dongzhuo:'董卓', gz_zhangjiao:'张角', litong:'李通', mizhu:'糜竺', buzhi:'步骘', chenlin:'陈琳', yuanshu:'SP袁术', gongsunzan:'公孙瓒', sp_diaochan:'SP貂蝉', yangxiu:'杨修', sp_zhaoyun:'SP赵云', caohong:'曹洪', liuxie:'刘协', xiahouba:'夏侯霸', zhugejin:'诸葛瑾', zhugeke:'诸葛恪', guanyinping:'关银屏', ganfuren:'SP甘夫人', sunhao:'孙皓', chengyu:'程昱', simalang:'司马朗', tianfeng:'田丰', sp_jiaxu:'SP贾诩', maliang:'马良', sp_caoren:'SP曹仁', yuejin:'乐进', mifuren:'糜夫人', sp_dongzhuo:'SP董卓', chendong:'陈武董袭', jiangfei:'蒋琬费祎', jiangqing:'蒋钦', hetaihou:'何太后', dingfeng:'丁奉', zhangxingcai:'张星彩', caoang:'曹昂', kongrong:'孔融', fuwan:'伏完', sp_pangde:'SP庞德', sp_sunshangxiang:'SP孙尚香', zhugedan:'诸葛诞', sp_machao:'SP马超', sp_jiangwei:'SP姜维', zhangbao:'OL张宝', yangxiou:'杨修', shixie:'士燮', mayunlu:'马云騄', zhanglu:'张鲁', wutugu:'兀突骨', mateng:'马腾', sp_caiwenji:'SP蔡琰', zhugeguo:'诸葛果', lingcao:'凌操', sunru:'手杀孙茹', lingju:'灵雎', lifeng:'李丰', jsp_guanyu:'SP关羽', zhuling:'朱灵', sunluyu:'OL孙鲁育', hanba:'旱魃', panfeng:'OL潘凤', gz_panfeng:'潘凤', zumao:'祖茂', daxiaoqiao:'大小乔', cuiyan:'崔琰', wenpin:'文聘', jsp_huangyueying:'SP黄月英', guansuo:'关索', tadun:'蹋顿', yanbaihu:'严虎', wanglang:'王朗', caochun:'曹纯', dongbai:'OL董白', zhaoxiang:'赵襄', heqi:'贺齐', kanze:'OL阚泽', dongyun:'董允', mazhong:'马忠', huangfusong:'皇甫嵩', wangyun:'王允', sunqian:'孙乾', xizhicai:'戏志才', beimihu:'卑弥呼', luzhi:'鲁芝', bianfuren:'卞夫人', ol_bianfuren:'卞夫人', shamoke:'沙摩柯', lvfan:'吕范', liqueguosi:'李傕郭汜', cuimao:'崔琰毛玠', kaisa:"凯撒", caoying:"曹婴", simahui:"司马徽", baosanniang:"OL鲍三娘", pangdegong:"手杀庞德公", zhaotongzhaoguang:"手杀赵统赵广", majun:"马钧", simazhao:"司马昭", wangyuanji:"王元姬", jianggan:"蒋干", hejin:'何进', hansui:'韩遂', niujin:'牛金', xujing:'许靖', yuantanyuanshang:'袁谭袁尚', xinfenyue:'奋钺', xinfenyue_info:'出牌阶段限X次(X为与你不同阵营的存活角色数),你可以与一名其他角色拼点,若你赢,根据你拼点牌的点数依次执行以下效果:不大于5,你获得其一张牌;不大于9,你获得牌堆里的一张【杀】; 不大于K,视为你对其使用一张雷【杀】。', neifa:'内伐', neifa_info:'出牌阶段开始时,你可以摸两张牌或获得场上的一张牌,然后弃置一张牌。若弃置的牌是基本牌,本回合你不能使用锦囊和装备牌,且【杀】的使用次数+X且目标+1;若弃置的不是基本牌,本回合你不能使用基本牌,且使用普通锦囊牌选择目标时可以增加或减少一个目标,前两次使用装备牌时摸X张牌(X为你发动〖内伐〗弃牌后手牌中因〖内伐〗而不能使用的牌的数量且最多为5)。', neifa_use:'内伐', yuxu:'誉虚', yuxu_info:'当你于出牌阶段内使用的牌结算结束后,若你此前于此阶段发动过〖誉虚〗的次数为:偶数,你可以摸一张牌;奇数,你弃置一张牌。', yuxu2:'誉虚(弃牌)', xjshijian:'实荐', xjshijian_info:'一名其他角色于其回合内使用的第二张牌结算完成后,你可弃置一张牌并令其获得技能〖誉虚〗直到回合结束。', mouzhu:'谋诛', mouzhu_info:'出牌阶段限一次,你可以令一名有手牌的其他角色交给你一张手牌。然后若你的手牌数大于其,其选择视为对你使用一张【杀】或【决斗】。', yanhuo:'延祸', yanhuo_info:'当你死亡时,你可以依次弃置一名其他角色的X张牌。(X为你的牌数)', niluan:'逆乱', niluan_info:'其他角色的结束阶段开始时,若其本回合内使用过【杀】或其体力值大于你,则你可以将一张黑色牌当做【杀】使用。', cuorui:'挫锐', cuorui_info:'锁定技,游戏开始时,你摸X张牌(X为你的体力上限)。锁定技,限定技,判定阶段开始前,若你的判定区有牌,你跳过此阶段。', cuorui_info_single:'锁定技,你的起始手牌数改为X+2(X为你剩余的备选武将数)。你跳过登场后的第一个判定阶段。', liewei:'裂围', liewei_info:'当你杀死一名角色后,你可以摸三张牌。', weicheng:'伪诚', weicheng_info:'当牌从你的手牌区移动至其他角色的手牌区后,若你的手牌数小于体力值,你可以摸一张牌。', daoshu:'盗书', daoshu_info:'出牌阶段限一次。你可以选择一个花色并获得一名其他角色的一张手牌。若此牌花色与你选择的相同,则你对其造成1点伤害且你〖盗书〗于此阶段内可使用的次数上限+1。否则你须交给其一张与此牌花色不同的手牌(没有则展示手牌)。', xinshanjia:"缮甲", xinshanjia_info:"出牌阶段开始时,你可以摸三张牌,然后弃置3-X张牌(X为你本局游戏内不因使用而失去过的装备牌的数目且至多为3)。若你没有以此法弃置:基本牌,此阶段你使用【杀】的次数上限+1;锦囊牌,此阶段你使用牌无距离限制;基本牌或锦囊牌,你可以视为使用一张【杀】。", "new_meibu":"魅步", "new_meibu_info":"其他角色的出牌阶段开始时,若你在其攻击范围内,你可以弃置一张牌,令该角色于本回合内获得技能〖止息〗。若你以此法弃置的牌不是【杀】或黑色锦囊牌,则本回合其与你的距离视为1。", "new_mumu":"穆穆", "new_mumu_info":"出牌阶段开始时,你可以选择一项:1.弃置一名其他角色装备区里的一张牌;2.获得一名角色装备区里的一张防具牌,若如此做,你本回合不能使用【杀】。", new_zhixi:"止息", new_zhixi_info:"锁定技。出牌阶段内,若你使用过锦囊牌或使用过的牌数不小于X,则你不能使用牌(X为你的体力值)。", "new_mumu2":"穆穆", "new_mumu2_info":"锁定技,你不能使用【杀】。", new_xingwu:"星舞", new_xingwu_info:"弃牌阶段开始时,你可以将一张牌置于武将牌上,称为“舞”。然后你可以选择一项:①将三张“舞”置入弃牌堆;②弃置两张手牌并将武将牌翻面。若如此做,你选择一名角色,该角色弃置其装备区的所有牌并受到2点伤害(若为女性,则改为1点)。", "new_luoyan":"落雁", "new_luoyan_info":"锁定技。若你的武将牌上有“舞”,则你视为拥有技能〖天香〗和〖流离〗。", "new_luoyan_tianxiang":"天香", "new_luoyan_tianxiang_info":"", "new_luoyan_liuli":"流离", "new_luoyan_liuli_info":"", ol_shichou:"誓仇", ol_shichou_info:"当你使用【杀】时,你可以令至多X+1名角色也成为此【杀】的目标。此牌结算结束后,若你未因【杀】造成过伤害,则你获得此【杀】(X为你已损失的体力值。每回合限获得三次)", "zhenwei_three":"镇卫", "zhenwei_three_info":"锁定技,敌方角色至己方其他角色的距离+1。", "huanshi_three":"缓释", "huanshi_three_info":"一名友方角色的判定牌生效前,你可打出一张牌代替之。", zhengfu:"征服", "zhengfu_info":"当你使用【杀】指定目标时,你可以选择一种牌的类别,然后除非目标角色交给你一种该类别的牌,否则其不能闪避此【杀】。", yizan:"翊赞", yizan_info:"你可以将两张牌(其中至少一张是基本牌)当任意基本牌牌使用", yizan0:"翊赞", yizan0_info:"你可以将两张牌(其中至少一张是基本牌)当任意基本牌牌使用", yizan1:"翊赞", yizan1_info:"你可以将两张牌(其中至少一张是基本牌)当【闪】打出", yizan2:"翊赞", yizan2_info:"你可以将一张基本牌当任意基本牌牌使用", yizan3:"翊赞", yizan3_info:"你可以将一张基本牌当【闪】打出 ", yizan5:"翊赞", yizan5_info:"你可以将两张牌(其中至少一张是基本牌)当【杀】打出", yizan6:"翊赞", yizan6_info:"你可以将一张基本牌当【杀】打出", longyuan:"龙渊", longyuan_info:"觉醒技 当你使用或打出基本牌时,若你已经已累计发动过3次【翊赞】,你将【翊赞】改为“你可以将一张基本牌当任意基本牌牌使用或打出”。", wuniang:"武娘", wuniang_info:"你使用或打出【杀】时,你可以获得一名其他角色的一张牌,然后该角色摸一张牌;若“关索”在场,你可令“关索”也摸一张牌", zhennan:"镇南", zhennan_info:"当你成为【南蛮入侵】的目标时,你可令一名其他角色随机受到一至三点伤害", xushen:"许身", xushen_info:"当其他男性角色令你脱离濒死状态时,若“关索”不在场,其可以选择是否用“关索”替换其武将牌,然后你回复一点体力并获得技能【镇南】", wanwei:'挽危', wanwei_info:'当你因被其他角色获得或弃置而失去牌时,你可以改为自己选择失去的牌。', gzjili:'蒺藜', gzjili_info:'当你于一回合内使用或打出第X张牌时,你可以摸X张牌(X为你的攻击范围)。', xiongsuan:'凶算', xiongsuan_info:'限定技,出牌阶段,你可以弃置一张手牌并选择一名角色,对其造成1点伤害,然后你摸三张牌。若该角色有已发动的限定技,则你选择其中一个限定技。此回合结束后,视为该限定技未发动过。', diaodu:"调度", diaodu_info:"当你使用装备牌时,你可以摸一张牌;出牌阶段开始时,你可以获得一名其他角色装备区里的一张牌,然后你可以将此牌交给另一名角色。", diancai:'典财', diancai_info:'其他角色的出牌阶段结束时,若你于此阶段失去了X张或更多的牌,则你可以将手牌摸至体力上限。(X为你的体力值)', zhengbi:'征辟', zhengbi_info:'出牌阶段开始时,你可以选择一项:选择一名未受伤的其他角色,你对其使用的牌无距离限制且不计入使用次数直到回合结束;或将一张基本牌交给一名其他角色,然后其交给你一张非基本牌或两张基本牌。', fengying:'奉迎', fengying_info:'限定技,出牌阶段,你可以弃置所有手牌。若如此做,你可以令等量的角色将手牌摸至X张(X为其体力上限且至多为5)。然后,你结束出牌阶段,并在当前回合结束后进行一个新的回合。', qingzhong:'清忠', qingzhong_info:'出牌阶段开始时,你可以摸两张牌,若如此做,此阶段结束时,你与手牌数最少的角色交换手牌。', weijing:'卫境', weijing_info:'每轮限一次,当你需要使用【杀】或【闪】时,你可以视为使用一张【杀】或【闪】。', zishu:'自书', zishu_info:'锁定技。①其他角色的回合结束时,你将手牌区里所有你于此回合得到过的牌置入弃牌堆。②当你于回合内不因〖自书②〗而得到牌后,你摸一张牌。', yingyuan:'应援', yingyuan_info:'当你于回合内使用的牌结算完成后,你可以将其交给一名其他角色(相同牌名的牌每回合限一次)。', xinyingyuan:'应援', xinyingyuan_info:'当你于回合内使用一张牌后,你可以令一名其他角色从牌堆获得一张与该牌类型相同的牌(每种类型的牌每回合限一次)。', qianya:'谦雅', qianya_info:'当你成为锦囊牌的目标后,你可以将任意张手牌交给一名其他角色。', shuimeng:'说盟', shuimeng_info:'出牌阶段结束时,你可以与一名角色拼点,若你赢,视为你使用【无中生有】;若你没赢,视为其对你使用【过河拆桥】。', xianfu:'先辅', xianfu2:'先辅', xianfu2_bg:'辅', xianfu_info:'锁定技,游戏开始时,你选择一名其他角色,当其受到伤害后,你受到等量的伤害,当其回复体力后,你回复等量的体力。', chouce:'筹策', chouce_info:'当你受到1点伤害后,你可以判定,若结果为:黑色,你弃置一名角色区域里的一张牌;红色,你选择一名角色,其摸一张牌,若其是〖先辅〗选择的角色,改为其摸两张牌。', fuqi:'伏骑', fuqi_info:'锁定技,当你使用牌时,你令所有与你距离为1的其他角色不能使用或打出牌响应此牌。', jiaozi:'骄恣', jiaozi_info:'锁定技,若你的手牌数为全场唯一最多,则当你造成或受到伤害时,此伤害+1。', wy_meirenji:'美人计', wy_meirenji_info:'出牌阶段,对一名有手牌的其他男性角色使用。每名女性角色各获得其一张手牌并将一张手牌交给你,然后比较你与其的手牌数,手牌少的角色对手牌多的角色造成1点伤害。', wy_xiaolicangdao:'笑里藏刀', wy_xiaolicangdao_info:'出牌阶段,对一名其他角色使用。该角色摸X张牌(X为其已损失的体力值且至多为5),然后你对其造成1点伤害。', weikui:'伪溃', weikui2:'伪溃', weikui_info:'出牌阶段限一次,你可以失去1点体力并选择一名有手牌的其他角色,你观看其手牌:若其手牌中有【闪】,则视为你对其使用【杀】,且本回合你计算与其的距离视为1;若其手牌中没有【闪】,你弃置其中一张牌。', lizhan:'励战', lizhan_info:'结束阶段,你可以令任意名已受伤的角色摸一张牌。', wylianji:'连计', wylianji_info:'出牌阶段限一次,你可以展示一张【杀】或黑色锦囊牌,并令一名其他角色将牌堆中的随机一张武器牌置入装备区(可替换原装备)。然后该角色选择一项:1.对除你以外的角色使用该牌,并将装备区里的武器牌交给该牌的一个目标角色;2.令你对其使用此牌,然后获得此牌,并将装备区内的武器牌交给你。', // from here moucheng:'谋逞', moucheng_info:'觉醒技,当其他角色使用因〖连计〗交给其的牌累计造成伤害达到3点后,你失去技能〖连计〗,然后获得技能〖矜功〗', jingong:'矜功', jingong2:'矜功', jingong_backup:'矜功', jingong_info:'出牌阶段限一次,你可以将一张装备牌或【杀】当做一张随机锦囊牌使用(三选一,其中一张为【美人计】或【笑里藏刀】),然后本回合的结束阶段,若你于本回合内未造成过伤害,你失去1点体力', fenyue:'奋钺', fenyue2:'奋钺', fenyue2_bg:'钺', fenyue_info:'出牌阶段限X次,你可以与一名角色拼点,若你赢,你选择一项:1.令其不能使用或打出手牌直到回合结束;2.视为对其使用一张【杀】(不计入次数)。若你没赢,你结束出牌阶段。(X为存活的忠臣数)', zfengshi:'锋矢', zfengshi_info:'当你使用【杀】指定目标后,你可以令目标弃置装备区内的一张牌。', chuanxin:'穿心', chuanxin_info:'当你于出牌阶段内使用【杀】或【决斗】对目标角色造成伤害时,你可以防止此伤害。若如此做,该角色选择一项:1.弃置装备区里的所有牌,若如此做,其失去1点体力;2.随机移除主武将牌上的一个技能。', chuanxin_info_guozhan:'当你于出牌阶段内使用【杀】或【决斗】对目标角色造成伤害时,若其与你势力不同且有副将,你可以防止此伤害。若如此做,该角色选择一项:1.弃置装备区里的所有牌,若如此做,其失去1点体力;2.移除副将。', hengjiang:'横江', hengjiang2:'横江', hengjiang_info:'当你受到1点伤害后,你可以令当前回合角色本回合的手牌上限-1。然后若其弃牌阶段内没有弃牌,则你摸一张牌。', rehengjiang:'横江', rehengjiang2:'横江', rehengjiang3:'横江', rehengjiang_info:'当你受到1点伤害后,你可以令当前回合角色本回合的手牌上限-1。然后若其弃牌阶段内没有弃牌,则你摸X张牌(X为你本回合内对其发动过〖横江〗的次数)。', shuangren:'双刃', shuangren_info:'出牌阶段开始时,你可以与一名角色拼点。若你赢,你视为对其或与其势力相同的另一名角色使用一张【杀】(不计入出牌阶段的次数限制);若你没赢,你本回合内不能对其他角色使用牌。', xiashu:'下书', xiashu_info:'出牌阶段开始时,你可以将所有手牌交给一名其他角色,然后该角色亮出任意数量的手牌(至少一张)。你选择一项:1.获得其亮出的手牌;2.获得其未亮出的手牌。', kuanshi:'宽释', kuanshi2:'宽释', kuanshi_info:'结束阶段,你可以选择一名角色。直到你的下回合开始,该角色第一次受到大于1的伤害时,防止此伤害,然后你跳过下个回合的摸牌阶段。', bingzheng:'秉正', bingzheng_info:'出牌阶段结束时,你可以令手牌数不等于体力值的一名角色弃置一张手牌或摸一张牌。然后若其手牌数等于体力值,你摸一张牌,且可以交给该角色一张牌。', sheyan:'舍宴', sheyan_info:'当你成为普通锦囊牌的目标时(【借刀杀人】等带有指向目标的锦囊除外),你可以为此牌增加一个目标或令其对其中一个目标无效。(有效目标数至少为一)', fuman:'抚蛮', fuman2:'抚蛮', fuman_info:'出牌阶段每名角色限一次,你可以将一张手牌交给一名其他角色并标记为“抚蛮”且“抚蛮”牌的牌名视为【杀】。然后当一名角色使用“抚蛮”牌结算结束后,你摸一张牌。若此牌造成过伤害,则改为摸两张牌。', qizhou:'绮胄', qizhou_info:'锁定技,你根据装备区里牌的花色数获得以下技能:1种或以上:〖马术〗;2种或以上:〖英姿〗;3种或以上:〖短兵〗;4种:〖奋威〗。', shanxi:'闪袭', shanxi_info:'出牌阶段限一次,你可以弃置一张红色基本牌,然后弃置攻击范围内的一名其他角色的一张牌。若弃置的牌是【闪】,你观看其手牌,若弃置的不是【闪】,其观看你的手牌。', duanbing:'短兵', duanbing_info:'当你使用【杀】选择目标后,你可以令一名距离为1的其他角色也成为此牌的目标。', fanghun:'芳魂', fanghun_info:'当你使用【杀】造成伤害或受到【杀】的伤害后,你获得X个“梅影”标记(X为伤害点数);你可以移去1个“梅影”标记来发动〖龙胆〗并摸一张牌。', refanghun:'芳魂', refanghun_info:'当你使用【杀】或成为【杀】的目标后,你获得1个“梅影”标记;你可以移去1个“梅影”标记来发动〖龙胆〗并摸一张牌。', fanghun_sha:'龙胆', fuhan:'扶汉', fuhan_info:'限定技,回合开始时,你可以移去所有“梅影”标记并摸等量的牌,随机观看五名未登场的蜀势力角色,将武将牌替换为其中一名角色,并将体力上限数调整为本局游戏中移去“梅影”标记的数量(至少为2,至多为8),然后回复1点体力。', refuhan:'扶汉', refuhan_info:'限定技,回合开始时,你可以移去所有"梅影"标记并摸等量的牌,然后从X张蜀势力武将牌中选择并获得至多两个技能(限定技、觉醒技、隐匿技、使命技、主公技除外)。若此时你是体力值最低的角色,你回复1点体力(X为场上角色数,且X∈[4,+∞))。', yjixi:'觊玺', yjixi_info:'觉醒技,结束阶段,若你连续三回合没有因〖庸肆〗而失去过体力,则你增加1点体力上限并回复1点体力,然后选择一项:获得技能〖妄尊〗;摸两张牌并获得当前主公的主公技。', xinyongsi:'庸肆', xinyongsi1:'庸肆', xinyongsi2:'庸肆', xinyongsi_info:'锁定技,摸牌阶段,你令额定摸牌数改为X(X为势力数);弃牌阶段开始时,你选择一项:1.弃置一张牌;2.失去1点体力。', xiehui:'黠慧', xiehui2:'黠慧', xiehui_info:'锁定技,你的黑色牌不计入手牌上限;其他角色获得你的黑色牌时,其不能使用、打出、弃置这些牌直到其体力值扣减为止。', lianzhu:'连诛', lianzhu_info:'出牌阶段限一次,你可以展示并交给一名其他角色一张牌,若此牌为黑色,其选择一项:1.你摸两张牌;2.弃置两张牌', shanjia:'缮甲', shanjia_info:'出牌阶段开始时,你可以摸X张牌,然后弃置等量的牌。若你以此法弃置了装备区内的牌,则你可以视为使用一张【杀】。(X为你于本局游戏内使用过的装备牌数且最大为7)', tuifeng:'推锋', tuifeng2:'推锋', tuifeng_info:'1.当你受到伤害后,你可以将至多X张牌置于武将牌上(X为伤害值),称为“锋”。2.准备阶段开始时,若你的武将牌上有“锋”,你移去所有“锋”,摸2X张牌,然后你于此回合的出牌阶段内使用【杀】的次数上限+X。(X为你此次移去的“锋”数)', ziyuan:'资援', ziyuan_info:'出牌阶段限一次,你可以将任意张点数之和为13的手牌交给一名其他角色,然后该角色回复1点体力。', jugu:'巨贾', jugu_info:'锁定技,1.你的手牌上限+X。2.游戏开始时,你摸X张牌(X为你的体力上限)', hongde:'弘德', hongde_info:'当你一次获得或失去至少两张牌后,你可以令一名其他角色摸一张牌。', dingpan:'定叛', dingpan_info_identity:'出牌阶段限X次,你可以令一名装备区里有牌的角色摸一张牌,然后其选择一项:1.令你弃置其装备区里的一张牌;2.获得其装备区里的所有牌,若如此做,你对其造成1点伤害。(X为场上存活的反贼数)', dingpan_info_versus:'出牌阶段限X次,你可以令一名装备区里有牌的角色摸一张牌,然后其选择一项:1.令你弃置其装备区里的一张牌;2.获得其装备区里的所有牌,若如此做,你对其造成1点伤害。(X为场上存活的敌方角色数)', dingpan_info:'出牌阶段限一次,你可以令一名装备区里有牌的角色摸一张牌,然后其选择一项:1.令你弃置其装备区里的一张牌;2.获得其装备区里的所有牌,若如此做,你对其造成1点伤害。', weidi:'伪帝', weidi_info:'锁定技,你视为拥有当前主公的主公技。', juesi:'决死', juesi_info:'出牌阶段,你可以弃置一张【杀】并选择攻击范围内的一名有牌的其他角色,该角色弃置一张牌,然后若弃置的牌不是【杀】且你的体力值不大于该角色,你视为对其使用【决斗】。', zhenlue:'缜略', zhenlue_info:'锁定技,你使用的普通锦囊牌不能被【无懈可击】响应;你不能成为延时锦囊牌的目标。', jianshu:'间书', jianshu_info:'限定技,出牌阶段,你可以将一张黑色手牌交给一名其他角色,并选择另一名其他角色,然后令这两名角色拼点。赢的角色弃置两张牌,没赢的角色失去一点体力。', yongdi:'拥嫡', yongdi_info:'限定技,准备阶段开始时,你可令一名其他男性角色增加一点体力上限并回复1点体力,然后若该角色的武将牌上有主公技且其不为主公,其获得此主公技。', regushe:'鼓舌', regushe_info:'出牌阶段,若X小于7,则你可以用一张手牌与至多三名角色同时拼点,然后依次结算拼点结果,没赢的角色选择一项:1.弃置一张牌;2.令你摸一张牌。若你没赢,你获得一个“饶舌”标记。当你获得第7个“饶舌”标记时,你死亡。(X为你的“饶舌”标记数与本回合因“鼓舌”拼点而胜利的次数之和)', rejici:'激词', rejici2:'激词', rejici_info:'锁定技。①当你的拼点牌亮出后,若此牌的点数不大于X,则你令此牌点数+X,并获得此次拼点中点数最大的拼点牌。②当你死亡时,你令杀死你的角色弃置7-X张牌并失去1点体力(X为你的“饶舌”标记数)。', gushe:'鼓舌', gushe_bg:'舌', gushe_info:'出牌阶段限一次,你可以用一张手牌与至多三名角色同时拼点,然后依次结算拼点结果,没赢的角色选择一项:1.弃置一张牌;2.令你摸一张牌。若你没赢,你获得一个“饶舌”标记。当你获得第7个“饶舌”标记时,你死亡。', jici:'激词', jici_info:'当你因发动〖鼓舌〗而扣置的拼点牌亮出后,若点数小于X,你可令点数+X;若点数等于X,你可令你本回合发动〖鼓舌〗的次数上限+1。(X为你“饶舌”标记的数量)', shefu:'设伏', shefu2:'设伏', shefu_bg:'伏', shefu_info:'结束阶段开始时,你可以将一张牌移出游戏,称为「伏兵」。并为「伏兵」记录一个基本牌或锦囊牌的名称(须与其他「伏兵」记录的名称均不同)。你的回合外,当有其他角色使用与你记录的「伏兵」牌名相同的手牌时,你可以取消此牌的所有目标,然后移去该「伏兵」。若此时处于使用者的回合内,则你令使用者当前的所有非Charlotte技失效直至回合结束。', benyu:'贲育', benyu2:'贲育', benyu_info:'当你受到伤害后,你可选择:①将手牌摸至与伤害来源手牌数相同(至多摸至5张);②弃置大于伤害来源手牌数的牌,然后对其造成1点伤害。', zhidao:'雉盗', zhidao_info:'锁定技,当你于你的回合内第一次对区域里有牌的其他角色造成伤害后,你获得其手牌、装备区和判定区里的各一张牌,然后直到回合结束,其他角色不能被选择为你使用牌的目标。', jili:'寄篱', jili_info:'锁定技,当一名其他角色成为红色基本牌或红色普通锦囊牌的目标时,若其与你的距离为1且你既不是此牌的使用者也不是目标,你也成为此牌的目标。', luanzhan:'乱战', luanzhan_info:'你使用【杀】或黑色普通锦囊牌可以额外选择X名角色为目标;当你使用【杀】或黑色普通锦囊牌指定目标后,若此牌的目标角色数小于X,则X减至0。(X为你于本局游戏内造成过伤害的次数)', zhengnan:'征南', zhengnan_info:'其他角色死亡后,你可以摸三张牌并获得下列技能中的任意一个:〖武圣〗、〖当先〗和〖制蛮〗。', xinzhengnan:'征南', xinzhengnan_info:'当一名角色进入濒死状态时,若你未因其发动过〖征南〗,则你回复1点体力并摸一张牌并获得下列技能中的任意一个:〖武圣〗、〖当先〗和〖制蛮〗(若技能全部拥有则改为摸三张牌。你以此法获得的〖当先〗结算时视为已发动过〖伏枥〗)。', xiefang:'撷芳', xiefang_info:'锁定技,你计算与其他角色的距离时-X。(X为女性角色数)', qizhi:'奇制', qizhi_info:'当你于回合内使用基本牌或锦囊牌指定目标后,你可以弃置不是此牌目标的一名角色的一张牌。若如此做,其摸一张牌。', jinqu:'进趋', jinqu_info:'结束阶段开始时,你可以摸两张牌,若如此做,你将手牌弃置至X张。(X为你于此回合发动过〖奇制〗的次数)', jiqiao:'机巧', jiqiao_info:'出牌阶段开始时,你可以弃置任意张装备牌,然后亮出牌堆顶两倍数量的牌并获得其中的非装备牌。', linglong:'玲珑', linglong_info:'锁定技,若你的装备区没有武器牌,则你使用【杀】的次数上限+1;若你的装备区没有防具牌,视为你装备着【八卦阵】;若你的装备区没有坐骑牌,你的手牌上限+1;若你的装备区没有宝物牌,则你视为拥有技能〖奇才〗。', zhenwei:'镇卫', zhenwei2:'镇卫', zhenwei_info:'当一名其他角色成为【杀】或黑色锦囊牌的目标时(使用者不是你),若该角色的体力值小于你且此牌的目标角色数为1,你可以弃置一张牌。若如此做,你选择一项:1、摸一张牌,然后将此【杀】或黑色锦囊牌转移给你;2、令此【杀】或黑色锦囊牌无效,然后将此【杀】或黑色锦囊牌置于使用者的武将牌旁,若如此做,当前回合结束后,使用者获得使用者武将牌旁的这些牌。', xingwu:'星舞', xingwu_info:'弃牌阶段开始时,你可以将一张与你本回合使用的牌颜色均不同的手牌置于武将牌上:若你有至少三张“星舞”牌,你移去“星舞”牌并选择一名男性角色,该角色受到2点伤害并弃置其装备区的所有牌', luoyan:'落雁', luoyan_info:'锁定技。若你的武将牌上有“星舞牌”,你拥有“天香”和“流离”', yinbing:'引兵', yinbing_info:'结束阶段开始时,你可以将至少一张非基本牌置于武将牌上。每当你受到【杀】或【决斗】的伤害后,你移去一张「引兵」牌。', juedi:'绝地', juedi_info:'锁定技,准备阶段,若你的武将牌上有「引兵」牌,你选择一项:1.移去「引兵」牌,将手牌补至体力上限数;2.将「引兵」牌交给一名体力值不大于你的其他角色,其回复1点体力并摸等量的牌。', kuangfu:'狂斧', kuangfu_info:'当你使用【杀】造成伤害时,你可以选择一项:弃置其装备区内的一张牌,或将其装备区内的一张牌移动到你的装备区内。', xintan:'心惔', xintan_info:'出牌阶段限一次,你可以移去两张「焚」并选择一名角色,该角色失去一点体力。', fentian:'焚天', fentian_info:'锁定技,结束阶段开始时,若你的手牌数少于体力值,你须选择一名攻击范围内的角色,将其一张牌置于你的武将牌上,称为「焚」。锁定技,你的攻击范围+X(X为「焚」的数量)', zhiri:'炙日', zhiri_info:'觉醒技,准备阶段开始时,若你的「焚」的数量不小于3,你减1点体力上限,然后获得技能〖心惔〗', meibu:'魅步', meibu_info:'其他角色的出牌阶段开始时,若你不在其攻击范围内,你可以令该角色的锦囊牌均视为【杀】,直到该角色以此法使用了一张【杀】或回合结束。若如此做,则直到回合结束,视为你在其攻击范围内。', mumu:'穆穆', mumu_info:'出牌阶段限一次,你可以弃置一张【杀】或黑色锦囊牌,然后选择一项:弃置场上的一张武器牌,然后摸一张牌;或将场上的一张防具牌移动到你的装备区里(可替换原防具)。', zhanyi:'战意', zhanyi_basic_sha:'战杀', zhanyi_basic_jiu:'战酒', zhanyi_basic_tao:'战桃', zhanyi_info:'出牌阶段限一次,你可以弃置一张牌并失去1点体力,然后根据你弃置的牌获得以下效果直到回合结束:基本牌,你可以将一张基本牌当作【杀】、【酒】或【桃】使用;锦囊牌,摸两张牌且你使用的牌无距离限制;装备牌,你使用【杀】指定目标角色后,其弃置两张牌。', nuzhan:'怒斩', nuzhan2:'怒斩', nuzhan_info:'锁定技,你使用的由一张锦囊牌转化的【杀】不计入出牌阶段的次数限制;锁定技,你使用的由一张装备牌转化的【杀】的伤害值基数+1', danji:'单骑', danji_info:'觉醒技,准备阶段开始时,若你的手牌数大于你的体力值且本局游戏的主公不为刘备,你减1点体力上限,然后获得〖马术〗和〖怒斩〗。', jieyuan:'竭缘', jieyuan_more:'竭缘', jieyuan_less:'竭缘', jieyuan_info:'当你对一名其他角色造成伤害时,若其体力值大于或等于你的体力值,你可弃置一张黑色手牌,令此伤害+1;当你受到一名其他角色造成的伤害时,若其体力值大于或等于你的体力值,你可弃置一张红色手牌,令此伤害-1。', fenxin:'焚心', fenxin_info:'锁定技,一名其他角色死亡后,若其身份为:忠臣,你本局内发动〖竭缘〗减少伤害时无视体力值限制;反贼,你本局内发动〖竭缘〗增加伤害时无视体力值限制;内奸,你本局内选择发动〖竭缘〗的牌时无颜色和区域限制。', qingyi:'轻逸', qingyi1:'轻逸', qingyi2:'轻逸', qingyi_info:'你可以跳过判定阶段和摸牌阶段。若如此做,视为对一名角色使用了一张无距离限制的【杀】。', xiandeng:'先登', xiandeng_info:'锁定技,出牌阶段,你使用的第一张【杀】不计入次数且无距离限制。', shulv:'熟虑', shulv_info:'出牌阶段限一次,若你的手牌数大于体力值,则你可以弃置一张牌并摸一张牌。', xisheng:'牺牲', xisheng_info:'每名其他角色的回合限一次,你可以将两张牌当做【桃】使用。', yuhua:'羽化', yuhua_info:'锁定技。①你的非基本牌不计入手牌上限。②准备阶段和结束阶段开始时,你卜算1。', qirang:'祈禳', qirang_info:'当有装备牌进入你的装备区时,你可获得牌堆中的一张锦囊牌。若此牌为:普通锦囊牌,则当你使用此“祈禳”牌选择唯一目标后,可为此牌增加一个目标;延时锦囊牌,则你下回合发动〖羽化〗时的卜算量+1(至多为5)。', biluan:'避乱', biluan_info:'摸牌阶段开始时,若有与你距离不大于1的其他角色,你可以放弃摸牌。若如此做,本局内其他角色计算与你的距离时+X。(X为势力数)', lixia:'礼下', lixia_info:'锁定技,其他角色的结束阶段开始时,若你不在其攻击范围内,你摸一张牌或令其摸一张牌。本局内其他角色计算与你的距离时-1。', rebiluan:'避乱', rebiluan2:'避乱', rebiluan_info:'结束阶段开始时,若有与你距离不大于1的其他角色,你可以弃置一张牌。若如此做,本局内其他角色计算与你的距离时+X。(X为场上角色数且至多为4)', relixia:'礼下', relixia_info:'锁定技,其他角色的结束阶段开始时,若你不在其攻击范围内,你选择一至两项:1.摸一张牌;2.其摸两张牌;3.其回复1点体力。本局内其他角色计算与你的距离时-X(X为你选择的选项数)。', yishe:'义舍', yishe_bg:'米', yishe_info:'结束阶段开始时,若你的武将牌上没有「米」,则你可以摸两张牌。若如此做,你将两张牌置于武将牌上,称为「米」;当有「米」移至其他区域后,若你的武将牌上没有「米」,则你回复1点体力。', bushi:'布施', midao:'米道', bushi_info:'当你受到1点伤害后,或其他角色受到你造成的1点伤害后,受到伤害的角色可以获得你的一张「米」', midao_info:'一名角色的判定牌生效前,你可以打出一张「米」代替之。', fengpo:'凤魄', fengpo_info:'每种牌名各限一次。当你每回合使用的第一张【杀】或【决斗】指定目标后,若目标角色数为1,你可以选择一项:1.摸X张牌,令此牌的伤害值基数+1;2.摸一张牌,令此牌的伤害值基数+X(X为其♦牌的数量)。', chenqing:'陈情', chenqing_info:'每轮限一次,当一名角色处于濒死状态时,你可以令另一名其他角色摸四张牌,然后其弃置四张牌。若其以此法弃置的四张牌花色各不相同,则视为该角色对濒死的角色使用一张【桃】。', mozhi:'默识', mozhi_info:'结束阶段开始时,你可以将一张手牌当作你本回合出牌阶段内使用的第一张基本或普通锦囊牌使用。然后,你可以将一张手牌当做你本回合出牌阶段内使用的第二张基本或普通锦囊牌使用。(你不能通过此技能使用【酒】)', ranshang:'燃殇', ranshang2:'燃殇', ranshang_info:'锁定技,当你受到1点火焰伤害后,你获得1枚“燃”标记;结束阶段开始时,你失去X点体力。若X大于2,则你减2点体力上限并摸两张牌。(X为“燃”标记的数量)', hanyong:'悍勇', hanyong_info:'当你使用【南蛮入侵】或【万箭齐发】或黑桃普通【杀】时,若你已受伤,则你可以令此牌的伤害值基数+1。然后若你的体力值不小于游戏轮数,则你获得一枚“燃”标记。', yicong:'义从', yongsi:'庸肆', yongsi1:'庸肆', yongsi2:'庸肆', bifa:'笔伐', bifa2:'笔伐', songci:'颂词', songci_draw:'颂词', baobian:'豹变', lihun:'离魂', chongzhen:'冲阵', chongzhen1:'冲阵', chongzhen2:'冲阵', yuanhu:'援护', tianming:'天命', mizhao:'密诏', duwu:'黩武', duwu3:'黩武', mingzhe:'明哲', huanshi:'缓释', hongyuan:'弘援', aocai:'傲才', aocai2:'傲才', aocai2_backup:'傲才', aocai3:'傲才', huxiao:'虎啸', huxiao3:'虎啸', xueji:'雪恨', wuji:'武继', shushen:'淑慎', shenzhi:'神智', xiongyi:'雄异', junbing:'郡兵', junbing2:'郡兵', quji:'去疾', sijian:'死谏', suishi:'随势', suishi2:'随势', xiaoguo:'骁果', duanxie:'断绁', fenming:'奋命', guixiu:'闺秀', cunsi:'存嗣', yongjue:'勇决', hengzheng:'横征', shengxi:'生息', shoucheng:'守成', shangyi:'尚义', zniaoxiang:'鸟翔', zhendu:'鸩毒', qiluan:'戚乱', qiluan2:'戚乱', qiluan3:'戚乱', shenxian:'甚贤', oldshenxian:'甚贤', qiangwu:'枪舞', moukui:'谋溃', moukui2:'谋溃', lirang:'礼让', mingshi:'名士', liangzhu:'良助', kaikang:'慷忾', wangzun:'妄尊', tongji:'同疾', kuiwei:'溃围', kuiwei2:'溃围', yanzheng:'严整', zhoufu:'咒缚', zhoufu2:'咒缚', zhoufu3:'咒缚', yingbin:'影兵', reyingbing:'影兵', rezhoufu:'咒缚', rezhoufu2:'咒缚', fenxun:'奋迅', fenxun2:'奋迅', spmengjin:'猛进', xiemu:'协穆', xiemu2:'协穆', oldxiemu:'协穆', naman:'纳蛮', taichen:'抬榇', jilei:'鸡肋', jilei2:'鸡肋', jilei2_bg:'肋', yawang:'雅望', xunzhi:'殉志', fanxiang:'返乡', fanxiang_info:'觉醒技,准备阶段开始时,若场上有已受伤且你发动过〖良助〗的选项二的角色,则你加1点体力上限并回复1点体力,失去技能〖良助〗并获得技能〖枭姬〗', xunzhi_info:'准备阶段开始时,若你的上家和下家与你的体力值均不相等,你可以失去1点体力。若如此做,你本局内手牌上限+2。', yawang_info:'锁定技,摸牌阶段开始时,你改为摸X张牌,然后你于本回合的出牌阶段内至多使用X张牌(X为与你体力值相等的角色数)', jilei_info:'当你受到有来源的伤害后,你可以声明一种牌的类别。若如此做,你令伤害来源不能使用、打出或弃置此类别的手牌直到其下个回合开始。', danlao:'啖酪', danlao_info:'当你成为【杀】或普通锦囊牌的目标后,若此牌的目标数大于1,则你可以摸一张牌,令此牌对你无效。', gongao:'功獒', zhuiji:'追击', chouhai:'仇海', chouhai_info:'锁定技,当你受到伤害时,若你没有手牌,此伤害+1。', rechouhai:'仇海', rechouhai_info:'锁定技,当你受到渠道为【杀】的伤害时,若你没有手牌,此伤害+1。', guiming:'归命', guiming_info:'主公技,锁定技,你将残蚀描述中的“已受伤角色”改为“已受伤角色或其他吴势力角色”', canshi:'残蚀', canshi2:'残蚀', canshi_info:'摸牌阶段开始时,你可以改为摸X张牌(X为已受伤的角色数),若如此做,当你于此回合内使用基本牌或锦囊牌时,你弃置一张牌。', recanshi:'残蚀', recanshi2:'残蚀', recanshi_info:'摸牌阶段开始时,你可以多摸X张牌(X为已受伤的角色数),若如此做,当你于此回合内使用【杀】或普通锦囊牌时,你弃置一张牌。', zhuiji_info:'锁定技,你与体力值不大于你的角色的距离视为1。', kunfen:'困奋', kunfen_info:'锁定技,结束阶段开始时,你失去1点体力,然后摸两张牌。', fengliang:'逢亮', fengliang_info:'觉醒技,当你进入濒死状态时,你减1点体力上限,将体力值回复至2点,获得技能〖挑衅〗并将〖困奋〗改为非锁定技。', oldcihuai:'刺槐', oldcihuai2:'刺槐', oldcihuai_info:'出牌阶段开始时,你可以展示手牌。若其中没有【杀】,则当你于此阶段内手牌数变化之前/有角色死亡之前需要使用【杀】时,你可以使用无对应实体牌的【杀】。', cihuai:'刺槐', cihuai_info:'出牌阶段开始时,若你的手牌中没有【杀】,则你可以展示你的手牌,视为对一名角色使用一张【杀】。', gongao_info:'锁定技,当一名角色死亡后,你增加一点体力上限,回复一点体力。', juyi:'举义', juyi_info:'觉醒技,准备阶段开始时,若你的体力上限大于存活角色数,你摸等同于体力上限张数的牌,然后获得技能〖崩坏〗和〖威重〗。', weizhong:'威重', weizhong_info:'锁定技,当你的体力上限增加或减少时,你摸一张牌。若你的手牌数为全场最少,则你改为摸两张牌。', taichen_info:'出牌阶段限一次,你可以失去1点体力,视为对一名角色使用一张【杀】。(不计入出牌阶段的使用次数限制)', naman_info:'当其他角色打出的【杀】结算结束后,你可以获得此牌对应的所有实体牌。', xiemu_info:'出牌阶段限一次,你可以弃置一张【杀】并选择一个势力。若如此做,直到你的下回合开始时,当你成为该势力的其他角色使用的黑色牌的目标后,你摸两张牌。', oldxiemu_info:'当你成为其他角色使用的黑色牌的目标后,你可以弃置一张【杀】,然后摸两张牌。', spmengjin_info:'当你使用【杀】指定目标后,你可以弃置目标角色的一张牌。', fenxun_info:'出牌阶段限一次,你可以弃置一张牌并选择一名其他角色,你于本回合内至其的距离视为1。', rezhoufu_info:'①出牌阶段限一次。你可以用一张牌对一名其他角色施“咒”,且当其判定时,将“咒”作为判定牌。②一名角色的回合结束时,你令本回合移除过“咒”的角色各失去1点体力。', reyingbing_info:'锁定技,有“咒”的角色使用与“咒”颜色相同的牌时,你摸一张牌;若这是你第二次因该“咒”摸牌,则你获得该"咒"。', yingbin_info:'锁定技,有“咒”的角色使用与“咒”花色相同的牌时,你摸一张牌;当你因同一名角色的同一张“咒”的效果摸第二张牌时,移去该“咒”。', zhoufu_info:'出牌阶段限一次,你可以将一张手牌置于一名没有“咒”的其他角色的武将牌旁,称为“咒”。当有“咒”的角色判定时,其改为将“咒”作为判定牌;一名角色的回合结束时,若有角色于此回合因判定而移除过“咒”,则你令这些角色各失去1点体力。', yanzheng_info:'若你的手牌数大于你的体力值,则你可以将你装备区内的牌当做【无懈可击】使用。', kuiwei_info:'结束阶段开始时,你可以摸2+X张牌并翻面。你的下个摸牌阶段开始时,你弃置X张牌(X为当前时机场上所有角色装备区内武器牌数之和)。', tongji_info:'锁定技。若你的手牌数大于你的体力值,则攻击范围包含你的其他角色使用【杀】时不能指定你以外的角色为目标。', wangzun_info:'其他角色的准备阶段开始时,你可以摸一张牌。若如此做,该角色此回合的手牌上限-1。然后你不能再发动〖妄尊〗直到回合开始。', kaikang_info:'当一名角色成为【杀】的目标后,若你至该角色的距离为1,你可以摸一张牌。若如此做,你交给其一张牌并展示之。若为装备牌,该角色可以使用此牌。', liangzhu_info:'当一名角色于其出牌阶段内回复体力时,你可以选择一项:1、摸一张牌;2、令该角色摸两张牌。', mingshi_info:'当你受到伤害时,若伤害来源的体力值大于你,你可以弃置一张黑色手牌,令伤害值-1。', lirang_info:'当你的牌因弃置而置入弃牌堆后,你可以将其中的任意张牌交给其他角色。', moukui_info:'当你使用【杀】指定目标后,你可以选择一项:摸一张牌,或弃置其一张牌。若如此做,当此【杀】被【闪】抵消时,目标角色弃置你的一张牌。 ', qiangwu_info:'出牌阶段,你可以进行判定。若如此做,直到回合结束,你使用点数小于判定结果的【杀】时不受距离限制,且你使用点数大于判定结果的【杀】时无使用次数限制。', shenxian_info:'每名角色的回合限一次,你的回合外,当有其他角色因弃置而失去基本牌时,你可以摸一张牌。', oldshenxian_info:'你的回合外,每当有其他角色因弃置而失去基本牌时,你可以摸一张牌。', qiluan_info:'一名角色的回合结束时,你可以摸3X+Y张牌。(X为你本回合内杀死过的角色数,Y为本回合内其他角色杀死过的角色数)', //qiluan_info_guozhan:'一名角色的回合结束时,若你于回合内杀死过角色,则你可以摸三张牌。', zhendu_info:'一名角色的出牌阶段开始时,你可以弃置一张手牌,视为该角色使用了一张【酒】。若该角色不是你,你对其造成一点伤害。', //zhendu_info_guozhan:'其他角色的出牌阶段开始时,你可以弃置一张手牌,视为该角色使用了一张【酒】。若如此做,你对其造成一点伤害。', shangyi_info:'出牌阶段限一次,你可以观看一名其他角色的手牌,然后弃置其中的一张黑色牌。', zniaoxiang_info:'锁定技,当你使用【杀】指定目标后,你令目标角色响应此【杀】所需要使用的【闪】的数目+1。', shoucheng_info:'当一名角色于其回合外失去手牌时,若其没有手牌,则你可令该角色摸一张牌。', shengxi_info:'弃牌阶段开始时,若你本回合内未造成过伤害,则你可以摸两张牌。', hengzheng_info:'摸牌阶段开始时,若你的体力值为1或你没有手牌,则你可以放弃摸牌,改为获得每名其他角色区域内的一张牌。', cunsi_info:'限定技,出牌阶段,你可以将所有手牌交给一名男性角色。该角色获得技能【勇决】,然后你将武将牌翻面。', yongjue_info:'每回合限一次。当其他角色于回合内使用的【杀】结算完成后,若你不是此【杀】的目标角色,则你可以获得之。', guixiu_info:'当你成为【杀】的目标后,若你的手牌数小于体力值,则你可以摸一张牌。', fenming_info:'结束阶段开始时,若你处于横置状态,你可以弃置所有处于横置状态的角色的各一张牌。', duanxie_info:'出牌阶段限一次,你可以令至多X名其他角色横置(X为你已损失的体力值且至少为1),然后你横置。', xiaoguo_info:'其他角色的结束阶段开始时,你可以弃置一张基本牌,令该角色选择一项:1.弃置一张装备牌,然后你摸一张牌;2.受到你对其造成的1点伤害。', sijian_info:'当你失去最后的手牌时,你可以弃置一名其他角色的一张牌。', suishi_info:'当其他角色进入濒死状态时,伤害来源可以令你摸一张牌;当其他角色死亡时,伤害来源可以令你失去1点体力', quji_info:'出牌阶段限一次,你可以弃置X张牌(X为你已损失的体力值),然后令至多X名已受伤的角色各回复1点体力。若你以此法弃置的牌中有黑色牌,你失去一点体力。', junbing_info:'一名角色的结束阶段开始时,若其手牌数不大于1,该角色可以摸一张牌。若如此做,该角色将所有手牌交给你,然后你交给其等量的牌。', xiongyi_info:'限定技,出牌阶段,你可以选择任意名角色,这些角色各摸三张牌。然后若你的体力值最小,你回复1点体力。', xiongyi_info_guozhan:'限定技,出牌阶段,你可以令与你势力相同的所有角色各摸三张牌,然后若你的势力是角色最少的势力(或之一),则你回复1点体力。', shenzhi_info:'准备阶段开始时,你可以弃置所有手牌。若你以此法弃置的牌数不小于X,你回复1点体力(X为你的体力值)。', shushen_info:'当你回复1点体力时,你可以令一名其他角色选择回复1点体力或摸两张牌。', wuji_info:'觉醒技,结束阶段开始时,若你于此回合内造成过3点或更多伤害,你加1点体力上限并回复1点体力,失去〖虎啸〗,然后从场上、牌堆或弃牌堆中获得【青龙偃月刀】', xueji_info:'出牌阶段限一次,你可以弃置一张红色牌,然后选择至多X名角色,横置这些角色并对其中一名角色造成1点火焰伤害。(X为你已损失的体力值且至少为1)', huxiao_info:'锁定技,当你造成火焰伤害后,你令受伤角色摸一张牌,然后你于此回合内对其使用牌没有次数限制。', aocai_info:'当你于回合外需要使用或打出一张基本牌时,你可以观看牌堆顶的两张牌(若你没有手牌则改为四张)。若你观看的牌中有此牌,你可以使用打出之。', aocai_info_guozhan:'当你于回合外需要使用或打出一张基本牌时,你可以观看牌堆顶的两张牌。若你观看的牌中有此牌,你可以使用打出之。', hongyuan_info:'摸牌阶段,你可以少摸一张牌并指定至多两名其他角色。若如此做,这些角色各摸一张牌。', hongyuan_info_combat:'摸牌阶段,你可以少摸一张牌。若如此做,其他友方角色各摸一张牌。', huanshi_info:'一名角色的判定牌生效前,你可令其观看你的手牌。若如此做,该角色选择你的一张牌,你打出此牌代替之。', mingzhe_info:'当你于回合外使用或打出红色牌,或因弃置失去一张红色牌后,你可以摸一张牌。', duwu_info:'出牌阶段,你可以弃置X张牌对你攻击范围内的一名其他角色造成1点伤害(X为该角色的体力值)。若该角色因此法进入濒死状态且存活,则你于濒死状态结算后失去1点体力,且本回合不能再发动〖黩武〗。', tianming_info:'当你成为【杀】的目标时,你可以弃置两张牌(不足则全弃,无牌则不弃),然后摸两张牌;若此时全场体力值最多的角色仅有一名且不是你,该角色也可以如此做。', mizhao_info:'出牌阶段限一次,你可以将所有手牌交给一名其他角色。若如此做,你令该角色与你指定的另一名有手牌的角色拼点,视为拼点赢的角色对没赢的角色使用一张【杀】。', yuanhu_info:'结束阶段开始时,你可以将一张装备牌置于一名角色的装备区里,然后根据此装备牌的类型执行以下对应效果。武器牌:弃置该角色距离1以内的一名角色区域中的一张牌;防具牌:该角色摸一张牌;坐骑牌:该角色回复1点体力。', lihun_info:'出牌阶段限一次,你可以弃置一张牌并选择一名其他男性角色。若如此做,你将武将牌翻面并获得其所有手牌。出牌阶段结束时,你交给其X张牌。(X为该角色的体力值)', chongzhen_info:'当你因发动〖龙胆〗而使用或打出【杀】或【闪】时,你可以获得对方的一张手牌。', bifa_info:'结束阶段开始时,你可以将一张手牌移出游戏并指定一名其他角色。该角色的准备阶段开始时,其观看你移出游戏的牌并选择一项:交给你一张与此牌类型相同的手牌并获得此牌;或将此牌置入弃牌堆,然后失去1点体力。', songci_info:'①出牌阶段,你可以选择一名未以此法选择过的角色。若其手牌数:大于其体力值,其弃置两张牌;不大于其体力值,其摸两张牌。②弃牌阶段结束时,若你已对场上所有存活角色发动过〖颂词①〗,则你摸一张牌。', yongsi_info:'锁定技。①摸牌阶段,你多摸X张牌。②弃牌阶段开始时,你弃置X张牌。(X为场上势力数)', yicong_info:'锁定技,当你的体力值大于2时,你计算与其他角色的距离时-1;当你的体力值不大于2时,其他角色计算与你的距离时+1。', baobian_info:'锁定技,若你的体力值为3或更少,你视为拥有技能〖挑衅〗;若你的体力值为2或更少;你视为拥有技能〖咆哮〗;若你的体力值为1,你视为拥有技能〖神速〗。', rebaobian:'豹变', rebaobian_info:'锁定技。当你受到伤害后,你获得以下技能中第一个未拥有的技能:〖挑衅〗/〖咆哮〗/〖神速〗。', bingzhao:'秉诏', bingzhao_info:'主公技,游戏开始时,你选择一个其他势力。当你对该势力的角色发动〖骨疽〗时,其可令你额外摸一张牌。', sunshao:'孙邵', bizheng:'弼政', bizheng_info:'摸牌阶段结束时,你可以令一名其他角色摸两张牌。然后,若你的手牌数大于体力上限,你弃置两张牌。若其的手牌数大于体力上限,其弃置两张牌。', yidian:'佚典', yidian_info:'当你使用牌选择目标时,若弃牌堆中没有与此牌名称相同的牌,则你可以为此牌增加一个目标(无距离限制)。', xinlianji:'连计', xinlianji_info:'出牌阶段限一次,你可以弃置一张手牌,令一名角色使用牌堆中的一张随机武器牌。然后其选择一项:对你指定的一名角色使用一张【杀】,或令你将其装备区里的武器牌交给任意角色。', xinmoucheng:'谋逞', xinmoucheng_info:'觉醒技,准备阶段,若有角色因你发动〖连计〗使用【杀】而造成过伤害,则你失去〖连计〗并获得〖矜功〗。', xinjingong:'矜功', xinjingong_backup:'矜功', xinjingong_info:'出牌阶段限一次,你可以将一张【杀】或装备牌当做三张随机锦囊牌中的一张使用。', caiyang:'蔡阳', yinka:'印卡', zhangling:'张陵', zlhuji:'虎骑', zlhuji_info:'锁定技,你与其他角色的距离-1,当你于回合外受到伤害后,你可进行判定,若结果为红色,视为你对伤害来源使用一张【杀】(无距离限制)。', zlshoufu:'授符', zlshoufu2:'授符', zlshoufu_info:'出牌阶段限一次,你可摸一张牌,然后将一张手牌置于一名没有【箓】的角色的武将牌上,称为【箓】;其不能使用和打出与【箓】同类型的牌。该角色受到伤害后,或于弃牌阶段弃置至少两张与【箓】同类型的牌后,将【箓】置入弃牌堆。', ol_zhangchangpu:'OL张昌蒲', olxingshen:'省身', olxingshen_info:'当你受到伤害后,你可以随机摸至多两张牌。若如此做,你获得X个“省”,且下一次发动〖严教〗展示牌时移去所有“省”并多展示等量的牌。(X为你已损失的体力值,且你至多拥有6个“省”)', caoshuang:'曹爽', tuogu:'托孤', tuogu_info:'限定技,一名角色死亡时,你可以令其选择其武将牌上的一个技能(主公技,限定技,觉醒技,隐匿技、使命技等特殊技能除外),然后你获得其选择的技能。', retuogu:'托孤', retuogu_info:'一名角色死亡时,你可以令其选择其武将牌上的一个技能(主公技,限定技,觉醒技,隐匿技、使命技等特殊技能除外),然后你获得其选择的技能并失去上次因〖托孤〗获得的技能。', shanzhuan:'擅专', shanzhuan_info:'当你对其他角色造成伤害后,若其判定区没有牌,则你你可以将其的一张牌置于其的判定区。若此牌不为延时锦囊牌且此牌为:红色,此牌视为【乐不思蜀】;黑色,此牌视为【兵粮寸断】。回合结束时,若你本回合内未造成伤害,你可摸一张牌。', spniluan:'逆乱', spniluan_info:'出牌阶段,你可以将一张黑色牌当做【杀】使用。此【杀】使用结算完成后,若你未因此【杀】造成过伤害,则你令此【杀】不计入使用次数。', spweiwu:'违忤', spweiwu_info:'出牌阶段限一次,你可以将一张红色牌当无距离限制的【顺手牵羊】使用。', spmouzhu:'谋诛', spmouzhu_backup:'谋诛', spmouzhu_info:'出牌阶段限一次,你可以选择任意名“距离为1”或“体力值等于你”的其他角色,这些角色依次进行以下结算:交给你一张手牌,然后若其手牌数小于你,则其视为对你使用一张【杀】或【决斗】。', spyanhuo:'延祸', spyanhuo_info:'当你死亡时,你可增加如下全局技能:当有角色使用【杀】时,此【杀】的伤害值基数+1。', xiaoxi:'骁袭', xiaoxi_info:'当你登场时,你可以视为使用一张【杀】。', quyi:'OL麴义', wolongfengchu:'卧龙凤雏', youlong:'游龙', youlong_info:'转换技,阴,每轮限一次,你可以废除你的一个装备栏,视为使用一张未以此法使用过的普通锦囊牌;阳,每轮限一次,你可以废除你的一个装备栏,视为使用一张未以此法使用过的基本牌。', luanfeng:'鸾凤', //luanfeng_info_fullinfo:'限定技,一名角色进入濒死状态时,若其体力上限不小于你,你可令其回复至3点体力,恢复其被废除的装备栏,令其手牌补至6-X张(X为以此法恢复的装备栏数量),重置其因“改写”使用过的牌名。若该角色是你,重置你因“游龙”使用过的牌名。', luanfeng_info:'限定技,一名角色进入濒死状态时,若其体力上限不小于你,你可令其回复至3点体力,恢复其被废除的装备栏,令其手牌补至6-X张(X为以此法恢复的装备栏数量)。若该角色是你,重置你因“游龙”使用过的牌名。', ol_xinxianying:'辛宪英', reluanzhan:'乱战', reluanzhan_add:'乱战', reluanzhan_remove:'乱战', reluanzhan_info:'当你受到或造成伤害后,你获得一个“乱”。当你使用【杀】或黑色普通锦囊牌选择目标后,你可为此牌增加至多X个目标。当你使用这些牌指定第一个目标后,若此牌目标数小于X,则你移去X/2(向上取整)个“乱”。(X为“乱”数)', zhuixi:'追摄', zhuixi_info:'锁定技,你使用【杀】的次数上限+1。', reduanbing:'短兵', reduanbing_info:'你使用【杀】选择目标后,可以为此【杀】增加一名距离为1的额外目标。你对距离为1的角色使用的【杀】需两张【闪】才能抵消。', refenxun:'奋迅', refenxun2:'奋迅', refenxun_info:'出牌阶段限一次,你可以选择一名其他角色,然后本回合你计算与其的距离视为1;结束阶段开始时,若你未对其造成过伤害,你弃一张牌。', zongyu:'宗预', zyqiao:'气傲', zyqiao_info:'每回合限两次。当你成为其他角色使用牌的目标后,你可以弃置其一张牌,然后你弃置一张牌。', zyqiao_info_guozhan:'每回合限两次。当你成为其他势力的角色使用牌的目标后,你可以弃置其一张牌,然后你弃置一张牌。', chengshang:'承赏', chengshang_info:'当你于出牌阶段内使用的牌结算完成后,若此牌未造成过伤害且此牌的目标包含其他角色且你本阶段内未因〖承赏〗得到过牌,则你可以从牌堆中获得所有与此牌花色点数相同的牌。', chengshang_info_guozhan:'当你于出牌阶段内使用的牌结算完成后,若此牌未造成过伤害且此牌的目标包含其他角色且你本阶段内未因〖承赏〗得到过牌,则你可以从牌堆中获得所有与此牌花色点数相同的牌。', panshu:'OL潘淑', weiyi:'威仪', weiyi_info:'每名角色限一次。当有角色受到伤害后,你可选择:①若其体力值不小于你,则其失去1点体力。②若其体力值不大于你且其已受伤,则其回复1点体力。', jinzhi:'锦织', jinzhi2:'锦织', jinzhi_info:'当你需要使用或打出一张基本牌时,你可弃置X+1张颜色相同的牌并摸一张牌,然后视为你使用或打出了此牌。(X为你于本轮内发动此技能的次数)', yanxiao_card:'言笑', yanxiao_global:'言笑', yanxiao_card_info:'判定阶段开始时,你获得判定区内的所有牌。', huangzu:'OL黄祖', wangong:'挽弓', wangong2:'挽弓', wangong_info:'锁定技,当你使用基本牌时,你获得如下效果:当你使用下一张牌时,若此牌为【杀】,则此牌无次数和距离限制且伤害+1。', huangchengyan:'OL黄承彦', guanxu:'观虚', guanxu_info:'出牌阶段限一次,你可以观看一名其他角色的手牌,然后你可将其中一张手牌与牌堆顶5张牌中的一张交换。若如此做,你弃置其手牌中3张花色相同的牌。', yashi:'雅士', yashi_info:'当你受到一次伤害后,你可选择一项:1. 令伤害来源的非锁定技无效直到其下个回合开始;2. 对一名其他角色发动〖观虚〗。', olwuniang:'武娘', olwuniang_info:'每回合限一次,当你于回合内使用的【杀】结算完成后,若此【杀】对应的目标数为1,则你可以令目标角色选择是否对你使用使用【杀】。你于其选择结算完成后摸一张牌,且本回合内使用【杀】的次数上限+1。', olxushen:'许身', olxushen_info:'限定技,当你进入濒死状态时,你可将体力回复至1点并获得技能〖镇南〗。然后若场上没有存活的“关索”,则你可以令一名其他男性角色选择是否将一张武将牌替换为“关索”。', olzhennan:'镇南', olzhennan2:'镇南', olzhennan_info:'【南蛮入侵】对你无效。出牌阶段限一次,你可以将任意张手牌当做【南蛮入侵】对等量的角色使用。', gaogan:'高干', juguan:'拒关', juguan_backup:'拒关', juguan_info:'出牌阶段限一次,你可将一张手牌当【杀】或【决斗】使用。若受到此牌伤害的角色未在你的下回合开始前对你造成过伤害,你的下个摸牌阶段摸牌数+2。', duxi:'杜袭', quxi:'驱徙', quxi_info:'限定技。出牌阶段结束时,你可跳过下个弃牌阶段并选择两名手牌数不同的其他角色。你将武将牌翻至背面,令这两名角色中手牌数较少的角色获得另一名角色的一张牌并获得一枚“丰”,另一名角色获得一枚“歉”。拥有“丰”/“歉”的角色的摸牌阶段额定摸牌数+1/-1。拥有“丰”/“歉”的角色死亡时,或一轮游戏开始时,你可转移“丰”/“歉”。', bixiong:'避凶', bixiong2:'避凶', bixiong_info:'锁定技,当你于弃牌阶段弃置手牌后,你不能成为与这些牌花色相同的牌的目标直到你下回合开始。', fuwei:'扶危', fuwei_info:'每回合限一次。当你的牌被其他角色弃置或获得后,你可从牌堆中获得一张与此牌名称相同的牌(若没有则改为摸一张牌)。', yuejian:'约俭', yuejian_info:'每回合限两次。当其他角色对你使用的牌A结算结束后,你可展示所有手牌。若牌A有花色且你的手牌中没有同花色的牌,则你获得牌A对应的所有实体牌。', ol_dengzhi:'OL邓芝', olxiuhao:'修好', olxiuhao_info:'每回合限一次。当你受到其他角色造成的伤害时,或对其他角色造成伤害时,你可防止此伤害,然后令伤害来源摸两张牌。', olsujian:'素俭', olsujian_given:'已分配', olsujian_info:'锁定技。弃牌阶段开始前,你将此阶段的规则改为:{你选择一项:①将所有不为本回合得到的手牌分配给其他角色。②弃置这些手牌,然后弃置一名其他角色等量的牌}。', ol_wangrong:'OL王荣', olfengzi:'丰姿', olfengzi_info:'出牌阶段限一次。当你使用有目标的基本牌或普通锦囊牌时,你可弃置一张与此牌类型相同的牌,然后令此牌结算两次。', oljizhan:'吉占', oljizhan_info:'摸牌阶段开始时,你可以放弃摸牌。你展示牌堆顶的一张牌,并猜测牌堆顶的下一张牌点数大于或小于此牌。若你猜对,你可继续重复此流程。然后你获得以此法展示的所有牌。', olfusong:'赋颂', olfusong_info:'当你死亡时,你可以选择一名体力上限大于你的其他角色。其选择获得〖吉占〗或〖丰姿〗。', zuofen:'左棻', zhaosong:'诏颂', zhaosong_info:'一名其他角色的摸牌阶段结束时,若其没有因〖诏颂〗而获得的标记,则你可令其正面向上交给你一张手牌。根据此牌的类型,该角色获得对应的标记和效果:
    锦囊牌:“诔”标记。当拥有者进入濒死状态时,其可弃置所有“诔”,将体力回复至1点并摸1张牌。
    装备牌:“赋”标记。拥有者的出牌阶段开始时,其可弃置所有“赋”,弃置一名角色区域内的至多两张牌。
    基本牌:“颂”标记。当使用者使用仅指定一个目标的【杀】时,其可弃置“颂”,为此【杀】增加至多两个目标。', lisi:'离思', lisi_info:'当你于回合外使用的牌结算结束后,你可将其交给一名手牌数不大于你的其他角色。', ol_yangyi:'杨仪', oljuanxia:'狷狭', oljuanxia_info:'结束阶段,你可以选择一名其他角色。你依次视为对其使用至多三种单目标普通锦囊牌。然后其下回合结束时,可视为对你使用等量的【杀】。', oldingcuo:'定措', oldingcuo_info:'每回合限一次。当你受到或造成伤害后,你可摸两张牌。若这两张牌颜色不同,则你弃置一张手牌。', fengfangnv:'OL冯妤', zhuangshu:'妆梳', zhuangshu_info:'①游戏开始时,你可将{【琼梳】,【犀梳】,【金梳】}中的一张牌置于装备区。②一名角色的回合开始时,若其宝物区为空,则你可以弃置一张牌,并根据此牌的类型,按如下关系将一张宝物牌置入该角色的装备区:{<基本牌,【琼梳】>,<锦囊牌,【犀梳】>,<装备牌,【金梳】>}。', chuiti:'垂涕', chuiti_info:'每回合限一次。当你或拥有〖妆梳〗牌角色的牌因弃置而进入弃牌堆后,你可使用其中的一张牌。', zhuangshu_basic:'琼梳', zhuangshu_basic_bg:'琼', zhuangshu_basic_info:'当你受到伤害时,你可以弃置X张牌并防止此伤害(X为伤害值)。当此牌不因交换装备或移动至其他装备区而离开你的装备区后,销毁之。', zhuangshu_trick:'犀梳', zhuangshu_trick_bg:'犀', zhuangshu_trick_info:'判定阶段开始前,你可选择:①跳过此阶段。②跳过本回合的弃牌阶段。当此牌不因交换装备或移动至其他装备区而离开你的装备区后,销毁之。', zhuangshu_equip:'金梳', zhuangshu_equip_bg:'金', zhuangshu_equip_info:'锁定技。出牌阶段结束时,你将手牌摸至手牌上限(至多摸五张)。当此牌不因交换装备或移动至其他装备区而离开你的装备区后,销毁之。', ol_dongzhao:'董昭', olxianlve:'先略', olxianlve_info:'①主公的回合开始时,你可声明并记录一个锦囊牌的名称并移除先前的记录。②每回合限一次,其他角色使用〖先略〗记录过的锦囊牌后,你可摸两张牌并可以分配给任意其他角色,然后你可声明并记录一个锦囊牌的名称并移除先前的记录。', olzaowang:'造王', olzaowang2:'造王', olzaowang_info:'限定技。出牌阶段,你可以令一名角色加1点体力上限,回复1点体力并摸三张牌,且获得如下效果:主公死亡时,若其身份为忠臣,则其和主公交换身份牌;其死亡时,若其身份为反贼且伤害来源的身份为主公或忠臣,则以主忠胜利结束本局游戏。', sp_ol_zhanghe:'SP张郃', spolzhouxuan:'周旋', spolzhouxuan_info:'①弃牌阶段开始时,你可将任意张置于武将牌上,称为“旋”(你至多拥有五张“旋”)。②当你使用牌时,你随机将一张“旋”置入弃牌堆,然后摸一张牌(若你的手牌数不为全场唯一最多则额外摸X张牌,X为“旋”数)。③出牌阶段结束时,你将所有“旋”置入弃牌堆。', wuyan:'吾彦', lanjiang:'澜疆', lanjiang_info:'结束阶段,你可以选择所有手牌数不小于你的角色。这些角色依次选择是否令你摸一张牌。然后你可以对其中一名手牌数等于你的角色造成1点伤害,随后可以对其中一名手牌数小于你的角色摸一张牌。', ol_zhuling:'OL朱灵', jixian:'急陷', jixian_info:'摸牌阶段结束时,你可以选择一名满足以下至少一项条件的角色:⒈装备区内有防具牌;⒉拥有的普通技能数大于你;⒊体力值等于体力上限。你视为对其使用一张【杀】,然后摸X张牌(X为其于此【杀】结算前满足的条件数);若此【杀】未造成伤害,则你失去1点体力。', ol_chendeng:'OL陈登', olfengji:'丰积', olfengji_info:'摸牌阶段开始时,你选择:⒈本回合摸牌阶段的额定摸牌数-1,且令一名其他角色下回合摸牌阶段的额定摸牌数+2;⒉本回合摸牌阶段的额定摸牌数+1。然后你选择:⒈本回合使用【杀】的次数上限-1,且令一名其他角色下回合使用【杀】的次数上限+2;⒉本回合使用【杀】的次数上限+1。', tianyu:'田豫', saodi:'扫狄', saodi_info:'当你使用【杀】或普通锦囊牌指定唯一其他角色为目标时,你可从逆时针方向和顺时针方向中选择一个你与其之间角色最少的方向。你令该方向下你与其之间的所有能成为此牌额外目标的角色均成为此牌的目标。', zhuitao:'追讨', zhuitao_info:'①准备阶段,你可选择一名未被〖追讨〗记录过的其他角色。②你至所有〖追讨〗记录过的角色的距离-1。③当你对一名被〖追讨〗记录过的角色造成伤害时,你从〖追讨〗记录里移除该角色。', fanjiangzhangda_ab:'范疆张达', fanjiangzhangda:'范强张达', yuanchou:'怨仇', yuanchou_info:'锁定技。当你使用黑色【杀】指定目标角色后或成为黑色【杀】的目标角色后,你令目标角色的防具技能无效直到此【杀】被抵消或造成伤害。', juesheng:'决生', juesheng_info:'限定技。出牌阶段,你可视为使用一张【决斗】。当你因此【决斗】造成伤害时,你将伤害值改为X(X为目标角色本局游戏内使用过【杀】的数量且至少为1)且令目标角色获得此技能直到其下回合结束。', qinghegongzhu:'清河公主', zengou:'谮构', zengou_info:'当有角色使用【闪】时,若其在你的攻击范围内,则你可以弃置一张非基本牌或失去1点体力,然后取消此【闪】的目标并获得其对应的实体牌。', qhzhangji:'长姬', qhzhangji_info:'一名角色的回合结束时,若你本回合内:造成过伤害,则你可以令其摸两张牌;受到过伤害,则你可以令其弃置两张牌。', sp_menghuo:'SP孟获', spmanwang:'蛮王', spmanwang_info:'出牌阶段,你可以弃置任意张牌。然后你依次执行以下选项中的前X项:⒈获得〖叛侵〗。⒉摸一张牌。⒊回复1点体力。⒋摸两张牌并失去〖叛侵〗。', sppanqin:'叛侵', sppanqin_info:'出牌阶段或弃牌阶段结束时,你可将你于本阶段内弃置且位于弃牌堆的所有牌当做【南蛮入侵】使用。然后若此牌被使用时对应的实体牌数不大于此牌的目标数,则你执行并移除〖蛮王〗中的最后一个选项。', tengfanglan:'OL滕芳兰', luochong:'落宠', luochong_info:'准备阶段开始时/当你于一回合内首次受到伤害后,你可选择本轮内未选择过的一项(每名角色每轮限选一次):⒈令一名角色回复1点体力。⒉令一名角色失去1点体力。⒊令一名角色弃置两张牌。⒋令一名角色摸两张牌。', aichen:'哀尘', aichen_info:'锁定技。当你进入濒死状态时,若〖落宠〗中的剩余选项数大于1,则你选择移去〖落宠〗中的一个选项。', weizi:'卫兹', yuanzi:'援资', yuanzi_info:'每轮限一次。其他角色的准备阶段开始时,你可将所有手牌交给该角色。若如此做,当该角色于本回合内造成伤害后,若其手牌数不小于你,则你摸两张牌。', liejie:'烈节', liejie_info:'当你受到伤害后,你可以弃置至多三张牌,摸等量的牌,然后可弃置伤害来源的至多X张牌(X为你以此法弃置的红色牌的数量)。', ruiji:'OL芮姬', qiaoli:'巧力', qiaoli_info:'①你可以将一张装备牌当做【决斗】使用。若此【决斗】对应的实体牌:为武器牌,当你以此法声明使用【决斗】后,你摸X张牌(X为此牌的攻击范围),且可以将其中任意张牌分配给其他角色;不为武器牌,此牌不可被响应。②结束阶段开始时,若你于本回合内发动过〖巧力①〗,则你从牌堆中获得一张装备牌。', qiaoli_given:'已分配', qingliang:'清靓', qingliang_info:'每回合限一次。当你成为其他角色使用牌的目标时,你可展示所有手牌,然后选择一项:⒈你与其各摸一张牌,⒉取消此目标,然后弃置你手牌中一种花色的所有牌。', chixueqingfeng:'赤血青锋', chixueqingfeng2:'赤血青锋', chixueqingfeng_info:'锁定技,当你使用【杀】指定目标后,你令目标角色不能使用或打出手牌且防具技能无效直到此【杀】结算结束。', wushuangfangtianji:'无双方天戟', wushuangfangtianji_skill:"无双方天戟", wushuangfangtianji_info:"当你因执行【杀】的效果而造成伤害后,你可选择一项:⒈摸一张牌;⒉弃置目标角色的一张牌。", guilongzhanyuedao:'鬼龙斩月刀', guilongzhanyuedao_info:'锁定技,你使用的红色【杀】不可被响应。', bintieshuangji:'镔铁双戟', bintieshuangji_skill:'镔铁双戟', bintieshuangji_info:'当你使用的【杀】被抵消后,你可失去1点体力。获得此【杀】对应的所有实体牌,摸一张牌,且本回合使用【杀】的次数上限+1。', linglongshimandai:"玲珑狮蛮带", linglongshimandai_info:"当你成为其他角色使用的牌的唯一目标后,你可以进行判定。若判定结果为♥,则此牌对你无效。", linglongshimandai_skill:"玲珑狮蛮带", hongmianbaihuapao_skill:"红棉百花袍", hongmianbaihuapao:"红棉百花袍", hongmianbaihuapao_info:"锁定技,当你受到属性伤害时,防止此伤害。", qimenbagua:'奇门八卦', qimenbagua_info:'锁定技,【杀】对你无效。', guofengyupao:'国风玉袍', guofengyupao_info:'锁定技,你不是其他角色使用普通锦囊牌的合法目标。', shufazijinguan:'束发紫金冠', shufazijinguan_skill:"束发紫金冠", shufazijinguan_info:"准备阶段,你可以对一名其他角色造成1点伤害。", sanlve:'三略', sanlve_skill:'三略', sanlve_info:'锁定技。你的攻击范围+1。你的手牌上限+1。你使用【杀】的次数上限+1。', zhaogujing:'照骨镜', zhaogujing_skill:'照骨镜', zhaogujing_info:'出牌阶段结束时,你可展示手牌中的一张基本牌或普通锦囊牌,然后你视为使用一张牌名和属性与此牌相同的牌。', xuwangzhimian:'虚妄之冕', xuwangzhimian_info:'锁定技,摸牌阶段,你令额定摸牌数+2;你的手牌上限-1。', ol_puyuan:'OL蒲元', olshengong:'神工', olshengong_info:'出牌阶段每项限一次。你可以弃置一张武器牌/防具牌/其他装备牌,并发起一次“锻造”。然后你从锻造结果中选择一张牌,置于一名角色的装备区内(可替换原装备)。当有因你发动〖神工〗而加入游戏的牌进入弃牌堆后,你将此牌移出游戏,然后你于当前回合结束后摸一张牌。', olqisi:'奇思', olqisi_info:'①游戏开始时,你获得两张副类别不同的牌,并将这些牌置入你的装备区。②摸牌阶段开始时,你可以少摸一张牌并声明一种装备牌的副类别,然后从牌堆或弃牌堆中获得一张该副类别的牌。', olzhuiji:'追击', olzhuiji_info:'锁定技。①你至体力值不大于你的角色的距离为1。②当你使用【杀】指定距离为1的角色为目标后,你令其选择一项:⒈弃置一张牌。⒉重铸装备区内的所有牌。', zhaoyǎn:'OL赵俨', tongxie:'同协', tongxie_info:'出牌阶段开始时,你可以选择包括你在内的至多三名角色(你与这些角色均称为“同协角色”)。这些角色中手牌数唯一最少的角色摸一张牌,且你获得如下效果直到你下回合开始:①当有“同协角色”对唯一目标角色使用的【杀】结算结束后,其他“同协角色”可以依次对目标角色使用一张【杀】(无距离和次数限制,且不能再触发此效果)。②当有“同协角色”受到伤害时,其他“同协角色”(本回合内失去过体力的角色除外)可以防止此伤害,失去1点体力。', jin_zhouchu:'周处', shanduan:'善断', shanduan_info:'锁定技。①回合开始时,你生成数组R=[1,2,3,4]。②摸牌阶段开始时,你从数组R中选择并移除一个数字A。你本阶段的额定摸牌数改为A。③出牌阶段开始时,你从数组R中选择并移除两个数字B和C。你将你本阶段内的攻击范围基数最小值和使用【杀】的次数上限基础值改为B和C。④弃牌阶段开始时,你从数组R中选择并移除一个数字D。你令你本回合的手牌上限基数改为D。⑤当你于回合外受到伤害后,你令下回合生成的R中最小的一个数字+1。', yilie:'义烈', yilie_info:'每轮每种牌名限一次。你可以将两张颜色相同的手牌当做任意一种基本牌使用。', caoxiancaohua:'曹宪曹华', huamu:'化木', huamu_info:'当你使用手牌后,若此牌和本回合内上一张被使用的牌颜色不同,则你可以将此牌对应的所有{位于处理区或装备区}的实体牌置于你的武将牌上。这些牌中的黑色牌称为“灵杉”,红色牌称为“玉树”。', qianmeng:'前盟', qianmeng_info:'锁定技。当有牌移动事件结算结束后,若有角色的“灵杉”和“玉树”数量发生了变化,且二者数量相等或有一项为0,则你摸一张牌', liangyuan:'良缘', liangyuan_info:'每轮每项各限一次。你可以将场上所有的“灵杉”/“玉树”置于处理区,然后将这些牌当做【酒】/【桃】使用。', jisi:'羁肆', jisi_info:'限定技。准备阶段,你可以令一名其他角色获得你武将牌上的一个已发动过的其他技能。然后你弃置所有手牌,并视为对其使用一张【杀】(无距离关系的限制)。', huojun:'OL霍峻', qiongshou:'穷守', qiongshou_info:'锁定技。①游戏开始时,你废除所有装备栏并摸四张牌。②你的手牌上限+4。', fenrui:'奋锐', fenrui_info:'结束阶段,你可以弃置一张牌并恢复一个装备栏。系统检索一张对应的装备牌,你使用之。然后你可以选择一名装备区内牌数小于你的其他角色,对其造成X点伤害(X为你与其装备区内的牌数之差,且每局限一次)。', wangyan:'王衍', yangkuang:'阳狂', yangkuang_info:'当你回复体力后,若你的体力值等于体力上限,则你可以视为使用一张【酒】,然后当前回合角色摸一张牌,你摸一张牌。', cihuang:'雌黄', cihuang_info:'当有牌被抵消后,若此牌的目标数为1且此牌的使用者A为当前回合角色,则你可以将一张牌当做一张你本轮内未使用过的属性【杀】或单目标锦囊牌对A使用(不可被响应)。', sanku:'三窟', sanku_info:'锁定技。①当你进入濒死状态时,你减1点体力上限,然后将体力回复至体力上限。②当你加体力上限前,取消之。', dengzhong:'邓忠', dzkanpo:'勘破', dzkanpo_info:'①当你因执行【杀】的效果而造成伤害后,你可以观看目标角色的手牌,然后获得其中一张与此【杀】花色相同的牌。②每回合限一次,你可以将一张手牌当做【杀】使用。', dzgengzhan:'更战', dzgengzhan_info:'①其他角色的出牌阶段限一次,当有【杀】因弃置而进入弃牌堆后,你可以获得这些【杀】。②其他角色的结束阶段,若其本回合内未使用过【杀】,则你下个出牌阶段使用【杀】的次数上限+1。', xiahouxuan:'夏侯玄', olhuanfu:'宦浮', olhuanfu_info:'当你使用【杀】指定第一个目标后,或成为【杀】的目标后,你可以弃置X张牌(X∈[1, 你的体力上限])。此【杀】结算结束后,若此【杀】累计因执行效果而造成的伤害值等于X,则你摸2X张牌。', olqingyi:'清议', olqingyi_info:'①出牌阶段限一次,你可以选择至多两名有牌的其他角色。你和这些角色同时弃置一张牌,然后若这些牌类型均相同,则你重复此流程。②结束阶段开始时,若你本回合内发动〖清议①〗弃置的牌包含两种颜色,则你获得每种颜色的牌各一张。', olzeyue:'迮阅', olzeyue_info:'限定技。准备阶段,你可以选择一名于你的上个回合结束后对你造成过伤害的角色A及其武将牌上的一个非锁定技B,令A的B失效。然后每轮游戏开始时,A依次视为对你使用X张【杀】(X为B失效状态下经过的完整轮数)。当你因这些【杀】受到伤害后,你令A恢复技能B。', xindiaodu:"调度", xindiaodu_info:"①每回合限一次,与你势力相同的角色使用装备牌时,其可以摸一张牌。②出牌阶段开始时,你可以获得与你势力相同的一名角色装备区内的一张牌,然后你可以将此牌交给另一名与你势力相同的其他角色。", olhuanshi:'缓释', olhuanshi_info:'一名角色的判定牌生效前,你可以令其观看你的手牌并选择你的一张牌,你打出此牌代替判定牌。然后你可以重铸任意张牌(每回合限重铸一次)。', olhongyuan:'弘援', olhongyuan_info:'每阶段限一次。当你一次性获得至少两张牌以后,你可以将至多两张牌交给等量名角色。', olmingzhe:'明哲', olmingzhe_info:'锁定技。当你于出牌阶段外失去红色牌后,你展示这些牌中所有背面朝上移动的牌(没有则不展示),然后摸一张牌。', ahuinan:'阿会喃', jueman:'蟨蛮', jueman_info:'锁定技。一名角色的回合结束时,若本回合被使用过的基本牌数不小于2,且前两张基本牌的使用者:均不为你,你视为使用本回合被使用的第三张基本牌;有且仅有其中之一为你,你摸一张牌。', ol_liuba:'OL刘巴', oltongduo:'统度', oltongduo_info:'准备阶段,你可以令一名角色交给你一张手牌,然后出牌阶段结束时,你将此牌置于牌堆顶。', olzhubi:'铸币', olzhubi_tag:'币', olzhubi_info:'①出牌阶段限X次(X为你的体力上限)。你可以令一名角色重铸一张牌,以此法获得的牌称为“币”。②一名角色的结束阶段,若其有“币”,其观看牌堆底的五张牌,然后可以用任意“币”交换其中等量张牌。', ol_furong:'傅肜', olxiaosi:'效死', olxiaosi_info:'出牌阶段限一次。你可以选择一名有手牌的其他角色并弃置一张基本牌。若其有可被弃置的基本牌,其弃置一张基本牌。然后你可以以任意顺序使用你与其以此法弃置的牌(无距离和次数限制)。最后若其未以此法弃置牌,你摸一张牌。', zhangzhi:'张芝', olbixin:'笔心', olbixin_info:'一名角色的准备阶段或结束阶段,你可以声明一种牌的类型(每种类型限[1]次),并选择一种你本轮未使用过且有合法目标的的基本牌。你摸[3]张牌,然后若你有此类型的手牌,你将所有此类型的手牌当此基本牌使用。', olximo:'洗墨', olximo_info:'锁定技。当你发动〖笔心〗后,你移除其描述的前五个字符。若你已发动三次〖笔心〗,交换中括号中的两个数字,失去〖洗墨〗并获得〖飞白〗。', olfeibai:'飞白', olfeibai_info:'转换技,锁定技。阴:当你因执行你使用的非黑色牌的效果而造成伤害时,此伤害值+1;阳:当你因执行你使用的非红色牌的效果而回复体力时,此回复值+1。', olqizhou:'绮冑', olqizhou_info:'锁定技。每个回合开始前,或当你装备区内的牌发生变化后,你失去所有因此技能获得过的额外技能,然后根据你装备区内的花色数获得对应的技能。至少一种:〖短兵〗、至少两种:〖英姿〗、至少三种:〖奋威〗、至少四种:〖澜江〗。', olshanxi:'闪袭', olshanxi_info:'出牌阶段限一次。你可以选择一名攻击范围内不包含你的其他角色,展示你与其的至多X张手牌(X为你的空装备栏数)。若这些牌中有【闪】,则你弃置这些【闪】,然后获得对方的一张未展示的牌。', macheng:'马承', olchenglie:'骋烈', olchenglie_info:'当你使用【杀】选择目标后,你可以令至多两名角色也成为此牌目标,并展示牌堆顶的等同于目标数张牌,然后你可以将一张手牌与其中一张牌交换,将这些牌扣置于每名目标角色武将牌上,称为“骋烈”牌。此牌结算结束后:1.若有红色“骋烈”牌的角色:响应过此【杀】,其交给你一张牌;未响应此【杀】,其回复1点体力;2.有“骋烈”牌的角色将其“骋烈”牌置入弃牌堆。', quhuang:'屈晃', olqiejian:'切谏', olqiejian_info:'当一名角色失去最后的手牌后,你可以摸一张牌,然后令其摸一张牌,你选择一项:1.弃置你或其场上的一张牌;2.你于本轮不能再对其发动此技能。', olnishou:'泥首', olnishou_info:'锁定技。当你装备区里的牌进入弃牌堆后,你选择一项:1.将这些牌中第一张能当【闪电】对你使用的牌当【闪电】使用;2.本阶段结束时,你与一名手牌数最少的角色交换手牌。', zhanghua:'张华', olbihun:'弼昏', olbihun_info:'锁定技。当你使用牌指定其他角色为目标时,若你的手牌数大于手牌上限且若此牌的目标数:大于1,取消此目标;为1,其获得此牌。', olchuanwu:'穿屋', olchuanwu_info:'锁定技。当你造成或受到伤害后,你令武将牌上的前X个技能失效直到回合结束。然后你摸等同于你此次失效的技能数张牌(X为你的攻击范围)。', oljianhe:'剑合', oljianhe_info:'出牌阶段每名角色限一次。你可以重铸至少两张同名牌或至少两张装备牌,然后令一名角色选择一项:1.重铸等量张与你以此法重铸的牌类型相同的牌;2.受到你造成的1点雷电伤害。', dongtuna:'董荼那', oljianman:'鹣蛮', oljianman_info:'锁定技。一名角色的回合结束时,若本回合被使用过的基本牌数不小于2,且前两张基本牌的使用者:均为你,你视为使用其中的一张牌;有且仅有其中之一为你,你弃置另一名使用者一张牌。', maxiumatie:'马休马铁', olkenshang:'垦伤', olkenshang_info:'你可以将任意张牌当【杀】使用,然后你可以将此牌目标改为所有你攻击范围外的角色。此牌结算结束后,若此牌对应的实体牌数大于X,你摸X张牌(X为此牌造成过的伤害值),否则你失去一个技能。', rekenshang:'垦伤', rekenshang_info:'你可以将至少两张牌当【杀】使用,然后你可以将此牌目标改为等量名角色。此牌结算结束后,若此牌对应的实体牌数大于此牌造成过的伤害值,你摸一张牌。', ol_zhujun:'OL朱儁', olcuipo:'摧破', olcuipo_info:'锁定技。当你使用牌时,若此牌是你本回合使用的第X张牌(X为此牌牌名的字数),则:{若此牌为【杀】或伤害类锦囊牌,则此牌的伤害值基数+1,否则你摸一张牌}。', ol_zhangyì:'OL张翼', oldianjun:'殿军', oldianjun_info:'锁定技。回合结束时,你受到1点无来源伤害,然后执行一个额外的出牌阶段。', olkangrui:'亢锐', olkangrui_info:'当一名角色于其回合内首次受到伤害后,你可以摸一张牌并选择一项:1.令其回复1点体力;2.令其于本回合下次造成的伤害+1。然后当其于本回合造成伤害时,其本回合手牌上限基数为0。', wangguan:'王瓘', olmiuyan:'谬焰', olmiuyan_tag:'invisible', olmiuyan_info:'转换技。你可以将一张黑色牌当做【火攻】使用。然后若此技能:处于阳状态且此牌造成了伤害,则你获得此阶段内所有被展示过的手牌;处于阴状态且未造成伤害,则你令此技能失效直到本轮结束。', olshilu:'失路', olshilu_info:'锁定技。当你受到伤害后,你摸X张牌(X为你的体力值且至多为5)。然后你展示攻击范围内一名角色的一张手牌,令此牌的牌名视为【杀】。', ol_huban:'OL胡班', olhuiyun:'晖云', olhuiyun_tag:'invisible', olhuiyun_info:'每轮每项各限一次。你可以将一张牌当【火攻】使用。此牌结算结束后,你选择一项,令目标角色选择是否执行:1.使用展示的牌,然后重铸所有手牌;2.使用一张手牌,然后重铸展示牌;3.摸一张牌。', sunhong:'孙弘', olxianbi:'险诐', olxianbi_info:'出牌阶段限一次。你可以选择一名角色,然后将手牌摸至或弃置至等同于其装备区里的牌数(至多摸五张),且当你因此弃置一张牌后,你随机获得弃牌堆中的另一张类型相同的牌。', olzenrun:'谮润', olzenrun_info:'每阶段限一次。当你摸牌时,你可以改为获得一名其他角色等量的牌,然后其选择一项:1.摸等量的牌;2.令你本局游戏不能再对其发动〖险诐〗和〖谮润〗。', luoxian:'罗宪', oldaili:'带砺', oldaili_tag:'带砺', oldaili_info:'一名角色的回合结束时,若你被展示过的手牌数为偶数,则你可以翻面,摸三张牌并展示之。', zhangshiping:'张世平', olhongji:'鸿济', olhongji_info:'每轮每项各限一次。一名角色的准备阶段,若其手牌数最少/最多,你可以令其于本回合第一个摸牌阶段/出牌阶段后执行一个额外的摸牌阶段/出牌阶段(若其条件同时满足则只能选择一项)。', olxinggu:'行贾', olxinggu_info:'①游戏开始时,你将牌堆中的三张坐骑牌扣置于武将牌上。②结束阶段,你可以将一张〖行贾①〗牌置于一名其他角色的装备区,然后你从牌堆获得一张♦牌。', lushi:'卢氏', olzhuyan:'驻颜', olzhuyan_info:'每名角色每项各限一次。结束阶段,你可以令一名角色将以下一项调整至与其上一个准备阶段结束后相同:1.体力值;2.手牌数(体力值至多失去至1,手牌数至多摸至5;若其未执行过准备阶段则改为游戏开始时)。', olleijie:'雷劫', olleijie_info:'准备阶段,你可以令一名角色判定,若结果为♠2~9,其受到2点雷电伤害,否则其摸两张牌。', ol_liuyan:'OL刘焉', olpianan:'偏安', olpianan_info:'锁定技。游戏开始或弃牌阶段结束时,你弃置所有不为【闪】的手牌(没有则不弃)。若你的手牌数小于体力值,你获得牌堆或弃牌堆中的前X张【闪】(X为你的体力值与手牌数的差)。', olyinji:'殷积', olyinji_info:'锁定技。结束阶段,若你的体力值不为唯一最大,你选择回复1点体力或加1点体力上限。', olkuisi:'窥伺', olkuisi_info:'锁定技。摸牌阶段开始时,你跳过此阶段,然后观看牌堆顶的四张牌并可以使用其中任意张。若你以此法使用的牌数不为2或3,你减1点体力上限。', ol_wanglang:'OL王朗', oljici:'激词', oljici_info:'当你的拼点牌亮出后,若点数不大于X,你可令点数+X并令〖鼓舌〗视为未发动过(X为你的“饶舌”标记数)。', ol_mengda:'OL孟达', olgoude:'苟得', olgoude_info:'一名角色的回合结束时,若有与你势力相同的角色执行过以下项,则你可以执行这些角色未执行过的一项:1.摸一张牌;2.弃置一名角色的一张手牌;3.使用一张无对应实体牌的【杀】;4.变更势力。', haopu:'郝普', olzhenying:'镇荧', olzhenying_info:'出牌阶段限两次。你可以选择一名手牌数不大于你的其他角色,你与其同时将手牌摸或弃置至至多两张。然后你与其中手牌数较少的角色视为对另一名角色使用一张【决斗】。', ol_wenqin:'文钦', olguangao:'犷骜', olguangao_info:'当你/其他角色使用【杀】时,你/该角色可以额外指定一个目标/你为目标(有距离限制)。然后若你的手牌数为偶数,你摸一张牌并令此牌对任意目标无效(可不选)。', olhuiqi:'彗企', olhuiqi_info:'觉醒技。一名角色回合结束后,若仅有三名角色于此回合成为过牌的目标,你获得〖偕举〗并获得一个额外的回合。', olxieju:'偕举', olxieju_info:'出牌阶段限一次。你可以令任意名本回合成为过牌的目标的角色依次视为使用一张【杀】。', ol_zhouqun:'周群', oltianhou:'天候', oltianhou_info:'锁定技。准备阶段,你观看牌堆顶的一张牌,且可以用你的一张牌交换此牌。然后你展示牌堆顶的牌,令一名角色根据此牌的花色获得对应的技能直到你下个准备阶段开始:♠〖骤雨〗;♥〖烈暑〗;♣〖严霜〗;♦〖凝雾〗。', olchenshuo:'谶说', olchenshuo_info:'结束阶段,你可以展示一张手牌,然后展示牌堆顶的一张牌。若这两张牌类型/花色/点数/牌名字数中任一项相同且已展示的牌数小于3,则你重复此流程,然后获得所有所有展示牌。', oltianhou_spade:'骤雨', oltianhou_spade_miehuo:'骤雨', oltianhou_spade_info:'锁定技。其他角色造成火属性伤害时,取消之;一名角色受到雷属性伤害后,所有与其座次相邻的角色失去1点体力。', oltianhou_heart:'烈暑', oltianhou_heart_info:'锁定技。其他角色的结束阶段开始时,若其体力值为全场最大,则其失去1点体力。', oltianhou_club:'严霜', oltianhou_club_info:'锁定技。其他角色的结束阶段开始时,若其体力值为全场最小,则其失去1点体力。', oltianhou_diamond:'凝雾', oltianhou_diamond_info:'锁定技。其他角色使用【杀】指定与其座次不相邻唯一目标时,则其判定。若判定结果的点数大于此【杀】,则此【杀】对其无效。', duanjiong:'段颎', olsaogu:'扫谷', olsaogu_info:'转换技。①出牌阶段,你可以。阴:弃置两张牌(不能包含你本阶段弃置过的花色),然后使用其中的【杀】;阳:摸一张牌。②结束阶段,你可以弃置一张牌,令一名其他角色执行你当前〖扫谷①〗的分支。', olcuorui:'挫锐', olcuorui_info:'锁定技。①游戏开始时,你将手牌摸至场上存活人数张(至多摸至8张)。②当你成为延时锦囊牌的目标后,你跳过下个判定阶段。', olmouzhu:'谋诛', olmouzhu_info:'出牌阶段限一次,你可以令一名有手牌的其他角色交给你一张手牌。然后若其手牌数小于你,其视为使用一张【杀】或【决斗】。', olyanhuo:'延祸', olyanhuo_info:'当你死亡时,你可以弃置杀死你的角色至多X张牌(X为你的牌数)。', olniluan:'逆乱', olniluan_info:'体力值大于你的其他角色的结束阶段,若其本回合内使用过【杀】,则你可以将一张黑色牌当作【杀】对其使用(无距离限制)。', olxiaoxi:'骁袭', olxiaoxi_info:'一轮游戏开始时,你可以视为使用一张无距离限制的【杀】。', ol_qianzhao:'牵招', olweifu:'威抚', olweifu_info:'出牌阶段,你可以弃置一张牌并判定。你本回合下次使用与结果类型相同的牌无距离限制,且可以额外指定一个目标。若你弃置的牌与判定牌类型相同,你摸一张牌。', olkuansai:'款塞', olkuansai_info:'当一张牌指定第一个目标后,若目标数大于你的体力值,你可以令其中一个目标选择一项:1.交给你一张牌;2.令你回复1点体力。', ol_luyusheng:'OL陆郁生', olcangxin:'藏心', olcangxin_info:'①当你受到伤害时,你可以观看牌堆底的三张牌并弃置其中任意张牌,若你以此法弃置了红桃牌,则防止此伤害。②摸牌阶段,你多摸X张牌(X为牌堆底前三张牌中红桃牌的数量)。', skill_luyusheng_B:'技能', skill_luyusheng_B_info:'其他角色的弃牌阶段开始时,若其已受伤且其手牌数不等于其体力上限,则你可以选择一项:①令其弃置一张牌,其本回合手牌上限+1;②令其摸一张牌,其本回合手牌上限-1。', caoxi:'曹羲', olgangshu:'刚述', olgangshu_info:'①当你使用非基本牌结算结束后,你可以令以下一项数值+1(每项至多以此法+5):1.攻击范围;2.受〖刚述〗影响的下个摸牌阶段摸牌数;3.使用【杀】的次数上限。②当有牌被你抵消后,重置你〖刚述①〗增加的所有数值。', oljianxuan:'谏旋', oljianxuan_info:'当你受到伤害后,你可以令一名角色摸一张牌,然后若其手牌数等于你〖刚述①〗中的任意一项对应的数值,其可以重复此流程。', ol_pengyang:'OL彭羕', olqifan:'器翻', olqifan_info:'当你需要使用不为【无懈可击】的牌时,你可以观看牌堆底的X+1张牌并使用其中的一张。此牌结算结束时,你依次弃置以下前X个区域中的所有牌:⒈判定区、⒉装备区、⒊手牌区(X为你因此技能使用过的牌中包含的类型数)。', oltuishi:'侻失', oltuishi_info:'锁定技。①你不能使用【无懈可击】。②当你使用点数为字母的牌后,你摸两张牌,且你使用的下一张牌无距离和次数限制。', sp_tianji:'天极·皇室宗亲', sp_sibi:'四弼·辅国文曲', sp_tianzhu:'天柱·势冠一方', sp_nvshi:'女史·留史巾帼', sp_shaowei:'少微·能人异士', sp_huben:'虎贲·勇冠三军', sp_liesi:'列肆·豪商巨贾', sp_default:"天同·同名异势", sp_qifu:'灯愿·祈福武将', sp_wanglang:'OL·限定专属', sp_zhongdan:"忠胆英杰", sp_guozhan:"国战", sp_guozhan2:"国战移植", sp_others:"其他", sp_waitforsort:'等待分包', }, }; });