This commit is contained in:
libccy 2017-07-16 09:24:13 +08:00
parent 5739bf3587
commit 87dabc24ee
2 changed files with 42 additions and 2 deletions

View File

@ -1475,6 +1475,8 @@ game.import('character',function(lib,game,ui,get,ai,_status){
gw_zhangyujushou:'章鱼巨兽', gw_zhangyujushou:'章鱼巨兽',
gw_zhuoertan:'卓尔坦', gw_zhuoertan:'卓尔坦',
gwjushi:'巨噬',
gwjushi_info:'出牌阶段限一次你可以将一名距离1以内的其他角色的一张随机牌置于你的武将牌上当你受到伤害后“巨噬”牌将回到原来的位置准备阶段若你有“巨噬”牌你移去之然后增加一点体力和体力上限',
bolang:'搏浪', bolang:'搏浪',
bolang_info:'准备阶段你可以观看牌堆顶的6张牌然后将其中至多3张移入弃牌堆每当你造成一次伤害你可以从弃牌堆中获得一张以此法移入弃牌堆的牌', bolang_info:'准备阶段你可以观看牌堆顶的6张牌然后将其中至多3张移入弃牌堆每当你造成一次伤害你可以从弃牌堆中获得一张以此法移入弃牌堆的牌',
lingji:'灵计', lingji:'灵计',

View File

@ -16606,7 +16606,7 @@
var group=lib.character[player.name1][1]; var group=lib.character[player.name1][1];
targets=game.filterPlayer(function(target){ targets=game.filterPlayer(function(target){
if(func&&!func(target)) return false; if(func&&!func(target)) return false;
return lib.character[target.name1][1]!=group; return target.identity=='ye'||lib.character[target.name1][1]!=group;
}); });
} }
} }
@ -16619,6 +16619,44 @@
targets.remove(player); targets.remove(player);
return targets; return targets;
}, },
getFriends:function(func){
var player=this;
var targets;
var mode=get.mode();
if(mode=='identity'){
switch(player.identity){
case 'zhu':case 'zhong':case 'mingzhong':targets=game.filterPlayer(function(target){
if(func&&!func(target)) return false;
return ['zhu','zhong','mingzhong'].contains(target.identity);
});break;
case 'nei':targets=[];break;
case 'fan':targets=game.filterPlayer(function(target){
if(func&&!func(target)) return false;
return target.identity=='fan';
});break;
}
}
else if(mode=='guozhan'){
if(player.identity=='ye'){
targets=[];
}
else{
var group=lib.character[player.name1][1];
targets=game.filterPlayer(function(target){
if(func&&!func(target)) return false;
return target.identity!='ye'&&lib.character[target.name1][1]==group;
});
}
}
else{
targets=game.filterPlayer(function(target){
if(func&&!func(target)) return false;
return target.side==player.side;
});
}
targets.remove(player);
return targets;
},
isEnemyOf:function(){ isEnemyOf:function(){
return !this.isFriendOf.apply(this,arguments); return !this.isFriendOf.apply(this,arguments);
}, },
@ -24183,7 +24221,7 @@
} }
else{ else{
try{ try{
lib.node.fs.rmdir(__dirname+'/extension/'+extname); lib.node.fs.rmdir(__dirname+'/extension/'+extname,function(){});
} }
catch(e){} catch(e){}
} }