This commit is contained in:
libccy 2017-02-07 00:34:20 +08:00
parent 5d85d3ff50
commit a0d5ed9f7c
4 changed files with 8 additions and 45 deletions

View File

@ -4190,11 +4190,7 @@ card.swd={
trigger:{player:'phaseEnd'},
frequent:true,
filter:function(event,player){
if(player.hp==player.maxHp) return false;
for(var i=0;i<game.players.length;i++){
if(player.hp>game.players[i].hp) return false;
}
return true;
return player.isLowestHp();
},
content:function(){
player.recover();

View File

@ -38,13 +38,7 @@ character.gujian={
return ai.get.attitude(player,event.player)>0;
},
filter:function(event,player){
var nh=event.player.num('h');
for(var i=0;i<game.players.length;i++){
if(game.players[i]!=event.player&&game.players[i].num('h')<nh){
return false;
}
}
return true;
return event.player.isFewestHandcard();
},
logTarget:'player',
content:function(){
@ -815,23 +809,12 @@ character.gujian={
if(target.isTurnedOver()) return true;
if(target.num('j')) return true;
if(target.hp==target.maxHp) return false;
for(var i=0;i<game.players.length;i++){
if(game.players[i].hp<target.hp){
return false;
}
}
return true;
return target.isLowestHp();
}).ai=function(target){
var num=0;
var att=ai.get.attitude(player,target);
if(att>0){
var min=true;
for(var i=0;i<game.players.length;i++){
if(game.players[i].hp<target.hp){
min=false;break;
}
}
if(min){
if(target.isLowestHp()){
num+=5;
}
if(target.isTurnedOver()){
@ -871,13 +854,7 @@ character.gujian={
event.target.discard(cards);
}
"step 5"
var min=true;
for(var i=0;i<game.players.length;i++){
if(game.players[i].hp<event.target.hp){
min=false;break;
}
}
if(min){
if(event.target.isLowestHp()){
event.target.recover();
}
},

View File

@ -693,10 +693,7 @@ character.shenhua={
filter:function(event,player){
if(!player.hasZhuSkill('ruoyu'))return false;
if(player.storage.ruoyu) return false;
for(var i=0;i<game.players.length;i++){
if(game.players[i].hp<player.hp) return false;
}
return true;
return player.isLowestHp();
},
content:function(){
player.storage.ruoyu=true;
@ -2393,10 +2390,7 @@ character.shenhua={
return false;
},
filter:function(event,player){
for(var i=0;i<game.players.length;i++){
if(game.players[i]!=player&&game.players[i].hp<player.hp) return true;
}
return false;
return !player.isLowestHp();
},
content:function(){
"step 0"

View File

@ -214,11 +214,7 @@ character.swd={
enable:'phaseUse',
usable:1,
filter:function(event,player){
var nh=player.num('h');
for(var i=0;i<game.players.length;i++){
if(game.players[i]!=player&&game.players[i].num('h')<nh) return false;
}
return true;
return player.isFewestHandcard();
},
filterTarget:function(card,player,target){
return target!=player&&target.num('h')>0;