noname/card/swd.js

5133 lines
137 KiB
JavaScript
Raw Normal View History

2015-04-29 03:25:17 +00:00
card.swd={
card:{
2017-02-02 06:09:00 +00:00
dujian:{
fullskin:true,
type:'basic',
enable:true,
filterTarget:function(card,player,target){
return target.num('h')>0;
},
content:function(){
"step 0"
if(target.num('h')==0||player.num('h')==0){
event.finish();
return;
}
player.chooseCard(true);
"step 1"
event.card1=result.cards[0];
var rand=Math.random()<0.5;
target.chooseCard(true).ai=function(card){
if(rand) return Math.random();
return ai.get.value(card);
};
"step 2"
event.card2=result.cards[0];
ui.arena.classList.add('thrownhighlight');
game.addVideo('thrownhighlight1');
player.$compare(event.card1,target,event.card2);
game.delay(4);
"step 3"
game.log(player,'展示了',event.card1);
game.log(target,'展示了',event.card2);
if(get.color(event.card2)==get.color(event.card1)){
player.discard(event.card1).animate=false;
target.$gain2(event.card2);
var clone=event.card1.clone;
if(clone){
clone.style.transition='all 0.5s';
clone.style.transform='scale(1.2)';
clone.delete();
game.addVideo('deletenode',player,get.cardsInfo([clone]));
}
target.loseHp();
}
else{
player.$gain2(event.card1);
target.$gain2(event.card2);
target.addTempSkill('dujian2','phaseBegin');
}
ui.arena.classList.remove('thrownhighlight');
game.addVideo('thrownhighlight2');
},
ai:{
basic:{
order:2,
value:3,
useful:1,
},
result:{
player:function(player,target){
if(player.num('h')<=Math.min(5,Math.max(2,player.hp))&&_status.event.name=='chooseToUse'){
if(typeof _status.event.filterCard=='function'&&
_status.event.filterCard({name:'dujian'})){
return -10;
}
if(_status.event.skill){
var viewAs=get.info(_status.event.skill).viewAs;
if(viewAs=='dujian') return -10;
if(viewAs&&viewAs.name=='dujian') return -10;
}
}
return 0;
},
target:function(player,target){
if(target.hasSkill('dujian2')||target.num('h')==0) return 0;
if(player.num('h')<=1) return 0;
return -1.5;
}
},
tag:{
loseHp:1
}
}
},
2016-10-01 07:52:22 +00:00
yangpijuan:{
fullskin:true,
2017-01-29 09:26:05 +00:00
type:'trick',
enable:true,
filterTarget:function(card,player,target){
return target==player;
},
2017-01-30 06:40:22 +00:00
modTarget:true,
2017-01-29 09:26:05 +00:00
content:function(){
'step 0'
var choice;
2017-01-30 06:40:22 +00:00
if(target.num('h','shan')==0||target.num('h','sha')==0||target.hp<=1){
2017-01-29 09:26:05 +00:00
choice='basic';
}
else{
2017-01-30 06:40:22 +00:00
var e2=target.get('e','2');
var e3=target.get('e','3');
if((e2&&e3)||((e2||e3)&&target.needsToDiscard()<=1)||Math.random()<0.5){
2017-01-29 09:26:05 +00:00
choice='trick';
}
else{
choice='equip';
}
}
2017-01-30 06:40:22 +00:00
target.chooseControl('basic','trick','equip',function(){
2017-01-29 09:26:05 +00:00
return choice;
}).set('prompt','选择一种卡牌类型');
'step 1'
var list=get.inpile(result.control,'trick');
list=list.randomGets(3);
for(var i=0;i<list.length;i++){
list[i]=[get.translation(result.control),'',list[i]];
}
var dialog=ui.create.dialog('选择一张加入你的手牌',[list,'vcard'],'hidden');
2017-01-30 06:40:22 +00:00
target.chooseButton(dialog,true).ai=function(button){
2017-01-29 09:26:05 +00:00
return ai.get.value({name:button.link[2]});
};
'step 2'
if(result.buttons){
2017-01-30 06:40:22 +00:00
target.gain(game.createCard(result.buttons[0].link[2]),'draw');
2017-01-29 09:26:05 +00:00
}
},
selectTarget:-1,
ai:{
order:7,
value:7,
useful:4,
result:{
target:1
}
}
2016-10-01 07:52:22 +00:00
},
shencaojie:{
fullskin:true,
type:'trick',
2017-01-25 04:59:12 +00:00
nodelay:true,
2016-10-01 07:52:22 +00:00
content:function(){
2016-10-01 08:22:35 +00:00
event.getParent('_shencaojie')._trigger.num++;
2016-10-01 07:52:22 +00:00
},
ai:{
order:1,
useful:1,
value:5,
result:{
target:function(player,target){
if(ai.get.attitude(player,target)>0) return 0;
2017-01-17 09:54:43 +00:00
if(ai.get.damageEffect(target,player,target)>=0) return 0;
2016-10-01 07:52:22 +00:00
return -1;
}
},
}
},
2016-09-29 17:23:12 +00:00
yuruyi:{
type:'equip',
subtype:'equip5',
skills:['yuruyi'],
fullskin:true,
ai:{
basic:{
2017-01-23 06:37:21 +00:00
equipValue:6
2016-09-29 17:23:12 +00:00
}
},
},
2016-09-29 18:03:43 +00:00
fengyinzhidan:{
2017-02-03 16:45:11 +00:00
type:'basic',
2016-09-29 17:23:12 +00:00
enable:true,
2016-09-27 03:26:24 +00:00
fullskin:true,
2017-02-04 15:59:46 +00:00
filterTarget:function(card,player,target){
return target==player;
},
selectTarget:-1,
modTarget:true,
2016-09-29 17:23:12 +00:00
content:function(){
2016-10-01 06:07:17 +00:00
'step 0'
event.num=3;
2016-09-29 17:23:12 +00:00
var list=[];
2016-10-01 06:07:17 +00:00
event.list=list;
2016-09-29 17:23:12 +00:00
for(var i=0;i<lib.inpile.length;i++){
2017-02-03 16:45:11 +00:00
if(lib.filter.filterCard({name:lib.inpile[i]},target)){
2016-09-29 17:23:12 +00:00
var info=lib.card[lib.inpile[i]];
if(info.type=='trick'&&!info.multitarget&&!info.notarget){
if(Array.isArray(info.selectTarget)){
if(info.selectTarget[0]>0&&info.selectTarget[1]>=info.selectTarget[0]){
list.push(lib.inpile[i]);
}
}
else if(typeof info.selectTarget=='number'){
list.push(lib.inpile[i]);
}
}
}
}
2016-10-01 06:07:17 +00:00
'step 1'
var list=event.list;
2016-09-29 17:23:12 +00:00
while(list.length){
var card={name:list.randomRemove()};
var info=get.info(card);
2017-02-11 14:21:47 +00:00
var targets=game.filterPlayer(function(current){
return lib.filter.filterTarget(card,target,current);
});
2016-09-29 17:23:12 +00:00
if(targets.length){
targets.sort(lib.sort.seat);
if(info.selectTarget==-1){
2017-02-06 09:27:53 +00:00
target.useCard(card,targets,'noai');
2016-09-29 17:23:12 +00:00
}
else{
var num=info.selectTarget;
if(Array.isArray(num)){
if(targets.length<num[0]) continue;
num=num[0]+Math.floor(Math.random()*(num[1]-num[0]+1));
}
else{
if(targets.length<num) continue;
}
2017-02-03 16:45:11 +00:00
target.useCard(card,targets.randomGets(num),'noai');
2016-09-29 17:23:12 +00:00
}
2016-10-01 06:07:17 +00:00
if(--event.num>0){
event.redo();
}
break;
2016-09-29 17:23:12 +00:00
}
}
},
ai:{
order:9,
value:8,
useful:3,
result:{
2017-02-03 16:45:11 +00:00
target:1
2016-09-29 17:23:12 +00:00
}
}
2016-09-27 03:26:24 +00:00
},
2017-01-29 09:26:05 +00:00
yuchanqian:{
fullskin:true,
type:'jiqi',
2017-01-29 10:11:17 +00:00
addinfo:'杀',
2017-01-29 09:26:05 +00:00
autoViewAs:'sha',
ai:{
value:6,
useful:[5,1]
}
},
yuchankun:{
fullskin:true,
type:'jiqi',
2017-01-29 10:11:17 +00:00
addinfo:'药',
2017-01-29 09:26:05 +00:00
autoViewAs:'caoyao',
ai:{
value:6,
useful:[7,2]
}
},
yuchanzhen:{
fullskin:true,
type:'jiqi',
autoViewAs:'jiu',
2017-01-29 10:11:17 +00:00
addinfo:'酒',
2017-01-29 09:26:05 +00:00
savable:function(card,player,dying){
return dying==player;
},
ai:{
value:6,
useful:[4,1]
}
},
yuchanxun:{
fullskin:true,
type:'jiqi',
autoViewAs:'tao',
2017-01-29 10:11:17 +00:00
addinfo:'桃',
2017-01-29 09:26:05 +00:00
savable:true,
ai:{
value:6,
useful:[8,6.5]
}
},
yuchankan:{
fullskin:true,
type:'jiqi',
2017-02-02 07:34:28 +00:00
autoViewAs:'shenmiguo',
addinfo:'果',
2017-01-29 09:26:05 +00:00
ai:{
2017-02-02 07:34:28 +00:00
order:1,
useful:4,
2017-01-29 09:26:05 +00:00
value:6,
2017-02-02 07:34:28 +00:00
result:{
player:function(){
var cardname=_status.event.cardname;
if(cardname=='tiesuo') return 0;
if(cardname=='jiu') return 0;
if(cardname=='tianxianjiu') return 0;
if(cardname=='toulianghuanzhu') return 0;
if(cardname=='shijieshu') return 0;
if(cardname=='xietianzi') return 0;
if(cardname=='huogong') return 0;
if(cardname=='shandianjian') return 0;
return 1;
}
},
2017-01-29 09:26:05 +00:00
}
},
yuchanli:{
fullskin:true,
type:'jiqi',
2017-02-02 07:34:28 +00:00
autoViewAs:'tianxianjiu',
addinfo:'仙',
2017-01-29 09:26:05 +00:00
ai:{
value:6,
useful:1
}
},
yuchangen:{
fullskin:true,
type:'jiqi',
2017-02-03 16:45:11 +00:00
addinfo:'蛋',
autoViewAs:'fengyinzhidan',
2017-01-29 09:26:05 +00:00
ai:{
value:6,
useful:1
}
},
yuchandui:{
fullskin:true,
type:'jiqi',
2017-01-29 10:11:17 +00:00
addinfo:'雪',
2017-01-29 09:26:05 +00:00
autoViewAs:'xuejibingbao',
ai:{
value:6,
useful:4
}
},
2016-09-12 15:04:22 +00:00
mujiaren:{
fullskin:true,
enable:true,
type:'jiguan',
usable:1,
forceUsable:true,
wuxieable:true,
selectTarget:-1,
filterTarget:function(card,player,target){
return target==player;
},
content:function(){
'step 0'
2017-01-15 09:55:22 +00:00
var cards=target.get('h',function(card){
2016-09-12 15:04:22 +00:00
return get.type(card)!='basic';
});
if(cards.length){
2017-01-15 09:55:22 +00:00
target.lose(cards)._triggered=null;
2016-09-12 15:04:22 +00:00
}
event.num=1+cards.length;
'step 1'
var cards=[];
2017-02-02 12:41:59 +00:00
var list=get.typeCard('jiguan');
2016-09-12 15:04:22 +00:00
if(list.length){
for(var i=0;i<event.num;i++){
cards.push(game.createCard(list.randomGet()));
}
2017-01-15 09:55:22 +00:00
target.directgain(cards);
2016-09-12 15:04:22 +00:00
}
},
ai:{
wuxie:function(){
return 0;
},
order:1,
result:{
target:1
}
}
},
zhiluxiaohu:{
2016-09-13 15:52:46 +00:00
enable:function(card,player){
return lib.filter.filterCard({name:'sha'},player);
},
2016-09-12 15:04:22 +00:00
fullskin:true,
type:'jiguan',
wuxieable:true,
filterTarget:function(card,player,target){
return target==player;
},
2017-01-15 09:55:22 +00:00
modTarget:true,
2016-09-12 15:04:22 +00:00
selectTarget:-1,
content:function(){
'step 0'
2017-01-15 09:55:22 +00:00
var targets=target.getEnemies();
2016-09-12 15:04:22 +00:00
if(targets.length){
2017-01-15 09:55:22 +00:00
var target2=targets.randomGet();
target2.addExpose(0.2);
target.useCard({name:'sha'},target2);
2016-09-12 15:04:22 +00:00
}
'step 1'
2017-01-15 09:55:22 +00:00
target.draw();
2016-09-12 15:04:22 +00:00
},
ai:{
2016-10-16 04:39:35 +00:00
value:6,
2016-09-12 15:04:22 +00:00
result:{
target:1
},
order:3.1
}
},
xuejibingbao:{
enable:true,
fullskin:true,
type:'basic',
filterTarget:function(card,player,target){
return !target.hasSkill('xuejibingbao');
},
content:function(){
target.storage.xuejibingbao=2;
target.addSkill('xuejibingbao');
},
ai:{
order:2,
value:6,
result:{
target:function(player,target){
var num=1;
if(target.hp<2) num=0.5;
return num/Math.sqrt(Math.max(1,target.num('h')));
}
}
}
},
gouhunluo:{
enable:true,
fullskin:true,
type:'jiguan',
wuxieable:true,
filterTarget:function(card,player,target){
return !target.hasSkill('gouhunluo');
},
content:function(){
2016-09-13 15:52:46 +00:00
target.storage.gouhunluo=3;
2016-09-12 15:04:22 +00:00
target.storage.gouhunluo2=player;
target.addSkill('gouhunluo');
},
ai:{
order:2,
value:5,
result:{
target:function(player,target){
return -1/Math.max(1,target.hp);
}
}
}
},
2016-08-07 09:38:27 +00:00
zhuquezhizhang:{
type:'jiqi',
fullskin:true,
ai:{
value:8,
useful:6.5,
}
},
xuanwuzhihuang:{
type:'jiqi',
fullskin:true,
ai:{
value:8,
useful:6.5,
}
},
huanglinzhicong:{
type:'jiqi',
fullskin:true,
ai:{
value:8,
useful:6.5,
}
},
cangchizhibi:{
type:'jiqi',
fullskin:true,
ai:{
value:8,
useful:6.5,
}
},
qinglongzhigui:{
type:'jiqi',
fullskin:true,
ai:{
value:8,
useful:6.5,
}
},
baishouzhihu:{
type:'jiqi',
fullskin:true,
ai:{
value:8,
useful:6.5,
}
},
2016-07-20 06:42:18 +00:00
jiguantong:{
fullskin:true,
2016-08-08 09:23:13 +00:00
type:'jiguan',
2016-07-20 06:42:18 +00:00
enable:true,
2016-08-07 09:38:27 +00:00
wuxieable:true,
2016-07-20 06:42:18 +00:00
selectTarget:-1,
2017-02-08 01:53:23 +00:00
reverseOrder:true,
2016-07-20 06:42:18 +00:00
filterTarget:function(card,player,target){
return target!=player;
},
content:function(){
"step 0"
if(target.num('h')){
2016-08-19 10:33:20 +00:00
var next=target.chooseToDiscard('机关火筒:弃置一张手牌或受到一点火焰伤害');
2016-07-20 06:42:18 +00:00
next.set('ai',function(card){
var evt=_status.event.getParent();
2016-09-23 13:42:40 +00:00
if(ai.get.damageEffect(evt.target,evt.player,evt.target,'fire')>=0) return 0;
2016-07-20 06:42:18 +00:00
return 8-ai.get.useful(card);
});
}
else{
2016-08-19 10:33:20 +00:00
target.damage('fire');
event.parent.preResult=true;
2016-07-20 06:42:18 +00:00
event.finish();
}
"step 1"
if(result.bool==false){
2016-08-19 10:33:20 +00:00
target.damage('fire');
event.parent.preResult=true;
2016-07-20 06:42:18 +00:00
}
},
2016-08-19 10:33:20 +00:00
contentAfter:function(){
if(!event.preResult) player.draw();
},
2016-07-20 06:42:18 +00:00
ai:{
wuxie:function(target,card,player,viewer){
if(ai.get.attitude(viewer,target)>0){
if(target.num('h')>0||target.hp>1) return 0;
}
},
basic:{
order:9,
useful:1
},
result:{
target:function(player,target){
2017-02-11 14:21:47 +00:00
if(player.hasUnknown(2)) return 0;
2016-07-20 06:42:18 +00:00
var nh=target.num('h');
if(get.mode()=='identity'){
if(target.isZhu&&nh<=1&&target.hp<=1) return -100;
}
if(nh==0) return -1;
if(nh==1) return -0.7
return -0.5;
},
},
tag:{
discard:1,
loseCard:1,
damage:1,
2016-08-19 10:33:20 +00:00
natureDamage:1,
fireDamage:1,
2016-07-20 06:42:18 +00:00
multitarget:1,
multineg:1,
}
}
},
donghuangzhong:{
fullskin:true,
type:'equip',
subtype:'equip5',
skills:['donghuangzhong'],
ai:{
2017-01-23 06:37:21 +00:00
equipValue:7
2016-07-20 06:42:18 +00:00
}
},
xuanyuanjian:{
fullskin:true,
type:'equip',
subtype:'equip1',
skills:['xuanyuanjian','xuanyuanjian2','xuanyuanjian3'],
enable:function(card,player){
2016-08-12 08:26:31 +00:00
return player.hasSkill('xuanyuan')||player.hp>2;
2016-07-20 06:42:18 +00:00
},
distance:{attackFrom:-3},
onEquip:function(){
2016-08-12 08:26:31 +00:00
if(!player.hasSkill('xuanyuan')&&player.hp<=2){
2016-07-20 06:42:18 +00:00
player.discard(card);
}
2017-01-30 03:28:18 +00:00
else{
player.changeHujia();
}
2016-07-20 06:42:18 +00:00
},
ai:{
equipValue:9
}
},
pangufu:{
fullskin:true,
type:'equip',
subtype:'equip1',
skills:['pangufu'],
distance:{attackFrom:-3},
ai:{
equipValue:8
}
},
lianyaohu:{
fullskin:true,
type:'equip',
subtype:'equip5',
2017-02-02 06:09:00 +00:00
equipDelay:false,
loseDelay:false,
2017-01-29 05:26:58 +00:00
onEquip:function(){
player.markSkill('lianyaohu_skill');
},
onLose:function(){
player.unmarkSkill('lianyaohu_skill');
},
2016-07-20 06:42:18 +00:00
ai:{
2017-01-26 12:39:49 +00:00
equipValue:6
2016-07-20 06:42:18 +00:00
},
2017-01-29 05:26:58 +00:00
skills:['lianhua','shouna','lianyaohu_skill']
2016-07-20 06:42:18 +00:00
},
haotianta:{
fullskin:true,
type:'equip',
subtype:'equip5',
skills:['haotianta'],
ai:{
2016-09-20 07:21:28 +00:00
equipValue:7
2016-07-20 06:42:18 +00:00
}
},
fuxiqin:{
fullskin:true,
type:'equip',
subtype:'equip5',
skills:['kongxin'],
ai:{
equipValue:6
}
},
shennongding:{
fullskin:true,
type:'equip',
subtype:'equip5',
skills:['shennongding'],
ai:{
equipValue:6
}
},
kongdongyin:{
fullskin:true,
type:'equip',
subtype:'equip5',
skills:['kongdongyin'],
ai:{
basic:{
equipValue:function(card,player){
if(player.hp==2) return 7;
if(player.hp==1) return 10;
return 5;
}
}
}
},
kunlunjingc:{
fullskin:true,
type:'equip',
subtype:'equip5',
skills:['kunlunjingc'],
ai:{
equipValue:6
}
},
nvwashi:{
fullskin:true,
type:'equip',
subtype:'equip5',
skills:['nvwashi'],
ai:{
equipValue:5
}
},
guisheqi:{
fullskin:true,
type:'trick',
enable:true,
filterTarget:true,
content:function(){
target.changeHujia();
},
ai:{
basic:{
order:5,
useful:3,
value:6
},
result:{
target:function(player,target){
return 2/Math.max(1,Math.sqrt(target.hp));
},
},
}
},
jiguanfeng:{
fullskin:true,
2016-08-07 09:38:27 +00:00
type:'jiguan',
2016-07-20 06:42:18 +00:00
enable:true,
2016-08-07 09:38:27 +00:00
wuxieable:true,
2016-07-20 06:42:18 +00:00
filterTarget:function(card,player,target){
return target!=player;
},
content:function(){
"step 0"
var next=target.chooseToRespond({name:'shan'});
next.autochoose=lib.filter.autoRespondShan;
"step 1"
if(result.bool==false){
target.damage();
2016-07-20 14:47:10 +00:00
}
else{
event.finish();
}
"step 2"
if(target.isAlive()){
2016-07-20 06:42:18 +00:00
target.loseHp();
player.loseHp();
}
},
ai:{
basic:{
order:9,
useful:3,
value:6.5,
},
result:{
player:function(player,target){
if(ai.get.attitude(player,target)>=0){
return -10;
}
if(player.hp==1) return -2;
return -0.5;
},
target:-2,
},
tag:{
respond:1,
respondShan:1,
damage:1,
}
}
},
jiguanyuan:{
fullskin:true,
2016-08-07 09:38:27 +00:00
type:'jiguan',
wuxieable:true,
2016-07-20 06:42:18 +00:00
enable:function(card,player){
2016-07-20 08:29:12 +00:00
var hs=player.get('he');
2016-07-20 06:42:18 +00:00
return hs.length>1||(hs.length==1&&hs[0]!=card);
},
filterTarget:function(card,player,target){
2016-09-01 10:36:59 +00:00
return target!=player&&!target.hasSkill('jiguanyuan');
2016-07-20 06:42:18 +00:00
},
content:function(){
'step 0'
2016-07-20 08:29:12 +00:00
if(player.num('he')){
player.chooseCard(true,'he');
2016-07-20 06:42:18 +00:00
}
else{
event.finish();
}
'step 1'
player.$throw(result.cards);
player.lose(result.cards,ui.special);
2016-09-01 10:36:59 +00:00
ui.special.appendChild(cards[0]);
2016-07-20 06:42:18 +00:00
event.togive=[cards[0],result.cards[0]];
game.delay();
'step 2'
2016-09-01 10:36:59 +00:00
// target.gain(event.togive).delay=false;
2016-07-20 06:42:18 +00:00
target.$gain2(event.togive);
2016-09-01 10:36:59 +00:00
target.storage.jiguanyuan=event.togive;
target.addSkill('jiguanyuan');
game.log(target,'从',player,'获得了',event.togive);
2016-07-20 06:42:18 +00:00
player.draw();
},
ai:{
basic:{
order:2,
useful:2,
value:7
},
result:{
2016-07-25 15:33:50 +00:00
target:function(player,target){
2017-02-11 14:21:47 +00:00
var players=game.filterPlayer(function(current){
return (current!=player&&!current.isTurnedOver()&&
ai.get.attitude(player,current)>=3&&ai.get.attitude(current,player)>=3)
});
2016-07-25 15:33:50 +00:00
players.sort(lib.sort.seat);
if(target==players[0]) return 2;
return 0.5;
},
2016-07-20 06:42:18 +00:00
},
}
},
2016-09-29 18:03:43 +00:00
shenmiguo_old:{
2016-07-20 06:42:18 +00:00
fullskin:true,
type:'trick',
enable:true,
selectTarget:-1,
filterTarget:function(card,player,target){
return target==player;
},
modTarget:true,
content:function(){
var list=[];
for(var i in lib.card){
if(lib.card[i].derivation){
list.push(i);
}
}
2016-09-21 09:31:21 +00:00
if(get.mode()=='stone'){
list.remove('hslingjian_jinjilengdong');
}
2016-07-20 06:42:18 +00:00
if(list.length){
target.gain(game.createCard(list.randomGet()),'draw');
}
},
ai:{
basic:{
order:7.3,
useful:2,
value:6
},
result:{
target:2,
},
}
},
2016-09-29 18:03:43 +00:00
shenmiguo:{
fullskin:true,
type:'basic',
content:function(){
if(Array.isArray(player.storage.shenmiguo)){
player.useCard(player.storage.shenmiguo[0],player.storage.shenmiguo[1]);
}
},
ai:{
order:1,
useful:6,
value:6,
result:{
2016-10-16 04:39:35 +00:00
player:function(){
var cardname=_status.event.cardname;
if(cardname=='tiesuo') return 0;
if(cardname=='jiu') return 0;
if(cardname=='tianxianjiu') return 0;
if(cardname=='toulianghuanzhu') return 0;
2017-01-12 14:50:54 +00:00
if(cardname=='shijieshu') return 0;
if(cardname=='xietianzi') return 0;
2017-01-16 15:10:38 +00:00
if(cardname=='huogong') return 0;
if(cardname=='shandianjian') return 0;
2016-10-16 04:39:35 +00:00
return 1;
}
2016-09-29 18:03:43 +00:00
},
}
},
2016-07-20 06:42:18 +00:00
qinglianxindeng:{
fullskin:true,
type:'equip',
subtype:'equip2',
skills:['qinglianxindeng'],
ai:{
basic:{
equipValue:8
}
},
},
2016-07-05 14:11:33 +00:00
lingjiandai:{
fullskin:true,
enable:true,
2016-08-07 09:38:27 +00:00
type:'jiguan',
wuxieable:true,
2016-09-13 14:57:15 +00:00
filterTarget:function(card,player,target){
return target==player;
},
selectTarget:-1,
modTarget:true,
2016-07-05 14:11:33 +00:00
content:function(){
var list=get.typeCard('hslingjian');
if(list.length){
list=list.randomGets(3);
for(var i=0;i<list.length;i++){
list[i]=game.createCard(list[i]);
}
}
target.gain(list,'gain2');
},
ai:{
order:10,
2017-02-05 15:22:29 +00:00
value:6,
useful:1,
2016-07-05 14:11:33 +00:00
result:{
target:function(player,target){
if(target==player&&target.num('h',{type:'equip'})) return 2.5;
return 1;
}
}
}
},
jiguanshu:{
fullskin:true,
2016-08-07 09:38:27 +00:00
type:'jiguan',
wuxieable:true,
2017-01-15 09:55:22 +00:00
modTarget:true,
2017-01-12 14:50:54 +00:00
enable:function(card,player){
2017-01-14 04:56:52 +00:00
var es=player.get('e');
for(var i=0;i<es.length;i++){
2017-02-06 06:56:22 +00:00
if(lib.inpile.contains(es[i].name)&&!lib.card[es[i].name].nopower) return true;
2017-01-14 04:56:52 +00:00
}
return false;
2017-01-12 14:50:54 +00:00
},
2016-07-05 14:11:33 +00:00
filterTarget:function(card,player,target){
2017-01-08 04:09:34 +00:00
return target==player;
// var es=target.get('e');
// for(var i=0;i<es.length;i++){
// if(lib.inpile.contains(es[i].name)) return true;
// }
// return false;
2016-07-05 14:11:33 +00:00
},
2017-01-08 04:09:34 +00:00
selectTarget:-1,
2016-07-05 14:11:33 +00:00
content:function(){
2017-02-06 06:56:22 +00:00
'step 0'
2016-07-05 14:11:33 +00:00
var es=target.get('e');
var list=get.typeCard('hslingjian');
2017-01-08 04:09:34 +00:00
var list2=get.typeCard('jiqi');
2017-01-29 09:26:05 +00:00
var list3=[];
var list4=[];
for(var i=0;i<list2.length;i++){
if(list2[i].indexOf('yuchan')==0){
list4.push(list2[i]);
}
else{
list3.push(list2[i]);
}
}
if(Math.random()<1/3){
list2=list4;
}
else{
list2=list3;
}
2016-07-05 14:11:33 +00:00
var cards=[];
var time=0;
for(var i=0;i<es.length;i++){
2017-02-06 06:56:22 +00:00
if(!lib.inpile.contains(es[i].name)||lib.card[es[i].name].nopower){
2017-01-08 04:09:34 +00:00
es.splice(i--,1);
}
}
2017-02-07 02:47:44 +00:00
if(!es.length){
event.finish();
return;
}
2017-01-08 04:09:34 +00:00
var num=get.rand(es.length);
var card;
2017-02-06 06:56:22 +00:00
target.removeEquipTrigger();
2017-01-08 04:09:34 +00:00
for(var i=0;i<es.length;i++){
if(i==num){
card=game.createCard(list2.randomGet());
2016-07-05 14:11:33 +00:00
}
2017-01-08 04:09:34 +00:00
else{
card=game.createCard(list.randomGet());
}
cards.push(card);
time+=200;
2017-02-06 06:56:22 +00:00
setTimeout((function(card,name,last){
2017-01-08 04:09:34 +00:00
return function(){
ui.discardPile.appendChild(game.createCard(card));
card.init([card.suit,card.number,name,card.nature]);
card.style.transform='scale(1.1)';
card.classList.add('glow');
2017-02-06 06:56:22 +00:00
if(last) game.resume();
2017-01-08 04:09:34 +00:00
setTimeout(function(){
card.style.transform='';
card.classList.remove('glow');
},500);
}
2017-02-06 06:56:22 +00:00
}(es[i],lib.skill._lingjianduanzao.process([card,es[i]]),i==es.length-1)),i*200);
2016-07-05 14:11:33 +00:00
}
target.$gain2(cards);
2017-02-06 06:56:22 +00:00
game.pause();
'step 1'
target.addEquipTrigger();
2016-07-05 14:11:33 +00:00
},
ai:{
2017-01-08 04:09:34 +00:00
value:7,
2016-07-05 14:11:33 +00:00
order:7.5,
result:{
2017-01-08 04:09:34 +00:00
// target:function(player,target){
// var es=target.get('e');
// var num=0;
// for(var i=0;i<es.length;i++){
// if(lib.inpile.contains(es[i].name)) num++;
// }
// return num;
// }
target:1
2016-07-05 14:11:33 +00:00
}
}
},
2016-09-12 15:04:22 +00:00
jiguanyaoshu:{
2016-07-05 14:11:33 +00:00
fullskin:true,
enable:true,
2016-08-07 09:38:27 +00:00
type:'jiguan',
2016-07-05 14:11:33 +00:00
range:{global:1},
2016-08-07 09:38:27 +00:00
wuxieable:true,
2016-09-12 15:04:22 +00:00
filterTarget:function(card,player,target){
2016-09-21 09:31:21 +00:00
return !target.hasSkill('jiguanyaoshu_skill')&&!target.isMin();
2016-09-12 15:04:22 +00:00
},
2016-07-05 14:11:33 +00:00
content:function(){
2016-09-12 15:04:22 +00:00
var card=game.createCard(get.inpile('equip').randomGet());
target.$gain2(card);
target.equip(card);
target.addSkill('jiguanyaoshu_skill');
game.delay();
2016-07-05 14:11:33 +00:00
},
ai:{
2016-07-20 06:42:18 +00:00
wuxie:function(){
return 0;
},
2016-07-05 14:11:33 +00:00
order:10.1,
2017-02-07 00:42:26 +00:00
value:[5,1],
2016-07-05 14:11:33 +00:00
result:{
2016-08-07 09:38:27 +00:00
target:function(player,target){
2016-09-12 15:04:22 +00:00
if(target.hasSkill('jiguanyaoshu_skill')) return 0.5;
2016-08-07 09:38:27 +00:00
return 1;
}
2016-07-05 14:11:33 +00:00
}
}
},
hslingjian_xuanfengzhiren:{
type:'hslingjian',
fullimage:true,
vanish:true,
enable:true,
derivation:true,
2016-07-10 01:25:12 +00:00
derivationpack:'swd',
2016-07-05 14:11:33 +00:00
filterTarget:function(card,player,target){
return target.num('he')>0;
},
content:function(){
target.discard(target.get('he').randomGet());
},
ai:{
2016-09-23 03:26:32 +00:00
order:9,
2016-07-05 14:11:33 +00:00
result:{
target:-1,
},
useful:[2,0.5],
value:[2,0.5],
}
},
hslingjian_zhongxinghujia:{
type:'hslingjian',
fullimage:true,
vanish:true,
enable:true,
derivation:true,
2016-07-10 01:25:12 +00:00
derivationpack:'swd',
2016-09-21 09:31:21 +00:00
filterTarget:function(card,player,target){
return !target.isMin();
},
2016-07-05 14:11:33 +00:00
content:function(){
'step 0'
var list=[];
for(var i=0;i<lib.inpile.length;i++){
if(lib.card[lib.inpile[i]].subtype=='equip2'){
list.push(lib.inpile[i]);
}
}
if(list.length){
var card=game.createCard(list.randomGet());
target.$draw(card);
game.delay();
target.equip(card);
}
'step 1'
var hs=target.get('h');
if(hs.length){
target.discard(hs.randomGet());
}
},
ai:{
2017-02-10 08:13:06 +00:00
order:4,
2016-07-05 14:11:33 +00:00
result:{
target:function(player,target){
if(target.get('e','2')){
2017-02-10 08:13:06 +00:00
if(target.num('h')&&!target.hasSkillTag('noe')) return -0.6;
2016-07-05 14:11:33 +00:00
return 0;
}
else{
2017-02-10 08:13:06 +00:00
var hs=target.get('h');
var num=0;
if(target.hasSkillTag('noe')){
num=1;
}
if(player==target){
if(hs.length==2) return num;
if(hs.length==1) return num+1;
if(hs.length<=4){
for(var i=0;i<hs.length;i++){
if(ai.get.value(hs[i])>6) return num;
}
}
if(hs.length>4) return num+0.5;
}
else{
if(hs.length){
if(hs.length<=3) return num;
return num+0.5;
}
}
return num+1;
2016-07-05 14:11:33 +00:00
}
}
},
useful:[2,0.5],
value:[2,0.5],
}
},
hslingjian_xingtigaizao:{
type:'hslingjian',
fullimage:true,
vanish:true,
enable:true,
derivation:true,
2016-07-10 01:25:12 +00:00
derivationpack:'swd',
2016-07-05 14:11:33 +00:00
filterTarget:function(card,player,target){
return target==player;
},
selectTarget:-1,
content:function(){
target.draw();
target.addSkill('hslingjian_xingtigaizao');
if(typeof target.storage.hslingjian_xingtigaizao=='number'){
target.storage.hslingjian_xingtigaizao++;
}
else{
target.storage.hslingjian_xingtigaizao=1;
}
},
ai:{
2016-09-23 03:26:32 +00:00
order:9,
2016-07-05 14:11:33 +00:00
result:{
target:function(player,target){
2017-02-10 08:13:06 +00:00
if(!player.needsToDiscard()) return 1;
2016-07-05 14:11:33 +00:00
return 0;
}
},
useful:[2,0.5],
value:[2,0.5],
}
},
hslingjian_shijianhuisu:{
type:'hslingjian',
fullimage:true,
vanish:true,
enable:true,
derivation:true,
2016-07-10 01:25:12 +00:00
derivationpack:'swd',
2016-07-05 14:11:33 +00:00
filterTarget:function(card,player,target){
return target!=player&&target.num('e')>0;
},
content:function(){
var es=target.get('e');
target.gain(es);
target.$gain2(es);
},
ai:{
order:5,
result:{
target:function(player,target){
if(target.hasSkillTag('noe')) return target.num('e')*2;
2017-02-10 08:13:06 +00:00
var num=0;
var es=target.get('e');
for(var i=0;i<es.length;i++){
var subtype=get.subtype(es[i]);
if(subtype=='equip1'||subtype=='equip3'){
num++;
}
}
var mn=target.getEquip('muniu');
if(mn&&mn.cards&&mn.cards.length){
num+=mn.cards.length;
}
return -num;
2016-07-05 14:11:33 +00:00
}
},
useful:[2,0.5],
value:[2,0.5],
tag:{
loseCard:1,
}
}
},
hslingjian_jinjilengdong:{
type:'hslingjian',
fullimage:true,
vanish:true,
enable:true,
derivation:true,
2016-07-10 01:25:12 +00:00
derivationpack:'swd',
2016-07-05 14:11:33 +00:00
filterTarget:function(card,player,target){
return !target.isTurnedOver()&&target!=player;
},
content:function(){
2017-02-04 15:59:46 +00:00
'step 0'
target.changeHujia(2);
2016-07-05 14:11:33 +00:00
target.turnOver();
2017-02-04 15:59:46 +00:00
'step 1'
target.addTempSkill('qianxing',{player:'turnOverAfter'});
2016-07-05 14:11:33 +00:00
},
ai:{
2017-02-10 08:13:06 +00:00
order:2,
2016-07-05 14:11:33 +00:00
result:{
target:-1,
},
useful:[2,0.5],
value:[2,0.5],
}
},
hslingjian_shengxiuhaojiao:{
type:'hslingjian',
fullimage:true,
vanish:true,
enable:true,
derivation:true,
2016-07-10 01:25:12 +00:00
derivationpack:'swd',
2016-07-05 14:11:33 +00:00
filterTarget:function(card,player,target){
return !target.hasSkill('hslingjian_chaofeng');
},
content:function(){
target.addTempSkill('hslingjian_chaofeng',{player:'phaseBegin'});
},
ai:{
order:2,
result:{
target:function(player,target){
if(get.distance(player,target,'absolute')<=1) return 0;
if(target.num('h')<=target.hp) return -0.1;
return -1;
}
},
useful:[2,0.5],
value:[2,0.5],
}
},
hslingjian_yinmilichang:{
type:'hslingjian',
fullimage:true,
vanish:true,
enable:true,
derivation:true,
2016-07-10 01:25:12 +00:00
derivationpack:'swd',
2016-07-05 14:11:33 +00:00
filterTarget:function(card,player,target){
2017-01-23 05:31:32 +00:00
return player!=target&&!target.hasSkill('qianxing');
2016-07-05 14:11:33 +00:00
},
content:function(){
2017-01-23 05:31:32 +00:00
target.addTempSkill('qianxing',{player:'phaseBegin'});
2016-07-05 14:11:33 +00:00
},
ai:{
order:2,
result:{
target:function(player,target){
if(get.distance(player,target,'absolute')<=1) return 0;
if(target.hp==1) return 2;
if(target.hp==2&&target.num('h')<=2) return 1.2;
return 1;
}
},
useful:[2,0.5],
value:[2,0.5],
}
},
2016-06-08 01:43:10 +00:00
xingjunyan:{
fullskin:true,
type:'equip',
subtype:'equip5',
skills:['xingjunyan'],
ai:{
basic:{
equipValue:4
},
},
},
qinglonglingzhu:{
fullskin:true,
type:'equip',
subtype:'equip5',
skills:['qinglonglingzhu'],
ai:{
basic:{
equipValue:5
},
},
},
2015-04-29 03:25:17 +00:00
baihupifeng:{
fullskin:true,
type:"equip",
subtype:"equip2",
skills:['baihupifeng'],
ai:{
basic:{
equipValue:function(card,player){
if(player.hp<=2) return 8;
return 6;
}
},
},
},
fengxueren:{
2016-06-08 02:36:15 +00:00
fullskin:true,
2015-04-29 03:25:17 +00:00
type:"equip",
subtype:"equip1",
distance:{attackFrom:-1},
skills:['fengxueren'],
ai:{
basic:{
2016-06-08 04:29:54 +00:00
equipValue:5
2015-04-29 03:25:17 +00:00
},
},
},
chilongya:{
2016-06-08 02:36:15 +00:00
fullskin:true,
2015-04-29 03:25:17 +00:00
type:"equip",
subtype:"equip1",
distance:{attackFrom:-1},
skills:['chilongya'],
ai:{
basic:{
equipValue:4
},
},
},
daihuofenglun:{
type:'equip',
subtype:'equip4',
2016-09-12 15:04:22 +00:00
fullskin:true,
2015-04-29 03:25:17 +00:00
distance:{globalFrom:-2,globalTo:-1},
ai:{
basic:{
equipValue:4
},
},
},
xiayuncailing:{
type:'equip',
subtype:'equip3',
2016-09-12 15:04:22 +00:00
fullskin:true,
2015-04-29 03:25:17 +00:00
distance:{globalFrom:1,globalTo:2},
},
shentoumianju:{
fullskin:true,
type:'equip',
subtype:'equip5',
skills:['shentou'],
ai:{
basic:{
equipValue:7,
}
}
},
pusafazhou:{
type:'equip',
subtype:'equip5',
skills:['pusafazhou'],
ai:{
basic:{
equipValue:function(card,player){
if(player.hp==2) return 7;
if(player.hp==1) return 9;
return 5;
}
}
}
},
2016-07-19 07:32:04 +00:00
xianluhui:{
fullskin:true,
2017-01-29 09:26:05 +00:00
type:'trick',
2015-04-29 03:25:17 +00:00
enable:true,
selectTarget:-1,
2017-02-08 01:53:23 +00:00
reverseOrder:true,
2016-08-10 14:07:35 +00:00
filterTarget:function(card,player,target){
return target.isDamaged();
2016-07-19 07:32:04 +00:00
},
2016-08-10 14:07:35 +00:00
content:function(){
2017-01-29 09:26:05 +00:00
target.changeHujia();
2015-04-29 03:25:17 +00:00
},
ai:{
2016-09-08 02:41:05 +00:00
tag:{
multitarget:1,
},
2015-04-29 03:25:17 +00:00
basic:{
order:7,
useful:3,
value:3,
},
result:{
target:function(player,target){
2017-01-29 09:26:05 +00:00
if(target.hp<=1) return 1.5;
if(target.hp==2) return 1.2;
return 1;
2015-04-29 03:25:17 +00:00
},
},
}
},
xiangyuye:{
type:'basic',
enable:true,
fullskin:true,
filterTarget:function(card,player,target){
return get.distance(player,target,'attack')>1;
},
content:function(){
"step 0"
2015-08-15 09:10:06 +00:00
if(!target.num('h',{color:'black'})){
target.loseHp();
event.finish();
}
else{
target.chooseToDiscard({color:'black'},'弃置一张黑色手牌或受流失一点体力').ai=function(card){
return 8-ai.get.value(card);
};
}
2015-04-29 03:25:17 +00:00
"step 1"
if(!result.bool){
target.loseHp();
}
},
ai:{
basic:{
order:9,
value:3,
useful:1,
},
result:{
target:-2
},
tag:{
discard:1,
loseHp:1
}
}
},
caoyao:{
fullskin:true,
type:'basic',
range:{global:1},
enable:true,
filterTarget:function(card,player,target){
return target.hp<target.maxHp;
},
content:function(){
target.recover();
},
ai:{
basic:{
useful:[7,2],
value:[7,2],
},
order:7,
result:{
target:2
},
tag:{
recover:1,
}
}
},
2017-02-02 07:34:28 +00:00
huanpodan_old:{
2015-04-29 03:25:17 +00:00
type:'basic',
enable:function(){return game.dead.length>0},
notarget:true,
2016-07-19 07:32:04 +00:00
mode:['identity','guozhan'],
fullskin:true,
2015-04-29 03:25:17 +00:00
content:function(){
"step 0"
var list=[];
for(var i=0;i<game.dead.length;i++){
list.push(game.dead[i].name);
}
2016-07-19 07:32:04 +00:00
player.chooseButton(ui.create.dialog('选择要复活的角色',[list,'character']),function(button){
2015-04-29 03:25:17 +00:00
for(var i=0;i<game.dead.length&&game.dead[i].name!=button.link;i++);
return ai.get.attitude(_status.event.player,game.dead[i]);
},true);
"step 1"
if(result.bool){
for(var i=0;i<game.dead.length&&game.dead[i].name!=result.buttons[0].link;i++);
var dead=game.dead[i];
dead.revive(1);
2016-07-19 07:32:04 +00:00
game.addVideo('revive',dead);
event.dead=dead;
}
else{
event.finish();
2015-04-29 03:25:17 +00:00
}
2016-07-19 07:32:04 +00:00
"step 2"
if(event.dead) event.dead.draw();
2015-04-29 03:25:17 +00:00
},
ai:{
basic:{
useful:[4,2],
2016-07-19 07:32:04 +00:00
value:[7,2],
2015-04-29 03:25:17 +00:00
},
order:function(card,player){
for(var i=0;i<game.dead.length;i++){
if(ai.get.attitude(player,game.dead[i])>3) return 7;
}
return -10;
},
result:{
player:function(player){
for(var i=0;i<game.dead.length;i++){
if(ai.get.attitude(player,game.dead[i])>3) return 2;
}
return -10;
}
},
}
},
tianxianjiu:{
fullskin:true,
type:'basic',
enable:true,
savable:function(card,player){
return _status.event.dying==player;
},
usable:1,
selectTarget:-1,
2016-08-28 00:30:25 +00:00
logv:false,
2016-05-11 15:50:00 +00:00
modTarget:true,
2015-04-29 03:25:17 +00:00
filterTarget:function(card,player,target){
return target==player;
},
content:function(){
"step 0"
2016-09-20 15:26:59 +00:00
if(target==_status.event.getParent(2).dying||target==_status.dying) target.recover();
2015-04-29 03:25:17 +00:00
else{
target.addTempSkill('tianxianjiu',['phaseAfter','shaAfter']);
2017-02-02 06:09:00 +00:00
if(cards&&cards.length){
card=cards[0];
}
2016-05-11 15:50:00 +00:00
if(target==targets[0]&&card.clone&&(card.clone.parentNode==player.parentNode||card.clone.parentNode==ui.arena)){
2015-11-23 10:59:44 +00:00
card.clone.moveDelete(target);
2015-11-04 01:59:00 +00:00
game.addVideo('gain2',target,get.cardsInfo([card]));
2015-04-29 03:25:17 +00:00
}
}
},
ai:{
basic:{
2015-11-09 03:15:16 +00:00
useful:function(card,i){
if(_status.event.player.hp>1){
if(i==0) return 5;
return 1;
}
if(i==0) return 7.3;
return 3;
},
value:function(card,player){
if(player.hp>1){
if(i==0) return 5;
return 1;
}
if(i==0) return 7.3;
return 3;
},
2015-04-29 03:25:17 +00:00
},
order:function(){
return lib.card.sha.ai.order+0.2;
},
result:{
target:function(player,target){
if(target&&target==_status.dying) return 2;
2016-02-04 06:55:02 +00:00
if(lib.config.mode=='stone'&&!player.isMin()){
if(player.getActCount()+1>=player.actcount) return false;
}
2017-02-11 14:29:25 +00:00
var shas=player.get('h','sha');
2017-02-11 14:54:55 +00:00
if(shas.length>1&&player.getCardUsable('sha')>1){
return 0;
2017-02-11 14:29:25 +00:00
}
var card;
2015-04-29 03:25:17 +00:00
if(shas.length){
for(var i=0;i<shas.length;i++){
if(lib.filter.filterCard(shas[i],target)){
2017-02-11 14:29:25 +00:00
card=shas[i];break;
2015-04-29 03:25:17 +00:00
}
}
}
2017-02-11 14:29:25 +00:00
else if(player.hasSha()){
card={name:'sha'};
}
if(card){
if(game.hasPlayer(function(current){
return (ai.get.attitude(target,current)<0&&
target.canUse(card,current,true,true)&&
ai.get.effect(current,card,target)>0);
})){
return 1;
2015-04-29 03:25:17 +00:00
}
}
return 0;
},
},
}
},
2017-02-02 07:34:28 +00:00
huanpodan:{
fullskin:true,
type:'basic',
enable:true,
logv:false,
filterTarget:function(card,player,target){
return !target.hasSkill('huanpodan_skill');
},
content:function(){
target.addSkill('huanpodan_skill');
if(cards&&cards.length){
card=cards[0];
}
if(target==targets[0]&&card.clone&&(card.clone.parentNode==player.parentNode||card.clone.parentNode==ui.arena)){
card.clone.moveDelete(target);
game.addVideo('gain2',target,get.cardsInfo([card]));
}
},
ai:{
basic:{
value:8,
useful:4,
},
order:2,
result:{
target:function(player,target){
return 1/Math.sqrt(1+target.hp);
},
},
}
},
2015-04-29 03:25:17 +00:00
langeguaiyi:{
fullskin:true,
type:'equip',
subtype:'equip5',
skills:['longfan'],
ai:{
basic:{
equipValue:7,
}
}
},
guiyoujie:{
fullskin:true,
type:'delay',
filterTarget:function(card,player,target){
return (lib.filter.judge(card,player,target)&&player!=target);
},
judge:function(card){
2015-05-04 14:27:10 +00:00
if(get.color(card)=='black') return -3;
return 0;
2015-04-29 03:25:17 +00:00
},
effect:function(){
if(result.bool==false){
player.turnOver();
player.draw();
}
},
ai:{
basic:{
order:1,
useful:1,
value:6,
},
result:{
target:-3
},
}
},
yufulu:{
fullskin:true,
type:'equip',
subtype:'equip5',
skills:['touzhi'],
ai:{
basic:{
2017-01-13 10:46:49 +00:00
equipValue:5
2015-04-29 03:25:17 +00:00
}
}
},
xixueguizhihuan:{
fullskin:true,
type:'equip',
subtype:'equip5',
skills:['xixue'],
ai:{
basic:{
equipValue:5
}
}
},
zhufangshenshi:{
fullskin:true,
chongzhu:true,
2015-09-17 10:04:55 +00:00
type:'trick',
2015-04-29 03:25:17 +00:00
enable:function(){
2017-02-11 14:54:55 +00:00
return game.countPlayer()>2;
2015-04-29 03:25:17 +00:00
},
filterTarget:function(card,player,target){
return player.next==target||player.previous==target;
},
content:function(){
game.swapSeat(player,target);
},
ai:{
basic:{
order:7,
},
result:{
target:function(player,target){
if(player.next==target) return -1;
if(player.previous==target) return 1;
}
}
},
2016-07-20 06:42:18 +00:00
mode:['identity','guozhan'],
},
jingleishan:{
fullskin:true,
type:'trick',
enable:true,
selectTarget:-1,
2017-02-08 01:53:23 +00:00
reverseOrder:true,
2016-07-20 06:42:18 +00:00
filterTarget:function(card,player,target){
return target!=player;
},
content:function(){
"step 0"
var next=target.chooseToRespond({name:'sha'});
next.ai=function(card){
if(ai.get.damageEffect(target,player,target,'thunder')>=0) return 0;
if(player.hasSkillTag('notricksource')) return 0;
if(target.hasSkillTag('notrick')) return 0;
return 1;
};
next.autochoose=lib.filter.autoRespondSha;
"step 1"
if(result.bool==false){
target.damage('thunder');
}
},
ai:{
wuxie:function(target,card,player,viewer){
if(ai.get.attitude(viewer,target)>0&&target.num('h','sha')){
if(!target.num('h')||target.hp==1||Math.random()<0.7) return 0;
}
},
basic:{
order:9,
2017-01-19 13:00:41 +00:00
useful:[5,1],
value:5
2016-07-20 06:42:18 +00:00
},
result:{
target:function(player,target){
if(target.hasSkillTag('nothunder')) return 0;
2017-02-11 14:54:55 +00:00
if(target.hasUnknown(2)) return 0;
2016-07-20 06:42:18 +00:00
var nh=target.num('h');
if(lib.config.mode=='identity'){
if(target.isZhu&&nh<=2&&target.hp<=1) return -100;
}
if(nh==0) return -2;
if(nh==1) return -1.7
return -1.5;
},
},
tag:{
respond:1,
respondSha:1,
damage:1,
natureDamage:1,
thunderDamage:1,
multitarget:1,
multineg:1,
}
}
},
chiyuxi:{
fullskin:true,
type:'trick',
enable:true,
selectTarget:-1,
2017-02-08 01:53:23 +00:00
reverseOrder:true,
2016-07-20 06:42:18 +00:00
filterTarget:function(card,player,target){
return target!=player;
},
content:function(){
"step 0"
var next=target.chooseToRespond({name:'shan'});
next.ai=function(card){
if(ai.get.damageEffect(target,player,target,'fire')>=0) return 0;
if(player.hasSkillTag('notricksource')) return 0;
if(target.hasSkillTag('notrick')) return 0;
return 1;
};
next.autochoose=lib.filter.autoRespondShan;
"step 1"
if(result.bool==false){
target.damage('fire');
}
},
ai:{
wuxie:function(target,card,player,viewer){
if(ai.get.attitude(viewer,target)>0&&target.num('h','shan')){
if(!target.num('h')||target.hp==1||Math.random()<0.7) return 0;
}
},
basic:{
order:9,
2017-01-19 13:00:41 +00:00
useful:1,
value:5
2016-07-20 06:42:18 +00:00
},
result:{
target:function(player,target){
if(target.hasSkillTag('nofire')) return 0;
2017-02-11 15:07:50 +00:00
if(player.hasUnknown(2)) return 0;
2016-07-20 06:42:18 +00:00
var nh=target.num('h');
if(lib.config.mode=='identity'){
if(target.isZhu&&nh<=2&&target.hp<=1) return -100;
}
if(nh==0) return -2;
if(nh==1) return -1.7
return -1.5;
},
},
tag:{
respond:1,
respondShan:1,
damage:1,
natureDamage:1,
fireDamage:1,
multitarget:1,
multineg:1,
}
}
},
guangshatianyi:{
fullskin:true,
type:'equip',
subtype:'equip2',
skills:['guangshatianyi'],
ai:{
basic:{
2017-01-13 10:46:49 +00:00
equipValue:6
2016-07-20 06:42:18 +00:00
}
}
},
2016-09-29 17:23:12 +00:00
guilingzhitao:{
2016-07-20 06:42:18 +00:00
type:'equip',
fullskin:true,
subtype:'equip5',
skills:['nigong'],
ai:{
basic:{
equipValue:function(card,player){
if(!player.storage.nigong) return 5;
return 5+player.storage.nigong;
}
}
},
2017-02-02 06:09:00 +00:00
equipDelay:false,
loseDelay:false,
2016-07-20 06:42:18 +00:00
onLose:function(){
player.storage.nigong=0;
player.unmarkSkill('nigong');
},
onEquip:function(){
player.storage.nigong=0;
player.markSkill('nigong');
}
},
qipoguyu:{
type:'equip',
subtype:'equip5',
skills:['xujin'],
2017-02-02 06:09:00 +00:00
equipDelay:false,
loseDelay:false,
2016-07-20 06:42:18 +00:00
onLose:function(){
player.storage.xujin=0;
},
onEquip:function(){
player.storage.xujin=0;
}
},
sadengjinhuan:{
fullskin:true,
type:'equip',
subtype:'equip5',
skills:['sadengjinhuan'],
ai:{
basic:{
equipValue:5.5
}
},
},
sifeizhenmian:{
fullskin:true,
type:'equip',
subtype:'equip5',
skills:['yiluan'],
2016-09-13 15:52:46 +00:00
ai:{
basic:{
equipValue:7
}
},
},
shuchui:{
fullskin:true,
type:'equip',
subtype:'equip5',
skills:['shuchui'],
2016-07-20 06:42:18 +00:00
ai:{
basic:{
equipValue:5.5
}
},
},
ximohu:{
type:'equip',
subtype:'equip5',
skills:['ximohu'],
ai:{
basic:{
equipValue:6
}
},
},
guiyanfadao:{
fullskin:true,
type:'equip',
subtype:'equip1',
distance:{attackFrom:-1},
ai:{
basic:{
equipValue:3
}
},
skills:['guiyanfadao']
},
},
skill:{
2017-02-02 07:34:28 +00:00
huanpodan_skill:{
mark:true,
intro:{
content:'防止一次死亡改为弃置所有牌将体力值变为1并摸一张牌'
},
trigger:{player:'dieBefore'},
forced:true,
content:function(){
'step 0'
trigger.untrigger();
trigger.finish();
player.discard(player.get('he'));
player.removeSkill('huanpodan_skill');
'step 1'
player.changeHp(1-player.hp);
'step 2'
player.draw();
}
},
2017-02-02 06:09:00 +00:00
dujian2:{},
2017-01-29 09:26:05 +00:00
_yuchan_swap:{
trigger:{player:'useCardAfter'},
forced:true,
popup:false,
silent:true,
2017-02-02 07:34:28 +00:00
priority:-1,
2017-01-29 09:26:05 +00:00
content:function(){
var hs=player.get('h');
var list=['yuchanqian','yuchankun','yuchanzhen','yuchanxun','yuchangen','yuchanli','yuchankan','yuchandui'];
for(var i=0;i<hs.length;i++){
if(hs[i].name.indexOf('yuchan')==0){
hs[i].init([hs[i].suit,hs[i].number,list.randomGet(hs[i].name)]);
}
}
}
},
_yuchan_equip:{
enable:'phaseUse',
usable:1,
filter:function(event,player){
var skills=player.get('s');
for(var i=0;i<skills.length;i++){
if(skills[i].indexOf('yuchan')==0&&skills[i].indexOf('_equip')!=-1){
2017-02-08 05:53:41 +00:00
return player.num('h',{type:'basic'})>0;
2017-01-29 09:26:05 +00:00
}
}
return false;
},
filterCard:{type:'basic'},
selectCard:[1,Infinity],
prompt:'弃置任意张基本牌并摸等量的牌',
check:function(card){
return 6-ai.get.value(card)
},
content:function(){
player.draw(cards.length);
},
ai:{
order:1,
result:{
player:1
},
},
},
yuchanqian_equip1:{},
yuchanqian_equip2:{},
yuchanqian_equip3:{},
yuchanqian_equip4:{},
yuchanqian_equip5:{},
yuchankun_equip1:{},
yuchankun_equip2:{},
yuchankun_equip3:{},
yuchankun_equip4:{},
yuchankun_equip5:{},
yuchanzhen_equip1:{},
yuchanzhen_equip2:{},
yuchanzhen_equip3:{},
yuchanzhen_equip4:{},
yuchanzhen_equip5:{},
yuchanxun_equip1:{},
yuchanxun_equip2:{},
yuchanxun_equip3:{},
yuchanxun_equip4:{},
yuchanxun_equip5:{},
yuchankan_equip1:{},
yuchankan_equip2:{},
yuchankan_equip3:{},
yuchankan_equip4:{},
yuchankan_equip5:{},
yuchanli_equip1:{},
yuchanli_equip2:{},
yuchanli_equip3:{},
yuchanli_equip4:{},
yuchanli_equip5:{},
yuchangen_equip1:{},
yuchangen_equip2:{},
yuchangen_equip3:{},
yuchangen_equip4:{},
yuchangen_equip5:{},
yuchandui_equip1:{},
yuchandui_equip2:{},
yuchandui_equip3:{},
yuchandui_equip4:{},
yuchandui_equip5:{},
2017-01-29 05:26:58 +00:00
lianyaohu_skill:{
mark:true,
intro:{
content:function(storage,player){
2017-02-06 06:56:22 +00:00
var card=player.getEquip('lianyaohu');
2017-01-29 05:26:58 +00:00
if(card&&card.storage.shouna&&card.storage.shouna.length){
return '共有'+get.cnNumber(card.storage.shouna.length)+'张牌';
}
return '共有〇张牌';
},
mark:function(dialog,storage,player){
2017-02-06 06:56:22 +00:00
var card=player.getEquip('lianyaohu');
2017-01-29 05:26:58 +00:00
if(card&&card.storage.shouna&&card.storage.shouna.length){
dialog.addAuto(card.storage.shouna);
}
else{
return '共有〇张牌';
}
},
markcount:function(storage,player){
2017-02-06 06:56:22 +00:00
var card=player.getEquip('lianyaohu');
2017-01-29 05:26:58 +00:00
if(card&&card.storage.shouna) return card.storage.shouna.length;
return 0;
}
}
},
2016-10-01 07:52:22 +00:00
_shencaojie:{
trigger:{source:'damageBegin'},
direct:true,
filter:function(event,player){
2016-10-01 08:22:35 +00:00
if(get.type(event.card)!='trick') return false;
2017-02-06 06:56:22 +00:00
if(player.hasCard('shencaojie')) return true;
2016-10-01 07:52:22 +00:00
return false;
},
content:function(){
player.chooseToUse(get.prompt('shencaojie',trigger.player).replace(/发动/,'使用'),function(card,player){
if(card.name!='shencaojie') return false;
var mod=game.checkMod(card,player,'unchanged','cardEnabled',player.get('s'));
if(mod!='unchanged') return mod;
return true;
},trigger.player,-1).targetRequired=true;
}
},
2016-09-29 18:03:43 +00:00
_shenmiguo:{
trigger:{player:'useCardAfter'},
direct:true,
filter:function(event,player){
if(event.parent.name=='_shenmiguo') return false;
if(_status.currentPhase!=player) return false;
if(event.parent.parent.name!='phaseUse') return false;
if(!event.targets||!event.card) return false;
if(event.card.name=='shenmiguo') return false;
2017-02-02 07:34:28 +00:00
if(event.card.name=='yuchankan') return false;
2017-01-08 04:09:34 +00:00
if(player.hasSkill('shenmiguo2')) return false;
2016-09-29 18:03:43 +00:00
var type=get.type(event.card);
if(type!='basic'&&type!='trick') return false;
var card=game.createCard(event.card.name,event.card.suit,event.card.number,event.card.nature);
for(var i=0;i<event.targets.length;i++){
if(!event.targets[i].isAlive()) return false;
if(!player.canUse({name:event.card.name},event.targets[i],false,false)){
return false;
}
}
2017-02-06 06:56:22 +00:00
if(player.hasCard('shenmiguo')) return true;
if(player.hasCard('yuchankan')) return true;
2016-09-29 18:03:43 +00:00
return false;
},
content:function(){
'step 0'
var card=game.createCard(trigger.card.name,trigger.card.suit,trigger.card.number,trigger.card.nature);
player.storage.shenmiguo=[card,trigger.targets];
player.chooseToUse('是否使用神秘果?',function(card,player){
2017-02-02 07:34:28 +00:00
if(card.name!='shenmiguo'&&card.name!='yuchankan') return false;
2016-09-29 18:03:43 +00:00
var mod=game.checkMod(card,player,'unchanged','cardEnabled',player.get('s'));
if(mod!='unchanged') return mod;
return true;
2016-10-16 04:39:35 +00:00
},trigger.player,-1).set('cardname',trigger.card.name).targetRequired=true;
2016-09-29 18:03:43 +00:00
'step 1'
2017-01-08 04:09:34 +00:00
if(result.bool){
player.addTempSkill('shenmiguo2','phaseAfter');
}
2016-09-29 18:03:43 +00:00
delete player.storage.shenmiguo;
}
},
2017-01-08 04:09:34 +00:00
shenmiguo2:{},
2016-09-29 17:23:12 +00:00
yuruyi:{
trigger:{player:'drawBegin'},
forced:true,
popup:false,
silent:true,
filter:function(){
return ui.cardPile.childElementCount>1;
},
content:function(){
var value=ai.get.value(ui.cardPile.firstChild);
var num=Math.min(20,ui.cardPile.childElementCount);
var list=[],list2=[],list3=[];
for(var i=1;i<num;i++){
var val=ai.get.value(ui.cardPile.childNodes[i]);
if(val>value){
list.push(ui.cardPile.childNodes[i]);
if(val>value+1&&val>=7){
list2.push(ui.cardPile.childNodes[i]);
}
if(val>value+1&&val>=8){
list3.push(ui.cardPile.childNodes[i]);
}
}
}
var card;
if(list3.length){
card=list3.randomGet();
}
else if(list2.length){
card=list2.randomGet();
}
else if(list.length){
card=list.randomGet();
}
if(card){
ui.cardPile.insertBefore(card,ui.cardPile.firstChild);
}
}
},
2016-09-13 15:52:46 +00:00
shuchui:{
enable:'phaseUse',
usable:1,
filterTarget:function(card,player,target){
return player.canUse('sha',target);
},
filter:function(event,player){
2017-01-28 02:03:53 +00:00
return player.num('h','sha')>0&&lib.filter.cardUsable({name:'sha'},player);
2016-09-13 15:52:46 +00:00
},
content:function(){
'step 0'
player.addSkill('shuchui2');
2017-01-29 05:26:58 +00:00
player.storage.shuchui2=false;
2016-09-13 15:52:46 +00:00
event.num=0;
'step 1'
var card=player.get('h','sha')[0];
if(card){
player.useCard(card,target);
}
else{
2017-01-19 13:00:41 +00:00
if(player.storage.shuchui2){
2017-01-29 05:26:58 +00:00
player.draw();
2017-01-19 13:00:41 +00:00
}
2016-09-13 15:52:46 +00:00
player.removeSkill('shuchui2');
event.finish();
}
'step 2'
2017-01-19 13:00:41 +00:00
if(event.num++<2&&target.isAlive()){
2016-09-13 15:52:46 +00:00
event.goto(1);
}
else{
2017-01-19 13:00:41 +00:00
if(player.storage.shuchui2){
2017-01-29 05:26:58 +00:00
player.draw();
2017-01-19 13:00:41 +00:00
}
2016-09-13 15:52:46 +00:00
player.removeSkill('shuchui2');
}
},
ai:{
order:3.11,
result:{
target:function(player,target){
return ai.get.effect(target,{name:'sha'},player,target);
}
}
}
},
shuchui2:{
trigger:{source:'damageEnd'},
forced:true,
popup:false,
2017-02-05 03:56:18 +00:00
onremove:true,
2016-09-13 15:52:46 +00:00
filter:function(event,player){
2017-01-29 05:26:58 +00:00
return event.card&&event.card.name=='sha'&&!player.storage.shuchui2;
2016-09-13 15:52:46 +00:00
},
content:function(){
2017-01-29 05:26:58 +00:00
player.storage.shuchui2=true;
2016-09-13 15:52:46 +00:00
}
},
2016-09-12 15:04:22 +00:00
xuejibingbao:{
trigger:{player:'phaseDrawBegin'},
forced:true,
mark:true,
2016-09-14 15:16:33 +00:00
temp:true,
2016-09-12 15:04:22 +00:00
intro:{
content:'摸牌阶段摸牌数+1'
},
nopop:true,
content:function(){
trigger.num++;
player.storage.xuejibingbao--;
if(player.storage.xuejibingbao<=0){
player.removeSkill('xuejibingbao');
delete player.storage.xuejibingbao;
}
else{
player.updateMarks();
}
}
},
gouhunluo:{
mark:true,
intro:{
content:function(storage,player){
if(storage==1){
2017-02-06 03:27:52 +00:00
'在'+get.translation(player.storage.gouhunluo2)+'的下个准备阶段失去一点体力并弃置所有手牌'
2016-09-12 15:04:22 +00:00
}
2017-02-06 03:27:52 +00:00
return '在'+storage+'轮后'+get.translation(player.storage.gouhunluo2)+'的准备阶段失去一点体力并弃置所有手牌'
2016-09-12 15:04:22 +00:00
}
},
nopop:true,
2016-09-14 15:16:33 +00:00
temp:true,
2016-09-12 15:04:22 +00:00
trigger:{global:'phaseBegin'},
forced:true,
popup:false,
filter:function(event,player){
return player.storage.gouhunluo2==event.player;
},
content:function(){
2017-01-26 12:39:49 +00:00
'step 0'
2016-09-12 15:04:22 +00:00
player.storage.gouhunluo--;
if(player.storage.gouhunluo<=0){
player.logSkill('gouhunluo');
2016-11-21 02:12:34 +00:00
player.loseHp();
2016-09-12 15:04:22 +00:00
player.removeSkill('gouhunluo');
delete player.storage.gouhunluo;
delete player.storage.gouhunluo2;
}
else{
player.updateMarks();
2017-01-26 12:39:49 +00:00
event.finish();
}
'step 1'
var es=player.get('h');
if(es.length){
player.discard(es);
2016-09-12 15:04:22 +00:00
}
},
group:'gouhunluo2'
},
gouhunluo2:{
trigger:{global:'dieBegin'},
forced:true,
popup:false,
filter:function(event,player){
return player.storage.gouhunluo2==event.player;
},
content:function(){
player.removeSkill('gouhunluo');
delete player.storage.gouhunluo;
delete player.storage.gouhunluo2;
}
},
2016-09-01 10:36:59 +00:00
jiguanyuan:{
mark:'card',
intro:{
content:'cards'
},
trigger:{player:'phaseEnd'},
forced:true,
temp:true,
popup:false,
content:function(){
player.gain(player.storage.jiguanyuan,'gain2');
player.removeSkill('jiguanyuan');
delete player.storage.jiguanyuan;
}
},
2016-08-10 16:45:56 +00:00
_qinglongzhigui:{
2016-08-12 09:44:49 +00:00
trigger:{player:'phaseBegin'},
2016-08-10 16:45:56 +00:00
forced:true,
filter:function(event,player){
return player.num('h','qinglongzhigui')>0;
},
content:function(){
2016-08-12 09:44:49 +00:00
'step 0'
2016-08-10 17:21:14 +00:00
player.showCards(get.translation(player)+'发动了【青龙之圭】',player.get('h','qinglongzhigui'));
2016-08-12 09:44:49 +00:00
player.draw(2);
'step 1'
player.chooseToDiscard('he',true);
2016-08-10 16:45:56 +00:00
}
},
_baishouzhihu:{
trigger:{player:'discardEnd'},
direct:true,
filter:function(event,player){
return player.num('h','baishouzhihu')>0;
},
content:function(){
"step 0"
2016-09-20 05:06:35 +00:00
player.chooseTarget([1,1],get.prompt('baishouzhihu'),function(card,player,target){
2016-08-10 16:45:56 +00:00
if(player==target) return false;
return target.num('he')>0;
}).ai=function(target){
return -ai.get.attitude(player,target);
};
"step 1"
if(result.bool){
2016-08-10 17:21:14 +00:00
player.showCards(get.translation(player)+'发动了【白兽之琥】',player.get('h','baishouzhihu'));
2016-08-10 16:45:56 +00:00
player.logSkill('_baishouzhihu',result.targets);
player.discardPlayerCard(result.targets[0],'he',true);
}
else{
event.finish();
}
},
},
_zhuquezhizhang:{
trigger:{player:'damageEnd'},
2016-08-28 00:30:25 +00:00
forced:true,
2016-08-10 16:45:56 +00:00
filter:function(event,player){
2016-10-08 14:05:05 +00:00
return event.source&&event.source!=player&&event.source.isAlive()&&player.num('h','zhuquezhizhang')>0;
2016-08-10 16:45:56 +00:00
},
logTarget:'source',
check:function(event,player){
return ai.get.damageEffect(event.source,player,player,'fire')>0;
},
content:function(){
2016-08-10 17:21:14 +00:00
'step 0'
player.showCards(get.translation(player)+'发动了【朱雀之璋】',player.get('h','zhuquezhizhang'));
2016-08-10 16:45:56 +00:00
trigger.source.damage('fire');
2016-08-10 17:21:14 +00:00
'step 1'
2016-08-10 16:45:56 +00:00
game.delay();
}
},
_xuanwuzhihuang:{
trigger:{source:'damageEnd'},
forced:true,
filter:function(event,player){
return player.num('h','xuanwuzhihuang')>0&&event.num>0&&player.hp<player.maxHp;
},
content:function(){
2016-08-10 17:21:14 +00:00
player.showCards(get.translation(player)+'发动了【玄武之璜】',player.get('h','xuanwuzhihuang'));
2016-08-10 16:45:56 +00:00
player.recover(trigger.num);
}
},
_huanglinzhicong:{
trigger:{player:'phaseBegin'},
forced:true,
filter:function(event,player){
return !player.hujia&&player.num('h','huanglinzhicong')>0;
},
content:function(){
2016-08-10 17:21:14 +00:00
player.showCards(get.translation(player)+'发动了【黄麟之琮】',player.get('h','huanglinzhicong'));
2016-08-10 16:45:56 +00:00
player.changeHujia();
player.update();
},
},
_cangchizhibi:{
trigger:{player:'phaseBegin'},
direct:true,
filter:function(event,player){
return player.num('h','cangchizhibi')>0;
},
content:function(){
'step 0'
2016-09-20 05:06:35 +00:00
player.chooseTarget([1,3],get.prompt('cangchizhibi')).ai=function(target){
2016-08-10 16:45:56 +00:00
var att=ai.get.attitude(player,target);
if(target.isLinked()){
return att;
}
return -att;
};
'step 1'
if(result.bool){
2016-08-10 17:21:14 +00:00
player.showCards(get.translation(player)+'发动了【苍螭之璧】',player.get('h','cangchizhibi'));
2016-08-10 16:45:56 +00:00
player.logSkill('_cangchizhibi',result.targets);
for(var i=0;i<result.targets.length;i++){
result.targets[i].link();
}
}
}
},
cangchizhibi_equip1:{
trigger:{player:'phaseEnd'},
direct:true,
content:function(){
'step 0'
2016-09-20 05:06:35 +00:00
player.chooseTarget(get.prompt('cangchizhibi_duanzao')).ai=function(target){
2016-08-10 16:45:56 +00:00
var att=ai.get.attitude(player,target);
if(target.isLinked()){
return att;
}
return -att;
};
'step 1'
if(result.bool){
player.logSkill('cangchizhibi_equip1',result.targets);
result.targets[0].link();
}
}
},
cangchizhibi_equip2:{
inherit:'cangchizhibi_equip1'
},
cangchizhibi_equip3:{
inherit:'cangchizhibi_equip1'
},
cangchizhibi_equip4:{
inherit:'cangchizhibi_equip1'
},
cangchizhibi_equip5:{
inherit:'cangchizhibi_equip1'
},
huanglinzhicong_equip1:{
trigger:{player:'phaseEnd'},
direct:true,
filter:function(event,player){
return player.num('he',{color:'black'})>0&&player.hujia==0
},
content:function(){
'step 0'
2016-09-20 05:06:35 +00:00
var next=player.chooseToDiscard('he',{color:'black'},get.prompt('huanglinzhicong_duanzao'));
2016-08-10 16:45:56 +00:00
next.ai=function(card){
return 8-ai.get.value(card);
};
next.logSkill='huanglinzhicong_equip1'
'step 1'
if(result.bool){
player.changeHujia();
}
}
},
huanglinzhicong_equip2:{
inherit:'huanglinzhicong_equip1'
},
huanglinzhicong_equip3:{
inherit:'huanglinzhicong_equip1'
},
huanglinzhicong_equip4:{
inherit:'huanglinzhicong_equip1'
},
huanglinzhicong_equip5:{
inherit:'huanglinzhicong_equip1'
},
xuanwuzhihuang_equip1:{
trigger:{player:'phaseEnd'},
direct:true,
filter:function(event,player){
2016-08-18 10:51:06 +00:00
return player.num('he',{color:'red'})>0&&player.hp<player.maxHp;
2016-08-10 16:45:56 +00:00
},
content:function(){
'step 0'
2016-09-20 05:06:35 +00:00
var next=player.chooseToDiscard('he',{color:'red'},get.prompt('xuanwuzhihuang_duanzao'));
2016-08-10 16:45:56 +00:00
next.ai=function(card){
2016-12-19 09:40:20 +00:00
if(ai.get.recoverEffect(player,player,player)<=0) return 0;
2016-08-10 16:45:56 +00:00
return 8-ai.get.value(card);
};
next.logSkill='xuanwuzhihuang_equip1'
'step 1'
if(result.bool){
player.recover();
}
}
},
xuanwuzhihuang_equip2:{
inherit:'xuanwuzhihuang_equip1'
},
xuanwuzhihuang_equip3:{
inherit:'xuanwuzhihuang_equip1'
},
xuanwuzhihuang_equip4:{
inherit:'xuanwuzhihuang_equip1'
},
xuanwuzhihuang_equip5:{
inherit:'xuanwuzhihuang_equip1'
},
zhuquezhizhang_equip1:{
trigger:{player:'phaseEnd'},
direct:true,
filter:function(event,player){
return player.num('he',{color:'red'})>0;
},
content:function(){
"step 0"
player.chooseCardTarget({
position:'he',
filterTarget:function(card,player,target){
return player!=target&&target.hp>=player.hp;
},
2017-01-13 18:51:13 +00:00
filterCard:function(card,player){
2017-01-13 16:02:19 +00:00
return get.color(card)=='red'&&lib.filter.cardDiscardable(card,player);
2016-08-10 16:45:56 +00:00
},
ai1:function(card){
return 9-ai.get.value(card);
},
ai2:function(target){
return ai.get.damageEffect(target,player,player,'fire');
},
2016-09-20 05:06:35 +00:00
prompt:get.prompt('zhuquezhizhang_duanzao')
2016-08-10 16:45:56 +00:00
});
"step 1"
if(result.bool){
event.target=result.targets[0];
player.logSkill('zhuquezhizhang_equip1',event.target,'fire');
player.discard(result.cards);
}
else{
event.finish();
}
"step 2"
if(event.target){
event.target.damage('fire');
}
},
},
zhuquezhizhang_equip2:{
inherit:'zhuquezhizhang_equip1'
},
zhuquezhizhang_equip3:{
inherit:'zhuquezhizhang_equip1'
},
zhuquezhizhang_equip4:{
inherit:'zhuquezhizhang_equip1'
},
zhuquezhizhang_equip5:{
inherit:'zhuquezhizhang_equip1'
},
2016-08-07 09:38:27 +00:00
baishouzhihu_equip1:{
trigger:{player:'phaseEnd'},
direct:true,
content:function(){
"step 0"
2016-09-20 05:06:35 +00:00
player.chooseTarget([1,1],get.prompt('baishouzhihu_duanzao'),function(card,player,target){
2016-08-07 09:38:27 +00:00
if(player==target) return false;
return target.num('he')>0;
}).ai=function(target){
return -ai.get.attitude(player,target);
};
"step 1"
if(result.bool){
player.logSkill('baishouzhihu_equip1',result.targets);
player.discardPlayerCard(result.targets[0],'he',true);
}
else{
event.finish();
}
},
},
baishouzhihu_equip2:{
inherit:'baishouzhihu_equip1'
},
baishouzhihu_equip3:{
inherit:'baishouzhihu_equip1'
},
baishouzhihu_equip4:{
inherit:'baishouzhihu_equip1'
},
baishouzhihu_equip5:{
inherit:'baishouzhihu_equip1'
},
qinglongzhigui_equip1:{
trigger:{player:'phaseEnd'},
forced:true,
content:function(){
player.draw();
}
},
qinglongzhigui_equip2:{
inherit:'qinglongzhigui_equip1'
},
qinglongzhigui_equip3:{
inherit:'qinglongzhigui_equip1'
},
qinglongzhigui_equip4:{
inherit:'qinglongzhigui_equip1'
},
qinglongzhigui_equip5:{
inherit:'qinglongzhigui_equip1'
},
2016-07-20 06:42:18 +00:00
kunlunjingc:{
enable:'phaseUse',
usable:1,
filter:function(event,player){
return player.num('h')>0;
},
delay:false,
content:function(){
'step 0'
var cards=get.cards(3);
event.cards=cards;
player.chooseCardButton('选择一张牌',cards,true);
'step 1'
event.card=result.links[0];
player.chooseCard('h',true,'用一张手牌替换'+get.translation(event.card));
'step 2'
if(result.bool){
event.cards[event.cards.indexOf(event.card)]=result.cards[0];
player.lose(result.cards,ui.special);
var cardx=ui.create.card();
cardx.classList.add('infohidden');
cardx.classList.add('infoflip');
player.$throw(cardx,1000,'nobroadcast');
}
else{
event.finish();
}
'step 3'
player.gain(event.card);
player.$draw();
for(var i=event.cards.length-1;i>=0;i--){
event.cards[i].fix();
ui.cardPile.insertBefore(event.cards[i],ui.cardPile.firstChild);
}
game.delay();
},
ai:{
order:10,
result:{
player:1
}
}
},
lianhua:{
enable:'phaseUse',
filter:function(event,player){
2017-02-06 06:56:22 +00:00
var hu=player.getEquip('lianyaohu');
2016-07-20 06:42:18 +00:00
if(hu&&hu.storage.shouna&&hu.storage.shouna.length>1){
return true;
}
return false;
},
usable:1,
2017-01-29 05:26:58 +00:00
delay:false,
2016-07-20 06:42:18 +00:00
content:function(){
"step 0"
2017-02-06 06:56:22 +00:00
event.hu=player.getEquip('lianyaohu');
2016-07-20 06:42:18 +00:00
player.chooseCardButton('弃置两张壶中的牌,然后从牌堆中获得一张类别不同的牌',2,event.hu.storage.shouna).ai=function(){
return 1;
}
"step 1"
if(result.bool){
var type=[];
player.$throw(result.links);
game.log(player,'弃置了',result.links);
for(var i=0;i<result.links.length;i++){
event.hu.storage.shouna.remove(result.links[i]);
ui.discardPile.appendChild(result.links[i]);
type.add(get.type(result.links[i],'trick'));
}
for(var i=0;i<ui.cardPile.childNodes.length;i++){
if(!type.contains(get.type(ui.cardPile.childNodes[i],'trick'))){
player.gain(ui.cardPile.childNodes[i],'gain');
break;
}
}
}
else{
player.getStat('skill').lianhua--;
}
},
ai:{
order:11,
result:{
player:1
}
}
},
shouna:{
2017-01-29 05:26:58 +00:00
enable:'phaseUse',
filter:function(event,player){
return player.num('h')>0;
},
usable:1,
filterCard:true,
check:function(card){
return 6-ai.get.value(card);
},
filterTarget:function(card,player,target){
return target!=player&&target.num('h')>0;
},
content:function(){
var card=target.get('h').randomGet();
2017-02-06 06:56:22 +00:00
var hu=player.getEquip('lianyaohu');
2017-01-29 05:26:58 +00:00
if(card&&hu){
if(!hu.storage.shouna){
hu.storage.shouna=[];
}
target.$give(card,player);
target.lose(card,ui.special);
hu.storage.shouna.push(card);
player.updateMarks();
}
},
ai:{
order:5,
result:{
target:function(player,target){
return -1/Math.sqrt(1+target.num('h'));
}
}
}
},
shouna_old:{
2016-07-20 06:42:18 +00:00
trigger:{global:'discardAfter'},
filter:function(event,player){
2016-08-12 08:26:31 +00:00
if(player.hasSkill('shouna2')) return false;
2016-07-20 06:42:18 +00:00
if(_status.currentPhase==event.player) return false;
if(event.player==player) return false;
for(var i=0;i<event.cards.length;i++){
if(get.position(event.cards[i])=='d'){
return true;
}
}
return false;
},
forced:true,
content:function(){
var cards=trigger.cards.slice(0);
for(var i=0;i<cards.length;i++){
if(get.position(cards[i])!='d'){
cards.splice(i,1);i--;
}
}
2017-02-06 06:56:22 +00:00
var hu=player.getEquip('lianyaohu');
2016-07-20 06:42:18 +00:00
if(cards.length&&hu){
if(!hu.storage.shouna){
hu.storage.shouna=[];
}
player.addTempSkill('shouna2','phaseAfter');
player.$gain2(cards);
for(var i=0;i<cards.length;i++){
hu.storage.shouna.push(cards[i]);
ui.special.appendChild(cards[i]);
}
game.log(player,'将',cards,'收入炼妖壶');
}
},
},
shouna2:{},
donghuangzhong:{
trigger:{player:'phaseEnd'},
direct:true,
filter:function(event,player){
return player.num('h')>0;
},
content:function(){
'step 0'
player.chooseCardTarget({
filterTarget:true,
2017-01-13 16:02:19 +00:00
filterCard:lib.filter.cardDiscardable,
2016-07-20 06:42:18 +00:00
ai1:function(card){
2017-01-23 06:37:21 +00:00
return 8-ai.get.useful(card);
2016-07-20 06:42:18 +00:00
},
ai2:function(target){
return -ai.get.attitude(player,target);
},
2016-09-20 05:06:35 +00:00
prompt:get.prompt('donghuangzhong')
2016-07-20 06:42:18 +00:00
});
'step 1'
if(result.bool){
player.logSkill('donghuangzhong',result.targets);
player.discard(result.cards);
event.target=result.targets[0];
}
else{
event.finish();
}
'step 2'
var target=event.target;
var list=[];
for(var i=0;i<lib.inpile.length;i++){
2017-01-23 06:37:21 +00:00
var info=lib.card[lib.inpile[i]];
if(info.type=='delay'&&!info.cancel&&!target.hasJudge(lib.inpile[i])){
2016-07-20 06:42:18 +00:00
list.push(lib.inpile[i]);
}
}
if(list.length){
var card=game.createCard(list.randomGet());
target.addJudge(card);
target.$draw(card);
game.delay();
}
}
},
donghuangzhong_old:{
mode:['identity','guozhan'],
enable:'phaseUse',
usable:1,
filter:function(event,player){
return event.player==game.me&&
(game.dead.length||game.players.length+game.dead.length<8);
},
content:function(){
"step 0"
var list=[];
for(var i=0;i<game.dead.length;i++){
list.push(game.dead[i].name);
}
if(game.dead.length){
player.chooseButton(ui.create.dialog([list,'character']),function(button){
for(var i=0;i<game.dead.length&&game.dead[i].name!=button.link;i++);
return -ai.get.attitude(_status.event.player,game.dead[i]);
},true);
if(game.players.length+game.dead.length<8){
event.control=ui.create.control('新角色',ui.click.cancel)
}
}
"step 1"
if(result.bool){
for(var i=0;i<game.dead.length&&game.dead[i].name!=result.buttons[0].link;i++);
game.removePlayer(game.dead[i]);
player.recover();
}
else{
var group=player.group;
if(group=='unknown') group=lib.group.randomGet();
var list=[];
for(var i in lib.character){
if(lib.character[i][1]==group) list.push(i);
}
var player2=game.addPlayer();
if(get.config('double_character')){
var list2=list.randomGets(2);
player2.init(list2[0],list2[1]);
}
else{
player2.init(list.randomGet())
}
player2.identity=player.identity;
if(player2.identity=='zhu') player2.identity='zhong';
player2.setIdentity();
player2.identityShown=true;
if(group!='unknown') player.loseHp(player2.maxHp);
}
if(event.control) event.control.close();
}
},
xuanyuanjian:{
trigger:{player:'changeHp'},
forced:true,
popup:false,
filter:function(event,player){
2016-08-12 08:26:31 +00:00
return !player.hasSkill('xuanyuan')&&player.hp<=2
2016-07-20 06:42:18 +00:00
},
content:function(){
var e1=player.get('e','1');
2016-07-20 07:04:45 +00:00
if(e1&&e1.name.indexOf('xuanyuanjian')==0){
2016-07-20 06:42:18 +00:00
player.discard(e1);
}
},
ai:{
threaten:1.5
}
},
xuanyuanjian2:{
trigger:{source:'damageBefore'},
forced:true,
filter:function(event){
return event.notLink();
},
content:function(){
trigger.num++;
2017-01-30 03:28:18 +00:00
trigger._xuanyuanjian=true;
2016-07-20 06:42:18 +00:00
if(!trigger.nature) trigger.nature='thunder';
}
},
xuanyuanjian3:{
trigger:{source:'damageAfter'},
forced:true,
popup:false,
2017-01-30 03:28:18 +00:00
filter:function(event,player){
return event._xuanyuanjian&&!player.hasSkill('xuanyuan');
2016-07-20 06:42:18 +00:00
},
content:function(){
player.loseHp();
}
},
pangufu:{
trigger:{source:'damageEnd'},
forced:true,
priority:55,
filter:function(event){
return event.player.num('he')>0;
},
content:function(){
trigger.player.chooseToDiscard(true,'he');
}
},
shouhua:{
mode:['identity','infinity'],
enable:'phaseUse',
filter:function(event,player){
return player==game.me;
},
usable:1,
filterTarget:function(card,player,target){
return target!=game.zhu&&target!=game.me&&target.hp<target.maxHp;
},
filterCard:true,
check:function(card){
return ai.get.value(card);
},
discard:false,
2017-01-14 04:56:52 +00:00
prepare:'throw',
2016-07-20 06:42:18 +00:00
content:function(){
"step 0"
target.$turn2();
target.style.left='calc(50% - 120px)';
target.style.top='calc(50% - 60px)';
game.delay(0,2500);
"step 1"
target.removeAttribute('style');
if(Math.random()<(ai.get.value(cards[0])+1)*(target.maxHp-target.hp)/(60*target.maxHp)){
event.position=target.dataset.position;
target.dataset.position=player.dataset.position;
target.delete();
event.success=true;
}
game.delay();
"step 2"
if(event.success){
player.popup('收化成功');
game.log(player,'将',target,'收化');
target.dataset.position=event.position;
2017-02-06 06:56:22 +00:00
var card=player.getEquip('lianyaohu');
2016-07-20 06:42:18 +00:00
if(!card.storage.shouhua) card.storage.shouhua=[];
card.storage.shouhua.push(target);
game.removePlayer(target);
game.checkResult();
}
else{
player.popup('收化失败');
target.gain(cards);
target.$gain2(cards);
}
game.delay();
},
ai:{
result:{
player:function(){
return Math.random()-0.4;
}
}
}
},
haotianta:{
trigger:{global:'judgeBefore'},
direct:true,
2016-08-07 18:30:02 +00:00
usable:1,
2016-07-20 06:42:18 +00:00
content:function(){
"step 0"
event.cards=get.cards(3);
2016-08-07 18:30:02 +00:00
player.chooseCardButton(true,event.cards,'昊天塔:选择一张牌作为'+get.translation(trigger.player)+'的'+trigger.judgestr+'判定结果').ai=function(button){
2016-07-20 06:42:18 +00:00
if(ai.get.attitude(player,trigger.player)>0){
return 1+trigger.judge(button.link);
}
if(ai.get.attitude(player,trigger.player)<0){
return 1-trigger.judge(button.link);
}
return 0;
};
"step 1"
if(!result.bool){
event.finish();
return;
}
player.logSkill('haotianta',trigger.player);
var card=result.links[0];
event.cards.remove(card);
var judgestr=get.translation(trigger.player)+'的'+trigger.judgestr+'判定';
event.videoId=lib.status.videoId++;
event.dialog=ui.create.dialog(judgestr);
event.dialog.classList.add('center');
event.dialog.videoId=event.videoId;
game.addVideo('judge1',player,[get.cardInfo(card),judgestr,event.videoId]);
for(var i=0;i<event.cards.length;i++) ui.discardPile.appendChild(event.cards[i]);
// var node=card.copy('thrown','center',ui.arena).animate('start');
var node;
if(game.chess){
node=card.copy('thrown','center',ui.arena).animate('start');
}
else{
node=player.$throwordered(card.copy(),true);
}
node.classList.add('thrownhighlight');
ui.arena.classList.add('thrownhighlight');
if(card){
trigger.untrigger();
trigger.finish();
trigger.result={
card:card,
judge:trigger.judge(card),
node:node,
number:get.number(card),
suit:get.suit(card),
color:get.color(card),
};
if(trigger.result.judge>0){
trigger.result.bool=true;
trigger.player.popup('洗具');
}
if(trigger.result.judge<0){
trigger.result.bool=false;
trigger.player.popup('杯具');
}
game.log(trigger.player,'的判定结果为',card);
trigger.direct=true;
trigger.position.appendChild(card);
game.delay(2);
}
else{
event.finish();
}
"step 2"
ui.arena.classList.remove('thrownhighlight');
event.dialog.close();
game.addVideo('judge2',null,event.videoId);
ui.clear();
var card=trigger.result.card;
trigger.position.appendChild(card);
trigger.result.node.delete();
game.delay();
},
ai:{
tag:{
2017-02-11 14:16:35 +00:00
rejudge:1
2016-07-20 06:42:18 +00:00
}
}
},
shennongding:{
enable:'phaseUse',
usable:1,
filterCard:true,
selectCard:2,
check:function(card){
if(get.tag(card,'recover')>=1) return 0;
return 7-ai.get.value(card);
},
filter:function(event,player){
2017-01-22 06:56:55 +00:00
return player.hp<player.maxHp&&player.num('h')>=2;
2016-07-20 06:42:18 +00:00
},
content:function(){
player.recover();
},
ai:{
result:{
player:function(player){
return ai.get.recoverEffect(player);
}
},
order:2.5
}
},
kongdongyin:{
trigger:{player:'dieBefore'},
forced:true,
filter:function(event,player){
return player.maxHp>0;
},
content:function(){
trigger.untrigger();
trigger.finish();
player.hp=1;
player.draw();
player.discard(player.get('e',{subtype:'equip5'}));
game.delay();
}
2015-04-29 03:25:17 +00:00
},
2016-07-20 06:42:18 +00:00
nvwashi:{
trigger:{global:'dying'},
priority:6,
filter:function(event,player){
return event.player.hp<=0&&player.hp>1;
},
check:function(event,player){
return ai.get.attitude(player,event.player)>=3;
2015-04-29 03:25:17 +00:00
},
2016-09-25 04:06:04 +00:00
logTarget:'player',
2015-04-29 03:25:17 +00:00
content:function(){
"step 0"
2016-07-20 06:42:18 +00:00
trigger.player.recover();
2015-04-29 03:25:17 +00:00
"step 1"
2016-07-20 06:42:18 +00:00
player.loseHp();
2015-04-29 03:25:17 +00:00
},
ai:{
2016-07-20 06:42:18 +00:00
threaten:1.2,
expose:0.2
2015-04-29 03:25:17 +00:00
}
},
2016-07-20 06:42:18 +00:00
kongxin:{
enable:'phaseUse',
usable:1,
2015-04-29 03:25:17 +00:00
filterTarget:function(card,player,target){
2016-07-20 06:42:18 +00:00
return target!=player&&target.num('h');
},
filter:function(event,player){
return player.num('h')?true:false;
2015-04-29 03:25:17 +00:00
},
content:function(){
"step 0"
2016-07-20 06:42:18 +00:00
player.chooseToCompare(target);
2015-04-29 03:25:17 +00:00
"step 1"
2016-07-20 06:42:18 +00:00
if(result.bool){
event.bool=true;
player.chooseTarget('选择一个目标视为'+get.translation(target)+'对其使用一张杀',function(card,player,target2){
return player!=target2&&target.canUse('sha',target2);
}).ai=function(target){
return ai.get.effect(target,{name:'sha'},target,player);
}
}
else{
target.discardPlayerCard(player);
}
"step 2"
if(event.bool&&result.bool){
target.useCard({name:'sha'},result.targets);
2015-04-29 03:25:17 +00:00
}
},
ai:{
2016-07-20 06:42:18 +00:00
order:7,
2015-04-29 03:25:17 +00:00
result:{
target:function(player,target){
2016-07-20 06:42:18 +00:00
if(player.num('h')<=1) return 0;
if(ai.get.attitude(player,target)>=0) return 0;
2017-02-11 14:54:55 +00:00
if(game.hasPlayer(function(current){
return (player!=current&&target.canUse('sha',current)&&
ai.get.effect(current,{name:'sha'},target,player)>0)
})){
return -1;
2015-12-06 15:23:47 +00:00
}
2015-04-29 03:25:17 +00:00
return 0;
2016-07-20 06:42:18 +00:00
}
2015-04-29 03:25:17 +00:00
}
}
},
2016-07-20 06:42:18 +00:00
kongxin2:{
trigger:{player:'dying'},
priority:10,
forced:true,
popup:false,
filter:function(event,player){
return player==game.me;
2015-04-29 03:25:17 +00:00
},
2016-07-20 06:42:18 +00:00
content:function(){
player.removeSkill('kongxin2');
game.swapPlayer(player);
player.storage.kongxin.lockOut=false;
player.storage.kongxin.out();
if(player==game.me) game.swapPlayer(player.storage.kongxin);
if(lib.config.mode=='identity') player.storage.kongxin.setIdentity();
delete player.storage.kongxin;
2015-04-29 03:25:17 +00:00
},
},
2016-07-20 06:42:18 +00:00
lianyao_hujia:{
mode:['identity','guozhan'],
enable:'phaseUse',
usable:1,
filter:function(event,player){
if(player!=game.me) return false;
2017-02-06 06:56:22 +00:00
var card=player.getEquip('lianyaohu');
2016-07-20 06:42:18 +00:00
if(card.storage.shouhua&&card.storage.shouhua.length) return true;
return false;
2015-04-29 03:25:17 +00:00
},
2016-07-20 06:42:18 +00:00
content:function(){
"step 0"
var list=[];
2017-02-06 06:56:22 +00:00
var card=player.getEquip('lianyaohu');
2016-07-20 06:42:18 +00:00
for(var i=0;i<card.storage.shouhua.length;i++){
list.push(card.storage.shouhua[i].name);
2015-04-29 03:25:17 +00:00
}
2016-07-20 06:42:18 +00:00
var dialog=ui.create.dialog([list,'character']);
for(var i=0;i<dialog.buttons.length;i++){
dialog.buttons[i].link=card.storage.shouhua[i];
dialog.buttons[i].querySelector('.intro').remove();
2016-07-19 07:32:04 +00:00
}
2016-07-20 06:42:18 +00:00
player.chooseButton(dialog,true);
"step 1"
if(result.bool){
game.restorePlayer(result.links[0]);
game.delay();
2015-04-29 03:25:17 +00:00
}
2016-07-20 06:42:18 +00:00
else{
event.finish();
}
"step 2"
game.swapPlayer(result.links[0]);
result.links[0].hp=1;
result.links[0].update();
result.links[0].storage.lianyao_hujia=player;
game.swapPlayer(result.links[0]);
result.links[0].addSkill('lianyao_hujia2');
result.links[0].phase();
result.links[0].setIdentity();
result.links[0].identityShown=true;
player.out(true);
}
},
lianyao_hujia2:{
trigger:{player:['phaseAfter','changeHp']},
forced:true,
popup:false,
content:function(){
player.hp=1;
player.update();
var me=player.storage.lianyao_hujia;
delete player.storage.lianyao_hujia;
me.lockOut=false;
me.out();
player.removeSkill('lianyao_hujia2');
if(player==game.me){
game.swapPlayer(me);
game.removePlayer(player);
game.delay();
}
}
2015-04-29 03:25:17 +00:00
},
2016-07-20 06:42:18 +00:00
qinglianxindeng:{
trigger:{player:'damageBefore'},
forced:true,
priority:15,
filter:function(event,player){
return get.type(event.card,'trick')=='trick';
},
content:function(){
trigger.untrigger();
trigger.finish();
},
2015-04-29 03:25:17 +00:00
ai:{
2016-07-20 06:42:18 +00:00
notrick:true,
effect:{
target:function(card,player,target,current){
if(get.type(card)=='trick'&&get.tag(card,'damage')){
return 'zeroplayertarget';
}
},
2015-04-29 03:25:17 +00:00
}
2016-07-20 06:42:18 +00:00
}
2015-04-29 03:25:17 +00:00
},
2016-07-19 07:32:04 +00:00
yiluan:{
enable:'phaseUse',
usable:1,
2016-09-29 17:23:12 +00:00
filterCard:true,
position:'he',
check:function(card){
return 6-ai.get.value(card);
},
2016-09-17 04:09:38 +00:00
filterTarget:function(card,player,target){
2017-01-20 05:34:31 +00:00
return target.num('h')<player.num('h');
2016-09-17 04:09:38 +00:00
},
2016-07-19 07:32:04 +00:00
content:function(){
'step 0'
2016-09-12 15:04:22 +00:00
var card=get.cards(0);
2017-01-20 05:34:31 +00:00
ui.discardPile.appendChild(card);
2016-09-12 15:04:22 +00:00
player.showCards('意乱',card);
event.bool=(get.color(card)=='black');
2016-07-19 07:32:04 +00:00
'step 1'
2016-09-12 15:04:22 +00:00
if(!event.bool){
2017-01-20 05:34:31 +00:00
// target.draw();
2016-07-19 07:32:04 +00:00
}
else{
2017-02-06 06:56:22 +00:00
var e5=player.getEquip('sifeizhenmian');
2017-01-12 14:50:54 +00:00
if(e5){
2016-12-19 09:40:20 +00:00
player.discard(e5);
}
2016-07-19 07:32:04 +00:00
target.goMad({player:'phaseAfter'});
}
},
ai:{
2016-07-30 13:28:26 +00:00
order:10,
2016-07-19 07:32:04 +00:00
result:{
2016-08-10 15:12:07 +00:00
target:function(player,target){
if(target.isMad()) return 0;
return -1;
}
2016-07-19 07:32:04 +00:00
}
}
},
2016-07-05 14:11:33 +00:00
hslingjian_xuanfengzhiren_equip1:{
2016-06-08 01:43:10 +00:00
trigger:{source:'damageEnd'},
2016-07-05 14:11:33 +00:00
forced:true,
filter:function(event){
return event.card&&event.card.name=='sha'&&event.player.num('he');
2016-06-08 01:43:10 +00:00
},
content:function(){
2016-07-05 14:11:33 +00:00
trigger.player.discard(trigger.player.get('he').randomGet());
}
},
hslingjian_xuanfengzhiren_equip2:{
trigger:{player:'damageEnd'},
forced:true,
filter:function(event){
return event.card&&event.card.name=='sha'&&event.source&&event.source.num('he');
2016-06-08 01:43:10 +00:00
},
2016-07-05 14:11:33 +00:00
content:function(){
trigger.source.discard(trigger.source.get('he').randomGet());
}
2016-06-08 01:43:10 +00:00
},
2016-07-05 14:11:33 +00:00
hslingjian_xuanfengzhiren_equip3:{
trigger:{player:'loseAfter'},
2016-06-08 01:43:10 +00:00
forced:true,
filter:function(event,player){
2016-07-05 14:11:33 +00:00
return _status.currentPhase!=player&&!player.hasSkill('hslingjian_xuanfengzhiren_equip3_dist');
2016-06-08 01:43:10 +00:00
},
content:function(){
2016-07-05 14:11:33 +00:00
player.addTempSkill('hslingjian_xuanfengzhiren_equip3_dist','phaseAfter');
2016-06-08 01:43:10 +00:00
}
},
2016-07-05 14:11:33 +00:00
hslingjian_xuanfengzhiren_equip3_dist:{
mod:{
globalTo:function(from,to,distance){
return distance+1;
2015-04-29 03:25:17 +00:00
}
2016-07-05 14:11:33 +00:00
}
},
hslingjian_xuanfengzhiren_equip4:{
trigger:{player:'loseAfter'},
forced:true,
filter:function(event,player){
return _status.currentPhase==player&&!player.hasSkill('hslingjian_xuanfengzhiren_equip4_dist');
2015-04-29 03:25:17 +00:00
},
content:function(){
2016-07-05 14:11:33 +00:00
player.addTempSkill('hslingjian_xuanfengzhiren_equip4_dist','phaseAfter');
}
2015-04-29 03:25:17 +00:00
},
2016-07-05 14:11:33 +00:00
hslingjian_xuanfengzhiren_equip4_dist:{
mod:{
globalFrom:function(from,to,distance){
return distance-1;
2015-04-29 03:25:17 +00:00
}
2016-07-05 14:11:33 +00:00
}
},
hslingjian_xuanfengzhiren_equip5:{
enable:'phaseUse',
usable:1,
filterCard:true,
position:'he',
2015-04-29 03:25:17 +00:00
filter:function(event,player){
2016-07-05 14:11:33 +00:00
return player.num('he')>0;
},
filterTarget:function(card,player,target){
return target.num('he')>0;
},
check:function(card){
return 5-ai.get.value(card);
2015-04-29 03:25:17 +00:00
},
content:function(){
2016-07-05 14:11:33 +00:00
target.discard(target.get('he').randomGet());
},
ai:{
order:5,
result:{
target:function(player,target){
var dh=player.num('he')-target.num('he');
if(dh>0){
return -Math.sqrt(dh);
}
return 0;
}
}
2015-04-29 03:25:17 +00:00
}
},
2016-07-05 14:11:33 +00:00
hslingjian_zhongxinghujia_equip1:{
trigger:{source:'damageEnd'},
check:function(event,player){
return !player.get('e','2');
},
2016-06-08 04:29:54 +00:00
filter:function(event){
2016-07-05 14:11:33 +00:00
return event.card&&event.card.name=='sha';
2016-06-08 04:29:54 +00:00
},
2015-04-29 03:25:17 +00:00
content:function(){
2016-07-05 14:11:33 +00:00
var card=game.createCard(get.inpile('equip2').randomGet());
player.equip(card);
player.$draw(card);
game.delay();
2015-04-29 03:25:17 +00:00
}
},
2016-07-05 14:11:33 +00:00
hslingjian_zhongxinghujia_equip2:{
trigger:{player:'damageEnd'},
check:function(event,player){
return ai.get.attitude(player,event.source)<0;
},
filter:function(event){
return event.card&&event.card.name=='sha'&&event.source&&event.source.get('e','2');
2015-04-29 03:25:17 +00:00
},
content:function(){
2016-07-05 14:11:33 +00:00
player.line(trigger.source,'green');
trigger.source.discard(trigger.source.get('e','2'));
}
},
hslingjian_zhongxinghujia_equip3:{
mod:{
globalTo:function(from,to,distance){
if(to.get('e','2')) return distance+1;
2015-04-29 03:25:17 +00:00
}
}
},
2016-07-05 14:11:33 +00:00
hslingjian_zhongxinghujia_equip4:{
mod:{
globalFrom:function(from,to,distance){
if(from.get('e','2')) return distance-1;
}
2015-04-29 03:25:17 +00:00
}
},
2016-07-05 14:11:33 +00:00
hslingjian_zhongxinghujia_equip5:{
enable:'phaseUse',
usable:1,
filterCard:true,
position:'he',
filterTarget:true,
selectCard:2,
filter:function(event,player){
return player.num('he')>=2;
},
check:function(card){
return 5-ai.get.value(card);
},
content:function(){
var card=game.createCard(get.inpile('equip2').randomGet());
target.equip(card);
target.$draw(card);
game.delay();
},
ai:{
order:1,
result:{
target:function(player,target){
if(target.get('e','2')) return 0;
return 1;
}
}
}
},
hslingjian_jinjilengdong_equip1:{
trigger:{source:'damageEnd'},
check:function(event,player){
if(event.player.isTurnedOver()){
return ai.get.attitude(player,event.player)>0;
}
return ai.get.attitude(player,event.player)<=0;
},
filter:function(event){
return event.card&&event.card.name=='sha'&&event.player&&event.player.isAlive();
},
2016-08-08 16:04:13 +00:00
logTarget:'player',
2016-07-05 14:11:33 +00:00
content:function(){
trigger.player.draw(2);
trigger.player.turnOver();
}
},
hslingjian_jinjilengdong_equip2:{
trigger:{player:'damageEnd'},
check:function(event,player){
if(event.player.isTurnedOver()){
return ai.get.attitude(player,event.source)>0;
}
return ai.get.attitude(player,event.source)<=0;
},
filter:function(event){
return event.card&&event.card.name=='sha'&&event.source&&event.source.isAlive();
},
2016-08-08 16:04:13 +00:00
logTarget:'source',
2016-07-05 14:11:33 +00:00
content:function(){
player.line(trigger.source,'green');
trigger.source.draw(2);
trigger.source.turnOver();
}
},
hslingjian_jinjilengdong_equip3:{
mod:{
globalTo:function(from,to,distance){
if(to.isTurnedOver()) return distance+2;
}
}
},
hslingjian_jinjilengdong_equip4:{
mod:{
globalFrom:function(from,to,distance){
if(from.isTurnedOver()) return distance-2;
}
}
},
hslingjian_jinjilengdong_equip5:{
trigger:{player:'phaseAfter'},
direct:true,
filter:function(event,player){
return !player.isTurnedOver();
},
content:function(){
"step 0"
2016-09-20 05:06:35 +00:00
player.chooseTarget(get.prompt('hslingjian_jinjilengdong_duanzao'),function(card,player,target){
2016-07-05 14:11:33 +00:00
return player!=target&&!target.isTurnedOver();
}).ai=function(target){
return Math.max(0,-ai.get.attitude(player,target)-2);
};
"step 1"
if(result.bool){
player.logSkill('hslingjian_jinjilengdong_equip5',result.targets);
player.turnOver();
result.targets[0].turnOver();
game.asyncDraw([player,result.targets[0]],2);
}
},
},
hslingjian_yinmilichang_equip1:{
trigger:{source:'damageEnd'},
2016-08-10 17:05:58 +00:00
direct:true,
2016-07-05 14:11:33 +00:00
filter:function(event){
return event.card&&event.card.name=='sha';
},
content:function(){
'step 0'
2016-09-20 05:06:35 +00:00
player.chooseTarget(get.prompt('hslingjian_yinmilichang_duanzao'),function(card,player,target){
2017-01-23 05:31:32 +00:00
return target!=player&&!target.hasSkill('qianxing');
2016-07-05 14:11:33 +00:00
}).ai=function(target){
var att=ai.get.attitude(player,target);
if(get.distance(player,target,'absolute')<=1) return 0;
if(target.hp==1) return 2*att;
if(target.hp==2&&target.num('h')<=2) return 1.2*att;
return att;
}
'step 1'
if(result.bool){
player.logSkill('hslingjian_yinmilichang_equip1',result.targets);
2017-01-23 05:31:32 +00:00
result.targets[0].addTempSkill('qianxing',{player:'phaseBegin'});
2016-07-05 14:11:33 +00:00
}
}
},
hslingjian_yinmilichang_equip2:{
trigger:{player:'damageEnd'},
forced:true,
filter:function(event,player){
2017-01-23 05:31:32 +00:00
return !player.hasSkill('qianxing');
2016-07-05 14:11:33 +00:00
},
content:function(){
2017-01-23 05:31:32 +00:00
player.addTempSkill('qianxing','phaseAfter');
2016-07-05 14:11:33 +00:00
}
},
hslingjian_yinmilichang_equip3:{
mod:{
globalTo:function(from,to,distance){
if(to.hp==1) return distance+1;
}
}
},
hslingjian_yinmilichang_equip4:{
mod:{
globalFrom:function(from,to,distance){
if(from.hp==1) return distance-1;
}
}
},
hslingjian_yinmilichang_equip5:{
mod:{
targetEnabled:function(card,player,target,now){
if(target.num('h')==0){
if(card.name=='sha'||card.name=='juedou') return false;
}
}
},
ai:{
noh:true,
skillTagFilter:function(player,tag){
if(tag=='noh'){
if(player.num('h')!=1) return false;
}
}
}
},
hslingjian_xingtigaizao_equip1:{
trigger:{source:'damageEnd'},
forced:true,
filter:function(event){
return event.card&&event.card.name=='sha';
},
content:function(){
player.draw();
}
},
hslingjian_xingtigaizao_equip2:{
trigger:{player:'damageEnd'},
forced:true,
filter:function(event){
return event.card&&event.card.name=='sha';
},
content:function(){
player.draw();
}
},
hslingjian_xingtigaizao_equip3:{
mod:{
globalTo:function(from,to,distance){
return distance+1;
},
globalFrom:function(from,to,distance){
return distance+1;
}
}
},
hslingjian_xingtigaizao_equip4:{
mod:{
globalTo:function(from,to,distance){
return distance-1;
},
globalFrom:function(from,to,distance){
return distance-1;
}
}
},
hslingjian_xingtigaizao_equip5:{
mod:{
maxHandcard:function(player,num){
return num-1;
}
},
trigger:{player:'phaseDrawBegin'},
forced:true,
content:function(){
trigger.num++;
}
},
hslingjian_shengxiuhaojiao_equip1:{
trigger:{player:'shaBegin'},
forced:true,
filter:function(event,player){
return event.target.hasSkill('hslingjian_chaofeng');
},
content:function(){
trigger.directHit=true;
}
},
hslingjian_shengxiuhaojiao_equip2:{
mod:{
targetEnabled:function(card,player,target){
if(player.hasSkill('hslingjian_chaofeng')) return false;
}
}
},
hslingjian_shengxiuhaojiao_equip3:{
mod:{
globalTo:function(from,to,distance){
if(to.hp<to.num('h')) return distance+1;
}
}
},
hslingjian_shengxiuhaojiao_equip4:{
mod:{
globalFrom:function(from,to,distance){
if(from.hp<from.num('h')) return distance-1;
}
}
},
hslingjian_shengxiuhaojiao_equip5:{
enable:'phaseUse',
usable:1,
filterCard:true,
2016-07-16 02:11:40 +00:00
selectCard:2,
check:function(card){
return 5-ai.get.value(card);
},
2016-07-05 14:11:33 +00:00
position:'he',
filterTarget:true,
content:function(){
if(target.hasSkill('hslingjian_chaofeng')){
target.removeSkill('hslingjian_chaofeng');
}
else{
target.addSkill('hslingjian_chaofeng');
}
2016-07-16 02:11:40 +00:00
},
ai:{
order:2,
result:{
target:function(player,target){
if(target.hasSkill('hslingjian_chaofeng')){
return -Math.sqrt(target.hp+target.num('h'));
}
return 0;
}
}
2016-07-05 14:11:33 +00:00
}
},
hslingjian_shijianhuisu_equip1:{
2016-07-19 07:32:04 +00:00
trigger:{player:'equipEnd'},
forced:true,
filter:function(event,player){
return get.subtype(event.card)=='equip2';
},
content:function(){
player.draw();
},
2016-07-05 14:11:33 +00:00
},
hslingjian_shijianhuisu_equip2:{
2016-07-19 07:32:04 +00:00
trigger:{player:'equipEnd'},
forced:true,
filter:function(event,player){
return get.subtype(event.card)=='equip1';
},
content:function(){
2016-07-05 14:11:33 +00:00
player.draw();
2016-07-19 07:32:04 +00:00
},
2016-07-05 14:11:33 +00:00
},
hslingjian_shijianhuisu_equip3:{
mod:{
globalTo:function(from,to,distance){
if(to.num('e')==1) return distance+1;
}
}
},
hslingjian_shijianhuisu_equip4:{
mod:{
globalFrom:function(from,to,distance){
if(from.num('e')==1) return distance-1;
}
}
},
hslingjian_shijianhuisu_equip5:{
enable:'phaseUse',
usable:1,
filterCard:true,
selectCard:1,
filterTarget:function(card,player,target){
return player!=target&&target.num('he')>0;
},
position:'he',
content:function(){
var es=target.get('e');
target.gain(es);
target.$gain2(es);
},
check:function(card){
return 4-ai.get.value(card);
},
ai:{
order:5,
result:{
target:function(player,target){
if(target.hasSkillTag('noe')) return target.num('e')*2;
return -target.num('e');
}
},
}
},
2016-09-12 15:04:22 +00:00
jiguanyaoshu_skill_old:{
2016-07-05 14:11:33 +00:00
enable:'phaseUse',
filter:function(event,player){
2016-08-28 00:30:25 +00:00
return player.num('h',{type:['trick','delay']})>0;
2016-07-29 11:42:04 +00:00
},
2016-08-28 00:30:25 +00:00
filterCard:{type:['trick','delay']},
2016-07-29 11:42:04 +00:00
check:function(card){
2016-08-28 00:30:25 +00:00
return 5-ai.get.value(card);
2016-07-05 14:11:33 +00:00
},
2016-07-09 15:23:11 +00:00
viewAs:{name:'jiguanshu'}
2016-07-05 14:11:33 +00:00
},
2016-09-12 15:04:22 +00:00
jiguanyaoshu_skill:{
trigger:{player:'loseEnd'},
forced:true,
filter:function(event,player){
if(_status.currentPhase==player) return false;
for(var i=0;i<event.cards.length;i++){
if(event.cards[i].original=='e') return true;
}
return false;
},
content:function(){
var num=0;
for(var i=0;i<trigger.cards.length;i++){
if(trigger.cards[i].original=='e') num++;
}
var list=get.typeCard('hslingjian');
2016-09-21 09:31:21 +00:00
if(get.mode()=='stone'){
list.remove('hslingjian_jinjilengdong');
}
2016-09-12 15:04:22 +00:00
if(list.length){
list=list.randomGets(num);
for(var i=0;i<list.length;i++){
list[i]=game.createCard(list[i]);
}
}
player.gain(list,'gain2');
}
},
2016-07-05 14:11:33 +00:00
_lingjianduanzao:{
enable:'phaseUse',
position:'he',
2016-09-17 04:09:38 +00:00
discard:false,
losetrigger:false,
2016-07-05 14:11:33 +00:00
prompt:function(event){
var lingjians=[],types=[];
2016-07-09 15:23:11 +00:00
var hs=event.player.get('he');
2016-07-05 14:11:33 +00:00
for(var i=0;i<hs.length;i++){
switch(get.type(hs[i])){
case 'equip':types.add(get.subtype(hs[i]));break;
case 'hslingjian':lingjians.add(hs[i].name);break;
2016-08-07 09:38:27 +00:00
case 'jiqi':if(!lingjians.contains(hs[i].name)) lingjians.unshift(hs[i].name);break;
2016-07-05 14:11:33 +00:00
}
}
var str='';
for(var i=0;i<lingjians.length;i++){
2016-08-07 09:38:27 +00:00
var color;
var type=get.type(lingjians[i]);
if(type=='jiqi'){
color='rgba(233, 131, 255,0.2);';
2016-07-05 14:11:33 +00:00
}
else{
2016-08-07 09:38:27 +00:00
color='rgba(117,186,255,0.2);';
2016-07-05 14:11:33 +00:00
}
2016-08-07 09:38:27 +00:00
str+='<div style="text-align:left;line-height:18px;border-radius:4px;margin-top:7px;margin-bottom:10px;position:relative;width:100%">';
str+='<div class="shadowed" style="position:absolute;left0;top:0;padding:5px;border-radius:4px;background:'+color+'">'+lib.translate[lingjians[i]]+'</div>';
for(var j=0;j<types.length;j++){
str+='<div class="shadowed" style="position:relative;left:85px;width:calc(100% - 95px);height:100%;padding:5px;border-radius: 4px;margin-bottom:10px">'+
(type!='jiqi'?(lib.translate[types[j]]+''):'')+
lib.translate[lingjians[i]+'_'+types[j]+'_info']+'</div>';
if(type=='jiqi') break;
}
str+='</div>';
2016-07-05 14:11:33 +00:00
}
return str;
},
check:function(card){
2016-08-07 09:38:27 +00:00
if(get.type(card)=='jiqi'){
2017-01-29 09:26:05 +00:00
if(_status.event.player.needsToDiscard()){
2016-08-07 09:38:27 +00:00
return 0.5;
}
return 0;
}
2016-09-23 03:26:32 +00:00
var num=1+ai.get.value(card);
if(get.position(card)=='e'){
num+=0.1;
}
return num;
2016-07-05 14:11:33 +00:00
},
filterCard:function(card){
var type=get.type(card);
2017-02-06 06:56:22 +00:00
if(type=='equip'){
if(!lib.inpile.contains(card.name)) return false;
if(lib.card[card.name].nopower) return false;
}
2016-08-07 09:38:27 +00:00
if(ui.selected.cards.length){
var type2=get.type(ui.selected.cards[0]);
if(type2=='equip'){
return type=='hslingjian'||type=='jiqi';
}
else{
return type=='equip';
}
2016-07-05 14:11:33 +00:00
}
else{
2016-08-07 09:38:27 +00:00
return type=='equip'||type=='hslingjian'||type=='jiqi';
}
2016-07-05 14:11:33 +00:00
},
process:function(cards){
var equip;
for(var i=0;i<cards.length;i++){
if(get.type(cards[i])=='equip'){
equip=cards[i];
cards.splice(i--,1);
break;
}
}
var name=equip.name;
2016-08-07 09:38:27 +00:00
var type=get.type(cards[0]);
2016-07-05 14:11:33 +00:00
var equipname=equip.name;
2016-08-07 09:38:27 +00:00
if(type=='hslingjian'){
name+=cards[0].name.slice(10);
}
else{
2016-08-11 11:52:17 +00:00
name+='_'+cards[0].name;
2016-07-05 14:11:33 +00:00
}
if(lib.card[name]) return name;
2016-09-23 03:26:32 +00:00
lib.card[name]=get.copy(lib.card[equip.name]);
lib.card[name].cardimage=lib.card[name].cardimage||equip.name;
2016-08-10 16:45:56 +00:00
lib.card[name].vanish=true;
2017-02-06 06:56:22 +00:00
lib.card[name].source=[equip.name,cards[0].name];
2016-08-07 09:38:27 +00:00
if(type=='jiqi'){
2016-07-05 14:11:33 +00:00
lib.card[name].legend=true;
}
else{
lib.card[name].epic=true;
2016-08-07 09:38:27 +00:00
}
var dvalue=(type=='jiqi'?3:1);
var getValue=function(value,dvalue){
if(dvalue==1) return Math.min(10,value+dvalue);
value+=dvalue;
if(value>10) return 10+(value-10)/10;
if(value<9) return 8+value/10;
return value;
};
if(typeof lib.card[name].ai.equipValue=='number'){
lib.card[name].ai.equipValue=getValue(lib.card[name].ai.equipValue,dvalue);
}
else if(typeof lib.card[name].ai.equipValue=='function'){
lib.card[name].ai.equipValue=function(){
return getValue(lib.card[equipname].ai.equipValue.apply(this,arguments),dvalue);
2016-07-05 14:11:33 +00:00
}
2016-08-07 09:38:27 +00:00
}
else if(lib.card[name].ai.basic&&typeof lib.card[name].ai.basic.equipValue=='number'){
lib.card[name].ai.basic.equipValue=getValue(lib.card[name].ai.basic.equipValue,dvalue);
}
else if(lib.card[name].ai.basic&&typeof lib.card[name].ai.basic.equipValue=='function'){
lib.card[name].ai.basic.equipValue=function(){
return getValue(lib.card[equipname].ai.basic.equipValue.apply(this,arguments),dvalue);
2016-07-05 14:11:33 +00:00
}
2016-08-07 09:38:27 +00:00
}
else{
if(dvalue==3){
lib.card[name].ai.equipValue=7;
2016-07-05 14:11:33 +00:00
}
2016-08-07 09:38:27 +00:00
else{
lib.card[name].ai.equipValue=dvalue;
2016-07-05 14:11:33 +00:00
}
}
if(Array.isArray(lib.card[name].skills)){
lib.card[name].skills=lib.card[name].skills.slice(0);
}
else{
lib.card[name].skills=[];
}
2016-09-23 03:26:32 +00:00
// lib.card[name].filterTarget=function(card,player,target){
// return !target.isMin();
// };
// lib.card[name].selectTarget=1;
// lib.card[name].range={global:1};
2016-08-07 09:38:27 +00:00
var str=lib.translate[cards[0].name+'_duanzao'];
2016-09-10 01:00:35 +00:00
var str2=get.translation(equip.name,'skill');
2016-07-05 14:11:33 +00:00
lib.translate[name]=str+str2;
str2=lib.translate[equip.name+'_info']||'';
if(str2[str2.length-1]=='.'||str2[str2.length-1]=='。'){
str2=str2.slice(0,str2.length-1);
}
for(var i=0;i<cards.length;i++){
2016-08-10 16:45:56 +00:00
for(var j=1;j<=5;j++){
lib.translate[cards[i].name+'_equip'+j]=lib.translate[cards[i].name+'_duanzao'];
}
2016-07-05 14:11:33 +00:00
var name2=cards[i].name+'_'+get.subtype(equip);
lib.card[name].skills.add(name2);
str2+=''+lib.translate[name2+'_info'];
}
lib.translate[name+'_info']=str2;
try{
game.addVideo('newcard',null,{
name:name,
translate:lib.translate[name],
info:str2,
card:equip.name,
2016-08-07 09:38:27 +00:00
legend:type=='jiqi',
epic:type=='hslingjian'
2016-07-05 14:11:33 +00:00
});
}
catch(e){
console.log(e);
}
return name;
},
2016-08-07 09:38:27 +00:00
selectCard:2,
2017-02-10 06:05:14 +00:00
complexCard:true,
2016-07-05 14:11:33 +00:00
filter:function(event,player){
2016-08-07 09:38:27 +00:00
if(!player.num('h',{type:['hslingjian','jiqi']})) return false;
2016-07-20 06:42:18 +00:00
var es=player.get('he',{type:'equip'});
for(var i=0;i<es.length;i++){
2017-02-07 02:47:44 +00:00
if(lib.inpile.contains(es[i].name)&&!lib.card[es[i].name].nopower) return true;
2016-07-20 06:42:18 +00:00
}
return false;
2016-07-05 14:11:33 +00:00
},
2017-01-14 04:56:52 +00:00
prepare:'throw',
2016-07-05 14:11:33 +00:00
content:function(){
2016-09-23 03:26:32 +00:00
'step 0'
2016-09-17 04:09:38 +00:00
for(var i=0;i<cards.length;i++){
ui.discardPile.appendChild(cards[i]);
}
2016-07-05 14:11:33 +00:00
var name=lib.skill._lingjianduanzao.process(cards);
2016-09-23 03:26:32 +00:00
var card=game.createCard(name);
player.chooseTarget(function(card,player,target){
return !target.isMin()&&get.distance(player,target)<=1;
},'选择一个目标装备'+get.translation(card.name)).ai=function(target){
return ai.get.effect(target,card,player,player);
}
event.card=card;
'step 1'
if(result.bool){
var target=result.targets[0];
player.line(target,'green');
target.equip(event.card);
target.$gain2(event.card);
game.delay();
}
else{
player.gain(event.card,'gain2');
}
2016-07-05 14:11:33 +00:00
},
ai:{
2017-02-10 08:13:06 +00:00
order:1,
2016-07-05 14:11:33 +00:00
result:{
player:1,
}
}
},
hslingjian_chaofeng:{
global:'hslingjian_chaofeng_disable',
nopop:true,
unique:true,
gainnable:true,
mark:true,
intro:{
content:'锁定技,若你的手牌数大于你的体力值,则只要你在任一其他角色的攻击范围内,该角色使用【杀】时便不能指定你以外的角色为目标',
},
subSkill:{
disable:{
mod:{
targetEnabled:function(card,player,target){
2016-08-12 08:26:31 +00:00
if(player.hasSkill('hslingjian_chaofeng')) return;
2016-07-05 14:11:33 +00:00
if(card.name=='sha'){
2016-08-12 08:26:31 +00:00
if(target.hasSkill('hslingjian_chaofeng')) return;
2017-02-11 14:54:55 +00:00
if(game.hasPlayer(function(current){
return (current.hasSkill('hslingjian_chaofeng')&&
current.hp<current.num('h')&&get.distance(player,current,'attack')<=1);
})){
return false;
2016-07-05 14:11:33 +00:00
}
}
}
}
}
}
},
hslingjian_xingtigaizao:{
nopop:true,
mod:{
maxHandcard:function(player,num){
if(typeof player.storage.hslingjian_xingtigaizao=='number'){
return num-player.storage.hslingjian_xingtigaizao;
}
},
},
mark:true,
intro:{
2017-02-06 08:10:35 +00:00
content:'手牌上限-#'
2016-07-05 14:11:33 +00:00
},
trigger:{player:'phaseEnd'},
forced:true,
popup:false,
silent:true,
content:function(){
player.removeSkill('hslingjian_xingtigaizao');
player.storage.hslingjian_xingtigaizao=0;
}
},
qinglonglingzhu:{
trigger:{source:'damageEnd'},
direct:true,
filter:function(event,player){
return event.nature&&event.player&&event.player.isAlive();
},
content:function(){
2016-09-20 05:06:35 +00:00
player.gainPlayerCard(get.prompt('qinglonglingzhu',trigger.player),trigger.player,function(button){
2016-07-05 14:11:33 +00:00
if(ai.get.attitude(player,trigger.player)<=0){
return ai.get.buttonValue(button);
}
return 0;
},'he').logSkill=['qinglonglingzhu',trigger.player];
},
},
xingjunyan:{
trigger:{source:'damageBegin',player:'damageBegin'},
forced:true,
filter:function(event,player){
return event.card&&event.card.name=='sha';
},
content:function(){
trigger.num++;
}
},
baihupifeng:{
trigger:{player:'phaseEnd'},
frequent:true,
filter:function(event,player){
2017-02-07 02:47:44 +00:00
return player.isLowestHp()&&player.isDamaged();
2016-07-05 14:11:33 +00:00
},
content:function(){
player.recover();
},
},
fengxueren:{
trigger:{player:'shaHit'},
check:function(event,player){
var att=ai.get.attitude(player,event.target);
2016-08-12 08:26:31 +00:00
if(player.hasSkill('jiu')) return att>0;
2016-07-05 14:11:33 +00:00
if(event.target.hp==1) return att>0;
if(event.target.hasSkillTag('maixie')){
return att<=0;
}
2016-08-12 08:26:31 +00:00
if(player.hasSkill('tianxianjiu')) return false;
2016-07-05 14:11:33 +00:00
return att<=0;
},
filter:function(event,player){
2016-08-28 00:30:25 +00:00
return !event.target.isTurnedOver();
2016-07-05 14:11:33 +00:00
},
content:function(){
trigger.unhurt=true;
trigger.target.turnOver();
2016-08-28 00:30:25 +00:00
trigger.target.draw();
2016-07-05 14:11:33 +00:00
}
},
chilongya:{
trigger:{source:'damageBegin'},
forced:true,
filter:function(event){
return event.nature=='fire'&&event.notLink();
},
content:function(){
trigger.num++;
}
},
chilongya2:{
trigger:{source:'damageBegin'},
filter:function(event,player){
return (event.card&&event.card.name=='sha');
},
popup:false,
forced:true,
content:function(){
if(Math.random()<0.5){
trigger.num++;
trigger.player.addSkill('chilongfengxue');
}
}
},
chilongfengxue:{
trigger:{global:'shaAfter'},
forced:true,
popup:false,
content:function(){
player.draw();
player.removeSkill('chilongfengxue');
}
},
shentou:{
2015-04-29 03:25:17 +00:00
enable:'phaseUse',
usable:1,
filterCard:true,
2015-09-03 03:49:14 +00:00
filter:function(event,player){
var nh=player.num('h');
if(nh==0) return false;
2017-02-11 14:54:55 +00:00
return game.hasPlayer(function(current){
return current!=player&&current.num('h')>nh;
});
2015-09-03 03:49:14 +00:00
},
2015-04-29 03:25:17 +00:00
check:function(card){
return 8-ai.get.value(card);
},
filterTarget:function(card,player,target){
if(target.get('h').length==0) return false;
if(target==player) return false;
if(target.num('h')<=player.num('h')) return false;
return true;
},
content:function(){
"step 0"
player.judge(function(card){
if(get.suit(card)=='club') return -1;
return 1;
});
"step 1"
if(result.bool){
2017-02-09 13:32:31 +00:00
var card=target.get('h').randomGet();
if(card){
player.gain(card,target);
target.$giveAuto(card,player);
}
2015-04-29 03:25:17 +00:00
}
},
ai:{
basic:{
order:5
},
result:{
player:0.3,
target:-1,
}
}
},
pusafazhou:{
trigger:{player:'dieBefore'},
forced:true,
filter:function(event,player){
return player.maxHp>0;
},
content:function(){
trigger.untrigger();
trigger.finish();
player.hp=1;
player.draw();
player.discard(player.get('e',{subtype:'equip5'}));
game.delay();
}
},
old_longfan:{
enable:'phaseUse',
usable:1,
prompt:'',
filterTarget:true,
content:function(){
"step 0"
if(event.isMine()){
event.longfan=ui.create.control('','','','',function(){
event.longfan.status--;
});
event.longfan.status=4;
for(var i=0;i<event.longfan.childNodes.length;i++){
event.longfan.childNodes[i].num=0;
}
event.timer=setInterval(function(){
if(event.longfan.status<=0){
clearInterval(event.timer);
game.resume();
event.longfan.close();
return;
}
event.count(0);
if(event.longfan.status>1) event.count(1);
if(event.longfan.status>2) event.count(2);
if(event.longfan.status>3) event.count(3);
},200);
event.count=function(num){
event.longfan.childNodes[num].num=(event.longfan.childNodes[num].num+1)%10;
if(event.longfan.childNodes[num].num==2) event.longfan.childNodes[num].innerHTML='二';
else event.longfan.childNodes[num].innerHTML=get.cnNumber(event.longfan.childNodes[num].num);
}
game.pause();
}
else{
event.finish();
var x=Math.random();
if(x<0.1) target.draw();
else if(x<0.2) target.chooseToDiscard(true);
else if(x<0.3) target.loseHp();
else if(x<0.4) target.recover();
else if(x<0.6){
if(ai.get.attitude(player,target)>0) target.draw();
else target.chooseToDiscard(true);
}
else if(x<0.8){
if(ai.get.attitude(player,target)>0) target.recover();
else target.loseHp();
}
}
"step 1"
var str='';
for(var i=0;i<event.longfan.childNodes.length;i++){
str+=event.longfan.childNodes[i].num;
}
target.popup(str);
game.delay();
switch(str){
case '0000':target.turnOver();break;
case '1111':target.chooseToDiscard(2,true);break;
case '2222':target.chooseToDiscard('e',true);break;
case '3333':target.damage();break;
case '4444':target.loseHp();break;
case '5555':target.link();break;
case '6666':target.draw();break;
case '7777':target.recover();break;
case '8888':target.discard(target.get('j'));break;
case '9999':target.draw(2);target.chooseToDiscard(2,true);break;
default:
for(var i=1;i<4;i++){
if(str[i]==str[0]) return;
}
player.chooseToDiscard(true);return;
}
player.draw();
},
ai:{
basic:{
order:10
},
result:{
target:function(){
return Math.random()-0.5;
},
}
}
},
longfan:{
enable:'phaseUse',
usable:1,
content:function(){
"step 0"
player.judge(function(card){
switch(get.suit(card)){
2016-02-04 06:55:02 +00:00
case 'heart':return player.maxHp>player.hp?2:0;
case 'diamond':return 1;
case 'club':return 1;
case 'spade':return 0;
2015-04-29 03:25:17 +00:00
}
});
"step 1"
switch(result.suit){
case 'heart':player.recover();break;
case 'diamond':player.draw();break;
case 'club':{
player.chooseTarget('弃置一名角色的一张牌',function(card,player,target){
return player!=target&&target.num('he')>0;
}).ai=function(target){
return -ai.get.attitude(player,target);
};
break;
}
}
if(result.suit!='club'){
event.finish();
}
"step 2"
if(result.bool&&result.targets&&result.targets.length){
2016-06-08 09:05:04 +00:00
player.line(result.targets[0],'green');
2015-04-29 03:25:17 +00:00
player.discardPlayerCard(result.targets[0],'he',true);
}
},
ai:{
order:10,
result:{
player:1
}
}
},
touzhi:{
enable:'phaseUse',
usable:1,
filterCard:function(card){
return get.subtype(card)=='equip1';
},
filter:function(event,player){
return player.num('he',{subtype:'equip1'})>0;
},
discard:false,
2017-01-14 04:56:52 +00:00
prepare:'give',
2015-04-29 03:25:17 +00:00
filterTarget:function(card,player,target){
if(player==target) return false;
return true;
},
content:function(){
target.damage();
2017-01-13 18:51:13 +00:00
target.gain(cards,player);
2017-01-15 02:06:03 +00:00
// game.delay();
2015-04-29 03:25:17 +00:00
},
check:function(card){
return 10-ai.get.value(card);
},
position:'he',
ai:{
basic:{
order:8
},
result:{
target:-1
}
}
},
xixue:{
trigger:{source:'damageEnd'},
forced:true,
filter:function(event,player){
2015-09-10 13:56:57 +00:00
return event.card&&event.card.name=='sha'&&player.hp<player.maxHp;
2015-04-29 03:25:17 +00:00
},
content:function(){
player.recover(trigger.num);
}
},
guangshatianyi:{
trigger:{player:'damageBegin'},
forced:true,
filter:function(event,player){
2016-07-19 07:32:04 +00:00
if(event.source&&event.source.num('s','unequip')) return false;
2015-04-29 03:25:17 +00:00
if(Math.random()>1/3) return false;
if(event.parent.player.num('s','unequip')) return false;
return true;
},
content:function(){
trigger.num--;
}
},
nigong:{
trigger:{player:'damageAfter'},
2016-09-29 17:23:12 +00:00
group:['nigong2','nigong3'],
2015-04-29 03:25:17 +00:00
forced:true,
content:function(){
player.storage.nigong+=trigger.num;
if(player.storage.nigong>4){
player.storage.nigong=4;
}
2016-07-19 07:32:04 +00:00
player.updateMarks();
2015-04-29 03:25:17 +00:00
},
ai:{
effect:function(card,player,target){
2017-02-12 13:50:32 +00:00
if(get.tag(card,'damage')&&!target.hujia) return [1,0.5];
2015-04-29 03:25:17 +00:00
}
},
intro:{
2017-02-06 08:10:35 +00:00
content:'已积攒#点伤害'
2015-04-29 03:25:17 +00:00
}
},
nigong2:{
enable:'phaseUse',
filter:function(event,player){
return player.storage.nigong>1;
},
filterTarget:function(card,player,target){
return player!=target;
},
2016-07-19 07:32:04 +00:00
prompt:function(event){
2016-09-29 17:23:12 +00:00
var str='弃置所有逆攻标记,';
if(event.player.storage.nigong%2!=0){
str+='摸一张牌,';
}
str+='并对一名其他角色造成'+get.cnNumber(Math.floor(event.player.storage.nigong/2))+'点伤害';
return str;
2016-07-19 07:32:04 +00:00
},
2015-04-29 03:25:17 +00:00
content:function(){
2016-09-29 17:23:12 +00:00
if(player.storage.nigong%2!=0){
player.draw();
}
2015-04-29 03:25:17 +00:00
target.damage(Math.floor(player.storage.nigong/2));
player.storage.nigong=0;
2016-07-19 07:32:04 +00:00
player.updateMarks();
2015-04-29 03:25:17 +00:00
},
ai:{
order:10,
result:{
target:function(player,target){
2016-09-29 17:23:12 +00:00
var num=ai.get.damageEffect(target,player,target);
if(player.storage.nigong>=4&&num>0){
num=0;
}
return num;
2015-04-29 03:25:17 +00:00
}
}
}
},
2016-09-29 17:23:12 +00:00
nigong3:{
enable:'phaseUse',
filter:function(event,player){
return player.storage.nigong==1;
},
content:function(){
player.draw();
player.storage.nigong=0;
player.updateMarks();
},
ai:{
order:10,
result:{
player:1
}
}
},
2015-04-29 03:25:17 +00:00
xujin:{
trigger:{player:'phaseBefore'},
check:function(){return false;},
filter:function(event,player){
return player.storage.xujin<player.hp;
},
content:function(){
player.storage.xujin++;
trigger.untrigger();
trigger.finish();
},
intro:{
2017-02-06 09:27:53 +00:00
content:'已积攒#点力量'
2015-04-29 03:25:17 +00:00
},
group:['xujin2']
},
xujin2:{
trigger:{source:'damageBegin'},
forced:true,
filter:function(event,player){
return player.storage.xujin>0;
},
content:function(){
trigger.num+=player.storage.xujin;
player.storage.xujin--;
}
},
sadengjinhuan:{
trigger:{player:'shaMiss'},
check:function(event,player){
return ai.get.attitude(player,event.target)<0;
},
content:function(){
"step 0"
player.judge(function(card){
return get.color(card)=='red'?1:0;
})
"step 1"
if(result.bool){
trigger.target.chooseToRespond({name:'shan'}).autochoose=lib.filter.autoRespondShan;
}
else{
event.finish();
}
"step 2"
if(!result.bool){
trigger.untrigger();
trigger.trigger('shaHit');
trigger._result.bool=false;
}
}
},
ximohu:{
trigger:{player:'damageBefore'},
forced:true,
filter:function(event){
return event.nature=='thunder';
},
content:function(){
trigger.untrigger();
trigger.finish();
player.recover(trigger.num);
},
ai:{
effect:function(card){
if(get.tag(card,'thunderDamage')) return [0,2];
}
}
},
guiyanfadao:{
2016-07-19 07:32:04 +00:00
trigger:{player:'shaHit'},
check:function(event,player){
var att=ai.get.attitude(player,event.target);
2016-08-12 08:26:31 +00:00
if(player.hasSkill('jiu')) return att>0;
2016-07-19 07:32:04 +00:00
if(event.target.hasSkillTag('maixie')){
return att<=0;
}
if(event.target.hp==1) return att>0;
2016-08-28 00:30:25 +00:00
if(event.target.hujia>0) return att<0;
2016-07-20 07:13:12 +00:00
return false;
2015-04-29 03:25:17 +00:00
},
content:function(){
2016-07-19 07:32:04 +00:00
trigger.unhurt=true;
trigger.target.loseHp();
2015-04-29 03:25:17 +00:00
}
},
guiyanfadao2:{
trigger:{player:'useCardAfter'},
forced:true,
popup:false,
content:function(){
delete player.storage.zhuque_skill.nature;
}
},
tianxianjiu:{
trigger:{source:'damageEnd'},
filter:function(event){
return (event.card&&(event.card.name=='sha'));
},
forced:true,
2016-08-28 00:30:25 +00:00
temp:true,
2015-04-29 03:25:17 +00:00
content:function(){
player.draw(2);
player.removeSkill('tianxianjiu');
}
},
},
2016-07-05 14:11:33 +00:00
cardType:{
hslingjian:0.5,
2016-08-07 09:38:27 +00:00
jiqi:0.4,
jiguan:0.45
2016-07-05 14:11:33 +00:00
},
2015-04-29 03:25:17 +00:00
translate:{
2017-01-29 09:26:05 +00:00
_yuchan_equip:'玉蝉',
yuchanqian_duanzao:'玉蝉',
yuchanqian_equip1_info:'出牌阶段限一次,你可以弃置任意张基本牌并摸等量的牌',
yuchanqian_equip2_info:'出牌阶段限一次,你可以弃置任意张基本牌并摸等量的牌',
yuchanqian_equip3_info:'出牌阶段限一次,你可以弃置任意张基本牌并摸等量的牌',
yuchanqian_equip4_info:'出牌阶段限一次,你可以弃置任意张基本牌并摸等量的牌',
yuchanqian_equip5_info:'出牌阶段限一次,你可以弃置任意张基本牌并摸等量的牌',
yuchankun_duanzao:'玉蝉',
yuchankun_equip1_info:'出牌阶段限一次,你可以弃置任意张基本牌并摸等量的牌',
yuchankun_equip2_info:'出牌阶段限一次,你可以弃置任意张基本牌并摸等量的牌',
yuchankun_equip3_info:'出牌阶段限一次,你可以弃置任意张基本牌并摸等量的牌',
yuchankun_equip4_info:'出牌阶段限一次,你可以弃置任意张基本牌并摸等量的牌',
yuchankun_equip5_info:'出牌阶段限一次,你可以弃置任意张基本牌并摸等量的牌',
yuchanzhen_duanzao:'玉蝉',
yuchanzhen_equip1_info:'出牌阶段限一次,你可以弃置任意张基本牌并摸等量的牌',
yuchanzhen_equip2_info:'出牌阶段限一次,你可以弃置任意张基本牌并摸等量的牌',
yuchanzhen_equip3_info:'出牌阶段限一次,你可以弃置任意张基本牌并摸等量的牌',
yuchanzhen_equip4_info:'出牌阶段限一次,你可以弃置任意张基本牌并摸等量的牌',
yuchanzhen_equip5_info:'出牌阶段限一次,你可以弃置任意张基本牌并摸等量的牌',
yuchanxun_duanzao:'玉蝉',
yuchanxun_equip1_info:'出牌阶段限一次,你可以弃置任意张基本牌并摸等量的牌',
yuchanxun_equip2_info:'出牌阶段限一次,你可以弃置任意张基本牌并摸等量的牌',
yuchanxun_equip3_info:'出牌阶段限一次,你可以弃置任意张基本牌并摸等量的牌',
yuchanxun_equip4_info:'出牌阶段限一次,你可以弃置任意张基本牌并摸等量的牌',
yuchanxun_equip5_info:'出牌阶段限一次,你可以弃置任意张基本牌并摸等量的牌',
yuchankan_duanzao:'玉蝉',
yuchankan_equip1_info:'出牌阶段限一次,你可以弃置任意张基本牌并摸等量的牌',
yuchankan_equip2_info:'出牌阶段限一次,你可以弃置任意张基本牌并摸等量的牌',
yuchankan_equip3_info:'出牌阶段限一次,你可以弃置任意张基本牌并摸等量的牌',
yuchankan_equip4_info:'出牌阶段限一次,你可以弃置任意张基本牌并摸等量的牌',
yuchankan_equip5_info:'出牌阶段限一次,你可以弃置任意张基本牌并摸等量的牌',
yuchanli_duanzao:'玉蝉',
yuchanli_equip1_info:'出牌阶段限一次,你可以弃置任意张基本牌并摸等量的牌',
yuchanli_equip2_info:'出牌阶段限一次,你可以弃置任意张基本牌并摸等量的牌',
yuchanli_equip3_info:'出牌阶段限一次,你可以弃置任意张基本牌并摸等量的牌',
yuchanli_equip4_info:'出牌阶段限一次,你可以弃置任意张基本牌并摸等量的牌',
yuchanli_equip5_info:'出牌阶段限一次,你可以弃置任意张基本牌并摸等量的牌',
yuchangen_duanzao:'玉蝉',
yuchangen_equip1_info:'出牌阶段限一次,你可以弃置任意张基本牌并摸等量的牌',
yuchangen_equip2_info:'出牌阶段限一次,你可以弃置任意张基本牌并摸等量的牌',
yuchangen_equip3_info:'出牌阶段限一次,你可以弃置任意张基本牌并摸等量的牌',
yuchangen_equip4_info:'出牌阶段限一次,你可以弃置任意张基本牌并摸等量的牌',
yuchangen_equip5_info:'出牌阶段限一次,你可以弃置任意张基本牌并摸等量的牌',
yuchandui_duanzao:'玉蝉',
yuchandui_equip1_info:'出牌阶段限一次,你可以弃置任意张基本牌并摸等量的牌',
yuchandui_equip2_info:'出牌阶段限一次,你可以弃置任意张基本牌并摸等量的牌',
yuchandui_equip3_info:'出牌阶段限一次,你可以弃置任意张基本牌并摸等量的牌',
yuchandui_equip4_info:'出牌阶段限一次,你可以弃置任意张基本牌并摸等量的牌',
yuchandui_equip5_info:'出牌阶段限一次,你可以弃置任意张基本牌并摸等量的牌',
2016-09-26 06:42:05 +00:00
yuchanqian:'乾玉蝉',
2017-01-29 09:26:05 +00:00
yuchanqian_info:'在你行动时可当作杀使用;可用于煅造装备;在你使用一张牌后,此牌会随机切换形态',
2016-09-26 06:42:05 +00:00
yuchankun:'坤玉蝉',
2017-01-29 09:26:05 +00:00
yuchankun_info:'在你行动时可当作草药使用;可用于煅造装备;在你使用一张牌后,此牌会随机切换形态',
2016-09-26 06:42:05 +00:00
yuchanzhen:'震玉蝉',
2017-01-29 09:26:05 +00:00
yuchanzhen_info:'在你行动时可当作酒使用;可用于煅造装备;在你使用一张牌后,此牌会随机切换形态',
2016-09-26 06:42:05 +00:00
yuchanxun:'巽玉蝉',
2017-01-29 09:26:05 +00:00
yuchanxun_info:'在你行动时可当作桃使用;可用于煅造装备;在你使用一张牌后,此牌会随机切换形态',
2016-09-26 06:42:05 +00:00
yuchankan:'坎玉蝉',
2017-02-02 07:34:28 +00:00
yuchankan_info:'在你行动时可当作神秘果使用;可用于煅造装备;在你使用一张牌后,此牌会随机切换形态',
2016-09-26 06:42:05 +00:00
yuchanli:'离玉蝉',
2017-02-02 07:34:28 +00:00
yuchanli_info:'在你行动时可当作天仙酒使用;可用于煅造装备;在你使用一张牌后,此牌会随机切换形态',
2016-09-26 06:42:05 +00:00
yuchangen:'艮玉蝉',
2017-02-03 16:45:11 +00:00
yuchangen_info:'在你行动时可当作封印之蛋使用;可用于煅造装备;在你使用一张牌后,此牌会随机切换形态',
2016-09-26 06:42:05 +00:00
yuchandui:'兑玉蝉',
2017-01-29 09:26:05 +00:00
yuchandui_info:'在你行动时可当作雪肌冰鲍使用;可用于煅造装备;在你使用一张牌后,此牌会随机切换形态',
2016-10-01 07:52:22 +00:00
yangpijuan:'羊皮卷',
2017-01-29 09:26:05 +00:00
yangpijuan_info:'出牌阶段对自己使用选择一种卡牌类别从3张随机该类别的卡牌中选择一张加入手牌',
2017-02-03 16:45:11 +00:00
// pantao:'蟠桃',
// pantao_info:'出牌阶段对自己使用,或对濒死角色使用,目标回复两点体力并获得一点护甲',
2016-10-01 07:52:22 +00:00
shencaojie:'神草结',
shencaojie_info:'你的锦囊牌即将造成伤害时对目标使用,令此伤害+1',
2016-09-29 17:23:12 +00:00
yuruyi:'玉如意',
2016-10-07 14:00:06 +00:00
yuruyi_ab:'如意',
2016-09-29 17:23:12 +00:00
yuruyi_info:'你有更高的机率摸到好牌',
2016-09-29 18:03:43 +00:00
fengyinzhidan:'封印之蛋',
2017-02-06 03:27:52 +00:00
fengyinzhidan_info:'随机使用三张通常锦囊牌(随机指定目标)',
2016-09-13 15:52:46 +00:00
shuchui:'鼠槌',
2017-01-29 05:26:58 +00:00
shuchui_info:'出牌阶段限一次你可以指定一名攻击范围内的角色依次将手牌中的至多3张杀对该角色使用若杀造成了伤害你摸一张牌',
2016-09-12 15:04:22 +00:00
zhiluxiaohu:'指路小狐',
2016-09-13 14:57:15 +00:00
zhiluxiaohu_info:'出牌阶段对自己使用,视为对一名随机敌方角色使用一张杀,然后摸一张牌',
2016-09-12 15:04:22 +00:00
xuejibingbao:'雪肌冰鲍',
xuejibingbao_info:'出牌阶段对一名角色使用,该角色摸牌阶段摸牌数+1持续2个回合',
gouhunluo:'勾魂锣',
2017-02-06 03:27:52 +00:00
gouhunluo_info:'出牌阶段对一名角色使用在3轮后你的准备阶段令该角色失去1点体力并弃置所有手牌',
2016-08-07 09:38:27 +00:00
jiguan:'机关',
jiqi:'祭器',
2016-07-20 06:42:18 +00:00
qinglongzhigui:'青龙之圭',
2016-08-10 16:45:56 +00:00
_qinglongzhigui:'青龙之圭',
2017-02-06 03:27:52 +00:00
qinglongzhigui_info:'可用于煅造装备;此牌在你手牌中时,准备阶段,你摸两张牌然后弃置一张牌',
2016-08-07 09:38:27 +00:00
qinglongzhigui_duanzao:'云屏',
2017-02-06 03:27:52 +00:00
qinglongzhigui_equip1_info:'结束阶段,你摸一张牌',
qinglongzhigui_equip2_info:'结束阶段,你摸一张牌',
qinglongzhigui_equip3_info:'结束阶段,你摸一张牌',
qinglongzhigui_equip4_info:'结束阶段,你摸一张牌',
qinglongzhigui_equip5_info:'结束阶段,你摸一张牌',
2016-07-20 06:42:18 +00:00
baishouzhihu:'白兽之琥',
2016-08-10 16:45:56 +00:00
_baishouzhihu:'白兽之琥',
2016-08-07 09:38:27 +00:00
baishouzhihu_info:'可用于煅造装备;此牌在你手牌中时,每当你弃置卡牌,你可以弃置一名其他角色的一张牌',
baishouzhihu_duanzao:'风牙',
2017-02-06 03:27:52 +00:00
baishouzhihu_equip1_info:'结束阶段,你可以弃置一名其他角色的一张牌',
baishouzhihu_equip2_info:'结束阶段,你可以弃置一名其他角色的一张牌',
baishouzhihu_equip3_info:'结束阶段,你可以弃置一名其他角色的一张牌',
baishouzhihu_equip4_info:'结束阶段,你可以弃置一名其他角色的一张牌',
baishouzhihu_equip5_info:'结束阶段,你可以弃置一名其他角色的一张牌',
2016-07-20 06:42:18 +00:00
zhuquezhizhang:'朱雀之璋',
2016-08-10 16:45:56 +00:00
_zhuquezhizhang:'朱雀之璋',
2016-10-08 14:05:05 +00:00
zhuquezhizhang_info:'可用于煅造装备;此牌在你手牌中时,每当你受到其他角色造成的伤害,你对伤害来源造成一点火属性伤害',
2016-08-07 09:38:27 +00:00
zhuquezhizhang_duanzao:'炽翎',
2017-02-06 03:27:52 +00:00
zhuquezhizhang_equip1_info:'结束阶段,你可以弃置一张红色牌并对一名体力值不小于你的角色造成一点火属性伤害',
zhuquezhizhang_equip2_info:'结束阶段,你可以弃置一张红色牌并对一名体力值不小于你的角色造成一点火属性伤害',
zhuquezhizhang_equip3_info:'结束阶段,你可以弃置一张红色牌并对一名体力值不小于你的角色造成一点火属性伤害',
zhuquezhizhang_equip4_info:'结束阶段,你可以弃置一张红色牌并对一名体力值不小于你的角色造成一点火属性伤害',
zhuquezhizhang_equip5_info:'结束阶段,你可以弃置一张红色牌并对一名体力值不小于你的角色造成一点火属性伤害',
2016-07-20 06:42:18 +00:00
xuanwuzhihuang:'玄武之璜',
2016-08-10 16:45:56 +00:00
_xuanwuzhihuang:'玄武之璜',
xuanwuzhihuang_duanzao:'寒晶',
xuanwuzhihuang_info:'可用于煅造装备;此牌在你手牌中时,每当你造成伤害,你回复等量的体力',
2017-02-06 03:27:52 +00:00
xuanwuzhihuang_equip1_info:'结束阶段,你可以弃置一张红色牌并回复一点体力',
xuanwuzhihuang_equip2_info:'结束阶段,你可以弃置一张红色牌并回复一点体力',
xuanwuzhihuang_equip3_info:'结束阶段,你可以弃置一张红色牌并回复一点体力',
xuanwuzhihuang_equip4_info:'结束阶段,你可以弃置一张红色牌并回复一点体力',
xuanwuzhihuang_equip5_info:'结束阶段,你可以弃置一张红色牌并回复一点体力',
2016-07-20 06:42:18 +00:00
huanglinzhicong:'黄麟之琮',
2016-08-10 16:45:56 +00:00
_huanglinzhicong:'黄麟之琮',
huanglinzhicong_duanzao:'玄甲',
2017-02-06 03:27:52 +00:00
huanglinzhicong_info:'可用于煅造装备;此牌在你手牌中时,准备阶段,若你没有护甲,你获得一点护甲',
huanglinzhicong_equip1_info:'结束阶段,若你没有护甲,你可以弃置一张黑色牌并获得一点护甲',
huanglinzhicong_equip2_info:'结束阶段,若你没有护甲,你可以弃置一张黑色牌并获得一点护甲',
huanglinzhicong_equip3_info:'结束阶段,若你没有护甲,你可以弃置一张黑色牌并获得一点护甲',
huanglinzhicong_equip4_info:'结束阶段,若你没有护甲,你可以弃置一张黑色牌并获得一点护甲',
huanglinzhicong_equip5_info:'结束阶段,若你没有护甲,你可以弃置一张黑色牌并获得一点护甲',
2016-07-20 06:42:18 +00:00
cangchizhibi:'苍螭之璧',
2016-08-10 16:45:56 +00:00
_cangchizhibi:'苍螭之璧',
cangchizhibi_duanzao:'灵枢',
2017-02-06 03:27:52 +00:00
cangchizhibi_info:'可用于煅造装备此牌在你手牌中时准备阶段你可以选择至多3名角色横置或重置之',
cangchizhibi_equip1_info:'结束阶段,你可以横置或重置一名角色',
cangchizhibi_equip2_info:'结束阶段,你可以横置或重置一名角色',
cangchizhibi_equip3_info:'结束阶段,你可以横置或重置一名角色',
cangchizhibi_equip4_info:'结束阶段,你可以横置或重置一名角色',
cangchizhibi_equip5_info:'结束阶段,你可以横置或重置一名角色',
2016-08-10 16:45:56 +00:00
2016-07-20 06:42:18 +00:00
guisheqi:'龟蛇旗',
guisheqi_info:'出牌阶段对一名角色使用,目标获得一点护甲',
jiguanfeng:'机关蜂',
jiguanfeng_info:'出牌阶段对一名其他角色使用,目标需打出一张闪,否则受到一点伤害,然后与你各流失一点体力',
jiguanyuan:'机关鸢',
2017-02-06 03:27:52 +00:00
jiguanyuan_info:'出牌阶段对一名其他角色使用,你将此牌和一张其它牌置于一名其他角色的武将牌上,然后摸一张牌;该角色于下一结束阶段获得武将牌上的牌',
2016-08-07 09:38:27 +00:00
jiguantong:'机关火筒',
2016-08-19 10:33:20 +00:00
jiguantong_ab:'火筒',
jiguantong_info:'出牌阶段对所有其他角色使用,目标弃置一张手牌,或受到一点火焰伤害;若没有人因此受到伤害,使用者摸一张牌',
2016-07-26 16:43:59 +00:00
jiutiansuanchi:'九天算尺',
jiutiansuanchi_info:'每当你使用杀造成伤害,你可以弃置一张牌并展示受伤害角色的一张手牌,若此牌与你弃置的牌花色或点数相同,此杀的伤害+2',
2016-09-29 18:03:43 +00:00
shenmiguo:'神秘果',
2017-02-06 03:27:52 +00:00
shenmiguo_info:'出牌阶段内,当你使用一张基本牌或通常锦囊牌后使用,令此牌再结算一次。每阶段限用一次',
2016-07-20 06:42:18 +00:00
qinglianxindeng:'青莲心灯',
qinglianxindeng_info:'你防止锦囊牌造成的伤害',
2016-07-05 14:11:33 +00:00
hslingjian_xuanfengzhiren_duanzao:'风刃',
hslingjian_xuanfengzhiren_duanzao2:'风',
hslingjian_xuanfengzhiren_equip1_info:'每当你用杀造成一次伤害,受伤害角色随机弃置一张牌',
hslingjian_xuanfengzhiren_equip2_info:'每当你受到杀造成的伤害,伤害来源随机弃置一张牌',
hslingjian_xuanfengzhiren_equip3_info:'当你于回合外失去牌后,你本回合的防御距离+1',
hslingjian_xuanfengzhiren_equip4_info:'当你于回合内失去牌后,你本回合的进攻距离+1',
hslingjian_xuanfengzhiren_equip5_info:'出牌阶段限一次,你可以弃置一张牌,然后随机弃置一名其他角色的一张牌',
hslingjian_zhongxinghujia_duanzao:'重甲',
hslingjian_zhongxinghujia_duanzao2:'护',
hslingjian_zhongxinghujia_equip1_info:'每当你用杀造成一次伤害,你可以随机装备一件防具牌',
hslingjian_zhongxinghujia_equip2_info:'每当你受到杀造成的伤害,你可以弃置伤害来源的防具牌',
hslingjian_zhongxinghujia_equip3_info:'当你的装备区内有防具牌时,你的防御距离+1',
hslingjian_zhongxinghujia_equip4_info:'当你的装备区内有防具牌时,你的进攻距离+1',
hslingjian_zhongxinghujia_equip5_info:'出牌阶段限一次,你可以弃置两张牌,然后令一名角色随机装备一件防具',
hslingjian_jinjilengdong_duanzao:'冰冻',
hslingjian_jinjilengdong_duanzao2:'冰',
hslingjian_jinjilengdong_equip1_info:'每当你用杀造成一次伤害,你可以令目标摸两张牌并翻面',
hslingjian_jinjilengdong_equip2_info:'每当你受到杀造成的伤害,你可以令伤害来源摸两张牌并翻面',
hslingjian_jinjilengdong_equip3_info:'你的武将牌背面朝上时防御距离+2',
hslingjian_jinjilengdong_equip4_info:'你的武将牌背面朝上时进攻距离+2',
hslingjian_jinjilengdong_equip5_info:'回合结束后,若你的武将牌正面朝上,你可以与一名武将牌正面朝上的其他角色同时翻面,然后各摸两张牌',
hslingjian_yinmilichang_duanzao:'隐力',
hslingjian_yinmilichang_duanzao2:'隐',
hslingjian_yinmilichang_equip1_info:'每当你用杀造成一次伤害,你可以令一名其他角色获得潜行直到其下一回合开始',
hslingjian_yinmilichang_equip2_info:'每当你受到一次伤害,你本回合内获得潜行',
hslingjian_yinmilichang_equip3_info:'当你的体力值为1时你的防御距离+1',
hslingjian_yinmilichang_equip4_info:'当你的体力值为1时你的进攻距离+1',
hslingjian_yinmilichang_equip5_info:'当你没有手牌时,你不能成为杀或决斗的目标',
hslingjian_xingtigaizao_duanzao:'移形',
hslingjian_xingtigaizao_duanzao2:'形',
hslingjian_xingtigaizao_equip1_info:'每当你用杀造成一次伤害,你摸一张牌',
hslingjian_xingtigaizao_equip2_info:'每当你受到杀造成的伤害,你摸一张牌',
hslingjian_xingtigaizao_equip3_info:'你的防御距离+1进攻距离-1',
hslingjian_xingtigaizao_equip4_info:'你的防御距离-1进攻距离+1',
hslingjian_xingtigaizao_equip5_info:'你于摸牌阶段额外摸一张牌;你的手牌上限-1',
hslingjian_shengxiuhaojiao_duanzao:'号角',
hslingjian_shengxiuhaojiao_duanzao2:'角',
hslingjian_shengxiuhaojiao_equip1_info:'有嘲讽的角色不能闪避你的杀',
hslingjian_shengxiuhaojiao_equip2_info:'有嘲讽的角色不能对你使用杀',
hslingjian_shengxiuhaojiao_equip3_info:'若你的手牌数大于你的体力值,你的防御距离+1',
hslingjian_shengxiuhaojiao_equip4_info:'若你的手牌数大于你的体力值,你的进攻距离+1',
2016-07-16 02:11:40 +00:00
hslingjian_shengxiuhaojiao_equip5_info:'出牌阶段限一次,你可以弃置两张牌,然后令一名角色获得或解除嘲讽',
2016-07-05 14:11:33 +00:00
hslingjian_shijianhuisu_duanzao:'回溯',
hslingjian_shijianhuisu_duanzao2:'溯',
2016-07-19 07:32:04 +00:00
hslingjian_shijianhuisu_equip1_info:'当你装备一张防具牌时,你摸一张牌',
hslingjian_shijianhuisu_equip2_info:'当你装备一张武器牌时,你摸一张牌',
2016-07-05 14:11:33 +00:00
hslingjian_shijianhuisu_equip3_info:'当你的装备区内没有其他牌时,你的防御距离+1',
hslingjian_shijianhuisu_equip4_info:'当你的装备区内没有其他牌时,你的进攻距离+1',
hslingjian_shijianhuisu_equip5_info:'出牌阶段限一次,你可以弃置一张牌,然后令一名其他角色将其装备区内的牌收回手牌',
_lingjianduanzao:'煅造',
2016-09-23 03:26:32 +00:00
_lingjianduanzao_info:'出牌阶段你可以将一张装备牌和一张可煅造的牌合成为一件强化装备并可装备给距离1以内的一名角色',
2016-07-05 14:11:33 +00:00
jiguanshu:'机关鼠',
2017-01-08 04:09:34 +00:00
jiguanshu_info:'出牌阶段对自己使用,用随机祭器强化装备区内的一张随机装备,然后用随机零件强化其余的装备',
2016-07-05 14:11:33 +00:00
lingjiandai:'零件袋',
2016-09-13 14:57:15 +00:00
lingjiandai_info:'出牌阶段对自己使用获得3张随机零件',
2016-07-05 14:11:33 +00:00
mujiaren:'木甲人',
2017-01-25 17:13:45 +00:00
mujiaren_info:'出牌阶段限用一次,获得一张随机机关牌,并将你手牌中的非基本牌替换为随机的机关牌',
2016-09-12 15:04:22 +00:00
jiguanyaoshu:'机关要术',
jiguanyaoshu_skill:'巧匠',
jiguanyaoshu_skill_info:'每当你于回合外失去装备区内的牌,你获得一个随机零件',
jiguanyaoshu_info:'出牌阶段对距离1以内的一名角色使用目标随机装备一件装备牌并获得技能巧匠每当你于回合外失去装备区内的牌你获得一个随机零件',
2016-07-05 14:11:33 +00:00
hslingjian:'零件',
hslingjian_xuanfengzhiren:'旋风之刃',
2016-08-07 09:38:27 +00:00
hslingjian_xuanfengzhiren_info:'可用于煅造装备;随机弃置一名角色的一张牌',
2016-07-05 14:11:33 +00:00
hslingjian_zhongxinghujia:'重型护甲',
2016-08-07 09:38:27 +00:00
hslingjian_zhongxinghujia_info:'可用于煅造装备;令一名角色装备一件随机防具,然后随机弃置其一张手牌',
2016-07-05 14:11:33 +00:00
hslingjian_jinjilengdong:'紧急冷冻',
2017-02-04 15:59:46 +00:00
hslingjian_jinjilengdong_info:'可用于煅造装备;令一名武将牌正面朝上的其他角色获得两点护甲并翻面,然后获得技能潜行直到武将牌翻回正面',
2016-07-05 14:11:33 +00:00
hslingjian_yinmilichang:'隐秘力场',
2016-08-07 09:38:27 +00:00
hslingjian_yinmilichang_info:'可用于煅造装备;令一名其他角色获得技能潜行,直到其下一回合开始',
2016-07-05 14:11:33 +00:00
hslingjian_xingtigaizao:'型体改造',
2016-08-07 09:38:27 +00:00
hslingjian_xingtigaizao_info:'可用于煅造装备;摸一张牌,本回合手牌上限-1',
2016-07-05 14:11:33 +00:00
hslingjian_shengxiuhaojiao:'生锈号角',
2016-08-07 09:38:27 +00:00
hslingjian_shengxiuhaojiao_info:'可用于煅造装备;令一名角色获得技能嘲讽,直到其下一回合开始',
2016-07-05 14:11:33 +00:00
hslingjian_shijianhuisu:'时间回溯',
2016-08-07 09:38:27 +00:00
hslingjian_shijianhuisu_info:'可用于煅造装备;令一名其他角色将其装备牌收回手牌',
2016-07-05 14:11:33 +00:00
hslingjian_chaofeng:'嘲讽',
hslingjian_chaofeng_info:'锁定技,若你的手牌数大于你的体力值,则只要你在任一其他角色的攻击范围内,该角色使用【杀】时便不能指定你以外的角色为目标',
2016-06-08 01:43:10 +00:00
qinglonglingzhu:'青龙灵珠',
2016-09-10 01:00:35 +00:00
qinglonglingzhu_ab:'灵珠',
2016-06-08 01:43:10 +00:00
qinglonglingzhu_info:'每当你造成一次属性伤害,你可以获得对方的一张牌',
xingjunyan:'星君眼',
xingjunyan_info:'你的杀造成的伤害+1杀对你造成的伤害+1',
2015-04-29 03:25:17 +00:00
guiyanfadao:'鬼眼法刀',
guiyanfadao_bg:'眼',
2016-07-19 07:32:04 +00:00
guiyanfadao_info:'每当你使用杀命中目标,你可以防止伤害,改为令目标失去一点体力',
2015-04-29 03:25:17 +00:00
tianxianjiu:'天仙酒',
tianxianjiu_bg:'仙',
2016-09-13 15:52:46 +00:00
tianxianjiu_info:'出牌阶段对自己使用你使用的下一张杀造成伤害后可以摸两张牌濒死阶段对自己使用回复1点体力',
2017-02-02 07:34:28 +00:00
// xiangyuye:'翔羽叶',
// xiangyuye_info:'出牌阶段,对一名攻击范围外的角色使用,令其弃置一张黑色手牌或流失一点体力',
2017-02-03 16:45:11 +00:00
// huanpodan:'还魄丹',
// huanpodan_bg:'魄',
// huanpodan_info:'出牌阶段对一名角色使用在目标即将死亡时防止其死亡改为令其弃置所有牌将体力值回复至1并摸一张牌',
// huanpodan_skill:'还魄丹',
// huanpodan_skill_bg:'丹',
// huanpodan_skill_info:'防止一次死亡改为弃置所有牌将体力值变为1并摸一张牌',
2015-04-29 03:25:17 +00:00
ximohu:'吸魔壶',
ximohu_bg:'魔',
// ximohu_info:'锁定技,你将即将受到的雷属性伤害转化为你的体力值',
sadengjinhuan:'萨登荆环',
sadengjinhuan_info:'当你的杀被闪避后,可以进行一次判定,若结果为红色目标需再打出一张闪',
sadengjinhuan_bg:'荆',
qipoguyu:'奇魄古玉',
xujin:'蓄劲',
xujin2:'蓄劲',
// qipoguyu_info:'装备后获得蓄劲技能',
xujin_info:'回合开始前,若你的蓄劲标记数小于当前的体力值,你可以跳过此回合,并获得一枚蓄劲标记。锁定技,每当你即将造成伤害,你令此伤害+X然后弃置一枚蓄劲标记X为你拥有的蓄劲标记数',
2016-09-29 17:23:12 +00:00
guilingzhitao:'归灵指套',
2015-04-29 03:25:17 +00:00
nigong:'逆攻',
nigong2:'逆攻',
nigong3:'逆攻',
nigong4:'逆攻',
2016-09-29 17:23:12 +00:00
guilingzhitao_info:'每当你受到一点伤害你获得一个逆攻标记标记数不能超过4。出牌阶段你可以弃置所有逆攻标记并令对一名其他角色造成标记数一半的伤害若非整数则向下取整并摸一张牌',
nigong_info:'每当你受到一点伤害你获得一个逆攻标记标记数不能超过4。出牌阶段你可以弃置所有逆攻标记并令对一名其他角色造成标记数一半的伤害若非整数则向下取整并摸一张牌',
2015-04-29 03:25:17 +00:00
baihupifeng:'白狐披风',
baihupifeng_bg:'狐',
2017-02-06 03:27:52 +00:00
baihupifeng_info:'结束阶段,若你的体力值是全场最小的之一,你可以回复一点体力',
2015-04-29 03:25:17 +00:00
fengxueren:'封雪刃',
fengxueren_bg:'雪',
2016-08-28 00:30:25 +00:00
fengxueren_info:'你使用杀击中目标后,若目标武将牌正面朝上,你可以防止伤害,然后令目标摸一张牌并翻面',
2015-04-29 03:25:17 +00:00
chilongya:'赤龙牙',
2016-06-08 02:36:15 +00:00
chilongya_info:'锁定技,你的火属性伤害+1',
2015-04-29 03:25:17 +00:00
daihuofenglun:'带火风轮',
2016-11-21 02:12:34 +00:00
daihuofenglun_ab:'风轮',
2015-04-29 03:25:17 +00:00
daihuofenglun_bg:'轮',
2017-02-06 12:28:57 +00:00
daihuofenglun_info:'你的进攻距离+2你的防御距离-1',
2015-04-29 03:25:17 +00:00
xiayuncailing:'霞云彩绫',
2016-11-21 02:12:34 +00:00
xiayuncailing_ab:'彩绫',
2015-04-29 03:25:17 +00:00
xiayuncailing_bg:'云',
2017-02-06 12:28:57 +00:00
xiayuncailing_info:'你的进攻距离-1你的防御距离+2',
2015-04-29 03:25:17 +00:00
shentoumianju:'神偷面具',
shentoumianju_bg:'偷',
2016-09-29 17:23:12 +00:00
shentoumianju_info:'出牌阶段,你可以指定一名手牌比你多的角色,弃置一张手牌并进行一次判定,若结果不为梅花,你获得其一张手牌',
2015-04-29 03:25:17 +00:00
shentou:'神偷',
shentou_info:'出牌阶段,你可以进行一次判定,若结果不为梅花,你获得任意一名角色的一张手牌',
pusafazhou:'菩萨发咒',
pusafazhou_bg:'发',
// pusafazhou_info:'令你抵挡一次死亡将体力回复至1并摸一张牌',
2016-07-19 07:32:04 +00:00
xianluhui:'仙炉灰',
2017-01-29 09:26:05 +00:00
xianluhui_info:'令所有已受伤角色获得一点护甲',
2015-04-29 03:25:17 +00:00
caoyao:'草药',
caoyao_info:'出牌阶段对距离为1以内的角色使用回复一点体力。',
langeguaiyi:'蓝格怪衣',
langeguaiyi_bg:'格',
2015-12-01 05:46:28 +00:00
langeguaiyi_info:'出牌阶段限一次,你可以进行一次判定,然后按花色执行以下效果。红桃:你回复一点体力;方片:你摸一张牌;梅花:你弃置一名其他角色的一张牌;黑桃:无事发生',
2015-04-29 03:25:17 +00:00
longfan:'龙帆',
longfan_info:'出牌阶段限一次,你可以进行一次判定,然后按花色执行以下效果。红桃:你回复一点体力;方片:你摸一张牌;梅花:你弃置一名其他角色的一张牌;黑桃:无事发生',
// longfan_info:'0000翻面1111弃手牌2222弃装备牌3333受伤害4444流失体力5555连环6666摸牌7777回复体力8888弃置判定牌9999置衡',
guiyoujie:'鬼幽结',
2017-02-06 16:24:42 +00:00
guiyoujie_info:'出牌阶段,对一名其他角色使用。若判定结果为黑色,其摸一张牌并翻面。',
2015-04-29 03:25:17 +00:00
yufulu:'御夫录',
2017-01-13 10:46:49 +00:00
yufulu_info:'出牌阶段,可弃置一张武器牌令一名角色受到一点伤害,然后该角色获得此武器牌',
2015-04-29 03:25:17 +00:00
touzhi:'投掷',
touzhi_info:'出牌阶段,可弃置一张武器牌令一名角色受到一点伤害,然后该角色获得此武器牌',
xixueguizhihuan:'吸血鬼指环',
xixueguizhihuan_info:'锁定技,每当你使用杀造成一点伤害,你回复一点体力',
xixue:'吸血',
xixue_info:'锁定技,每当你使用杀造成一点伤害,你回复一点体力',
2015-09-16 02:45:45 +00:00
zhufangshenshi:'祠符',
2015-04-29 03:25:17 +00:00
zhufangshenshi_info:'出牌阶段,对一名相邻角色使用,与其交换位置',
jingleishan:'惊雷闪',
jingleishan_info:'出牌阶段对所有其他角色使用。每名目标角色需打出一张【杀】否则受到1点雷电伤害。',
chiyuxi:'炽羽袭',
chiyuxi_info:'出牌阶段对所有其他角色使用。每名目标角色需打出一张【闪】否则受到1点火焰伤害。',
guangshatianyi:'光纱天衣',
guangshatianyi_bg:'纱',
2017-01-13 10:46:49 +00:00
guangshatianyi_info:'锁定技,每当你即将受到伤害,有三分之一的概率令伤害减一',
2016-07-19 07:32:04 +00:00
sifeizhenmian:'四非真面',
2017-01-20 05:34:31 +00:00
sifeizhenmian_info:'出牌阶段限一次,你可以弃置一张牌并指定一名手牌数少于你的角色,你亮出牌堆顶的一张牌,若此牌为黑色,你弃置四非真面,该角色进入混乱状态直到下一回合结束',
2016-07-19 07:32:04 +00:00
yiluan:'意乱',
2017-01-20 05:34:31 +00:00
yiluan_info:'出牌阶段限一次,你可以弃置一张牌并指定一名手牌数少于你的角色,你亮出牌堆顶的一张牌,若此牌为黑色,你弃置四非真面,该角色进入混乱状态直到下一回合结束',
2016-07-20 06:42:18 +00:00
donghuangzhong:'东皇钟',
xuanyuanjian:'轩辕剑',
xuanyuanjian2:'轩辕剑',
pangufu:'盘古斧',
lianyaohu:'炼妖壶',
2017-01-29 05:26:58 +00:00
lianyaohu_skill:'炼妖壶',
lianyaohu_skill_bg:'壶',
2016-07-20 06:42:18 +00:00
haotianta:'昊天塔',
fuxiqin:'伏羲琴',
shennongding:'神农鼎',
kongdongyin:'崆峒印',
kunlunjingc:'昆仑镜',
nvwashi:'女娲石',
donghuangzhong_bg:'钟',
lianyaohu_bg:'壶',
haotianta_bg:'塔',
fuxiqin_bg:'琴',
shennongding_bg:'鼎',
kongdongyin_bg:'印',
kunlunjingc_bg:'镜',
nvwashi_bg:'石',
kongxin:'控心',
lianhua:'炼化',
2017-02-02 07:34:28 +00:00
// dujian:'毒箭',
// dujian_info:'出牌阶段,对一名有手牌或装备牌的角色使用,令其展示一张手牌,若与你选择的手牌颜色相同,其流失一点体力',
2016-07-20 06:42:18 +00:00
lianhua_info:'出牌阶段限一次,你可以弃置两张炼妖壶中的牌,从牌堆中获得一张与弃置的牌类别均不相同的牌',
shouna:'收纳',
2017-01-29 05:26:58 +00:00
shouna_info:'出牌阶段限一次,你可以弃置一张手牌,并将一名其他角色的一张手牌置入炼妖壶',
2017-02-06 03:27:52 +00:00
donghuangzhong_info:'结束阶段,你可以弃置一张手牌,并选择一名角色将一张随机单体延时锦囊置入其判定区',
2017-01-30 03:28:18 +00:00
xuanyuanjian_info:'装备时获得一点护甲每当你即将造成一次伤害你令此伤害加一并变为雷属性并在伤害结算后流失一点体力。任何时候若你体力值不超过2则立即失去轩辕剑',
2016-07-20 06:42:18 +00:00
pangufu_info:'锁定技,每当你造成一次伤害,受伤角色须弃置一张牌',
2016-08-07 18:30:02 +00:00
haotianta_info:'锁定技任意一名角色进行判定前你观看牌堆顶的3张牌并选择一张作为判定结果此结果不可被更改也不能触发技能。每回合最多发动一次',
2016-07-20 06:42:18 +00:00
shennongding_info:'出牌阶段,你可以弃置两张手牌,然后回复一点体力。每阶段限一次',
kongdongyin_info:'令你抵挡一次死亡将体力回复至1并摸一张牌发动后进入弃牌堆',
kunlunjingc_info:'出牌阶段限一次,你可以观看牌堆顶的三张牌,然后用一张手牌替换其中的一张',
nvwashi_info:'当一名角色濒死时若你的体力值大于1你可以失去一点体力并令其回复一点体力',
kongxin_info:'出牌阶段限一次,你可以与一名其他角色进行拼点,若你赢,你可以指定另一名角色视为对方对该角色使用一张杀,否则对方可弃置你一张牌',
fuxiqin_info:'出牌阶段限一次,你可以与一名其他角色进行拼点,若你赢,你可以指定另一名角色视为对方对该角色使用一张杀,否则对方可弃置你一张牌',
2017-01-29 05:26:58 +00:00
lianyaohu_info:'出牌阶段各限一次你可以选择一项1.弃置一张手牌并将一名其他角色的一张手牌置入炼妖壶2.弃置两张炼妖壶中的牌,从牌堆中获得一张与弃置的牌类别均不相同的牌',
2015-04-29 03:25:17 +00:00
},
list:[
['spade',1,'baihupifeng'],
2016-06-10 04:01:07 +00:00
['club',1,'fengxueren'],
2015-04-29 03:25:17 +00:00
['diamond',1,'langeguaiyi'],
2016-09-12 15:04:22 +00:00
['heart',1,'daihuofenglun','fire'],
2015-04-29 03:25:17 +00:00
2016-09-12 15:04:22 +00:00
['diamond',2,'xiayuncailing'],
2017-02-03 16:45:11 +00:00
// ['heart',2,'pantao'],
// ['heart',2,'huanpodan'],
2015-04-29 03:25:17 +00:00
['club',3,'caoyao'],
2016-06-10 04:01:07 +00:00
['diamond',3,'chilongya','fire'],
2015-04-29 03:25:17 +00:00
['spade',3,'guiyoujie'],
['club',4,'caoyao'],
2015-09-16 02:45:45 +00:00
['spade',4,'zhufangshenshi'],
2017-02-03 16:45:11 +00:00
// ['spade',4,'huanpodan'],
2015-04-29 03:25:17 +00:00
['club',5,'caoyao'],
['spade',5,'xixueguizhihuan'],
2017-01-29 09:26:05 +00:00
// ['diamond',5,'huanpodan'],
2015-04-29 03:25:17 +00:00
['club',6,'shentoumianju'],
['spade',6,'yufulu'],
['diamond',7,'chiyuxi','fire'],
['club',7,'jingleishan','thunder'],
2016-09-29 17:23:12 +00:00
['spade',7,'guilingzhitao'],
2015-04-29 03:25:17 +00:00
['spade',8,'zhufangshenshi'],
2017-02-02 07:34:28 +00:00
// ['club',8,'xiangyuye','poison'],
2015-04-29 03:25:17 +00:00
2017-01-29 09:26:05 +00:00
['spade',9,'yangpijuan'],
2015-04-29 03:25:17 +00:00
['club',9,'guiyoujie'],
2017-02-02 07:34:28 +00:00
// ['diamond',9,'xiangyuye','poison'],
2015-04-29 03:25:17 +00:00
// ['diamond',9,'tianxianjiu'],
['heart',9,'tianxianjiu'],
['diamond',2,'tianxianjiu'],
2016-06-08 02:36:15 +00:00
['spade',2,'qinglonglingzhu'],
['spade',7,'xingjunyan'],
2015-04-29 03:25:17 +00:00
//['spade',10,'qipoguyu'],
//['diamond',10,'xiangyuye','poison'],
2017-01-29 09:26:05 +00:00
['club',7,'yangpijuan'],
2015-04-29 03:25:17 +00:00
2017-02-02 07:34:28 +00:00
// ['spade',11,'xiangyuye','poison'],
2015-04-29 03:25:17 +00:00
2016-07-19 07:32:04 +00:00
['spade',12,'guiyanfadao','poison'],
2015-04-29 03:25:17 +00:00
2016-07-19 07:32:04 +00:00
['spade',13,'xianluhui'],
['diamond',3,'guangshatianyi'],
2015-04-29 03:25:17 +00:00
['club',13,'sadengjinhuan'],
2016-07-01 14:17:24 +00:00
2016-09-29 17:23:12 +00:00
['club',2,'lingjiandai'],
['spade',3,'lingjiandai'],
['heart',5,'lingjiandai'],
['diamond',8,'lingjiandai'],
2016-07-01 14:17:24 +00:00
['club',2,'jiguanshu'],
['spade',2,'jiguanshu'],
2016-09-13 14:57:15 +00:00
// ['heart',2,'jiguanshu'],
2016-07-01 14:17:24 +00:00
['diamond',2,'jiguanshu'],
2016-09-12 15:04:22 +00:00
['club',3,'jiguanyaoshu'],
['spade',3,'jiguanyaoshu'],
2016-09-13 14:57:15 +00:00
// ['heart',3,'jiguanyaoshu'],
// ['diamond',3,'jiguanyaoshu'],
2016-07-19 07:57:00 +00:00
['spade',4,'sifeizhenmian'],
2016-07-20 06:42:18 +00:00
['heart',13,'qinglianxindeng'],
['club',3,'jiguanyuan'],
['diamond',2,'jiguanyuan'],
2016-08-07 09:38:27 +00:00
['diamond',4,'jiguantong'],
['club',7,'jiguantong'],
2016-09-29 18:03:43 +00:00
['spade',1,'shenmiguo'],
['spade',2,'shenmiguo'],
['heart',1,'shenmiguo'],
2016-07-20 06:42:18 +00:00
['club',3,'jiguanfeng'],
['spade',4,'jiguanfeng'],
['spade',9,'guisheqi'],
['club',7,'guisheqi'],
['diamond',13,'donghuangzhong'],
['diamond',13,'fuxiqin'],
['spade',13,'kunlunjingc'],
['spade',13,'xuanyuanjian'],
['spade',13,'pangufu'],
['club',13,'lianyaohu'],
['diamond',13,'haotianta'],
['club',13,'shennongding'],
['heart',13,'nvwashi'],
['heart',13,'kongdongyin'],
2016-08-10 16:45:56 +00:00
['heart',6,'qinglongzhigui'],
['diamond',6,'zhuquezhizhang'],
['spade',6,'baishouzhihu'],
['club',6,'xuanwuzhihuang'],
['spade',7,'cangchizhibi'],
['heart',5,'huanglinzhicong'],
2016-09-12 15:04:22 +00:00
['spade',9,'gouhunluo'],
['club',7,'gouhunluo'],
['spade',1,'xuejibingbao'],
['club',1,'xuejibingbao'],
2016-09-13 14:57:15 +00:00
['heart',3,'zhiluxiaohu'],
['diamond',4,'zhiluxiaohu'],
['club',7,'mujiaren'],
['heart',6,'mujiaren'],
['diamond',11,'mujiaren'],
2016-09-13 15:52:46 +00:00
['club',6,'shuchui'],
2016-09-29 17:23:12 +00:00
2016-09-29 18:03:43 +00:00
['club',1,'fengyinzhidan'],
['diamond',1,'fengyinzhidan'],
['heart',1,'fengyinzhidan'],
['spade',1,'fengyinzhidan'],
2016-09-29 17:23:12 +00:00
2016-10-01 07:52:22 +00:00
['heart',9,'yuruyi'],
['club',4,'shencaojie'],
['diamond',4,'shencaojie'],
['spade',4,'shencaojie'],
2017-01-29 09:26:05 +00:00
['spade',1,'yuchanqian'],
['club',2,'yuchankun'],
['diamond',3,'yuchanzhen'],
['heart',4,'yuchanxun'],
['spade',5,'yuchankan'],
['club',6,'yuchanli'],
['diamond',7,'yuchangen'],
['heart',8,'yuchandui'],
2017-02-02 06:09:00 +00:00
2017-02-02 07:34:28 +00:00
// ['spade',3,'dujian','poison'],
// ['club',11,'dujian','poison'],
// ['club',12,'dujian','poison'],
2015-04-29 03:25:17 +00:00
],
}