This commit is contained in:
parent
ec82f66c1e
commit
fda4d2d6ab
|
@ -263,10 +263,10 @@ character.ow={
|
||||||
position:'he',
|
position:'he',
|
||||||
check:function(card){
|
check:function(card){
|
||||||
var player=_status.event.player;
|
var player=_status.event.player;
|
||||||
for(var i=0;i<game.players.length;i++){
|
if(game.hasPlayer(function(current){
|
||||||
if(game.players[i].hp==1&&ai.get.attitude(player,game.players[i])>2){
|
return current.hp==1&&ai.get.attitude(player,current)>2;
|
||||||
return 7-ai.get.value(card);
|
})){
|
||||||
}
|
return 7-ai.get.value(card);
|
||||||
}
|
}
|
||||||
return 5-ai.get.value(card);
|
return 5-ai.get.value(card);
|
||||||
},
|
},
|
||||||
|
@ -611,40 +611,25 @@ character.ow={
|
||||||
liudan:{
|
liudan:{
|
||||||
trigger:{player:'useCard'},
|
trigger:{player:'useCard'},
|
||||||
check:function(event,player){
|
check:function(event,player){
|
||||||
var list=[];
|
return game.countPlayer(function(current){
|
||||||
for(var i=0;i<game.players.length;i++){
|
if(event.targets.contains(current)==false&¤t!=player&&
|
||||||
if(event.targets.contains(game.players[i])==false&&
|
lib.filter.targetEnabled(event.card,player,current)){
|
||||||
game.players[i]!=player&&
|
return ai.get.effect(current,event.card,player,player);
|
||||||
lib.filter.targetEnabled(event.card,player,game.players[i])){
|
}
|
||||||
list.push(game.players[i]);
|
})>=0;
|
||||||
}
|
|
||||||
}
|
|
||||||
var num=0;
|
|
||||||
for(var i=0;i<list.length;i++){
|
|
||||||
num+=ai.get.effect(list[i],event.card,player,player);
|
|
||||||
}
|
|
||||||
return num>=0;
|
|
||||||
},
|
},
|
||||||
filter:function(event,player){
|
filter:function(event,player){
|
||||||
if(event.card.name!='sha') return false;
|
if(event.card.name!='sha') return false;
|
||||||
for(var i=0;i<game.players.length;i++){
|
return game.hasPlayer(function(current){
|
||||||
if(event.targets.contains(game.players[i])==false&&
|
return (event.targets.contains(current)==false&¤t!=player&&
|
||||||
game.players[i]!=player&&
|
lib.filter.targetEnabled(event.card,player,current));
|
||||||
lib.filter.targetEnabled(event.card,player,game.players[i])){
|
});
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
},
|
},
|
||||||
content:function(){
|
content:function(){
|
||||||
var list=[];
|
var list=game.filterPlayer(function(current){
|
||||||
for(var i=0;i<game.players.length;i++){
|
return (trigger.targets.contains(current)==false&¤t!=player&&
|
||||||
if(trigger.targets.contains(game.players[i])==false&&
|
lib.filter.targetEnabled(trigger.card,player,current));
|
||||||
game.players[i]!=player&&
|
});
|
||||||
lib.filter.targetEnabled(trigger.card,player,game.players[i])){
|
|
||||||
list.push(game.players[i]);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if(list.length){
|
if(list.length){
|
||||||
var list2=[];
|
var list2=[];
|
||||||
for(var i=0;i<list.length;i++){
|
for(var i=0;i<list.length;i++){
|
||||||
|
|
Loading…
Reference in New Issue