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,18 +116,17 @@ 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;
}, },
@ -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,18 +178,17 @@ 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;
}, },
@ -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,