This commit is contained in:
parent
e2849eec37
commit
e8125de719
|
@ -2005,6 +2005,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
},
|
||||
nsnongquan:{
|
||||
enable:'phaseUse',
|
||||
// usable:4,
|
||||
filter:function(event,player){
|
||||
return player.countCards('h')==1&&player.canUse('wuzhong',player);
|
||||
},
|
||||
|
@ -3659,7 +3660,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
nsshoudao:'授道',
|
||||
nsshoudao_info:'当左右“幻身”全部死亡时,你获得技能“雷击”和“鬼道”。当你死亡时,若此时有两个“幻身”,你可以令一名其他角色获得技能“雷击”和“鬼道”。若有一个“幻身”,你可以令一名其他角色获得技能“雷击”或“鬼道”。(杀死你的角色除外)',
|
||||
nsnongquan:'弄权',
|
||||
nsnongquan_info:'出牌阶段不限次数,你可以将最后一张手牌当【无中生有】使用',
|
||||
nsnongquan_info:'出牌阶段,你可以将最后一张手牌当作【无中生有】使用',
|
||||
nsdufu:'毒妇',
|
||||
nsdufu_info:'每当你即将造成一次伤害时,你可以为此伤害重新指定伤害来源',
|
||||
rejizhi:'集智',
|
||||
|
|
|
@ -1411,23 +1411,25 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
"step 0"
|
||||
if(trigger.delay==false) game.delay();
|
||||
"step 1"
|
||||
var du=false;
|
||||
var du=1;
|
||||
if(trigger.cards.length==1&&trigger.cards[0].name=='du'){
|
||||
du=true;
|
||||
du=-1;
|
||||
}
|
||||
else if(trigger.cards.length==2){
|
||||
else{
|
||||
for(var i=0;i<trigger.cards.length;i++){
|
||||
if(trigger.cards[i].name=='du'){
|
||||
du=true;break;
|
||||
du=-1;break;
|
||||
}
|
||||
}
|
||||
if(du==-1&&trigger.cards.length>2){
|
||||
du=0;
|
||||
}
|
||||
}
|
||||
player.chooseTarget(get.prompt('lzhangyi'),function(card,player,target){
|
||||
return player!=target
|
||||
}).set('du',du).ai=function(target){
|
||||
var att=get.attitude(_status.event.player,target);
|
||||
if(_status.event.du) return -att;
|
||||
return att;
|
||||
return att*_status.event.du;
|
||||
};
|
||||
"step 2"
|
||||
if(result.bool){
|
||||
|
|
|
@ -8862,6 +8862,9 @@
|
|||
game.check();
|
||||
},
|
||||
t:function(num){
|
||||
if(game.players.contains(num)){
|
||||
num=game.players.indexOf(num);
|
||||
}
|
||||
if(num==undefined){
|
||||
for(var i=0;i<game.players.length;i++) cheat.t(i);
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue