This commit is contained in:
libccy 2017-02-12 08:31:38 +08:00
parent 781fe04f5a
commit ec82f66c1e
1 changed files with 29 additions and 36 deletions

View File

@ -28,10 +28,9 @@ character.old={
if(!event.filterCard({name:'shan'})&&!!event.filterCard({name:'sha'})) return false; if(!event.filterCard({name:'shan'})&&!!event.filterCard({name:'sha'})) return false;
if(player.hasSkill('zhenshan2')) return false; if(player.hasSkill('zhenshan2')) return false;
var nh=player.num('h'); var nh=player.num('h');
for(var i=0;i<game.players.length;i++){ return game.hasPlayer(function(current){
if(game.players[i]!=player&&game.players[i].num('h')<nh) return true; return current!=player&&current.num('h')<nh;
} });
return false;
}, },
direct:true, direct:true,
content:function(){ content:function(){
@ -79,10 +78,9 @@ character.old={
viewAsFilter:function(player){ viewAsFilter:function(player){
if(player.hasSkill('zhenshan2')) return false; if(player.hasSkill('zhenshan2')) return false;
var nh=player.num('h'); var nh=player.num('h');
for(var i=0;i<game.players.length;i++){ return game.hasPlayer(function(current){
if(game.players[i]!=player&&game.players[i].num('h')<nh) return true; return current!=player&&current.num('h')<nh;
} });
return false;
}, },
precontent:function(){ precontent:function(){
'step 0' 'step 0'
@ -118,19 +116,18 @@ character.old={
skillTagFilter:function(player,tag,arg){ skillTagFilter:function(player,tag,arg){
if(player.hasSkill('zhenshan2')) return false; if(player.hasSkill('zhenshan2')) return false;
var nh=player.num('h'); var nh=player.num('h');
for(var i=0;i<game.players.length;i++){ return game.hasPlayer(function(current){
if(game.players[i]!=player&&game.players[i].num('h')<nh) return true; return current!=player&&current.num('h')<nh;
} });
return false;
}, },
order:function(){ order:function(){
var player=_status.event.player; var player=_status.event.player;
var nh=player.num('h'); var nh=player.num('h');
for(var i=0;i<game.players.length;i++){ if(game.hasPlayer(function(current){
if(ai.get.attitude(player,game.players[i])>0&&game.players[i].num('h')<nh){ return ai.get.attitude(player,current)>0&&current.num('h')<nh;
})){
return 2.9; return 2.9;
} }
}
return 0; return 0;
}, },
respondSha:true, respondSha:true,
@ -142,10 +139,9 @@ character.old={
viewAsFilter:function(player){ viewAsFilter:function(player){
if(player.hasSkill('zhenshan2')) return false; if(player.hasSkill('zhenshan2')) return false;
var nh=player.num('h'); var nh=player.num('h');
for(var i=0;i<game.players.length;i++){ return game.hasPlayer(function(current){
if(game.players[i]!=player&&game.players[i].num('h')<nh) return true; return current!=player&&current.num('h')<nh;
} });
return false;
}, },
log:false, log:false,
precontent:function(){ precontent:function(){
@ -182,19 +178,18 @@ character.old={
skillTagFilter:function(player,tag,arg){ skillTagFilter:function(player,tag,arg){
if(player.hasSkill('zhenshan2')) return false; if(player.hasSkill('zhenshan2')) return false;
var nh=player.num('h'); var nh=player.num('h');
for(var i=0;i<game.players.length;i++){ return game.hasPlayer(function(current){
if(game.players[i]!=player&&game.players[i].num('h')<nh) return true; return current!=player&&current.num('h')<nh;
} });
return false;
}, },
order:function(){ order:function(){
var player=_status.event.player; var player=_status.event.player;
var nh=player.num('h'); var nh=player.num('h');
for(var i=0;i<game.players.length;i++){ if(game.hasPlayer(function(current){
if(ai.get.attitude(player,game.players[i])>0&&game.players[i].num('h')<nh){ return ai.get.attitude(player,current)>0&&current.num('h')<nh;
})){
return _status.event.type=='dying'?0.5:4; return _status.event.type=='dying'?0.5:4;
} }
}
return 0; return 0;
}, },
save:true, save:true,
@ -206,10 +201,9 @@ character.old={
viewAsFilter:function(player){ viewAsFilter:function(player){
if(player.hasSkill('zhenshan2')) return false; if(player.hasSkill('zhenshan2')) return false;
var nh=player.num('h'); var nh=player.num('h');
for(var i=0;i<game.players.length;i++){ return game.hasPlayer(function(current){
if(game.players[i]!=player&&game.players[i].num('h')<nh) return true; return current!=player&&current.num('h')<nh;
} });
return false;
}, },
log:false, log:false,
precontent:function(){ precontent:function(){
@ -246,10 +240,9 @@ character.old={
skillTagFilter:function(player,tag,arg){ skillTagFilter:function(player,tag,arg){
if(player.hasSkill('zhenshan2')) return false; if(player.hasSkill('zhenshan2')) return false;
var nh=player.num('h'); var nh=player.num('h');
for(var i=0;i<game.players.length;i++){ return game.hasPlayer(function(current){
if(game.players[i]!=player&&game.players[i].num('h')<nh) return true; return current!=player&&current.num('h')<nh;
} });
return false;
}, },
order:0, order:0,
save:true, save:true,