This commit is contained in:
parent
5d85d3ff50
commit
a0d5ed9f7c
|
@ -4190,11 +4190,7 @@ card.swd={
|
||||||
trigger:{player:'phaseEnd'},
|
trigger:{player:'phaseEnd'},
|
||||||
frequent:true,
|
frequent:true,
|
||||||
filter:function(event,player){
|
filter:function(event,player){
|
||||||
if(player.hp==player.maxHp) return false;
|
return player.isLowestHp();
|
||||||
for(var i=0;i<game.players.length;i++){
|
|
||||||
if(player.hp>game.players[i].hp) return false;
|
|
||||||
}
|
|
||||||
return true;
|
|
||||||
},
|
},
|
||||||
content:function(){
|
content:function(){
|
||||||
player.recover();
|
player.recover();
|
||||||
|
|
|
@ -38,13 +38,7 @@ character.gujian={
|
||||||
return ai.get.attitude(player,event.player)>0;
|
return ai.get.attitude(player,event.player)>0;
|
||||||
},
|
},
|
||||||
filter:function(event,player){
|
filter:function(event,player){
|
||||||
var nh=event.player.num('h');
|
return event.player.isFewestHandcard();
|
||||||
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;
|
|
||||||
},
|
},
|
||||||
logTarget:'player',
|
logTarget:'player',
|
||||||
content:function(){
|
content:function(){
|
||||||
|
@ -815,23 +809,12 @@ character.gujian={
|
||||||
if(target.isTurnedOver()) return true;
|
if(target.isTurnedOver()) return true;
|
||||||
if(target.num('j')) return true;
|
if(target.num('j')) return true;
|
||||||
if(target.hp==target.maxHp) return false;
|
if(target.hp==target.maxHp) return false;
|
||||||
for(var i=0;i<game.players.length;i++){
|
return target.isLowestHp();
|
||||||
if(game.players[i].hp<target.hp){
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return true;
|
|
||||||
}).ai=function(target){
|
}).ai=function(target){
|
||||||
var num=0;
|
var num=0;
|
||||||
var att=ai.get.attitude(player,target);
|
var att=ai.get.attitude(player,target);
|
||||||
if(att>0){
|
if(att>0){
|
||||||
var min=true;
|
if(target.isLowestHp()){
|
||||||
for(var i=0;i<game.players.length;i++){
|
|
||||||
if(game.players[i].hp<target.hp){
|
|
||||||
min=false;break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if(min){
|
|
||||||
num+=5;
|
num+=5;
|
||||||
}
|
}
|
||||||
if(target.isTurnedOver()){
|
if(target.isTurnedOver()){
|
||||||
|
@ -871,13 +854,7 @@ character.gujian={
|
||||||
event.target.discard(cards);
|
event.target.discard(cards);
|
||||||
}
|
}
|
||||||
"step 5"
|
"step 5"
|
||||||
var min=true;
|
if(event.target.isLowestHp()){
|
||||||
for(var i=0;i<game.players.length;i++){
|
|
||||||
if(game.players[i].hp<event.target.hp){
|
|
||||||
min=false;break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if(min){
|
|
||||||
event.target.recover();
|
event.target.recover();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -693,10 +693,7 @@ character.shenhua={
|
||||||
filter:function(event,player){
|
filter:function(event,player){
|
||||||
if(!player.hasZhuSkill('ruoyu'))return false;
|
if(!player.hasZhuSkill('ruoyu'))return false;
|
||||||
if(player.storage.ruoyu) return false;
|
if(player.storage.ruoyu) return false;
|
||||||
for(var i=0;i<game.players.length;i++){
|
return player.isLowestHp();
|
||||||
if(game.players[i].hp<player.hp) return false;
|
|
||||||
}
|
|
||||||
return true;
|
|
||||||
},
|
},
|
||||||
content:function(){
|
content:function(){
|
||||||
player.storage.ruoyu=true;
|
player.storage.ruoyu=true;
|
||||||
|
@ -2393,10 +2390,7 @@ character.shenhua={
|
||||||
return false;
|
return false;
|
||||||
},
|
},
|
||||||
filter:function(event,player){
|
filter:function(event,player){
|
||||||
for(var i=0;i<game.players.length;i++){
|
return !player.isLowestHp();
|
||||||
if(game.players[i]!=player&&game.players[i].hp<player.hp) return true;
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
},
|
},
|
||||||
content:function(){
|
content:function(){
|
||||||
"step 0"
|
"step 0"
|
||||||
|
|
|
@ -214,11 +214,7 @@ character.swd={
|
||||||
enable:'phaseUse',
|
enable:'phaseUse',
|
||||||
usable:1,
|
usable:1,
|
||||||
filter:function(event,player){
|
filter:function(event,player){
|
||||||
var nh=player.num('h');
|
return player.isFewestHandcard();
|
||||||
for(var i=0;i<game.players.length;i++){
|
|
||||||
if(game.players[i]!=player&&game.players[i].num('h')<nh) return false;
|
|
||||||
}
|
|
||||||
return true;
|
|
||||||
},
|
},
|
||||||
filterTarget:function(card,player,target){
|
filterTarget:function(card,player,target){
|
||||||
return target!=player&&target.num('h')>0;
|
return target!=player&&target.num('h')>0;
|
||||||
|
|
Loading…
Reference in New Issue