'use strict'; game.import('character',function(lib,game,ui,get,ai,_status){ return { name:'sp', connect:true, characterSort:{ sp:{ sp_default:["caoying","simahui","yangxiu","chenlin","caohong","xiahouba","yuanshu","sp_diaochan","sp_zhaoyun","liuxie","zhugejin","zhugeke","guanyinping","simalang","zhangxingcai","fuwan","sp_sunshangxiang","caoang","sp_caoren","zhangbao","maliang","zhugedan","sp_jiangwei","sp_machao","sunhao","shixie","mayunlu","zhanglu","wutugu","sp_caiwenji","zhugeguo","lingju","jsp_guanyu","jsp_huangyueying","sunluyu","zumao","wenpin","daxiaoqiao","tadun","yanbaihu","chengyu","wanglang","sp_pangde","sp_jiaxu","litong","mizhu","buzhi","caochun","dongbai","zhaoxiang","mazhong","dongyun","kanze","heqi","wangyun","sunqian","xizhicai","quyi","luzhi","xujing","yuantanyuanshang","sunshao","zhangling",'guansuo','baosanniang','ol_zhangchangpu'], sp_zhongdan:["cuiyan","huangfusong"], sp_star:["sp_xiahoushi","jsp_zhaoyun","huangjinleishi","sp_pangtong","sp_daqiao","sp_ganning","sp_xiahoudun","sp_lvmeng","sp_zhangfei","sp_liubei"], sp_sticker:['sp_gongsunzan','sp_simazhao','sp_wangyuanji','sp_xinxianying','sp_liuxie'], sp_guozhan:["zangba","shamoke","ganfuren","yuejin","hetaihou","dingfeng","panfeng","jianggan"], sp_guozhan2:["mifuren","mateng","tianfeng","chendong","sp_dongzhuo","jiangfei","jiangqing","kongrong","bianfuren","liqueguosi","lvfan","cuimao","jiling","zhangren","zoushi"], sp_single:["hejin","hansui","niujin"], sp_others:["hanba","caiyang"], }, }, characterFilter:{}, character:{ //caoshuang:['male','wei',4,['tuogu','shanzhuan']], ol_zhangchangpu:['female','wei',3,['yanjiao','olxingshen']], zhangling:['male','qun',4,['zlhuji','zlshoufu'],['unseen']], caiyang:['male','qun',1,['yinka'],['forbidai','unseen']], panfeng:['male','qun',4,['kuangfu']], sunshao:['male','wu',3,['bizheng','yidian']], sp_gongsunzan:['male','qun',4,['spyicong','sptuji']], sp_simazhao:['male','wei',3,['spzhaoxin','splanggu']], sp_wangyuanji:['female','wei',3,['spfuluan','spshude']], sp_xinxianying:['female','wei',3,['spmingjian','spyinzhi']], sp_liuxie:['male','qun',3,['sphuangen','sphantong']], huangfusong:['male','qun',4,['xinfenyue']], yuantanyuanshang:['male','qun',4,['neifa']], xujing:['male','shu',3,['yuxu','xjshijian']], hejin:['male','qun',4,['mouzhu','yanhuo']], hansui:['male','qun',4,['mashu','niluan']], niujin:['male','wei',4,['cuorui','liewei']], 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",3,["xinfu_wuniang","xinfu_xushen"],[]], sp_xiahoushi:["female","shu",3,["xinfu_yanyu","xinfu_xiaode"],[]], yangxiu:['male','wei',3,['jilei','danlao']], chenlin:['male','wei',3,['bifa','songci']], caohong:['male','wei',4,['yuanhu']], xiahouba:['male','shu',4,['baobian']], yuanshu:['male','qun',4,['yongsi','weidi']], sp_diaochan:['female','qun',3,['lihun','rebiyue']], sp_zhaoyun:['male','qun',3,['ollongdan','chongzhen']], jsp_zhaoyun:['male','qun',3,['chixin','yicong','suiren']], liuxie:['male','qun',3,['tianming','mizhao']], zhugejin:['male','wu',3,['hongyuan','huanshi','mingzhe']], 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,['moukui']], 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']], huangjinleishi:['female','qun',3,['fulu','fuji']], maliang:['male','shu',3,['zishu','xinyingyuan']], sp_pangtong:['male','qun',3,['xinmanjuan','zuixiang']], zhugedan:['male','wei',4,['gongao','juyi']], sp_jiangwei:['male','wei',4,['kunfen','fengliang']], sp_machao:['male','qun',4,['zhuiji','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']], wutugu:['male','qun',15,['ranshang','hanyong']], sp_caiwenji:['female','wei',3,['chenqing','mozhi']], zhugeguo:['female','shu',3,['yuhua','qirang']], lingju:['female','qun',3,['jieyuan','fenxin']], cuiyan:['male','wei',3,['yawang','xunzhi']], sp_zhangfei:['male','shu',4,['jie','dahe']], 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']], sp_daqiao:['female','wu',3,['yanxiao','anxian']], sp_ganning:['male','qun',4,['yinling','junwei']], sp_xiahoudun:['male','wei',4,['fenyong','xuehen'],['die_audio']], sp_lvmeng:['male','wu',3,['tanhu','mouduan']], guansuo:['male','shu',4,['xinzhengnan','xiefang']], tadun:['male','qun',4,['luanzhan']], yanbaihu:['male','qun',4,['zhidao','jili']], chengyu:['male','wei',3,['shefu','benyu']], wanglang:['male','wei',3,['gushe','jici']], 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']], sp_liubei:['male','shu',4,['zhaolie','shichou'],['zhu']], 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,['qizhou','shanxi']], ganfuren:['female','shu',3,['shushen','shenzhi']], mifuren:['female','shu',3,['guixiu','cunsi']], mateng:['male','qun',4,['xiongyi','mashu']], tianfeng:['male','qun',3,['sijian','suishi']], yuejin:['male','wei',4,['xiaoguo']], chendong:['male','wu',4,['duanxie','fenming']], sp_dongzhuo:['male','qun',5,['hengzheng']], jiangfei:['male','shu',3,['shengxi','shoucheng']], jiangqing:['male','wu',4,['shangyi','zniaoxiang']], hetaihou:['female','qun',3,['zhendu','qiluan']], kongrong:['male','qun',3,['lirang','mingshi']], dingfeng:['male','wu',4,['fenxun','duanbing']], bianfuren:['female','wei',3,['wanwei','yuejian']], shamoke:['male','shu',4,['gzjili']], liqueguosi:['male','qun',4,['xiongsuan']], lvfan:['male','wu',3,['diaodu','diancai']], cuimao:['male','wei',3,['zhengbi','fengying']], jiling:['male','qun',4,['shuangren']], zangba:['male','wei',4,['rehengjiang']], zhangren:['male','qun',4,['chuanxin','zfengshi']], zoushi:['female','qun',3,['zhuoshui','zqingcheng']], wangyun:['male','qun',4,['xinlianji','xinmoucheng']], sunqian:['male','shu',3,['qianya','shuimeng']], xizhicai:['male','wei',3,['tiandu','xianfu','chouce']], quyi:['male','qun',4,['fuqi','jiaozi']], luzhi:['male','wei',3,['qingzhongx','weijing']], //kaisa:["male","western",4,["zhengfu"]], }, characterIntro:{ 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:"蒋干,字子翼,汉末三国时期的人物,九江(治今安徽寿县)人。历史上的蒋干是当时的名士、辩论家。而罗贯中在历史小说《三国演义》中则将蒋干刻画成了被周瑜所愚弄的小丑形象。", huangjinleishi:"黄巾军中负责施法的女祭司二人组。", 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:"请分别参考武将【李傕】和【郭汜】各自的介绍。", cuimao:"关于【崔琰】的内容,请查看武将【崔琰】的介绍。
毛玠(?—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'], 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'], 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:{ wy_meirenji:{ fullskin:true, vanish:true, derivation:'wangyun', type:'trick', enable:true, filterTarget:function(card,player,target){ return target.countCards('h')&&target!=player&&target.sex=='male'; }, content:function(){ 'step 0' event.list=game.filterPlayer(function(current){ return current!=player&¤t!=target&¤t.sex=='female'; }).sortBySeat(); 'step 1' if(target.countCards('h')&&event.list.length){ event.current=event.list.shift(); event.current.gainPlayerCard(target,true); 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); } } } }, }, skill:{ 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.max(6-num,player.getDamagedHp()),false) }, intro:{ content:'下一次发动〖严教〗时多展示X张牌', }, }, //张道陵 zlhuji:{ mod:{ globalFrom:function(player,target,distance){ return distance-1; }, }, trigger:{player:'damageEnd'}, forced:true, 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); 'step 1' if(result.bool&&get.itemtype(trigger.source)=='player'&&player.canUse('sha',trigger.source,false)){ player.useCard({name:'sha',isCard:true},trigger.source,false); } }, }, zlshoufu:{ enable:'phaseUse', usable:1, filter:function(event,player){ return player.countCards('he')>0; }, filterTarget:function(card,player,target){ return target!=player&&!target.getStorage('zlshoufu2').length; }, filterCard:true, position:'he', discard:false, toStorage:true, prepare:'give', content:function(){ target.addSkill('zlshoufu2'); target.storage.zlshoufu2_markcount=0; target.markAuto('zlshoufu2',cards); player.draw(); }, }, zlshoufu2:{ marktext:'箓', intro:{ content:'cards', onunmark:'throw', }, charlotte:true, mod:{ cardEnabled:function(card,player){ if(player.getStorage('zlshoufu2').filter(function(magic){ return get.type2(magic)==get.type(card); }).length) return false; }, cardRespondable:function(card,player){ if(player.getStorage('zlshoufu2').filter(function(magic){ return get.type2(magic)==get.type(card); }).length) return false; }, cardSavable:function(card,player){ if(player.getStorage('zlshoufu2').filter(function(magic){ return get.type2(magic)==get.type(card); }).length) return false; }, }, trigger:{ player:['damageEnd','loseAfter'], }, forced:true, filter:function(event,player){ var storage=player.getStorage('zlshoufu2'); if(!storage.length) return false; if(event.name=='damage') return true; if(event.type!='discard'||event.getParent('phaseDiscard').player!=player) return false; for(var i of event.cards2){ if(storage.filter(function(magic){ return get.type2(magic)==get.type2(i,event.hs.contains(i)?player:false); }).length) return true; } return false; }, content:function(){ if(trigger.name=='lose'){ for(var i of trigger.cards2){ if(player.getStorage('zlshoufu2').filter(function(magic){ return get.type2(magic)==get.type(i,trigger.hs.contains(i)?player:false); }).length) player.storage.zlshoufu2_markcount++; } } if(trigger.name=='damage'||player.storage.zlshoufu2_markcount>=2) player.unmarkSkill('zlshoufu2'); else player.markSkill('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','noanimate'); } 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 card=targets[0].getEquip(1); if(!result.bool&&card){ event.card=card; player.chooseTarget(true,'将'+get.translation(card)+'交给一名其他角色').set('ai',function(target){ var card=_status.event.getParent().card; return (target.hasSkillTag('nogain')?0:get.attitude(_status.event.player,target))*Math.max(0.1,target.getUseValue(card)); }); } else event.finish(); 'step 3' result.targets[0].gain(card,targets[0],'give'); }, 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 player.countMark('xinlianji')>2; }, content:function(){ player.awakenSkill('xinmoucheng'); player.addSkill('xinjingong'); player.removeSkill('xinlianji'); }, }, xinjingong:{ audio:'jingong', enable:'phaseUse', filter:function(event,player){ return player.countCards('he',function(card){ return card.name=='sha'||get.type(card)=='equip'; }); }, delay:false, usable:1, content:function(){ 'step 0' var list=get.inpile('trick').randomGets(2); if(Math.random()<0.5){ list.push('wy_meirenji'); } else{ list.push('wy_xiaolicangdao'); } for(var i=0;iplayer.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.chooseTarget('令一名角色获得'+get.translation(trigger.source)+'的一张手牌',function(card,player,target){ var source=_status.event.source; return target!=source&&source.countGainableCards(target,'h')>0; }).set('source',trigger.source); } else event.goto(4); 'step 3' if(result.bool){ var target=result.targets[0]; player.line([trigger.source,target],'green'); target.gainPlayerCard(trigger.source,'h',true); if(event.count2) event.goto(2) } 'step 4' if(cards.length) player.gain(cards,'gain2','log'); 'step 5' if(event.count>0){ player.chooseBool(get.prompt2('spyinzhi')).set('frequentSkill','spyinzhi'); } else event.finish(); 'step 6' if(result.bool){ player.logSkill('spyinzhi'); event.goto(1); }; }, }, spmingjian:{ trigger:{global:'phaseBegin'}, direct:true, filter:function(event,player){ return player.countCards('he')>0; }, content:function(){ 'step 0' var next=player.chooseCard(get.prompt2('spmingjian',trigger.player),'he'); next.set('ai',function(card){ var target=_status.event.getTrigger().player; var player=_status.event.player; if(get.attitude(player,target)>0&&target.countCards('j')>0) return 5-get.value(card); return -1; }); next.set('filterCard',function(card,player){ if(get.position(card)=='e') return lib.filter.cardDiscardable.apply(this,arguments); return true; }); //next.set('logSkill',['spmingjian',trigger.player]); 'step 1' if(result.bool){ player.logSkill('spmingjian',trigger.player); var card=result.cards[0]; event.card=card; if(get.position(card)=='e') event._result={index:0}; else if(!lib.filter.cardDiscardable(card,player,event)) event._result={index:1}; else{ var name=get.translation(trigger.player); player.chooseControl().set('choiceList',[ '令'+name+'跳过本回合的判定阶段', '令'+name+'于本回合的判定中不触发「判定结果生效前」的时机', ]).set('ai',function(){return 0}); } } else event.finish(); 'step 2' if(result.index==0){ player.discard(card); trigger.player.skip('phaseJudge'); } else{ player.lose(card,ui.special,'toStorage'); trigger.player.addSkill('spmingjian_charlotte'); trigger.player.storage.spmingjian_charlotte.add(card); trigger.player.markSkill('spmingjian_charlotte'); } }, ai:{ expose:0.25, }, }, spmingjian_charlotte:{ trigger:{player:['judgeBefore','phaseAfter']}, forced:true, firstDo:true, silent:true, popup:false, charlotte:true, content:function(){ if(trigger.name=='phase') player.removeSkill(event.name); else trigger.noJudgeTrigger=true; }, init:function(player,skill){ if(!player.storage[skill]) player.storage[skill]=[]; }, marktext:'鉴', intro:{ name:'明鉴', content:'cards', onunmark:'throw', }, }, spshude:{ trigger:{player:'phaseJieshuBegin'}, frequent:true, filter:function(event,player){ return player.countCards('h')2; return get.suit(card)==get.suit(ui.selected.cards[0]); }, content:function(){ target.turnOver(); player.addTempSkill('spfuluan2'); }, ai:{ order:1, result:{ target:function(player,target){ if(target.isTurnedOver()) return 2; return -1; }, }, }, }, spfuluan2:{ mod:{ cardEnabled:function(card){ if(card.name=='sha') return false; }, }, }, spzhaoxin:{ trigger:{player:'phaseDrawEnd'}, check:function(event,player){ return player.getUseValue({name:'sha',isCard:true})>0; }, filter:function(event,player){ return player.countCards('h')>0; }, content:function(){ 'step 0' player.showHandcards(); 'step 1' player.chooseUseTarget('sha',false); }, }, splanggu:{ trigger:{player:'damageEnd'}, filter:function(event,player){ return get.itemtype(event.source)=='player'; }, logTarget:'source', content:function(){ 'step 0' player.judge(); 'step 1' if(trigger.source.countCards('h')>0){ var next=player.discardPlayerCard(trigger.source,'h',[1,Infinity]); next.set('suit',result.suit); next.set('filterButton',function(button){ return get.suit(button.link)==_status.event.suit; }); next.set('visible',true); } }, group:'splanggu_rewrite', }, splanggu_rewrite:{ trigger:{player:'judge'}, filter:function (event,player){ return player.countCards('h')>0&&event.getParent().name=='splanggu'; }, direct:true, content:function (){ "step 0" player.chooseCard('狼顾的判定结果为'+ get.translation(trigger.player.judging[0])+',是否打出一张手牌进行代替?','h',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){ return -1; }); "step 1" if(result.bool){ player.respond(result.cards,'highlight','splanggu','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); } }, }, sphantong:{ trigger:{player:'loseEnd'}, frequent:true, filter:function(event,player){ return event.type=='discard'&&event.getParent(3).name=='phaseDiscard'&&event.cards.filterInD('d').length>0; }, content:function(){ if(!player.storage.sphantong) player.storage.sphantong=[]; var cards=trigger.cards.filterInD('d'); player.storage.sphantong.addArray(cards); player.$gain2(cards); game.log(player,'将',cards,'置于武将牌上'); player.markSkill('sphantong'); }, group:['sphantong_gain'], derivation:['hujia','jijiang','jiuyuan','xueyi'], marktext:'诏', intro:{ content:'cards', onunmark:'throw', }, }, sphantong_gain:{ trigger:{global:'phaseBegin'}, direct:true, filter:function(event,player){ return player.storage.sphantong&&player.storage.sphantong.length>0; }, content:function(){ 'step 0' player.chooseButton([get.prompt('sphantong'),player.storage.sphantong],function(button){return -1}); 'step 1' if(result.bool){ player.logSkill('sphantong'); var card=result.links[0]; player.$throw(card); game.log(player,'将',card,'置入了弃牌堆'); player.storage.sphantong.remove(card); player[player.storage.sphantong.length>0?'markSkill':'unmarkSkill']('sphantong'); game.cardsDiscard(card); var list=['hujia','jijiang','jiuyuan','xueyi']; for(var i=0;i0) player.chooseControl(list).set('prompt','选择获得以下技能中的一个'); else event.finish(); } else event.finish(); 'step 2' var skill=result.control; player.addTempSkill(skill); if(!player.storage.zhuSkill_sphantong) player.storage.zhuSkill_sphantong=[]; player.storage.zhuSkill_sphantong.add(skill); player.popup(skill,'wood'); game.log(player,'获得了技能','#g【'+get.translation(skill)+'】'); var next=game.createEvent('sphantong_clear',false); event.next.remove(next); trigger.after.push(next); next.player=player; next.skill=skill; next.setContent(function(){ if(player.storage.zhuSkill_sphantong) player.storage.zhuSkill_sphantong.remove(event.skill); }) }, }, sphuangen:{ trigger:{global:'useCardToPlayered'}, filter:function(event,player){ if(!event.isFirstTarget) return false; if(get.type(event.card)!='trick') return false; if(get.info(event.card).multitarget) return false; if(event.targets.length<2) return false; return player.hp>0; }, direct:true, content:function(){ "step 0" player.chooseTarget(get.prompt('sphuangen'), [1,Math.min(player.hp,trigger.targets.length)],function(card,player,target){ return _status.event.targets.contains(target); }).set('ai',function(target){ return -get.effect(target,trigger.card,trigger.player,_status.event.player); }).set('targets',trigger.targets); "step 1" if(result.bool){ player.logSkill('sphuangen',result.targets); trigger.excluded.addArray(result.targets); player.draw(); } }, }, spyicong:{ trigger:{player:'phaseDiscardEnd'}, direct:true, filter:function(event,player){ return player.countCards('he')>0; }, content:function(){ 'step 0' player.chooseCard('he',[1,player.countCards('he')],get.prompt2('spyicong')).set('ai',function(card){ if(card.name=='du') return 10; if(ui.selected.cards.length) return -1; return 4-get.value(card); }); 'step 1' if(result.bool){ player.logSkill('spyicong'); if(!player.storage.spyicong) player.storage.spyicong=[]; player.storage.spyicong.addArray(result.cards); player.$giveAuto(result.cards.length,player,false); game.log(player,'扣置了'+get.cnNumber(player.lose(result.cards,'toStorage',ui.special).cards.length)+'张【扈】'); player.markSkill('spyicong'); } }, mod:{ globalTo:function(from,to,num){ if(to.storage.spyicong&&to.storage.spyicong.length) return num+to.storage.spyicong.length; }, }, marktext:'扈', intro:{ name:'义从', content:'cardCount', onunmark:'throw', }, }, sptuji:{ trigger:{player:'phaseZhunbeiBegin'}, forced:true, filter:function(event,player){ return player.storage.spyicong&&player.storage.spyicong.length>0; }, content:function(){ var num=player.storage.spyicong.length; player.addMark('sptuji2',num,false); player.addTempSkill('sptuji2'); player.unmarkSkill('spyicong'); if(num<=1) player.draw(); }, }, sptuji2:{ onremove:true, charlotte:true, mod:{ globalFrom:function(from,to,num){ return num-from.countMark('sptuji2'); }, }, marktext:'突', intro:{ name:'突骑', content:'至其他角色的距离-#', }, }, //二袁 neifa:{ audio:2, trigger:{player:'phaseUseBegin'}, direct:true, content:function(){ 'step 0' _status.noclearcountdown=true; if(game.hasPlayer(function(current){ return current.countGainableCards(player,'ej')>0; })){ 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)>0; })>0; return current.countCards('ej',function(card){ return get.position(card)=='j'||get.value(card)<=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)>0; })) 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'); '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') })); player.addMark(name,num,false); } }, 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()&&!_status.connectMode) 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 lib.filter.targetEnabled2(event.card,player,current)&&!event.targets.contains(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()) 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:'useCardEnd'}, filter:function(event,player){ if(event!=player.getLastUsed()) return false; var evt=event.getParent('phaseUse'); if(!evt||evt.player!=player) return false; var history=player.getHistory('useCard',function(evtt){ return evtt.getParent('phaseUse')==evt; }); var index=history.indexOf(event); if(index==0) return true; return history[index-1].yuxu!=true&&player.countCards('he')>0; }, content:function(){ trigger.yuxu=true; player.addTempSkill('yuxu2'); player.draw(); }, }, yuxu2:{ trigger:{player:'useCardEnd'}, direct:true, charlotte:true, locked:true, filter:function(event,player){ if(event!=player.getLastUsed()) return false; var evt=event.getParent('phaseUse'); if(!evt||evt.player!=player) return false; var history=player.getHistory('useCard',function(evtt){ return evtt.getParent('phaseUse')==evt; }); var index=history.indexOf(event); if(index<1) return false; return history[index-1].yuxu==true&&player.countCards('he')>0; }, content:function(){ player.chooseToDiscard('he',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('he')>0; }, content:function(){ 'step 0' target.chooseCard('he','交给'+get.translation(player)+'一张牌',true); 'step 1' player.gain(result.cards,target,'giveAuto'); '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); }, 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.countUsed('sha')) }, 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.backup('niluanx'); }, }, niluanx:{ viewAs:{name:'sha'}, filterCard:{color:'black'}, position:'he', check:function(card){return 5-get.value(card)}, }, cuorui:{ audio:2, trigger:{ global:'gameDrawAfter', player:'enterGame', }, forced:true, filter:function(event,player){ return player.maxHp>0&&!get.is.single(); }, 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'}, //forced:true, frequent:true, filter:function(event,player){ if(event.source==player&&event.player!=player&&player.hp>player.countCards('h')){ return event.relatedLose&&event.relatedLose.hs&&event.relatedLose.hs.length>0; } return false; }, 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('he')>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'),'he',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; player.gain(cards,trigger.target,'giveAuto'); } else trigger.getParent().directHit.add(trigger.target); game.delay(); }, }, //变权移植 wanwei:{ trigger:{target:['rewriteGainResult','rewriteDiscardResult']}, direct: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; '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(); } } }, yuejian:{ trigger:{global:'phaseDiscardBegin'}, audio:2, filter:function(event,player){ return event.player.countUsed()0&&event.player.needsToDiscard(); }, subSkill:{ num:{ mod:{ maxHandcard:function(player,num){ return num+player.maxHp; } } }, } }, 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, filter:function(event,player){ return player.getHistory('useCard').length+player.getHistory('respond').length==player.getAttackRange(); }, audio:2, content:function(){ player.draw(player.getAttackRange()); }, 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:{ limited:true, enable:'phaseUse', filterCard:true, filter:function(event,player){ return player.countCards('h'); }, check:function(card){ return 7-get.value(card); }, filterTarget:true, content:function(){ 'step 0' player.awakenSkill('xiongsuan'); target.damage('nocard'); 'step 1' player.draw(3); var list=[]; var skills=target.getOriginalSkills(); for(var i=0;i1){ player.chooseControl(list).set('prompt','选择一个限定技在回合结束后重置之'); } else{ event.finish(); } 'step 2' target.storage.xiongsuan_restore=result.control; target.addTempSkill('xiongsuan_restore','phaseZhunbeiBegin'); }, subSkill:{ restore:{ trigger:{global:'phaseAfter'}, silent:true, content:function(){ player.restoreSkill(player.storage.xiongsuan_restore); } } }, ai:{ order:4, damage:true, result:{ target:function(player,target){ if(target.hp>1){ var skills=target.getOriginalSkills(); for(var i=0;i=0) return 10; if(target.hp>=4) return 5; if(target.hp==3){ if(player.countCards('h')<=2&&game.hasPlayer(function(current){ return current.hp<=1&&get.attitude(player,current)<0; })){ return 3; } } return 0; } } } }, diancai:{ audio:2, trigger:{global:'phaseUseEnd'}, filter:function(event,player){ if(_status.currentPhase==player) return false; var num=0; player.getHistory('lose',function(evt){ if(evt.cards2&&evt.getParent('phaseUse')==event) num+=evt.cards2.length; }); return num>=player.hp; }, content:function(){ 'step 0' var num=player.maxHp-player.countCards('h'); if(num>0){ player.draw(num); } }, }, diaodu:{ audio:2, group:"diaodu_use", subfrequent:['use'], subSkill:{ use:{ trigger:{ player:"useCard", }, audio:"diaodu", frequent:true, prompt:'是否发动【调度】摸一张牌?', filter:function (event,player){ return get.type(event.card)=='equip' }, content:function (){ player.draw('nodelay'); }, ai:{ reverseEquip:true, effect:{ target:function (card,player,target,current){ if(player==target&&get.type(card)=='equip') return [1,3]; }, }, }, }, }, trigger:{ player:"phaseUseBegin", }, filter:function (event,player){ return game.hasPlayer(function(current){ return current!=player&¤t.countGainableCards(player,'e')>0; }); }, direct:true, content:function (){ 'step 0' player.chooseTarget(get.prompt2('diaodu'),function(card,player,current){ return current!=player&¤t.countGainableCards(player,'e')>0; }).ai=function(target){ var num=get.attitude(_status.event.player,target); if(target.isDamaged()&&target.getEquip('baiyin')&&num>0) return 2*num return -num; }; 'step 1' if(result.bool){ event.target1=result.targets[0]; player.logSkill('diaodu',event.target1); player.line(event.target1,'diaodu'); player.gainPlayerCard(event.target1,'e',true); } else event.finish(); 'step 2' if(result.bool){ event.card=result.cards[0]; player.chooseTarget('是否将'+get.translation(event.card)+'交给一名其他角色?',function(card,player,current){ return current!=player&¤t!=event.target1; }); } else event.finish(); 'step 3' if(result.bool){ var target=result.targets[0]; player.line(target,'green'); target.gain(card,player,'give'); } }, }, zhengbi:{ trigger:{player:'phaseUseBegin'}, filter:function(event,player){ //if(event.player!=player) return false; return game.hasPlayer(function(current){return current!=player&¤t.isHealthy()})||player.countCards('h',{type:'basic'}); }, content:function(){ 'step 0' var choices=[]; if(game.hasPlayer(function(current){return current.isHealthy()})) choices.push('选择一名未受伤的角色'); if(player.countCards('h',{type:'basic'})) choices.push('交给一名角色一张基本牌'); player.chooseControl(choices,ui.create.dialog('征辟

