国战模式修复
This commit is contained in:
parent
5ceab31d83
commit
f64dfd3ddb
|
@ -966,7 +966,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
|
||||||
equipSkill:true,
|
equipSkill:true,
|
||||||
mod:{
|
mod:{
|
||||||
maxHandcard:function(player,num){
|
maxHandcard:function(player,num){
|
||||||
if(!player.isEmpty(2)) return;
|
if(!player.hasEmptySlot(2)) return;
|
||||||
if(player.hasSkill('huangjintianbingfu')){
|
if(player.hasSkill('huangjintianbingfu')){
|
||||||
num+=player.getExpansions('huangjintianbingfu').length;
|
num+=player.getExpansions('huangjintianbingfu').length;
|
||||||
}
|
}
|
||||||
|
@ -978,14 +978,14 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
|
||||||
audio:'tianshu',
|
audio:'tianshu',
|
||||||
inherit:'taipingyaoshu',
|
inherit:'taipingyaoshu',
|
||||||
filter:function(event,player){
|
filter:function(event,player){
|
||||||
if(!player.isEmpty(2)) return false;
|
if(!player.hasEmptySlot(2)) return false;
|
||||||
return lib.skill.taipingyaoshu.filter(event,player);
|
return lib.skill.taipingyaoshu.filter(event,player);
|
||||||
},
|
},
|
||||||
noHidden:true,
|
noHidden:true,
|
||||||
ai:{
|
ai:{
|
||||||
effect:{
|
effect:{
|
||||||
target:function(card,player,target){
|
target:function(card,player,target){
|
||||||
if(!target.isEmpty(2)) return;
|
if(!target.hasEmptySlot(2)) return;
|
||||||
if(player==target&&get.subtype(card)=='equip2'){
|
if(player==target&&get.subtype(card)=='equip2'){
|
||||||
if(get.equipValue(card)<=7.5) return 0;
|
if(get.equipValue(card)<=7.5) return 0;
|
||||||
}
|
}
|
||||||
|
@ -12127,7 +12127,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
|
||||||
if(player==target) return false;
|
if(player==target) return false;
|
||||||
var card=ui.selected.cards[0];
|
var card=ui.selected.cards[0];
|
||||||
if(get.type(card)!='equip') return true;
|
if(get.type(card)!='equip') return true;
|
||||||
return target.isEmpty(get.subtype(card));
|
return target.canEquip(card);
|
||||||
},
|
},
|
||||||
prompt:get.prompt2('gzhuyuan'),
|
prompt:get.prompt2('gzhuyuan'),
|
||||||
complexSelect:true,
|
complexSelect:true,
|
||||||
|
@ -12193,7 +12193,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
|
||||||
},
|
},
|
||||||
position:'he',
|
position:'he',
|
||||||
filterTarget:function(card,player,target){
|
filterTarget:function(card,player,target){
|
||||||
return target.isEmpty(get.subtype(card));
|
return target.canEquip(card);
|
||||||
},
|
},
|
||||||
ai1:function(card){
|
ai1:function(card){
|
||||||
return 6-get.value(card);
|
return 6-get.value(card);
|
||||||
|
|
Loading…
Reference in New Issue