This commit is contained in:
parent
120e2dc6f3
commit
11d6dfa674
|
@ -96,7 +96,7 @@ card.extra={
|
||||||
if(game.hasPlayer(function(current){
|
if(game.hasPlayer(function(current){
|
||||||
return (ai.get.attitude(target,current)<0&&
|
return (ai.get.attitude(target,current)<0&&
|
||||||
target.canUse(card,current,true,true)&&
|
target.canUse(card,current,true,true)&&
|
||||||
!current.num('e','baiyin')&&
|
!current.getEquip('baiyin')&&
|
||||||
ai.get.effect(current,card,target)>0);
|
ai.get.effect(current,card,target)>0);
|
||||||
})){
|
})){
|
||||||
return 1;
|
return 1;
|
||||||
|
|
|
@ -122,7 +122,7 @@ card.standard={
|
||||||
},
|
},
|
||||||
result:{
|
result:{
|
||||||
target:function(player,target){
|
target:function(player,target){
|
||||||
if(player.hasSkill('jiu')&&!target.num('e','baiyin')){
|
if(player.hasSkill('jiu')&&!target.getEquip('baiyin')){
|
||||||
if(ai.get.attitude(player,target)>0){
|
if(ai.get.attitude(player,target)>0){
|
||||||
return -6;
|
return -6;
|
||||||
}
|
}
|
||||||
|
|
|
@ -219,10 +219,10 @@ character.diy={
|
||||||
var subtype=get.subtype(event.cards[0]);
|
var subtype=get.subtype(event.cards[0]);
|
||||||
if(att>0){
|
if(att>0){
|
||||||
if(event.player.countCards('h')>=player.countCards('h')+2) return true;
|
if(event.player.countCards('h')>=player.countCards('h')+2) return true;
|
||||||
return event.player.num('e',{subtype:subtype})==0;
|
return event.player.countCards('e',{subtype:subtype})==0;
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
return event.player.num('e',{subtype:subtype})>0;
|
return event.player.countCards('e',{subtype:subtype})>0;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
content:function(){
|
content:function(){
|
||||||
|
|
|
@ -182,7 +182,7 @@ character.refresh={
|
||||||
effect:{
|
effect:{
|
||||||
target:function(card,player,target){
|
target:function(card,player,target){
|
||||||
if(player==target&&get.type(card)=='equip'){
|
if(player==target&&get.type(card)=='equip'){
|
||||||
if(player.num('e',{subtype:get.subtype(card)})){
|
if(player.countCards('e',{subtype:get.subtype(card)})){
|
||||||
if(game.hasPlayer(function(current){
|
if(game.hasPlayer(function(current){
|
||||||
return current!=player&&ai.get.attitude(player,current)>0;
|
return current!=player&&ai.get.attitude(player,current)>0;
|
||||||
})){
|
})){
|
||||||
|
|
|
@ -253,7 +253,7 @@ character.shenhua={
|
||||||
return current!=player&&ai.get.attitude(player,current)>3;
|
return current!=player&&ai.get.attitude(player,current)>3;
|
||||||
});
|
});
|
||||||
var player=_status.event.player;
|
var player=_status.event.player;
|
||||||
var num=player.num('he',function(card){
|
var num=player.countCards('he',function(card){
|
||||||
return ai.get.value(card)<7;
|
return ai.get.value(card)<7;
|
||||||
});
|
});
|
||||||
var count=null;
|
var count=null;
|
||||||
|
@ -964,7 +964,7 @@ character.shenhua={
|
||||||
return !targets1.hasJudge(button.link.viewAs||button.link.name);
|
return !targets1.hasJudge(button.link.viewAs||button.link.name);
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
return !targets1.num('e',{subtype:get.subtype(button.link)});
|
return !targets1.countCards('e',{subtype:get.subtype(button.link)});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -3310,7 +3310,7 @@ character.shenhua={
|
||||||
var hastarget=game.hasPlayer(function(current){
|
var hastarget=game.hasPlayer(function(current){
|
||||||
return ai.get.attitude(target,current)<0;
|
return ai.get.attitude(target,current)<0;
|
||||||
});
|
});
|
||||||
var be=target.num('e',{color:'black'});
|
var be=target.countCards('e',{color:'black'});
|
||||||
if(target.countCards('h','shan')&&be){
|
if(target.countCards('h','shan')&&be){
|
||||||
if(!target.hasSkill('guidao')) return 0;
|
if(!target.hasSkill('guidao')) return 0;
|
||||||
return [0,hastarget?target.countCards('he')/2:0];
|
return [0,hastarget?target.countCards('he')/2:0];
|
||||||
|
@ -3952,7 +3952,7 @@ character.shenhua={
|
||||||
var hastarget=game.hasPlayer(function(current){
|
var hastarget=game.hasPlayer(function(current){
|
||||||
return ai.get.attitude(target,current)<0;
|
return ai.get.attitude(target,current)<0;
|
||||||
});
|
});
|
||||||
if(target.countCards('h','shan')&&target.num('e',{suit:'spade'})){
|
if(target.countCards('h','shan')&&target.countCards('e',{suit:'spade'})){
|
||||||
return [0,hastarget?target.countCards('he')/2:0];
|
return [0,hastarget?target.countCards('he')/2:0];
|
||||||
}
|
}
|
||||||
if(target.countCards('h','shan')){
|
if(target.countCards('h','shan')){
|
||||||
|
|
|
@ -556,7 +556,7 @@ character.standard={
|
||||||
effect:{
|
effect:{
|
||||||
target:function(card,player,target){
|
target:function(card,player,target){
|
||||||
if(player==target&&get.type(card)=='equip'){
|
if(player==target&&get.type(card)=='equip'){
|
||||||
if(player.num('e',{subtype:get.subtype(card)})){
|
if(player.countCards('e',{subtype:get.subtype(card)})){
|
||||||
var players=game.filterPlayer();
|
var players=game.filterPlayer();
|
||||||
for(var i=0;i<players.length;i++){
|
for(var i=0;i<players.length;i++){
|
||||||
if(players[i]!=player&&ai.get.attitude(player,players[i])>0){
|
if(players[i]!=player&&ai.get.attitude(player,players[i])>0){
|
||||||
|
|
|
@ -2718,7 +2718,7 @@ character.swd={
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(target.countCards('h')>2||target.num('e',{color:'black'})){
|
if(target.countCards('h')>2||target.countCards('e',{color:'black'})){
|
||||||
return [1,0,0,-1];
|
return [1,0,0,-1];
|
||||||
}
|
}
|
||||||
return [1,-0.5];
|
return [1,-0.5];
|
||||||
|
@ -3224,7 +3224,7 @@ character.swd={
|
||||||
player:function(card,player){
|
player:function(card,player){
|
||||||
if(_status.currentPhase!=player) return;
|
if(_status.currentPhase!=player) return;
|
||||||
if(get.type(card)=='equip'&&
|
if(get.type(card)=='equip'&&
|
||||||
player.num('e',{subtype:get.subtype(card)})&&
|
player.countCards('e',{subtype:get.subtype(card)})&&
|
||||||
lib.filter.filterCard({name:'sha'},player)){
|
lib.filter.filterCard({name:'sha'},player)){
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -7133,7 +7133,7 @@ character.swd={
|
||||||
event.finish();
|
event.finish();
|
||||||
}
|
}
|
||||||
"step 5"
|
"step 5"
|
||||||
var renum=event.current.num('e',{color:event.color});
|
var renum=event.current.countCards('e',{color:event.color});
|
||||||
if(renum){
|
if(renum){
|
||||||
event.current.recover();
|
event.current.recover();
|
||||||
}
|
}
|
||||||
|
|
|
@ -2712,7 +2712,7 @@ character.yxs={
|
||||||
player.chooseTarget('选择一个角色装备'+get.translation(result.links),function(card,player,target){
|
player.chooseTarget('选择一个角色装备'+get.translation(result.links),function(card,player,target){
|
||||||
return !target.isMin();
|
return !target.isMin();
|
||||||
}).ai=function(target){
|
}).ai=function(target){
|
||||||
if(!target.num('e',{subtype:get.subtype(event.card)})){
|
if(!target.countCards('e',{subtype:get.subtype(event.card)})){
|
||||||
return ai.get.attitude(player,target);
|
return ai.get.attitude(player,target);
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
@ -18667,13 +18667,13 @@
|
||||||
logv:false,
|
logv:false,
|
||||||
prompt:'将要重铸的牌置入弃牌堆并摸一张牌',
|
prompt:'将要重铸的牌置入弃牌堆并摸一张牌',
|
||||||
filter:function(event,player){
|
filter:function(event,player){
|
||||||
return (player.hasCard(function(card){
|
return player.hasCard(function(card){
|
||||||
var info=get.info(card);
|
var info=get.info(card);
|
||||||
if(typeof info.chongzhu=='function'){
|
if(typeof info.chongzhu=='function'){
|
||||||
return info.chongzhu(event,player);
|
return info.chongzhu(event,player);
|
||||||
}
|
}
|
||||||
return info.chongzhu;
|
return info.chongzhu;
|
||||||
})>0);
|
});
|
||||||
},
|
},
|
||||||
filterCard:function(card){
|
filterCard:function(card){
|
||||||
var info=get.info(card);
|
var info=get.info(card);
|
||||||
|
|
|
@ -2527,7 +2527,7 @@ mode.boss={
|
||||||
hastarget=true;break;
|
hastarget=true;break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
var be=target.num('e',{color:'black'});
|
var be=target.countCards('e',{color:'black'});
|
||||||
if(target.countCards('h','shan')&&be){
|
if(target.countCards('h','shan')&&be){
|
||||||
if(!target.hasSkill('guidao')) return 0;
|
if(!target.hasSkill('guidao')) return 0;
|
||||||
return [0,hastarget?target.countCards('he')/2:0];
|
return [0,hastarget?target.countCards('he')/2:0];
|
||||||
|
|
|
@ -1482,7 +1482,7 @@ mode.guozhan={
|
||||||
effect:{
|
effect:{
|
||||||
target:function(card,player,target){
|
target:function(card,player,target){
|
||||||
if(player==target&&get.type(card)=='equip'){
|
if(player==target&&get.type(card)=='equip'){
|
||||||
if(player.num('e',{subtype:get.subtype(card)})){
|
if(player.countCards('e',{subtype:get.subtype(card)})){
|
||||||
var players=game.filterPlayer();
|
var players=game.filterPlayer();
|
||||||
for(var i=0;i<players.length;i++){
|
for(var i=0;i<players.length;i++){
|
||||||
if(players[i]!=player&&ai.get.attitude(player,players[i])>0){
|
if(players[i]!=player&&ai.get.attitude(player,players[i])>0){
|
||||||
|
|
Loading…
Reference in New Issue