选择一项
','hidden')).set('ai',function(){ if(choices.length>1){ return 1; } return 0; }); 'step 1' if(result.control=='选择一名未受伤的角色') player.chooseTarget('征辟

选择一名未受伤的角色,你对其使用牌没有次数和距离限制直到回合结束
',function(card,player,target){ return target!=player&&target.isHealthy(); },true); else player.chooseCardTarget({ prompt:'征辟

交给一名其他角色一张基本牌,然后该角色交给你一张非基本牌或两张基本牌
', position:'h', filterCard:function(card){return get.type(card)=='basic'}, filterTarget:function(card,player,target){ return target!=player; }, ai1:function(card){return 7-get.value(card)}, //ai2:function(card,player,target){} }).set('forced',true); 'step 2' event.target=result.targets[0]; player.line(result.targets,'green'); if(result.cards.length){ event.cards=result.cards; result.targets[0].gain(result.cards,player,'give'); } else{ player.storage.zhengbi_eff1=result.targets[0]; player.addTempSkill('zhengbi_eff1'); event.finish(); } 'step 3' var choices=[]; if(target.countCards('he',{type:['trick','delay','equip']})) choices.push('一张非基本牌'); if(target.countCards('h',{type:'basic'})>1) choices.push('两张基本牌'); if(choices.length) target.chooseControl(choices,ui.create.dialog('征辟

