This commit is contained in:
libccy 2016-09-13 22:57:15 +08:00
parent d79289a7c8
commit ae12f99e11
3 changed files with 50 additions and 27 deletions

View File

@ -18,7 +18,7 @@ card.extra={
return target==player; return target==player;
}, },
content:function(){ content:function(){
if(target==_status.dying){ if(target==_status.event.getParent(2).dying){
target.recover(); target.recover();
if(_status.currentPhase==target){ if(_status.currentPhase==target){
target.getStat().card.jiu--; target.getStat().card.jiu--;

View File

@ -511,8 +511,11 @@ card.swd={
enable:true, enable:true,
type:'jiguan', type:'jiguan',
wuxieable:true, wuxieable:true,
range:{global:1}, filterTarget:function(card,player,target){
filterTarget:true, return target==player;
},
selectTarget:-1,
modTarget:true,
content:function(){ content:function(){
var list=get.typeCard('hslingjian'); var list=get.typeCard('hslingjian');
if(list.length){ if(list.length){
@ -538,7 +541,6 @@ card.swd={
enable:true, enable:true,
type:'jiguan', type:'jiguan',
wuxieable:true, wuxieable:true,
range:{global:1},
filterTarget:function(card,player,target){ filterTarget:function(card,player,target){
var es=target.get('e'); var es=target.get('e');
for(var i=0;i<es.length;i++){ for(var i=0;i<es.length;i++){
@ -1127,7 +1129,7 @@ card.swd={
}, },
content:function(){ content:function(){
"step 0" "step 0"
if(target==_status.dying) target.recover(); if(target==_status.event.getParent(2).dying) target.recover();
else{ else{
target.addTempSkill('tianxianjiu',['phaseAfter','shaAfter']); target.addTempSkill('tianxianjiu',['phaseAfter','shaAfter']);
if(target==targets[0]&&card.clone&&(card.clone.parentNode==player.parentNode||card.clone.parentNode==ui.arena)){ if(target==targets[0]&&card.clone&&(card.clone.parentNode==player.parentNode||card.clone.parentNode==ui.arena)){
@ -3826,7 +3828,7 @@ card.swd={
}, },
translate:{ translate:{
zhiluxiaohu:'指路小狐', zhiluxiaohu:'指路小狐',
zhiluxiaohu_info:'出牌阶段对自己使用,视为对一名随机角色使用一张杀,然后摸一张牌', zhiluxiaohu_info:'出牌阶段对自己使用,视为对一名随机敌方角色使用一张杀,然后摸一张牌',
xuejibingbao:'雪肌冰鲍', xuejibingbao:'雪肌冰鲍',
xuejibingbao_info:'出牌阶段对一名角色使用,该角色摸牌阶段摸牌数+1持续2个回合', xuejibingbao_info:'出牌阶段对一名角色使用,该角色摸牌阶段摸牌数+1持续2个回合',
gouhunluo:'勾魂锣', gouhunluo:'勾魂锣',
@ -3955,9 +3957,9 @@ card.swd={
_lingjianduanzao:'煅造', _lingjianduanzao:'煅造',
_lingjianduanzao_info:'出牌阶段你可以弃置一张装备牌和一张可煅造的牌并获得一件强化装备强化装备可以装备给距离1以内的角色', _lingjianduanzao_info:'出牌阶段你可以弃置一张装备牌和一张可煅造的牌并获得一件强化装备强化装备可以装备给距离1以内的角色',
jiguanshu:'机关鼠', jiguanshu:'机关鼠',
jiguanshu_info:'出牌阶段对距离1以内的一名角色使用,用随机零件强化目标装备区内的装备', jiguanshu_info:'出牌阶段对一名角色使用,用随机零件强化目标装备区内的装备',
lingjiandai:'零件袋', lingjiandai:'零件袋',
lingjiandai_info:'出牌阶段对距离1以内的一名角色使用目标获得3张随机零件', lingjiandai_info:'出牌阶段对自己使用,获得3张随机零件',
mujiaren:'木甲人', mujiaren:'木甲人',
mujiaren_info:'出牌阶段限用一次,将你手牌中的非基本牌(含此张)替换为随机的机关牌', mujiaren_info:'出牌阶段限用一次,将你手牌中的非基本牌(含此张)替换为随机的机关牌',
jiguanyaoshu:'机关要术', jiguanyaoshu:'机关要术',
@ -4117,19 +4119,16 @@ card.swd={
['heart',1,'daihuofenglun','fire'], ['heart',1,'daihuofenglun','fire'],
['diamond',2,'xiayuncailing'], ['diamond',2,'xiayuncailing'],
// ['spade',2,'pusafazhou'],
// ['heart',2,'pantao'], // ['heart',2,'pantao'],
['club',2,'huanpodan'], ['club',2,'huanpodan'],
['club',3,'caoyao'], ['club',3,'caoyao'],
['diamond',3,'chilongya','fire'], ['diamond',3,'chilongya','fire'],
['spade',3,'guiyoujie'], ['spade',3,'guiyoujie'],
//['heart',3,'xiangyuye','poison'],
['club',4,'caoyao'], ['club',4,'caoyao'],
['spade',4,'zhufangshenshi'], ['spade',4,'zhufangshenshi'],
['spade',4,'huanpodan'], ['spade',4,'huanpodan'],
// ['diamond',4,'xiangyuye','poison'],
['club',5,'caoyao'], ['club',5,'caoyao'],
['spade',5,'xixueguizhihuan'], ['spade',5,'xixueguizhihuan'],
@ -4137,17 +4136,13 @@ card.swd={
['club',6,'shentoumianju'], ['club',6,'shentoumianju'],
['spade',6,'yufulu'], ['spade',6,'yufulu'],
// ['heart',6,'xiangyuye','poison'],
//['diamond',6,'xiangyuye','poison'],
['diamond',7,'chiyuxi','fire'], ['diamond',7,'chiyuxi','fire'],
['club',7,'jingleishan','thunder'], ['club',7,'jingleishan','thunder'],
['spade',7,'guilingyupei'], ['spade',7,'guilingyupei'],
// ['heart',7,'xiangyuye','poison'],
['spade',8,'zhufangshenshi'], ['spade',8,'zhufangshenshi'],
['club',8,'xiangyuye','poison'], ['club',8,'xiangyuye','poison'],
//['heart',8,'huanpodan'],
// ['spade',9,'ximohu','brown'], // ['spade',9,'ximohu','brown'],
['club',9,'guiyoujie'], ['club',9,'guiyoujie'],
@ -4164,15 +4159,12 @@ card.swd={
//['diamond',10,'xiangyuye','poison'], //['diamond',10,'xiangyuye','poison'],
['spade',11,'xiangyuye','poison'], ['spade',11,'xiangyuye','poison'],
// ['club',11,'xiangyuye','poison'],
// ['diamond',12,'xiangyuye','poison'],
['spade',12,'guiyanfadao','poison'], ['spade',12,'guiyanfadao','poison'],
['spade',13,'xianluhui'], ['spade',13,'xianluhui'],
['diamond',3,'guangshatianyi'], ['diamond',3,'guangshatianyi'],
['club',13,'sadengjinhuan'], ['club',13,'sadengjinhuan'],
//['spade',6,'xiangyuye','poison'],
['club',1,'lingjiandai'], ['club',1,'lingjiandai'],
['spade',1,'lingjiandai'], ['spade',1,'lingjiandai'],
@ -4181,13 +4173,13 @@ card.swd={
['club',2,'jiguanshu'], ['club',2,'jiguanshu'],
['spade',2,'jiguanshu'], ['spade',2,'jiguanshu'],
['heart',2,'jiguanshu'], // ['heart',2,'jiguanshu'],
['diamond',2,'jiguanshu'], ['diamond',2,'jiguanshu'],
['club',3,'jiguanyaoshu'], ['club',3,'jiguanyaoshu'],
['spade',3,'jiguanyaoshu'], ['spade',3,'jiguanyaoshu'],
['heart',3,'jiguanyaoshu'], // ['heart',3,'jiguanyaoshu'],
['diamond',3,'jiguanyaoshu'], // ['diamond',3,'jiguanyaoshu'],
['spade',4,'sifeizhenmian'], ['spade',4,'sifeizhenmian'],
['heart',13,'qinglianxindeng'], ['heart',13,'qinglianxindeng'],
@ -4226,5 +4218,12 @@ card.swd={
['spade',1,'xuejibingbao'], ['spade',1,'xuejibingbao'],
['club',1,'xuejibingbao'], ['club',1,'xuejibingbao'],
['heart',3,'zhiluxiaohu'],
['diamond',4,'zhiluxiaohu'],
['club',7,'mujiaren'],
['heart',6,'mujiaren'],
['diamond',11,'mujiaren'],
], ],
} }

View File

@ -4751,6 +4751,13 @@
} }
} }
}, },
gg:function(){
for(var i=0;i<game.players.length;i++){
for(var j=0;j<arguments.length;j++){
cheat.gx(arguments[j],game.players[i]);
}
}
},
gx:function(name,target){ gx:function(name,target){
target=target||game.me; target=target||game.me;
var nature=null; var nature=null;
@ -13173,20 +13180,26 @@
} }
} }
} }
var listAdded=false;
for(var i=0;i<roles.length;i++){ for(var i=0;i<roles.length;i++){
if(event[roles[i]]==player){ if(event[roles[i]]==player){
var triggername=player.playerid+'_'+roles[i]+'_'+name; var triggername=player.playerid+'_'+roles[i]+'_'+name;
if(lib.hook[triggername]){ if(lib.hook[triggername]){
for(var j=0;j<lib.hook[triggername].length;j++){ for(var j=0;j<lib.hook[triggername].length;j++){
addList(lib.hook[triggername][j],player); addList(lib.hook[triggername][j],player);
listAdded=true;
break;
} }
} }
triggername=roles[i]+'_'+name; triggername=roles[i]+'_'+name;
if(lib.hook.globalskill[triggername]){ if(lib.hook.globalskill[triggername]){
for(var j=0;j<lib.hook.globalskill[triggername].length;j++){ for(var j=0;j<lib.hook.globalskill[triggername].length;j++){
addList(lib.hook.globalskill[triggername][j],player); addList(lib.hook.globalskill[triggername][j],player);
listAdded=true;
break;
} }
} }
if(listAdded) break;
} }
} }
if(lib.hook.globalskill[globalskill]){ if(lib.hook.globalskill[globalskill]){
@ -14069,8 +14082,19 @@
content:function(){ content:function(){
"step 0" "step 0"
event.dying=_status.dying; event.dying=_status.dying;
if(!event.acted) event.acted=[];
"step 1" "step 1"
trigger.start=trigger.source||trigger.player; if(trigger.player.isDead()){
event.finish();
return;
}
event.acted.push(player);
// else if(trigger.source&&trigger.source.isDead()){
// trigger.start=game.findNext(trigger.source);
// }
// else{
// trigger.start=trigger.source||trigger.player;
// }
var str=get.translation(trigger.player.name)+'濒死,是否帮助?'; var str=get.translation(trigger.player.name)+'濒死,是否帮助?';
_status.dying=event.dying; _status.dying=event.dying;
if(lib.config.tao_enemy&&event.dying.side!=player.side&&lib.config.mode!='identity'&&lib.config.mode!='guozhan'){ if(lib.config.tao_enemy&&event.dying.side!=player.side&&lib.config.mode!='identity'&&lib.config.mode!='guozhan'){
@ -14106,16 +14130,16 @@
} }
else{ else{
for(var i=0;i<20;i++){ for(var i=0;i<20;i++){
if(event.player.next!=trigger.start){ if(event.acted.contains(event.player.next)){
event.player=event.player.next; break;
}
else{
event.player=event.player.next;
if(!event.player.isOut()){ if(!event.player.isOut()){
event.goto(1); event.goto(1);
break; break;
} }
} }
else{
break;
}
} }
} }
} }