This commit is contained in:
libccy 2017-07-19 09:58:54 +08:00
parent 504e028e0a
commit 471df16268
5 changed files with 22 additions and 29 deletions

View File

@ -1686,6 +1686,8 @@ game.import('card',function(lib,game,ui,get,ai,_status){
}; };
'step 1' 'step 1'
var list=game.filterPlayer(function(current){ var list=game.filterPlayer(function(current){
if(game.checkMod(trigger.card,player,trigger.target,current,'unchanged','wuxieEnabled',current)==false) return false;
if(game.checkMod(trigger.card,player,trigger.target,current,'unchanged','wuxieRespondable',player)==false) return false;
return current.hasWuxie(); return current.hasWuxie();
}); });
event.list=list; event.list=list;

View File

@ -2607,7 +2607,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
player.loseHp(); player.loseHp();
} }
else{ else{
player.loseMaxHp(); player.loseMaxHp(true);
} }
}, },
ai:{ ai:{

View File

@ -2846,10 +2846,10 @@ game.import('character',function(lib,game,ui,get,ai,_status){
if(get.type(card)=='delay'&&player!=target){ if(get.type(card)=='delay'&&player!=target){
return false; return false;
} }
} },
}, wuxieRespondable:function(){
ai:{ return false;
playernowuxie:true }
} }
}, },
jianshu:{ jianshu:{
@ -3689,15 +3689,10 @@ game.import('character',function(lib,game,ui,get,ai,_status){
mod:{ mod:{
globalFrom:function(from,to){ globalFrom:function(from,to){
if(to.hasSkill('tanhu2')) return -Infinity; if(to.hasSkill('tanhu2')) return -Infinity;
} },
}, wuxieRespondable:function(card,player,target){
trigger:{player:'useCardToBegin'}, if(target.hasSkill('tanhu2')) return false;
frequent:true, }
filter:function(event){
return get.type(event.card)=='trick'&&event.target&&event.target.hasSkill('tanhu2');
},
content:function(){
player.draw();
} }
}, },
jiqiao:{ jiqiao:{
@ -9161,7 +9156,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
tanhu:'探虎', tanhu:'探虎',
tanhu2:'探虎', tanhu2:'探虎',
tanhu3:'探虎', tanhu3:'探虎',
tanhu_info:'出牌阶段限一次你可以与一名其他角色拼点。若你赢你获得以下技能直到回合结束你与该角色的距离为1你对该角色使用普通锦囊牌时可以摸一张牌', tanhu_info:'出牌阶段限一次你可以与一名其他角色拼点。若你赢你获得以下技能直到回合结束你与该角色的距离为1你对该角色使用的普通锦囊牌不能被无懈可击响应',
mouduan:'谋断', mouduan:'谋断',
mouduan_info:'通常状态下你拥有标记“武”并拥有技能“激昂”和“谦逊”。当你的手牌数为2张或以下时你须将你的标记翻面为“文”将该两项技能转化为“英姿”和“克己”。任一角色的回合开始前你可弃一张牌将标记翻回', mouduan_info:'通常状态下你拥有标记“武”并拥有技能“激昂”和“谦逊”。当你的手牌数为2张或以下时你须将你的标记翻面为“文”将该两项技能转化为“英姿”和“克己”。任一角色的回合开始前你可弃一张牌将标记翻回',
jiqiao:'机巧', jiqiao:'机巧',

View File

@ -19525,10 +19525,8 @@
if(lib.filter.targetEnabled(card,player,target)) return true; if(lib.filter.targetEnabled(card,player,target)) return true;
if(card==undefined) return false; if(card==undefined) return false;
var mod=game.checkMod(card,player,target,'unchanged','playerEnabled',player); if(game.checkMod(card,player,target,'unchanged','playerEnabled',player)==false) return false;
if(mod==false) return false; if(game.checkMod(card,player,target,'unchanged','targetEnabled',target)==false) return false;
var mod=game.checkMod(card,player,target,'unchanged','targetEnabled',target);
if(mod==false) return false;
var filter=get.info(card).modTarget; var filter=get.info(card).modTarget;
if(typeof filter=='boolean') return filter; if(typeof filter=='boolean') return filter;

View File

@ -1437,13 +1437,9 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
}, },
targetInRange:function(card){ targetInRange:function(card){
if(get.color(card)=='red') return true; if(get.color(card)=='red') return true;
} },
}, wuxieRespondable:function(card,player,target){
ai:{ if(get.color(card)=='red'&&player!=target) return false;
playernowuxie:true,
skillTagFilter:function(player,tag,arg){
if(arg&&get.color(arg)=='red') return true;
return false;
} }
}, },
global:'boss_fentian2' global:'boss_fentian2'
@ -2378,9 +2374,11 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
} }
}, },
fengqi2:{ fengqi2:{
ai:{ mod:{
playernowuxie:true wuxieRespondable:function(){
} return false;
}
}
}, },
gaiming:{ gaiming:{
trigger:{player:'judgeBefore'}, trigger:{player:'judgeBefore'},