交给'+get.translation(player)+'
')).set('ai',function(event,player){ if(choices.length>1){ if(player.countCards('he',{type:['trick','delay','equip']},function(card){return get.value(card)<7})) return 0; return 1; } return 0; }); else{ if(target.countCards('h')){ var cards=target.getCards('h'); player.gain(cards,target,'giveAuto'); event.finish(); } else event.finish(); } 'step 4' var check=(result.control=='一张非基本牌'); target.chooseCard('he',(check?1:2),{type:(check?['trick','delay','equip']:'basic')},true); 'step 5' if(result.cards){ player.gain(result.cards,target,'giveAuto'); } }, subSkill:{ eff1:{ sub:true, mod:{ targetInRange:function (card,player,target){ if(target==player.storage.zhengbi_eff1) return true; }, cardUsable:function (card,player,num){ if(typeof num=='number'&&player.storage.zhengbi_eff1&&player.storage.zhengbi_eff1.isAlive()) return num+100; }, playerEnabled:function (card,player,target){ if(player.storage.zhengbi_eff1.isAlive()&&player.storage.zhengbi_eff1&&target!=player.storage.zhengbi_eff1){ var num=player.getCardUsable(card)-100; if(num<=0) return false; } }, }, onremove:true, }, eff2:{sub:true}, } }, fengying:{ limited:true, enable:'phaseUse', position:'h', filterCard:true, selectCard:-1, filter:function(event,player){ return !player.storage.fengying&&player.countCards('h')>0; }, filterTarget:function(card,player,target){ return target==player; }, selectTarget:-1, discard:false, lose:false, content:function(){ 'step 0' player.awakenSkill('fengying'); player.storage.fengying=true; player.insertPhase(); var evt=_status.event.getParent('phaseUse'); if(evt&&evt.name=='phaseUse'){ evt.skipped=true; } 'step 1' var cards=player.getCards('h'); player.discard(cards); player.chooseTarget('请选择至多'+cards.length+'名角色,令这些角色将手牌摸至手牌上限。',[1,cards.length],function(card,player,target){ return target.countCards('h')2){ return Math.min(5,target.maxHp)-target.countCards('h'); } return att/3; }); 'step 2' if(result.bool){ var list=result.targets; list.sort(lib.sort.seat); player.line(list,'thunder'); game.asyncDraw(list,function(current){ return current.maxHp-current.countCards('h'); }); } }, skillAnimation:'epic', animationColor:'gray', ai:{ order:0.1, result:{ player:0, } }, }, //新服曹笨 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')){ if(get.position(card)=='e') return num/player.hp; return num*player.hp; } }, }, subSkill:{ count:{ forced:true, silent:true, popup:false, trigger:{ player:"loseEnd", }, filter:function(event,player){ return event.es.length>0; }, content:function (){ lib.skill.xinshanjia.sync(player); }, }, }, 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 bool=true; if(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]; }, }, }, }, //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=Math.max(1,player.getDamagedHp()); player.chooseTarget('是否发动【誓仇】,令至多'+num+'名其他角色也成为此【杀】的目标?',[1,num],function(card,player,target){ return target!=player&&!trigger.targets.contains(target)&&player.canUse({name:'sha'},target); }).ai=function(target){ return get.effect(target,{name:'sha'},_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); } }, }, //新大小乔 "new_xingwu":{ audio:"xingwu", trigger:{ player:"phaseDiscardBegin", }, direct:true, intro:{ content:"cards", onunmark:function(storage,player){ if(storage&&storage.length){ player.$throw(storage,1000); game.cardsDiscard(storage); game.log(storage,'被置入了弃牌堆'); storage.length=0; } }, }, init:function (player){ if(!player.storage.new_xingwu) player.storage.new_xingwu=[]; }, content:function (){ 'step 0' player.chooseCard(get.prompt2('new_xingwu')).set('ai',function(card){ var player=_status.event.player; for(var i=0;i0&& get.attitude(player,current)<0) })) return 0; } return 7-get.value(card); }); 'step 1' if(result.bool){ player.logSkill('new_xingwu'); if(player.storage.new_xingwu.length<2){ player.$give(result.cards,player,false); } player.lose(result.cards,ui.special,'toStorage'); player.storage.new_xingwu=player.storage.new_xingwu.concat(result.cards); player.markSkill('new_xingwu'); player.syncStorage('new_xingwu'); } else{ event.finish(); } 'step 2' var suitlist=[]; for(var i=0;i0) return -1; return get.damageEffect(target,player,player)*target.sex=='male'?2:1+target.countCards('e')/2; }); } 'step 4' if(result.bool){ var target=result.targets[0]; var num=target.sex=="male"?2:1; target.damage(num); event.target=target; player.line(target,'green'); } else{ event.finish(); } 'step 5' if(event.target&&event.target.isAlive()){ var es=event.target.getCards('e'); if(es.length){ event.target.discard(es); } } }, ai:{ threaten:1.5, }, }, "new_luoyan":{ group:["new_luoyan_tianxiang","new_luoyan_liuli"], }, "new_luoyan_tianxiang":{ inherit:"retianxiang", filter:function (event,player){ if(!player.storage.new_xingwu||!player.storage.new_xingwu.length) return false; if(player.hasSkill('retianxiang')||player.hasSkill('tianxiang')) return false; return lib.skill.retianxiang.filter(event,player); }, audio:"tianxiang", }, "new_luoyan_liuli":{ inherit:"liuli", filter:function (event,player){ if(!player.storage.new_xingwu||!player.storage.new_xingwu.length) return false; if(player.hasSkill('liuli')) return false; return lib.skill.liuli.filter(event,player); }, audio:"liuli", }, //新孙鲁育 "new_meibu":{ audio:"meibu", trigger:{ global:"phaseUseBegin", }, filter:function (event,player){ return event.player!=player&&event.player.isAlive()&&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','phaseUseEnd'); 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.getEquip(2)!=undefined; 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.isEmpty(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.getEquip(2); event.e=e; if(target==player) event.choice='获得一张防具牌'; else if(e){ player.chooseControl('弃置一张装备牌','获得一张防具牌').set('ai',function(){ if(_status.event.player.getEquip(2)){ 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'); 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; }, }, trigger:{ player:"useCard1", }, forced:true, popup:false, onremove:true, firstDo: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, }, qingzhongx:{ audio:'weijing', 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('qingzhongx_give'); }, subSkill:{ give:{ trigger:{player:'phaseUseEnd'}, filter:function(event,player){ return !player.isMinHandcard(true); }, audio:'weijing', 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:'qingzhong', 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:'qingzhong', 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('qingzhongx_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.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:true, 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:'gameDrawAfter', player:'enterGame', }, forced:true, filter:function(){ return game.players.length>1; }, 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; }); '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==event.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'){ player.chooseTarget('弃置一名角色区域内的一张牌',function(card,player,target){ return target.countCards('hej'); }).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{ 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(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.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; })); }, }, 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,'noanimate','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.getEquip(1); if(equip1){ 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'); player.addSkill('jingong'); } } } }, jingong:{ audio:2, enable:'phaseUse', filter:function(event,player){ return player.countCards('he',function(card){ return card.name=='sha'||get.type(card)=='equip'; }); }, delay:false, usable:1, content:function(){ 'step 0' var list=get.inpile('trick').randomGets(2); if(Math.random()<0.5){ list.push('wy_meirenji'); } else{ list.push('wy_xiaolicangdao'); } 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:'不能使用或打出手牌' } }, huoshui:{ audio:2, enable:'phaseUse', unique:true, forceunique:true, filter:function(event,player){ if(player.name1=='gz_zoushi') return player.isUnseen(0); return player.isUnseen(1); }, content:function(){ if(player.name1=='gz_zoushi') player.showCharacter(0); else player.showCharacter(1); }, global:'huoshui_mingzhi' }, huoshui_mingzhi:{ ai:{ nomingzhi:true, skillTagFilter:function(player){ if(_status.currentPhase&&_status.currentPhase!=player&&_status.currentPhase.hasSkill('huoshui')){ return true; } return false; } } }, qingcheng:{ audio:2, enable:'phaseUse', filter:function(event,player){ return player.countCards('he',{type:'equip'})&&game.hasPlayer(function(current){ return current!=player&&!current.isUnseen(2); }); }, filterCard:{type:'equip'}, position:'he', filterTarget:function(card,player,target){ return !target.isUnseen(2); }, check:function(card){ return 6-get.value(card,_status.event.player); }, content:function(){ 'step 0' if(get.is.jun(target)){ event._result={control:'副将'}; } else{ var choice='主将'; var skills=lib.character[target.name2][3]; for(var i=0;i=0) return 0; if(player.hasCard(function(card){ return get.tag(card,'damage')&&player.canUse(card,target,true,true); })){ if(target.maxHp>3) return -0.5; return -1; } return 0; } } } }, qingcheng_ai:{ ai:{ effect:{ target:function(card){ if(get.tag(card,'damage')) return 2; } } } }, zhuoshui:{ audio:'huoshui', trigger:{player:'phaseZhunbeiBegin'}, forced:true, content:function(){ game.countPlayer(function(current){ if(current!=player&&!current.hasSkill('fengyin')){ player.line(current,'green'); current.addTempSkill('fengyin'); } }); } }, zqingcheng:{ audio:'qingcheng', enable:'phaseUse', filter:function(event,player){ return player.countCards('he',{type:'equip'}); }, filterCard:{type:'equip'}, position:'he', filterTarget:function(card,player,target){ return target!=player; }, check:function(card){ var player=_status.event.player; if(game.hasPlayer(function(current){ return get.attitude(player,current)>2&¤t.isTurnedOver(); })){ return 10-get.value(card,player); } return 6-get.value(card,player); }, content:function(){ 'step 0' target.turnOver(); 'step 1' target.draw(2); }, ai:{ order:8, result:{ target:function(player,target){ if(target.hasSkillTag('noturn')) return 0; if(target.isTurnedOver()) return 2; return -0.5; } } } }, 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'}, 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; }, content:function(){ "step 0" event.count=trigger.num; "step 1" event.count--; var source=_status.currentPhase; if(source.hasSkill('rehengjiang2')){ source.storage.rehengjiang2++; source.storage.rehengjiang3.push(player); source.storage.rehengjiang3.sortBySeat(source); source.updateMarks(); } else{ source.storage.rehengjiang3=[player]; source.storage.rehengjiang2=1; source.addTempSkill('rehengjiang2'); } "step 2" if(event.count){ 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, } }, rehengjiang2:{ mark:true, charlotte:true, intro:{ content:'手牌上限-#' }, mod:{ maxHandcard:function(player,num){ return num-player.storage.rehengjiang2; } }, onremove:function(player){ delete player.storage.rehengjiang2; delete player.storage.rehengjiang3; }, trigger:{player:'phaseDiscardEnd'}, filter:function(event,player){ if(event.cards&&event.cards.length) return false; var players=player.storage.rehengjiang3; for(var i=0;i1){ 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); '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(target.identity!='ye'&&target.identity!='unknown'&&game.hasPlayer(function(current){ if(!player.canUse('sha',current,false)) return false; if(target==current) return false; if(get.mode()=='guozhan'){ return target.identity==current.identity; } return true; })){ var str='对一名'; if(get.mode()=='guozhan'){ str+=get.translation(target.identity)+'势力的'; } player.chooseTarget(str+'角色使用一张杀',true,function(card,player,target){ if(!player.canUse('sha',target,false)) return false; if(get.mode()=='guozhan'){ return target.identity==_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.identity); } else{ player.useCard({name:'sha',isCard:true},target,false); event.finish(); } } else{ trigger.cancel(); 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; }); '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'); event.target.gain(hs,player,'giveAuto'); } 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'); } else{ player.gain(event.cards2,target,'giveAuto'); } }, 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()) 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){ event.target.gain(result.cards,player,'giveAuto'); } }, ai:{ expose:0.2, threaten:1.4 } }, fuman:{ audio:2, enable:'phaseUse', filterTarget:function(card,player,target){ return !target.hasSkill('fuman2')&&target!=player; }, filter:function(event,player){ return player.countCards('h','sha'); }, discard:false, lose:false, delay:false, filterCard:{name:'sha'}, content:function(){ target.gain(cards,player,'giveAuto'); target.storage.fuman3=cards[0]; target.storage.fuman2=player; target.addTempSkill('fuman2',{player:'phaseAfter'}); }, check:function(card){ return 6-get.value(card); }, ai:{ order:2, result:{ target:function(player,target){ if(!target.hasSha()) return 1.2; return 1; } } } }, fuman2:{ mod:{ aiOrder:function(player,card,num){ if(card==player.storage.fuman3&&player.storage.fuman2.isIn()) return num+get.sgn(get.attitude(player,player.storage.fuman2)); }, }, trigger:{player:'useCard'}, forced:true, filter:function(event,player){ return event.cards.contains(player.storage.fuman3)&&player.storage.fuman2.isIn(); }, mark:true, intro:{ content:'下个回合结束之前使用“抚蛮”牌时,令$一张牌' }, content:function(){ 'step 0' game.delayx(); 'step 1' player.line(player.storage.fuman2,'green'); player.storage.fuman2.draw(); }, onremove:function(player){ delete player.storage.fuman2; delete player.storage.fuman3; }, }, qizhou:{ trigger:{player:['phaseBefore','equipEnd','loseEnd']}, forced:true, popup:false, derivation:['mashu','reyingzi','duanbing','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(to==from.storage.fenxun2){ 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()&&!_status.connectMode) 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:'phaseBegin'}, 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); 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(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('h','shan')) return true; if(filter({name:'shan'},player,event)&&player.countCards('h','sha')) return true; if(filter({name:'tao'},player,event)&&player.countCards('h','jiu')) return true; if(filter({name:'jiu'},player, event)&&player.countCards('h','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, save: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; case 'save':name='jiu';break; } if(!player.countCards('h',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+=0.3; return max; } return 4; }, }, }, } }, yjixi:{ init:function(player){ player.storage.yjixi=0; }, derivation:'wangzun', trigger:{player:'phaseJieshuBegin'}, forced:true, filter:function(event,player){ return player.storage.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' target.gain(cards,player,'giveAuto'); 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) 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; } } }, shichou:{ //audio:1, skillAnimation:true, animationColor:'orange', unique:true, limited:true, mark:false, trigger:{player:'phaseZhunbeiBegin'}, zhuSkill:true, direct:true, filter:function(event,player){ if(!player.hasZhuSkill('shichou'))return false; if(player.countCards('he')<2) return false; return !player.storage.shichou; }, init:function(player){ if(player.hasZhuSkill('shichou')){ player.markSkill('shichou'); player.storage.shichou=false; } }, content:function(){ "step 0" player.chooseCardTarget({ prompt:get.prompt2('shichou'), selectCard:2, filterTarget:function(card,player,target){ return target.group=='shu'&&target!=player; }, filterCard:true, position:'he', ai1:function(card){ return 7-get.value(card); }, ai2:function(target){ var player=_status.event.player; if(player.hasUnknown()) return 0; var att=get.attitude(player,target); if(att<=0){ if(target.hp==1) return (10-att)/2; return 10-att; } else{ if(target.hp==1) return 0; return (10-att)/4; } }, }); "step 1" if(!result.bool) return; var target=result.targets[0]; var cards=result.cards; player.storage.shichou=true; player.logSkill('shichou',target); player.awakenSkill('shichou'); target.gain(cards,player,'giveAuto'); player.storage.shichou_target=target; player.addSkill('shichou2'); target.markSkillCharacter('shichou',player,'誓仇','代替'+get.translation(player)+'承受伤害直到首次进入濒死状态'); }, intro:{ content:'limited' }, }, shichou2:{ group:'shichou3', trigger:{player:'damageBegin3'}, forced:true, popup:false, content:function(){ trigger.player=player.storage.shichou_target; trigger.shichou4=true; trigger.player.addSkill('shichou4'); player.logSkill('shichou2',player.storage.shichou_target); game.delay(0.5); }, ai:{ effect:{ target:function(card,player,target,current){ if(get.tag(card,'damage')){ if(player.hasSkillTag('jueqing',false,target)) return [1,-2]; if(get.attitude(player,target)>0) return [0,0]; var eff=get.damageEffect(target.storage.shichou_target,player,target); if(eff>0){ return [0,1]; } else if(eff<0){ return [0,-2]; } else{ return [0,0]; } } } } } }, shichou3:{ trigger:{global:['dying','dieBegin']}, forced:true, popup:false, //priority:10, filter:function(event,player){ return event.player==player.storage.shichou_target; }, content:function(){ trigger.player.unmarkSkill('shichou'); delete player.storage.shichou_target; player.removeSkill('shichou2'); } }, shichou4:{ trigger:{player:['damageAfter','damageCancelled']}, forced:true, popup:false, audio:false, content:function(){ if(!trigger.shichou4) return; if(event.triggername=='damageAfter'&&trigger.num){ player.draw(trigger.num); } player.removeSkill('shichou4'); } }, zhaolie:{ trigger:{player:'phaseDrawBegin2'}, direct:true, filter:function(event,player){ return !event.numFixed; }, content:function(){ 'step 0' player.chooseTarget(get.prompt2('zhaolie'),function(card,player,target){ return target!=player&&player.inRange(target); }).set('ai',function(target){ var player=_status.event.player; if(get.attitude(player,target)>0) return 0; return get.damageEffect(target,player,player); }); 'step 1' if(result.bool){ trigger.num--; player.storage.zhaolie=result.targets[0]; player.logSkill('zhaolie',result.targets); player.addTempSkill('zhaolie2','phaseDrawAfter'); } } }, zhaolie2:{ trigger:{player:'phaseDrawEnd'}, forced:true, popup:false, content:function(){ 'step 0' event.cards=get.cards(3); player.showCards(event.cards); 'step 1' event.basic=[]; event.nonbasic=[]; event.todis=[]; for(var i=0;i1?0:7-get.value(card); case 2:return 8-get.value(card); case 3:return 10-get.value(card); default:return 0; } }).set('num',num); } 'step 2' var num=event.nonbasic.length; var undone=false; if(num==0){ if(event.basic.length){ result.targets[0].gain(event.basic,'gain2','log'); } } else{ if(result.bool){ if(event.basic.length){ player.gain(event.basic,'gain2','log'); } } else{ player.storage.zhaolie.damage(num); if(event.basic.length){ undone=true; } } } if(!undone){ delete player.storage.zhaolie; event.finish(); } 'step 3' if(player.storage.zhaolie.isAlive()){ player.storage.zhaolie.gain(event.basic,'gain2','log'); } else{ game.cardsDiscard(event.basic); } delete player.storage.zhaolie; } }, 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:['gainAfter','loseAfter']}, direct:true, filter:function(event,player){ if(event.name=='lose'&&event.type=='gain'&&event.getParent().player==player) return false; if(event.name=='gain') return event.cards&&event.cards.length>1; return event.cards2&&event.cards2.length>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:'gameDrawAfter',player:'enterGame'}, forced:true, 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; }, init:function(player){ if(!player.storage.tuifeng) player.storage.tuifeng=[]; }, 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.lose(result.cards,ui.special,'toStorage'); player.$give(result.cards,player,false); for(var i=0;i0; }, content:function(){ player.draw(2*player.storage.tuifeng.length); player.addTempSkill('tuifeng3'); player.storage.tuifeng3=player.storage.tuifeng.length; player.unmarkSkill('tuifeng'); } }, tuifeng3:{ mod:{ cardUsable:function(card,player,num){ if(card.name=='sha'&&player.storage.tuifeng3) return num+player.storage.tuifeng3; } }, onremove: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; targets[0].gain(cards,player,'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, unique:true, limited:true, trigger:{player:'phaseZhunbeiBegin'}, animationColor:'thunder', skillAnimation:'legend', filter:function(event,player){ return !player.storage.yongdi; }, init:function(player){ player.storage.yongdi=false; }, mark:true, intro:{ content:'limited' }, direct:true, content:function(){ 'step 0' player.chooseTarget(get.prompt2('yongdi'),function(card,player,target){ return (target.sex=='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')){ if(target.name&&lib.character[target.name]){ for(var i=0;i0; }, 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){ 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.goto(3); 'step 2' if(!result.bool){ player.draw(); } 'step 3' if(event.num1<=event.num2){ player.chooseToDiscard('he','弃置一张牌,或摸一张牌').set('ai',function(){return -1;}); } 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; }, 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('h')>0; }, intro:{ content:'cards', onunmark:function(storage,player){ if(storage&&storage.length){ player.$throw(storage,1000); game.cardsDiscard(storage); game.log(storage,'被置入了弃牌堆'); storage.length=0; } 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;i=5) return false; if(nh2>nh2&&event.source.isDead()) return false; return true; }, direct:true, content:function(){ "step 0" var num1=player.countCards('h'); var num2=trigger.source.countCards('h'); if(num1>num2){ var next=player.chooseToDiscard([num2+1,num1],'贲育:是否弃置至少'+(num2+1)+'张手牌,并对'+get.translation(trigger.source)+'造成一点伤害?'); 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&&_status.event.num<=2){ return 8-get.value(card); } return -1; }); next.set('num',num2+1); } else{ event.draw=true; event.num=Math.min(num2,5)-num1; player.chooseBool(get.prompt2('benyu')); } "step 1" if(result.bool){ if(event.draw){ player.logSkill('benyu',trigger.source); player.draw(event.num); } else{ trigger.source.damage(player); } } }, }, 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}); if(!event.isMine()&&!_status.connectMode) game.delay(); 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); } } }, mouduan:{ audio:1, init2:function(player){ game.broadcastAll(function(player){ player._mouduan_mark=player.mark('武',{ content:'拥有技能【激昂】、【谦逊】' }); },player); player.addAdditionalSkill('mouduan',['jiang','qianxun']); }, onremove:function(player){ game.broadcastAll(function(player){ if(player._mouduan_mark){ player._mouduan_mark.delete(); delete player._mouduan_mark; } },player); player.removeAdditionalSkill('mouduan'); }, trigger:{player:'loseEnd'}, forced:true, filter:function(event,player){ return player._mouduan_mark&&player._mouduan_mark.name=='武'&&player.countCards('h')<=2; }, content:function(){ game.broadcastAll(function(player){ if(!player._mouduan_mark) return; player._mouduan_mark.name='文'; player._mouduan_mark.skill='文'; player._mouduan_mark.firstChild.innerHTML='文'; player._mouduan_mark.info.content='拥有技能【英姿】、【克己】'; },player); player.addAdditionalSkill('mouduan',['yingzi','keji']); }, group:'mouduan2' }, mouduan2:{ audio:1, trigger:{global:'phaseZhunbeiBegin'}, //priority:5, filter:function(event,player){ return player._mouduan_mark&&player._mouduan_mark.name=='文'&&player.countCards('h')>2; }, direct:true, content:function(){ 'step 0' player.chooseToDiscard('he','谋断:是否弃置一张牌将标记变为“武”?').ai=function(){ return -1; } 'step 1' if(result.bool&&player.countCards('h')>2){ game.broadcastAll(function(player){ if(!player._mouduan_mark) return; player._mouduan_mark.name='武'; player._mouduan_mark.skill='武'; player._mouduan_mark.firstChild.innerHTML='武'; player._mouduan_mark.info.content='拥有技能【激昂】、【谦逊】'; },player); player.addAdditionalSkill('mouduan',['jiang','qianxun']); } } }, tanhu:{ audio:1, enable:'phaseUse', usable:1, filterTarget:function(card,player,target){ return player.canCompare(target); }, filter:function(event,player){ return player.countCards('h')>0; }, content:function(){ 'step 0' player.chooseToCompare(target); 'step 1' if(result.bool){ target.addTempSkill('tanhu2'); } }, ai:{ result:{ target:function(player,target){ var hs=player.getCards('h'); if(hs.length<3) return 0; var bool=false; for(var i=0;i=9&&get.value(hs[i])<7){ bool=true; break; } } if(!bool) return 0; return -1; } }, order:9, }, group:'tanhu3' }, tanhu2:{ mark:true, intro:{ content:'已成为探虎目标' } }, tanhu3:{ mod:{ globalFrom:function(from,to){ if(to.hasSkill('tanhu2')) return -Infinity; }, wuxieRespondable:function(card,player,target){ if(target&&target.hasSkill('tanhu2')) return false; } } }, 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;i=2&&he<=3){ return '弃牌'; } if(player.maxHp-player.hp>=3&&he<=5){ return '弃牌'; } if(player.maxHp-player.hp>3){ return '弃牌'; } return '出杀'; } return '出杀'; }).set('prompt','弃置'+get.translation(trigger.player)+get.cnNumber(player.maxHp-player.hp)+'张牌,或对任意一名角色使用一张杀'); 'step 1' if(result.control=='弃牌'){ player.line(trigger.player,'green'); if(player.hp1) 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; }, content:function(){ 'step 0' player.chooseToCompare(target).set('preserve','win'); 'step 1' if(result.bool&&result.target){ event.type=true; event.card=result.target; player.chooseTarget('将'+get.translation(result.target)+'交给一名角色',function(card,player,target){ return target.hp<=player.hp; }).set('ai',function(target){ var att=get.attitude(_status.event.player,target); if(_status.event.du) return -att; return att; }).set('du',event.card.name=='du'); target.addTempSkill('dahe2'); } else{ event.type=false; if(player.countCards('h')){ player.showHandcards(); player.chooseToDiscard('h',true); } } 'step 2' if(event.type){ if(result.bool){ player.line(result.targets,'green'); result.targets[0].gain(event.card,'gain2'); } } }, ai:{ result:{ target:function(player,target){ var hs=player.getCards('h'); if(hs.length<3) return 0; var bool=false; for(var i=0;i=9&&get.value(hs[i])<7){ bool=true; break; } } if(!bool) return 0; if(player.canUse('sha',target)&&(player.countCards('h','sha'))){ return -2; } return -0.5; } }, order:9, } }, dahe2:{ mark:true, intro:{ content:'非红桃闪无效' }, mod:{ cardRespondable:function(card,player){ if(card.name=='shan'&&get.suit(card)!='heart') return false; }, cardEnabled:function(card,player){ if(card.name=='shan'&&get.suit(card)!='heart') return false; }, } }, xunzhi:{ audio:2, trigger:{player:'phaseZhunbeiBegin'}, 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; } } }, junwei:{ trigger:{player:'phaseJieshuBegin'}, direct:true, filter:function(event,player){ return player.storage.yinling&&player.storage.yinling.length>=3; }, content:function(){ 'step 0' if(player.storage.yinling.length>3){ player.chooseButton(3,[get.prompt('junwei'),'hidden',player.storage.yinling]).set('ai',function(button){ return 1; }); } else{ player.chooseBool().set('createDialog',[get.prompt('junwei'),'hidden',player.storage.yinling]).set('dialogselectx',true).set('choice',true); event.cards=player.storage.yinling.slice(0); } 'step 1' if(result.bool){ player.logSkill('junwei'); var cards=event.cards||result.links; for(var i=0;i1) return 1; if(_status.event.player.hp>=3) return 0; return 1; }).set('nshan',nshan); } } else{ event.finish(); } 'step 3' if(!event.directfalse&&result.bool) game.delay(); ui.clear(); 'step 4' if(!event.directfalse&&result.bool){ event.cards=result.cards; event.target.$throw(result.cards); player.chooseTarget('将'+get.translation(event.cards)+'交给一名角色',true,function(card,player,target){ return target!=_status.event.getParent().target; }).set('ai',function(target){ return get.attitude(_status.event.player,target)/(target.countCards('h','shan')+1); }); } else{ event.target.loseHp(); delete event.cards; } 'step 5' if(event.cards){ player.line(result.targets,'green'); result.targets[0].gain(event.cards,'gain2'); game.log(player,'将',event.cards,'交给',result.targets[0]); event.finish(); } else{ if(event.target.countCards('e')){ player.choosePlayerCard('e','将'+get.translation(event.target)+'的一张装备牌移出游戏',true,event.target); } else{ event.finish(); } } 'step 6' if(result.bool){ var card=result.links[0]; if(event.target.storage.junwei2){ event.target.storage.junwei2.push(card); event.target.markSkill('junwei2'); } else{ event.target.storage.junwei2=[card]; } event.target.lose(card,ui.special,'toStorage'); event.target.addSkill('junwei2'); event.target.syncStorage('junwei2'); } } }, junwei2:{ mark:true, intro:{ content:'cards', onunmark:function(storage,player){ if(storage&&storage.length){ player.$throw(storage,1000); game.cardsDiscard(storage); game.log(storage,'被置入了弃牌堆'); storage.length=0; } }, }, trigger:{player:'phaseJieshuBegin'}, forced:true, content:function(){ 'step 0' if(player.storage.junwei2.length){ var card=player.storage.junwei2.shift(); player.equip(card); event.redo(); } 'step 1' player.removeSkill('junwei2'); delete player.storage.junwei2; } }, yinling:{ enable:'phaseUse', filterCard:{color:'black'}, position:'he', intro:{ content:'cards', onunmark:'throw' }, filter:function(event,player){ return player.countCards('he',{color:'black'})>0&&player.storage.yinling.length<4; }, filterTarget:function(card,player,target){ return target.countCards('he')>0&&target!=player; }, init:function(player){ player.storage.yinling=[]; }, check:function(card){ return 6-get.value(card); }, content:function(){ 'step 0' player.choosePlayerCard('hej',target,true); 'step 1' if(result.bool&&result.links&&result.links.length){ target.$give(result.links,player,false); target.lose(result.links,ui.special,'toStorage'); player.storage.yinling.push(result.links[0]); player.markSkill('yinling'); player.syncStorage('yinling'); } }, ai:{ order:10.1, expose:0.1, result:{ target:function(player,target){ if(target.hasSkill('tuntian')) return 0; var es=target.getCards('e'); var nh=target.countCards('h'); var noe=(es.length==0||target.hasSkillTag('noe')); var noe2=(es.length==1&&es[0].name=='baiyin'&&target.hp=0){ return -1.5; } return 2; } return -1.5; }, }, } }, yanxiao:{ audio:2, enable:'phaseUse', filterCard:{suit:'diamond'}, filterTarget:true, check:function(card){ return 7-get.value(card); }, position:'he', filter:function(event,player){ return player.countCards('he',{suit:'diamond'})>0; }, discard:false, //lose:false, visible:true, toStorage:true, prepare:'give', content:function(){ //player.lose(cards,ui.special,'toStorage','visible'); if(target.hasSkill('yanxiao2')&&target.storage.yanxiao2){ target.storage.yanxiao2.push(cards[0]); target.syncStorage('yanxiao2'); target.markSkill('yanxiao2'); } else{ target.storage.yanxiao2=cards.slice(0); target.syncStorage('yanxiao2'); target.addSkill('yanxiao2'); } }, ai:{ order:8, result:{ target:function(player,target){ if(target.storage.yanxiao2&&target.storage.yanxiao2.length) return 0; if(target.countCards('j')) return 1; return 0; } } } }, yanxiao2:{ audio:'yanxiao', mark:true, intro:{ content:'cards', onunmark:function(storage,player){ if(storage&&storage.length){ player.$throw(storage,1000); game.cardsDiscard(storage); game.log(storage,'被置入了弃牌堆'); storage.length=0; } }, }, trigger:{player:'phaseJudgeBegin'}, forced:true, content:function(){ var cards=player.storage.yanxiao2.concat(player.getCards('j')); player.gain(cards,'gain2','log','fromStorage'); delete player.storage.yanxiao2; player.removeSkill('yanxiao2'); }, ai:{ effect:{ target:function(card){ if(get.type(card)=='delay') return [0,0.1]; } } } }, anxian:{ audio:2, group:['anxian_source','anxian_target'], subSkill:{ source:{ audio:"anxian", trigger:{source:'damageBegin2'}, filter:function(event,player){ return event.card&&event.card.name=='sha'; }, check:function(event,player){ if(get.damageEffect(event.player,player,player)<=0) return true; return false; }, content:function(){ 'step 0' if(trigger.player.countCards('h')){ trigger.player.chooseToDiscard(true); } 'step 1' player.draw(); trigger.cancel(); } }, target:{ audio:"anxian", trigger:{target:'useCardToTargeted'}, direct:true, filter:function(event,player){ return event.card.name=='sha'&&player.countCards('h'); }, content:function(){ "step 0" var next=player.chooseToDiscard(get.prompt2('anxian')); next.set('ai',function(card){ var player=_status.event.player; var trigger=_status.event.getTrigger(); if(get.attitude(player,trigger.player)>0){ return 9-get.value(card); } if(player.countCards('h',{name:'shan'})) return -1; return 7-get.value(card); }); next.logSkill='anxian'; "step 1" if(result.bool){ trigger.player.draw(); trigger.getParent().excluded.push(player); } }, } } }, 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.sex=='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.isAlive()){ 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, init:function(player){ if(!player.storage.yinbing) player.storage.yinbing=[]; }, 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.storage.yinbing); 'step 1' var card=result.links[0]; player.storage.yinbing.remove(card); game.cardsDiscard(card); player.$throw(card); game.log(player,'将',card,'置入弃牌堆'); player.syncStorage('yinbing'); if(player.storage.yinbing.length==0){ player.unmarkSkill('yinbing'); } } } }, group:'yinbing_discard' }, juedi:{ trigger:{player:'phaseZhunbeiBegin'}, filter:function(event,player){ return player.storage.yinbing&&player.storage.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.storage.yinbing.length); 'step 1' if(result.bool){ player.line(result.targets[0],'green'); if(result.targets[0]==player){ player.$throw(player.storage.yinbing,1000); var num=player.maxHp-player.countCards('h'); if(num>0) player.draw(num); game.cardsDiscard(player.storage.yinbing); player.storage.yinbing=[]; player.syncStorage('yinbing'); player.unmarkSkill('yinbing'); } else{ var target=result.targets[0]; target.recover(); target.gain(player.storage.yinbing.slice(0),'gain2','log','fromStorage'); target.draw(player.storage.yinbing.length); player.storage.yinbing.length=0; } player.syncStorage('yinbing'); player.unmarkSkill('yinbing'); } } }, 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.getEquip(1)||target.getEquip(2); }, content:function(){ 'step 0' var e1=target.getEquip(1); var e2=target.getEquip(2); event.e1=e1; event.e2=e2; if(e1&&e2){ player.chooseControl('武器牌','防具牌').set('ai',function(){ if(_status.event.player.getEquip(2)){ return '武器牌'; } return '防具牌'; }); } else if(e1){ 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:'cards', onunmark:function(storage,player){ if(storage&&storage.length){ player.$throw(storage,1000); game.cardsDiscard(storage); game.log(storage,'被置入了弃牌堆'); storage.length=0; } }, }, init:function(player,skill){ if(!player.storage[skill]) player.storage.fentian=[]; }, 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){ event.target.$give(result.links,player,false); event.target.lose(result.links,ui.special,'toStorage'); player.storage.fentian=player.storage.fentian.concat(result.links); player.syncStorage('fentian'); player.markSkill('fentian'); } 'step 3' game.delayx(); }, mod:{ attackFrom:function(from,to,distance){ return distance-from.storage.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.storage.fentian&&player.storage.fentian.length>=3&&!player.storage.zhiri; }, 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.storage.fentian&&player.storage.fentian.length>=2; }, filterTarget:true, prompt:'移去两张“焚”并令一名角色失去一点体力', content:function(){ 'step 0' player.chooseCardButton(2,'移去两张“焚”并令'+get.translation(target)+'失去一点体力',player.storage.fentian,true); 'step 1' if(result.bool){ player.$throw(result.links); for(var i=0;iplayer.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.hasSkill('fenxin_nei')){ if(!player.countCards('h',{color:'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)); 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.hasSkill('fenxin_nei')){ if(!player.countCards('h',{color:'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')); 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:{}, zhong:{}, nei:{} }, ai:{ combo:'jieyuan' } }, fenxin_old:{ mode:['identity'], trigger:{source:'dieBegin'}, init:function(player){ player.storage.fenxin=false; }, intro:{ content:'limited' }, skillAnimation:'epic', animationColor:'fire', unique:true, limited:true, audio:2, mark:true, filter:function(event,player){ if(player.storage.fenxin) return false; return event.player.identity!='zhu'&&player.identity!='zhu'&& player.identity!='mingzhong'&&event.player.identity!='mingzhong'; }, check:function(event,player){ if(player.identity==event.player.identity) return Math.random()<0.5; var stat=get.situation(); switch(player.identity){ case 'fan': if(stat<0) return false; if(stat==0) return Math.random()<0.6; return true; case 'zhong': if(stat>0) return false; if(stat==0) return Math.random()<0.6; return true; case 'nei': if(event.player.identity=='fan'&&stat<0) return true; if(event.player.identity=='zhong'&&stat>0) return true; if(stat==0) return Math.random()<0.7; return false; } }, prompt:function(event,player){ return '焚心:是否与'+get.translation(event.player)+'交换身份?'; }, content:function(){ game.broadcastAll(function(player,target,shown){ var identity=player.identity; player.identity=target.identity; if(shown||player==game.me){ player.setIdentity(); } target.identity=identity; },player,trigger.player,trigger.player.identityShown); player.line(trigger.player,'green'); player.storage.fenxin=true; player.awakenSkill('fenxin_old'); } }, xisheng:{ enable:'chooseToUse', usable:1, viewAs:{name:'tao'}, viewAsFilter:function(player){ return player!=_status.currentPhase&&player.countCards('he')>1; }, selectCard:2, filterCard:true, position:'he', ai:{ save:true, skillTagFilter:function(){ return lib.skill.xisheng.viewAsFilter.apply(this,arguments) }, }, }, shulv:{ inherit:'zhiheng', prompt:'弃置一张牌并摸一张牌', selectCard:1, filter:function(event,player){ return player.countCards('h')>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(){ player.gain(get.cardPile(function(card){ return get.type(card,'trick')=='trick'; }),'gain2'); }, ai:{ effect:{ target:function(card,player,target,current){ if(get.type(card)=='equip'&&!get.cardtag(card,'gifts')) return [1,3]; } }, threaten:1.3 } }, yuhua:{ trigger:{player:'phaseDiscardBegin'}, forced:true, audio:2, filter:function(event,player){ return event.parent.name=='phaseDiscard'&&player.countCards('h',{type:'basic'})0){ 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('h')>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('h')){ 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.backup('mozhix'); } } } "step 2" if(result&&result.bool) event.goto(1); }, }, mozhix:{ filterCard:function(card){ return get.itemtype(card)=='card'; }, selectCard:1, popname:true, }, chenqing2:{}, 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')); } }, hanyong:{ trigger:{player:'useCard'}, filter:function(event,player){ return game.roundNumber>player.hp&&event.card&& (event.card.name=='nanman'||event.card.name=='wanjian'); }, content:function(){ trigger.baseDamage++; }, }, 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'}, init:function(player){ if(!player.storage.yishe) player.storage.yishe=[]; }, filter:function(event,player){ return !player.storage.yishe||!player.storage.yishe.length; }, intro:{ content:'cards' }, content:function(){ 'step 0' player.draw(2); player.chooseCard(2,'he',true,'选择两张牌作为“米”'); 'step 1' player.storage.yishe=result.cards; player.lose(result.cards,ui.special,'toStorage'); player.syncStorage('yishe'); player.markSkill('yishe'); } }, bushi:{ audio:2, trigger:{player:'damageEnd',source:'damageEnd'}, filter:function(event,player){ if(event._notrigger.contains(event.player)) return false; return player.storage.yishe&&player.storage.yishe.length&&event.player.isAlive(); }, direct:true, content:function(){ 'step 0' event.count=trigger.num; 'step 1' trigger.player.chooseCardButton('选择获得一张“米”',player.storage.yishe); 'step 2' if(result.bool){ event.count--; player.logSkill('bushi'); trigger.player.gain(result.links[0],'draw2','log','fromStorage'); player.storage.yishe.remove(result.links[0]); player.syncStorage('yishe'); if(player.storage.yishe.length==0){ player.recover(); player.unmarkSkill('yishe'); } else{ player.markSkill('yishe'); if(event.count>0) event.goto(1); } } } }, midao:{ audio:2, //unique:true, trigger:{global:'judge'}, direct:true, filter:function(event,player){ return player.storage.yishe&&player.storage.yishe.length&&event.player.isAlive(); }, content:function(){ "step 0" var list=player.storage.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; player.storage.yishe.remove(card); if(player.storage.yishe.length==0){ player.unmarkSkill('yishe'); if(player.hasSkill('yishe')){ player.logSkill('yishe'); player.recover(); } } else player.markSkill('yishe'); } 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:{ 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 evt2=event.getParent('phaseUse'); if(evt2.player!=player) return false; return player.getHistory('useCard',function(evt){ return ['sha','juedou'].contains(evt.card.name)&&evt.getParent('phaseUse')==evt2; }).indexOf(event.getParent())==0; }, direct:true, content:function(){ 'step 0' player.chooseControl('draw_card','加伤害','cancel2').set('prompt',get.prompt2('fengpo')); 'step 1' if(result.control&&result.control!='cancel2'){ player.logSkill('fengpo',trigger.target); var nd=trigger.target.countCards('h',{suit:'diamond'}); if(result.control=='draw_card'){ player.draw(nd); } else{ var trigger2=trigger.getParent(); if(typeof trigger2.baseDamage!='number'){ trigger2.baseDamage=1; } trigger2.baseDamage+=nd; } } } }, 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:{}, 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.isAlive()&&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;i0&&get.attitude(player,event.player)<0; }, prompt:function(event){ return get.translation(event.source)+'即将对'+get.translation(event.player)+'造成伤害,'+get.prompt('fuji'); }, logTarget:'source', content:function(){ trigger.source.judge().callback=lib.skill.fuji.callback; }, callback:function(){ var evt=event.getParent(2); if(event.judgeResult.color=='black'){ //game.cardsDiscard(card); evt._trigger.num++; } else{ evt._trigger.source.gain(card,'gain2'); } }, }, fulu:{ trigger:{player:'useCard1'}, filter:function(event,player){ if(event.card.name=='sha'&&!event.card.nature) return true; }, audio:true, check:function(event,player){ var eff=0; for(var i=0;i=0; }, content:function(){ trigger.card.nature='thunder'; if(get.itemtype(trigger.card)=='card'){ var next=game.createEvent('fulu_clear'); next.card=trigger.card; event.next.remove(next); trigger.after.push(next); next.setContent(function(){ delete card.nature; }); } } }, guiming:{ unique:true, zhuSkill:true, }, canshi:{ audio:2, trigger:{player:'phaseDrawBegin1'}, check:function(event,player){ var num=game.countPlayer(function(current){ if(player.hasZhuSkill('guiming')&¤t.group=='wu') return true; return current.isDamaged(); }); return num>3; }, 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; var type=get.type(event.card,'trick'); return type=='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'}, 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.prompt2('kunfen')).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:'retiaoxin', 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('retiaoxin'); 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:['gainEnd','loseEnd'], global:'die', }, silent:true, firstDo:true, filter:function(event,player){ if(event.name=='lose') return event.hs.length>0; return true; }, 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'}, //priority:9, audio:2, direct:true, filter:function(event){ return event&&event.source; }, 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'; if(!source.storage.jilei2||!source.storage.jilei2.contains('basic')) return 'basic'; if(_status.currentPhase!=source) return 'trick'; if(lib.filter.cardUsable({name:'sha'},source)&&source.countCards('h')>=2) return 'basic'; return 'trick'; }).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'))) return false; }, cardUsable:function(card,player){ if(player.storage.jilei2.contains(get.type(card,'trick'))) return false; }, cardRespondable:function(card,player){ if(player.storage.jilei2.contains(get.type(card,'trick'))) return false; }, cardSavable:function(card,player){ if(player.storage.jilei2.contains(get.type(card,'trick'))) 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; } } } }, xinmanjuan:{ audio:'manjuan', forced:true, priority:15, trigger:{player:'gainAfter'}, filter:function(event,player){ return event.type!='xinmanjuan'; }, content:function(){ "step 0" player.lose(trigger.cards,ui.discardPile,'visible'); player.$throw(trigger.cards,1000); game.log(player,'将',trigger.cards,'置入了弃牌堆') "step 1" event.cards=trigger.cards.slice(0); if(_status.currentPhase!=player) event.finish(); "step 2" event.card=event.cards.shift(); event.togain=[]; var number=get.number(event.card); for(var i=0;imaxval){ maxval=tempval; } } maxval+=cards.length-1; var next=player.chooseToDiscard('he',{suit:suits}); next.set('ai',function(card){ return _status.event.maxval-get.value(card); }); next.set('maxval',maxval); next.set('dialog',[get.prompt(event.name),'hidden',cards]) next.logSkill=event.name; event.cards=cards; } "step 2" if(result.bool){ player.gain(event.cards,'gain2','log'); } }, ai:{ threaten:1.3 } }, zuixiang:{ skillAnimation:true, animationColor:'gray', audio:true, unique:true, mark:true, trigger:{player:'phaseZhunbeiBegin'}, //priority:10, filter:function(event,player){ if(player.storage.zuixiang) return false; return true; }, check:function(event,player){ return player.countCards('h')0; }, filterCard:{name:'sha'}, check:function(card){return 6-get.value(card)}, content:function(){ 'step 0' var list=lib.group.slice(0); list.remove('shen'); 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','请选择一个势力').ai=function(){return 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.getStorage('rezhoufu2').length; }, check:function(card){ return 6-get.value(card) }, position:'he', discard:false, toStorage:true, prepare:'give', content:function(){ if(!target.storage.rezhoufu2_markcount) target.storage.rezhoufu2_markcount=0; target.markAuto('rezhoufu2',cards); }, ai:{ order:1, result:{ target:-1, }, }, group:['rezhoufu_judge','rezhoufu_losehp'], subSkill:{ judge:{ audio:'zhoufu', trigger:{global:'judgeBefore'}, forced:true, filter:function(event,player){ return !event.directresult&&event.player.getStorage('rezhoufu2').length; }, logTarget:'player', content:function(){ var cards=[trigger.player.getStorage('rezhoufu2')[0]]; trigger.directresult=cards[0]; trigger.player.unmarkAuto('rezhoufu2',cards); }, }, losehp:{ audio:'zhoufu', trigger:{global:'phaseEnd'}, forced:true, filter:function(event,player){ return event.player.hasSkill('rezhoufu3')&&event.player.isAlive(); }, logTarget:'player', content:function(){ trigger.player.loseHp(); }, }, }, }, rezhoufu2:{ intro:{ content:'cards', onunmark:function(storage,player){ if(storage&&storage.length){ player.$throw(storage,1000); game.cardsDiscard(storage); game.log(storage,'被置入了弃牌堆'); storage.length==0; } player.addTempSkill('rezhoufu3'); delete player.storage.rezhoufu2_markcount; }, }, }, rezhoufu3:{}, reyingbing:{ audio:'yingbin', trigger:{global:'useCard'}, forced:true, filter:function(event,player){ var cards=event.player.getStorage('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){ var cards=trigger.player.getStorage('rezhoufu2'); trigger.player.$throw(cards); game.delayx(); player.gain(cards,'gain2','log'); cards.length=0; trigger.player.unmarkSkill('rezhoufu2'); } else trigger.player.markSkill('rezhoufu2'); }, }, zhoufu:{ audio:2, enable:'phaseUse', usable:1, filterCard:true, filterTarget:function(card,player,target){ return player!=target&&!target.hasSkill('zhoufu2'); }, prepare:'throw', discard:false, //lose:false, visible:true, toStorage:true, content:function(){ //player.lose(cards,ui.special,'toStorage'); target.$gain2(cards); target.storage.zhoufu2=cards[0]; target.addSkill('zhoufu2'); target.storage.zhoufu3=player; //ui.special.appendChild(cards[0]); target.syncStorage('zhoufu2'); }, check:function(card){ return 6-get.value(card) }, ai:{ expose:0.1, order:1, result:{ target:-1 } } }, zhoufu2:{ trigger:{player:'judgeBefore'}, forced:true, //priority:10, mark:'card', filter:function(event){ return !event.directresult; }, content:function(){ "step 0" trigger.directresult=player.storage.zhoufu2; delete player.storage.zhoufu2; player.removeSkill('zhoufu2'); delete player.storage.zhoufu2_markcount; if(player.storage.zhoufu3.isIn()){ player.storage.zhoufu3.line(player,'green'); } "step 1" player.addTempSkill('zhoufu3'); }, intro:{ content:'card', onunmark:function(storage,player){ if(storage){ player.$throw(storage,1000); game.cardsDiscard(storage); game.log(storage,'被置入了弃牌堆'); } delete player.storage.zhoufu2; }, } }, zhoufu3:{ trigger:{global:'phaseEnd'}, silent:true, content:function(){ if(player.storage.zhoufu3.isIn()){ player.storage.zhoufu3.logSkill('zhoufu',player); player.loseHp(); } delete player.storage.zhoufu3; }, onremove:true }, yingbin:{ audio:2, trigger:{global:'useCard'}, filter:function(event,player){ return event.player.hasSkill('zhoufu2')&&event.player.storage.zhoufu3==player&& get.suit(event.player.storage.zhoufu2)==get.suit(event.card); }, forced:true, autodelay:true, content:function(){ player.draw(); if(trigger.player.storage.zhoufu2_markcount==1){ trigger.player.removeSkill('zhoufu2'); delete trigger.player.storage.zhoufu2; delete trigger.player.storage.zhoufu2_markcount; delete trigger.player.storage.zhoufu3; } else{ trigger.player.storage.zhoufu2_markcount=1; trigger.player.updateMarks(); } } }, 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.getEquip(1); }); 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.getEquip(1); }); 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; }, 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" trigger.target.gain(result.cards,player,'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'}, filter:function(event,player){ if(event.type!='discard') return false; for(var i=0;i1; }); } player.chooseCardButton(get.prompt('lirang'),event.cards,[1,event.cards.length]).set('ai',function(button){ if(!_status.event.goon||ui.selected.buttons.length) return 0; if(button.link.name=='du') return 2; return 1; }).set('goon',goon); } else{ event.finish(); } "step 2" if(result.bool){ event.togive=result.links.slice(0); player.chooseTarget('将'+get.translation(result.links)+'交给一名角色',true,function(card,player,target){ return target!=player; }).set('ai',function(target){ var att=get.attitude(_status.event.player,target); if(_status.event.enemy){ return -att; } else{ if(att>2) return att/Math.sqrt(1+target.countCards('h')); return att/Math.sqrt(1+target.countCards('h'))/5; } }).set('enemy',get.value(event.togive[0],player,'raw')<0); } else{ //game.cardsDiscard(event.cards); event.finish(); } "step 3" if(result.bool){ if(!event.logged){ player.logSkill('lirang',result.targets); event.logged=true; } else player.line(result.targets,'green'); for(var i=0;i0; }, content:function(){ trigger.target.discardPlayerCard(player,true); } }, shenxian:{ audio:2, trigger:{global:'loseAfter'}, filter:function(event,player){ if(event.type!='discard'||event.player==player||_status.currentPhase==player) return false; if(player.hasSkill('shenxian2')) return false; for(var i=0;iplayer.storage.qiangwu) return num+2; }, targetInRange:function(card,player){ if(_status.currentPhase==player&&card.name=='sha'&&card.numberplayer.storage.qiangwu) return Infinity; } }, trigger:{player:'useCard1'}, filter:function(event,player){ if(_status.currentPhase==player&&event.card.name=='sha'&& event.card.number>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)&&*/player.countCards('h')>0; }, direct: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){ nono=true } else if(trigger.player.hp>2){ nono=true; } else if(trigger.player.hp>1&&player.countCards('h')<3){ nono=true; } else if(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); "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', //group:'qiluan_draw', //subfrequent:['draw'], 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:'loseAfter'}, audio:2, check:function(event,player){ return get.attitude(player,event.player)>0; }, filter:function(event,player){ if(event.player==player||event.player.isDead()||event.player.countCards('h')) return false; if(_status.currentPhase==event.player) return false; return event.hs&&event.hs.length>0; }, logTarget:'player', content:function(){ trigger.player.draw(); }, ai:{ threaten:1.3, expose:0.2, noh:true, } }, hengzheng:{ audio:2, trigger:{player:'phaseDrawBegin1'}, 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.attitude(player,current); } }); return num<0; }, filter:function(event,player){ return player.isLinked(); }, 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'}, direct:true, audio:2, filter:function(event,player){ if(player.countCards('h')) return false; return event.hs&&event.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); }); "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; event.player.chooseBool('是否对'+get.translation(event.target)+'发动【郡兵】?',event.player==event.target?'摸一张牌':'摸一张牌,将所有手牌交给该角色,然后该角色交给你等量的手牌').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'); target.gain(cards,player,'giveAuto'); event.num=cards.length; game.delay(); "step 3" target.chooseCard('选择还给'+get.translation(player)+'的牌',true,event.num); game.delay(0.2); "step 4" player.gain(result.cards,target,'giveAuto'); game.delay(); }, 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,3]; }, 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(targets.length<=2){ 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; }, 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;ii) cards.push(ui.cardPile.childNodes[i]); } player.chooseCardButton('傲才:选择一张卡牌打出',cards).set('filterButton',function(button){ return get.type(button.link)=='basic'&&_status.event.getTrigger().filterCard(button.link); }); "step 1" if(result.bool){ game.log(player,'傲才发动成功'); trigger.untrigger(); trigger.responded=true; result.links[0].remove(); trigger.result={bool:true,card:result.links[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; } } }, group:'aocai2', }, aocai2:{ enable:'chooseToUse', filter:function(event,player){ return _status.currentPhase!==player&&event.type!='wuxie'&&event.type!='trickuse'; }, onChooseToUse:function(event){ if(!game.online){ var cards=[]; if(ui.cardPile.childNodes.length<2){ var discardcards=get.cards(2); game.cardsDiscard(discardcards); } for(var i=0;i<2;i++){ if(ui.cardPile.childNodes.length>i) cards.push(ui.cardPile.childNodes[i]); } event.set('aocaicards',cards); } }, chooseButton:{ dialog:function(event,player){ return ui.create.dialog('傲才:选择一张卡牌使用',event.aocaicards); }, filter:function(button,player){ var evt=_status.event.getParent(); if(evt&&evt.filterCard){ return get.type(button.link)=='basic'&&evt.filterCard(button.link,player,evt); } return false; }, check:function(button){ return 1; }, backup:function(links,player){ return { audio:'aocai', filterCard:function(){return false}, selectCard:-1, viewAs:links[0], } }, prompt:function(links,player){ return '选择'+get.translation(links)+'的目标'; } }, ai:{ order:11, respondShan:true, respondSha:true, save:true, result:{ player:function(player){ if(_status.event.dying) return get.attitude(player,_status.event.dying); return 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').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']}, frequent:true, filter:function(event,player){ if(player==_status.currentPhase) return false; if(event.name!='lose') return get.color(event.card)=='red'; if(event.type!='discard') return false; if(event.cards2){ for(var i=0;i2) return current-1; }, globalTo:function(from,to,current){ if(to.hp<=2) return current+1; }, }, ai:{ threaten:0.8 } }, yongsi:{ group:['yongsi1','yongsi2'], 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" var players=game.filterPlayer(); for(var i=0;itarget.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.5, expose:0.2, result:{ target:function(player,target){ if(target.countCards('h')target.hp){ return -1; } } } } }, 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('retiaoxin'); } if(player.hp<=2){ list.push('olpaoxiao'); } if(player.hp<=1){ list.push('xinshensu'); } if(list.length){ player.addAdditionalSkill('baobian',list); } }, derivation:['retiaoxin','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('retiaoxin'); } 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.sex=='male'; }, filterCard:true, position:'he', content:function(){ player.gain(target.getCards('h'),target,'giveAuto'); 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.isEmpty(get.subtype(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); "step 2" if(result.targets.length){ event.target2=result.targets[0]; event.target1.line(event.target2); event.target1.chooseToCompare(event.target2); } else{ event.finish(); } "step 3" if(!result.tie){ if(result.bool&&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:true, derivation:['benghuai','weizhong'], trigger:{player:'phaseZhunbeiBegin'}, filter:function(event,player){ return player.maxHp>game.players.length&&player.hp0){ player.draw(num); } player.addSkill('benghuai'); player.addSkill('weizhong'); player.storage.juyi=true; player.awakenSkill('juyi'); } }, weizhong:{ audio:true, trigger:{player:['gainMaxHpEnd','loseMaxHpEnd']}, forced:true, content:function(){ player.draw(); } }, chixin:{ group:['chixin1','chixin2'], mod:{ cardUsable:function(card,player,num){ if(card.name=='sha'){ return num+20; } }, }, trigger:{player:'shaBefore'}, forced:true, popup:false, check:function(event,player){ return player.countCards('h','sha')>0; }, filter:function(event,player){ return _status.currentPhase==player; }, content:function(){ var target=trigger.target; if(target.hasSkill('chixin3')){ target.storage.chixin++; } else{ target.storage.chixin=1; target.addTempSkill('chixin3','phaseUseEnd'); } } }, chixin1:{ enable:['chooseToRespond','chooseToUse'], filterCard:{suit:'diamond'}, position:'he', viewAs:{name:'sha'}, prompt:'将一张♦牌当杀使用或打出', check:function(card){return 5-get.value(card)}, ai:{ respondSha:true, } }, chixin2:{ enable:['chooseToUse','chooseToRespond'], filterCard:{suit:'diamond'}, viewAs:{name:'shan'}, position:'he', prompt:'将一张♦牌当闪使用或打出', check:function(card){return 5-get.value(card)}, ai:{ respondShan:true, effect:{ target:function(card,player,target,current){ if(get.tag(card,'respondShan')&¤t<0) return 0.8 } }, } }, chixin3:{ mod:{ targetEnabled:function(card,player,target){ if(card.name!='sha') return; if(player==_status.currentPhase&&player.hasSkill('chixin')){ var num=player.getCardUsable(card,true)-20; var players=game.filterPlayer(); for(var i=0;i1; } } } }, suiren:{ trigger:{player:'phaseZhunbeiBegin'}, skillAnimation:true, animationColor:'gray', filter:function(event,player){ return !player.storage.suiren; }, intro:{ content:'limited', }, mark:true, direct:true, unique:true, limited:true, content:function(){ "step 0" var check=(player.hp==1||(player.hp==2&&player.countCards('h')<=1)); player.chooseTarget(get.prompt2('suiren')).set('ai',function(target){ if(!_status.event.check) return 0; return get.attitude(_status.event.player,target); }).set('check',check); "step 1" if(result.bool){ player.storage.suiren=true; player.awakenSkill('suiren'); player.logSkill('suiren',result.targets); player.removeSkill('yicong'); player.gainMaxHp(); player.recover(); result.targets[0].draw(3); } } }, kuangfu:{ trigger:{source:'damageSource'}, direct:true, audio:2, filter:function(event){ if(event._notrigger.contains(event.player)) return false; return event.card&&event.card.name=='sha'&&event.player.countCards('e'); }, 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){ player.logSkill('kuangfu'); event.card=result.links[0]; if(player.isEmpty(get.subtype(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.prompt2('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.chooseBool('是否押基本牌?').ai=function(event,player){ var rand=0.95; if(!target.countCards('h',{type:['basic']})) rand=0.05; if(!target.countCards('h')) rand=0; return Math.random()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, 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; }, content:function (){ trigger.num++; }, }, init:{ trigger:{ global:"gameDrawAfter", player:"enterGame", }, forced:true, locked:false, 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){ var mark=player.countMark('xionghuo'); if(mark>2) return -1; return Math.min(-(1+mark-target.hp),0); }, }, threaten:1.1, }, }, 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", }, forced:true, 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:"he", filterCard:function (card){ return get.color(card)=='red'; }, viewAs:{ name:"huogong", nature:"fire", }, viewAsFilter:function (player){ if(player.hasSkill('huoji')) return false; if(!game.hasPlayer(function(current){ return current.hasSkill('xinfu_jianjie'); })) return false; if(!player.countCards('he',{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) }, }, "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('h',{suit:'club'})>0; }, filterCard:function (card){ return get.suit(card)=='club'; }, viewAs:{ name:"tiesuo", }, 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.countCards('h',{suit:'club'})>0; }, filterCard:function (card){ return get.suit(card)=='club'; }, check:function (card){ return -1; }, content:function (){ player.draw(); }, discard:false, loseTo:'discardPile', prompt:"将一张梅花牌置入弃牌堆并摸一张牌", delay:0.5, prepare:function (cards,player){ player.$throw(cards,1000); }, 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){ for(var i=0;i0){ 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){ result.targets[0].gain(event.togive,'draw'); player.line(result.targets[0],'green'); game.log(result.targets[0],'获得了'+get.cnNumber(event.togive.length)+'张牌'); event.goto(1); } }, }, "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.sex!='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:"gameDrawAfter", }, filter:function (event,player){ if(event.name!='lose') return true; if(event.type!='discard') return false; for(var i=0;i0){ if(results>0){ if(resulth>results) return '红桃5'; return '黑桃5'; } else if(resulth>0) return '红桃5'; return '取消'; } else{ if(results<0){ if(resulth=0) return false; if(event.player.hasSkillTag('filterDamage',null,{ player:player, card:event.card, })) return false; 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 (){ "step 0" player.removeMark('xinfu_falu_heart') player.judge(function(card){ if(get.color(card)=='black') return 4; return -1; }); "step 1" if(result.bool==true){ 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, }, }, "xinfu_yanyu":{ trigger:{ global:"phaseUseBegin", }, direct:true, filter:function (event,player){ return player.countCards('he')>0; }, content:function (){ 'step 0' player.chooseToDiscard(get.prompt('xinfu_yanyu'),get.translation('xinfu_yanyu_info'),'he').set('ai',function(card){ var map=_status.event.goon; var type=get.type(card,'trick'); if(!map[type]) return -1; return map[type]-get.value(card); }).set('logSkill','xinfu_yanyu').set('goon',function(){ var map={ basic:0, trick:0.1, }; var hs=trigger.player.getCards('h'); var sha=false; var jiu=false; for(var i=0;i=3) return false; //var evt=event.getParent(); //if(evt&&(evt.name=='useCard'||evt.name=='respond')) return false; var type=player.storage.xinfu_yanyu; var cards=event.cards; for(var i=0;i=3) event.finish(); else player.chooseCardButton(event.cards,'【燕语】:是否将其中的一张牌交给一名角色?').ai=function(card){ if(card.name=='du') return 10; return get.value(card); }; 'step 2' if(result.bool){ player.storage.xinfu_yanyu2++; if(!event.logged){ player.logSkill('xinfu_yanyu'); player.addExpose(0.25); event.logged=true; } event.togain=result.links[0]; event.cards.remove(event.togain); player.chooseTarget(true,'请选择要获得'+get.translation(event.togain)+'的角色').set('ai',function(target){ var att=get.attitude(_status.event.player,target); var card=_status.event.card; var val=get.value(card); if(target==_status.currentPhase&&target.hasValueTarget(card)) att=att*2; return att*val; }).set('card',event.togain); } else event.finish(); 'step 3' var target=result.targets[0]; player.line(target,'green'); target.gain(event.togain,'gain2'); if(event.cards.length) event.goto(1); }, }, "xinfu_xiaode":{ subSkill:{ remove:{ unique:true, charlotte:true, trigger:{ player:"phaseAfter", }, forced:true, popup:false, content:function (){ player.removeAdditionalSkill('xinfu_xiaode'); player.removeSkill('xinfu_xiaode_remove'); }, }, }, trigger:{ global:"dieAfter", }, direct:true, filter:function (skill,event){ return !event.hasSkill('xinfu_xiaode_remove'); }, content:function (){ 'step 0' var list=[]; var listm=[]; var listv=[]; if(trigger.player.name1!=undefined) listm=lib.character[trigger.player.name1][3]; else listm=lib.character[trigger.player.name][3]; if(trigger.player.name2!=undefined) listv=lib.character[trigger.player.name2][3]; listm=listm.concat(listv); var func=function(skill){ var info=get.info(skill); if(info.charlotte||info.zhuSkill||(info.unique&&!info.limited)) return false; return true; }; for(var i=0;i觉醒技 当你使用或打出基本牌时,若你已经已累计发动过3次【翊赞】,你将【翊赞】改为“你可以将一张基本牌当任意基本牌牌使用或打出”。", wuniang:"武娘", wuniang_info:"你使用或打出【杀】时,你可以获得一名其他角色的一张牌,然后该角色摸一张牌;若“关索”在场,你可令“关索”也摸一张牌", zhennan:"镇南", zhennan_info:"当你成为【南蛮入侵】的目标时,你可令一名其他角色随机受到一至三点伤害", xushen:"许身", xushen_info:"当其他男性角色令你脱离濒死状态时,若“关索”不在场,其可以选择是否用“关索”替换其武将牌,然后你回复一点体力并获得技能【镇南】", wanwei:'挽危', wanwei_info:'当你因被其他角色获得或弃置而失去牌时,你可以改为自己选择失去的牌。', yuejian:'约俭', yuejian_info:'一名角色的弃牌阶段开始时,若其本回合内使用过的牌数小于X,则你可以令其本回合的手牌上限+X。(X为其的体力上限)', 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:'清忠', qingzhongx:'清忠', qingzhongx_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为存活的忠臣数)', huoshui:'祸水', huoshui_info:'出牌阶段,你可以明置此武将牌:你的回合内,若此武将牌处于明置状态,其他角色不能明置其武将牌。', qingcheng:'倾城', qingcheng_info:'出牌阶段,你可以弃置一张装备牌并选择一名两张武将牌均明置的其他角色,你暗置其一张武将牌', zhuoshui:'祸水', zhuoshui_info:'锁定技,准备阶段,你令所有其他角色的非锁定技失效直到回合结束。', zqingcheng:'倾城', zqingcheng_info:'出牌阶段,你可以弃置一张装备牌,然后令一名角色翻面并摸两张牌。', zfengshi:'锋矢', zfengshi_info:'当你使用【杀】指定目标后,你可以令目标弃置装备区内的一张牌。', chuanxin:'穿心', chuanxin_info:'当你于出牌阶段内使用【杀】或【决斗】对目标角色造成伤害时,你可以防止此伤害。若如此做,该角色选择一项:1.弃置装备区里的所有牌,若如此做,其失去1点体力;2.随机移除主武将牌上的一个技能。', chuanxin_info_guozhan:'当你于出牌阶段内使用【杀】或【决斗】对目标角色造成伤害时,若其与你势力不同且有副将,你可以防止此伤害。若如此做,该角色选择一项:1.弃置装备区里的所有牌,若如此做,其失去1点体力;2.移除副将。', hengjiang:'横江', hengjiang2:'横江', hengjiang_info:'当你受到1点伤害后,你可以令当前回合角色本回合的手牌上限-1。然后若其弃牌阶段内没有弃牌,则你摸一张牌。', rehengjiang:'横江', rehengjiang2:'横江', rehengjiang_info:'当你受到1点伤害后,你可以令当前回合角色本回合的手牌上限-1。然后若其弃牌阶段内没有弃牌,则你摸X张牌(X为你本回合内对其发动过〖横江〗的次数)。', shuangren:'双刃', shuangren_info:'出牌阶段开始时,你可以与一名角色拼点。若你赢,你视为对任意一名角色使用一张【杀】(不计入出牌阶段的次数限制);若你没赢,你结束出牌阶段。', shuangren_info_guozhan:'出牌阶段开始时,你可以与一名角色拼点。若你赢,你视为对其或与其势力相同的另一名角色使用一张【杀】(不计入出牌阶段的次数限制);若你没赢,你结束出牌阶段。', 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:'限定技,回合开始时,你可以移去所有“梅影”标记并摸等量的牌,随机观看五名未登场的蜀势力角色,获得其中一张武将牌上的所有技能。', yjixi:'觊玺', yjixi_info:'觉醒技,结束阶段,若你连续三回合没有因〖庸肆〗而失去过体力,则你增加1点体力上限并回复1点体力,然后选择一项:获得技能〖妄尊〗;摸两张牌并获得当前主公的主公技。', xinyongsi:'庸肆', xinyongsi1:'庸肆', xinyongsi2:'庸肆', xinyongsi_info:'锁定技,摸牌阶段,你令额定摸牌数改为X(X为势力数);弃牌阶段开始时,你选择一项:1.弃置一张牌;2.失去1点体力。', xiehui:'黠慧', xiehui2:'黠慧', xiehui_info:'锁定技,你的黑色牌不计入手牌上限;其他角色获得你的黑色牌时,其不能使用、打出、弃置这些牌直到其体力值减少为止。', lianzhu:'连诛', lianzhu_info:'出牌阶段限一次,你可以展示并交给一名其他角色一张牌,若此牌为黑色,其选择一项:1.你摸两张牌;2.弃置两张牌', zhaolie:'昭烈', zhaolie_info:'摸牌阶段摸牌时,你可以少摸一张牌并指定攻击范围内的一名角色。你展示牌堆顶的三张牌,将其中的非基本牌和【桃】置于弃牌堆,然后该角色选择一项:1.你对其造成X点伤害,然后其获得这些基本牌;2.其弃置X张牌,然后你获得这些基本牌。(X为其中非基本牌的数量)', shichou:'誓仇', shichou2:'誓仇', shichou_info:'主公技,限定技,准备阶段,你可指定一名蜀势力角色并交给其两张牌。本局游戏中,当你受到伤害时,改为该角色受到等量的伤害并摸等量的牌,直至该角色第一次进入濒死状态。', shanjia:'缮甲', shanjia_info:'出牌阶段开始时,你可以摸X张牌,然后弃置等量的牌。若你以此法弃置了装备区内的牌,则你可以视为使用一张【杀】。(X为你于本局游戏内使用过的装备牌数且最大为7)', tuifeng:'推锋', tuifeng2:'推锋', tuifeng_info:'1.当你受到1点伤害后,你可以将一张牌置于武将牌上,称为“锋”。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点体力,然后若该角色的武将牌上有主公技且其不为主公,其获得此主公技。', gushe:'鼓舌', gushe_bg:'舌', gushe_info:'出牌阶段限一次,你可以用一张手牌与至多三名角色同时拼点,然后依次结算拼点结果,没赢的角色选择一项:1.弃置一张牌;2.令你摸一张牌。若你没赢,你获得一个“饶舌”标记。当你获得第7个“饶舌”标记时,你死亡。', jici:'激词', jici_info:'当你因发动〖鼓舌〗而扣置的拼点牌亮出后,若点数小于X,你可令点数+X;若点数等于X,你可令你本回合发动〖鼓舌〗的次数上限+1。(X为你“饶舌”标记的数量)', shefu:'设伏', shefu_bg:'伏', shefu_info:'结束阶段开始时,你可以将一张手牌移出游戏,称为「伏兵」。然后为「伏兵」记录一个基本牌或锦囊牌的名称(须与其他「伏兵」记录的名称均不同)。你的回合外,当有其他角色使用与你记录的「伏兵」牌名相同的牌时,你可以取消此牌的所有目标,然后移去该「伏兵」', 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为你于此回合发动过〖奇制〗的次数)', tanhu:'探虎', tanhu2:'探虎', tanhu3:'探虎', tanhu_info:'出牌阶段限一次,你可以与一名其他角色拼点。若你赢,你获得以下效果直到回合结束:你与该角色的距离为1,你对该角色使用的普通锦囊牌不能被【无懈可击】响应。', mouduan:'谋断', mouduan_info:'游戏开始时,你获得标记“武”并获得技能〖激昂〗和〖谦逊〗。当你失去手牌后,若手牌数不大于2,你须将你的标记变为“文”,将这两项技能改为〖英姿〗和〖克己〗。一名角色的回合开始前,你可弃一张牌将标记翻回。', jiqiao:'机巧', jiqiao_info:'出牌阶段开始时,你可以弃置任意张装备牌,然后亮出牌堆顶两倍数量的牌并获得其中的非装备牌。', linglong:'玲珑', linglong_info:'锁定技,若你的装备区没有武器牌,则你使用【杀】的次数上限+1;若你的装备区没有防具牌,视为你装备着【八卦阵】;若你的装备区没有坐骑牌,你的手牌上限+1;若你的装备区没有宝物牌,则你视为拥有技能〖奇才〗。', fenyong:'愤勇', fenyong2:'愤勇', fenyong2_bg:'勇', fenyong_info:'每当你受到一次伤害后,你可以获得一枚「愤勇」标记;当你拥有「愤勇」标记时,防止你受到的所有伤害。', xuehen:'雪恨', xuehen_info:'每个角色的结束阶段开始时,若你有愤勇标记,你弃置之,然后选择一项:1.弃置当前回合角色X张牌(X为你已损失的体力值);2.视为对一名任意角色使用一张【杀】。', zhenwei:'镇卫', zhenwei2:'镇卫', zhenwei_info:'当一名其他角色成为【杀】或黑色锦囊牌的目标时(使用者不是你),若该角色的体力值小于你且此牌的目标角色数为1,你可以弃置一张牌。若如此做,你选择一项:1、摸一张牌,然后将此【杀】或黑色锦囊牌转移给你;2、令此【杀】或黑色锦囊牌无效,然后将此【杀】或黑色锦囊牌置于使用者的武将牌旁,若如此做,当前回合结束后,使用者获得使用者武将牌旁的这些牌。', jie:'嫉恶', jie_info:'锁定技,当你使用红色【杀】造成伤害时,此伤害+1。', dahe:'大喝', dahe2:'大喝', dahe2_bg:'喝', dahe_info:'出牌阶段限一次,你可以与一名其他角色拼点。若你赢,该角色不能使用或打出不为♥花色的【闪】直到回合结束,且你可将该角色拼点的牌交给场上一名体力不多于你的角色。若你没赢,你须展示手牌并弃置其中的一张。', yinling:'银铃', yinling_bg:'锦', yinling_info:'出牌阶段,若你的“锦”小于四张,你可以弃置一张黑色牌并指定一名其他角色。若如此做,你将其的一张牌置于你的武将牌上,称为“锦”。', junwei:'军威', junwei2:'军威', junwei_info:'结束阶段开始时,你可以移去三张“锦”。若如此做,你须指定一名角色并令其选择一项:1.展示一张【闪】,然后你将此【闪】交给一名其他角色。2.该角色失去1点体力,然后你将其装备区内的一张牌移出游戏。该角色的回合结束后,将以此法移出游戏的装备牌移回原处。', yanxiao:'言笑', yanxiao2:'言笑', yanxiao_info:'出牌阶段,你可以将一张♦牌置于一名角色的武将牌上。武将牌上有〖言笑〗牌的角色下个判定阶段开始时,获得〖言笑〗牌及其判定区里的所有牌。', anxian:'安娴', anxian_info:'当你使用【杀】对目标角色造成伤害时,你可以防止此伤害,令其弃置一张手牌,然后你摸一张牌;当你成为【杀】的目标后,你可以弃置一张手牌,令此【杀】对你无效,然后此【杀】的使用者摸一张牌。', 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_old:'焚心', fenxin_info:'锁定技,一名其他角色死亡后,若其身份为:忠臣,你本局内发动〖竭缘〗减少伤害时无视体力值限制;反贼,你本局内发动〖竭缘〗增加伤害时无视体力值限制;内奸,你本局内选择发动〖竭缘〗的牌时无颜色限制。', fenxin_old_info:'限定技,当你杀死一名非主公角色时,你可以与其交换未翻开的身份牌。(你的身份为主公时不能发动此技能)', qingyi:'轻逸', qingyi1:'轻逸', qingyi2:'轻逸', qingyi_info:'你可以跳过判定阶段和摸牌阶段。若如此做,视为对一名角色使用了一张无距离限制的【杀】。', xiandeng:'先登', xiandeng_info:'锁定技,出牌阶段,你使用的第一张【杀】不计入次数且无距离限制。', shulv:'熟虑', shulv_info:'出牌阶段限一次,若你的手牌数大于体力值,则你可以弃置一张牌并摸一张牌。', xisheng:'牺牲', xisheng_info:'每名其他角色的回合限一次,你可以将两张牌当做【桃】使用。', yuhua:'羽化', yuhua_info:'锁定技,弃牌阶段内,你的非基本牌不计入手牌上限。', qirang:'祈禳', qirang_info:'当有装备牌进入你的装备区时,你可以随机获得牌堆中的一张锦囊牌。', 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张牌;2.令此牌的伤害值基数+X。(X为其手牌中方牌的数量)', chenqing:'陈情', chenqing_info:'每轮限一次,当一名角色处于濒死状态时,你可以令另一名其他角色摸四张牌,然后其弃置四张牌。若其以此法弃置的四张牌花色各不相同,则视为该角色对濒死的角色使用一张【桃】。', mozhi:'默识', mozhi_info:'结束阶段开始时,你可以将一张手牌当作你本回合出牌阶段内使用的第一张基本或普通锦囊牌使用。然后,你可以将一张手牌当做你本回合出牌阶段内使用的第二张基本或普通锦囊牌使用。(你不能通过此技能使用【酒】)', ranshang:'燃殇', ranshang2:'燃殇', ranshang_info:'锁定技,当你受到1点火焰伤害后,你获得1枚“燃”标记;结束阶段开始时,你失去X点体力(X为“燃”标记的数量)', hanyong:'悍勇', hanyong_info:'当你使用【南蛮入侵】或【万箭齐发】时,若你的体力值小于游戏轮数,你可以令此牌的伤害值基数+1。', yicong:'义从', yongsi:'庸肆', yongsi1:'庸肆', yongsi2:'庸肆', bifa:'笔伐', bifa2:'笔伐', songci:'颂词', baobian:'豹变', lihun:'离魂', chongzhen:'冲阵', chongzhen1:'冲阵', chongzhen2:'冲阵', yuanhu:'援护', tianming:'天命', mizhao:'密诏', duwu:'黩武', 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:'纳蛮', zuixiang:'醉乡', manjuan:'漫卷', taichen:'抬榇', jilei:'鸡肋', jilei2:'鸡肋', jilei2_bg:'肋', fulu:'符箓', fuji:'助祭', yawang:'雅望', xunzhi:'殉志', fanxiang:'返乡', fanxiang_info:'觉醒技,准备阶段开始时,若场上有已受伤且你发动过〖良助〗的选项二的角色,则你加1点体力上限并回复1点体力,失去技能〖良助〗并获得技能〖枭姬〗', xunzhi_info:'准备阶段开始时,若你的上家和下家与你的体力值均不相等,你可以失去1点体力。若如此做,你本局内手牌上限+2。', yawang_info:'锁定技,摸牌阶段开始时,你改为摸X张牌,然后你于本回合的出牌阶段内至多使用X张牌(X为与你体力值相等的角色数)', fuji_info:'当一名角色造成雷属性伤害时,你可以令其进行判定,若结果为黑色,此伤害+1;若结果为红色,该角色获得判定牌。', fulu_info:'当你声明使用普通【杀】时,你可以将此【杀】改为雷【杀】。', jilei_info:'当你受到有来源的伤害后,你可以声明一种牌的类别。若如此做,你令伤害来源不能使用、打出或弃置此类别的手牌,直到其下个回合开始。', danlao:'啖酪', danlao_info:'当你成为一张指定了多个目标的【杀】或普通锦囊牌的目标时,你可以摸一张牌,令此牌对你无效。', gongao:'功獒', zhuiji:'追击', chouhai:'仇海', chouhai_info:'锁定技,当你受到伤害时,若你没有手牌,此伤害+1。', rechouhai:'仇海', rechouhai_info:'锁定技,当你受到渠道为【杀】的伤害时,若你没有手牌,此伤害+1。', guiming:'归命', guiming_info:'主公技,锁定技,你将残蚀描述中的“已受伤角色”改为“已受伤角色或其他吴势力角色”', chixin:'赤心', chixin1:'赤心', chixin2:'赤心', chixin_info:'你可以将♦牌当作【杀】或【闪】使用或打出。出牌阶段,你对在你攻击范围内且本回合内未成为过你使用的【杀】的目标的角色使用的【杀】没有次数限制。', suiren:'随仁', suiren_info:'限定技,准备阶段开始时,你可以失去技能〖义从〗,然后加1点体力上限并回复1点体力,然后令一名角色摸三张牌。', 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点体力,视为对一名角色使用一张【杀】。(不计入出牌阶段的使用次数限制)', manjuan_info:'其他角色的牌因弃置而进入弃牌堆后,你可以弃置一张花色与之不同的牌,然后获得此牌。', xinmanjuan:'漫卷', xinmanjuan_info:'锁定技,当你不因【漫卷】或【醉乡】而获得牌时,你将此牌置入弃牌堆。然后若此时处于你的回合内,则你可以从弃牌堆中选择获得一张与此牌点数相同的其他牌。', zuixiang_info:'限定技,准备阶段开始时,你可以展示牌堆顶的3张牌并置于你的武将牌上。你不能使用或打出与该些牌同类的牌,所有同类牌对你无效。之后的每个准备阶段,你须重复展示一次,直到这些牌中任意两张点数相同。然后,你获得这些牌。', 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为场上所有角色装备区内武器牌数目之和)。你的下个摸牌阶段开始时,你弃置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:'出牌阶段限一次,你可以令一名其他角色横置,若如此做,你横置。', xiaoguo_info:'其他角色的结束阶段开始时,你可以弃置一张基本牌,令该角色选择一项:1.弃置一张装备牌,然后你摸一张牌;2.受到你对其造成的1点伤害。', sijian_info:'当你失去最后的手牌时,你可以弃置一名其他角色的一张牌。', suishi_info:'当其他角色进入濒死状态时,伤害来源可以令你摸一张牌;当其他角色死亡时,伤害来源可以令你失去1点体力', quji_info:'出牌阶段限一次,你可以弃置X张牌(X为你已损失的体力值),然后令至多X名已受伤的角色各回复1点体力。若你以此法弃置的牌中有黑色牌,你失去一点体力。', junbing_info:'一名角色的结束阶段开始时,若其手牌数不大于1,该角色可以摸一张牌。若如此做,该角色将所有手牌交给你,然后你交给其等量的牌。', xiongyi_info:'限定技,出牌阶段,你可以选择至多三名角色,这些角色各摸三张牌;若你选择的角色数不超过2,你回复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:'当你于回合外需要使用或打出一张基本牌时,你可以观看牌堆顶的两张牌。若你观看的牌中有此牌,你可以使用打出之。', 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,你视为拥有技能〖神速〗。', bingzhao:'秉诏', bingzhao_info:'主公技,游戏开始时,你选择一个其他势力。当你对该势力的角色发动〖骨疽〗时,其可令你额外摸一张牌。', sp_gongsunzan:'SP公孙瓒', sp_simazhao:'SP司马昭', sp_wangyuanji:'SP王元姬', sp_xinxianying:'SP辛宪英', sp_liuxie:'SP刘协', spyicong_info:'弃牌阶段结束时,你可以将任意张牌置于你的武将牌上,称为「扈」。每有一张「扈」,其他角色与你计算距离时便+1。', spyicong:'义从', sptuji:'突骑', sptuji_info:'准备开始时,你将所有「扈」置于弃牌堆,然后你本回合内计算与其他角色的距离时-X。若X不大于1,你摸一张牌。(X为以此法进入弃牌堆的「扈」的数量)', sphuangen:'皇恩', sphuangen_info:'一名角色使用锦囊牌指定目标时,若此牌的目标数大于1,则你可以令此牌对其中的至多X个目标无效,然后摸一张牌。(X为你的体力值)', sphantong:'汉统', sphantong_gain:'汉统', sphantong_info:'当你的牌因弃牌阶段的游戏规则要求而进入弃牌堆后,你可以将这些牌置于你的武将牌上,称为「诏」。一名角色的回合开始时,你可以弃置一张「诏」并获得〖护驾〗/〖激将〗/〖救援〗/〖血裔〗中的一个技能直至当前回合结束。', spzhaoxin:'昭心', spzhaoxin_info:'摸牌阶段结束时,你可以展示所有手牌,然后视为使用一张【杀】。', splanggu:'狼顾', splanggu_rewrite:'狼顾', splanggu_info:'当你受到有来源的伤害后,你可以进行判定(此判定结果生效前,你可以打出一张手牌替换判定牌)。然后你可以观看伤害来源的手牌并弃置其中的任意张与判定结果花色相同的牌。', spfuluan:'扶乱', spfuluan_info:'出牌阶段限一次,你可以弃置三张花色相同的牌并选择攻击范围内的一名角色。若如此做,该角色翻面且你不能使用【杀】直到回合结束', spshude:'淑德', spshude_info:'结束阶段开始时,你可以将手牌补至体力上限。', spmingjian:'明鉴', spmingjian_info:'一名角色的回合开始时,你可以选择一项:①弃置一张牌,然后其跳过本回合的判定阶段。②将一张手牌置于其武将牌上,然后其本回合内进行判定时不触发「判定结果生效前」的时机,且其回合结束时将此牌置入弃牌堆。', spyinzhi:'隐智', spyinzhi_info:'当你受到1点伤害后,你可以展示牌堆顶的两张牌。若其中有黑桃牌,则你可以进行至多X次「令一名角色获得伤害来源的一张手牌」的步骤,然后获得其余的牌。(X为其中黑桃牌的数量)', sunshao:'孙邵', bizheng:'弼政', bizheng_info:'摸牌阶段结束时,你可以令一名其他角色摸两张牌。然后,若你的手牌数大于体力上限,你弃置两张牌。若其的手牌数大于体力上限,其弃置两张牌。', yidian:'佚典', yidian_info:'当你使用牌选择目标时,若弃牌堆中没有与此牌名称相同的牌,则你可以为此牌增加一个目标(无距离限制)。', xinlianji:'连计', xinlianji_info:'出牌阶段限一次,你可以弃置一张手牌,令其使用牌堆中的一张随机武器牌,然后选择一项:对你指定的一名角色使用【杀】,或令你将其装备区里的武器牌交给任意角色。', xinmoucheng:'谋逞', xinmoucheng_info:'觉醒技,准备阶段,若你已经发动了3次以上的〖连计〗,则你失去〖连计〗并获得〖矜功〗。', xinjingong:'矜功', xinjingong_info:'出牌阶段限一次,你可以将一张【杀】或装备牌当做三张随机锦囊牌中的一张使用。', caiyang:'蔡阳', yinka:'印卡', zhangling:'张陵', zlhuji:'虎骑', zlhuji_info:'锁定技,你与其他角色的距离-1,你于回合外受到伤害后进行判定,若结果为红色,视为你对伤害来源使用一张【杀】(无视距离)。', zlshoufu:'授符', zlshoufu2:'授符', zlshoufu_info:'出牌阶段限一次,你可摸一张牌,然后将一张手牌置于一名没有【箓】的角色的武将牌上,称为【箓】;其不能使用和打出与【箓】同类型的牌。该角色受伤后,或于弃牌阶段弃置至少2张与【箓】同类型的牌后,将【箓】置入弃牌堆。', ol_zhangchangpu:'OL张昌蒲', olxingshen:'省身', olxingshen_info:'当你受到伤害后,你可以随机摸两张牌。若如此做,你获得X个“省”,且下一次发动〖严教〗展示牌时移去所有“省”并多展示等量的牌。(X为你已损失的体力值,且你至多拥有6个“省”)', caoshuang:'曹爽', tuogu:'托孤', tuogu_info:'限定技,一名角色死亡时,你可以令其选择其武将牌上的一个技能(主公技,限定技,觉醒技等特殊技能除外),然后你获得其选择的技能。', shanzhuan:'擅专', shanzhuan_info:'当你对其他角色造成伤害后,你可以将其判定区的一张牌置于其的判定区。若此牌不为延时锦囊牌且此牌为:红色,此牌视为【乐不思蜀】;黑色,此牌视为【兵粮寸断】。', sp_default:"常规", sp_zhongdan:"忠胆英杰", sp_star:"桌游志·SP", sp_guozhan:"国战", sp_guozhan2:"国战移植", sp_others:"其他", sp_single:'新1v1', sp_sticker:'桌游志·贴纸', }, }; });