This commit is contained in:
libccy 2017-02-28 12:36:17 +08:00
parent f54e1f8867
commit e9823be926
3 changed files with 35 additions and 17 deletions

View File

@ -1109,6 +1109,7 @@ character.shenhua={
if(ai.get.attitude(player,target)>0&&card.name=='juedou') return; if(ai.get.attitude(player,target)>0&&card.name=='juedou') return;
if(target.num('h')==0) return 2; if(target.num('h')==0) return 2;
if(target.hasSkill('ziliang')) return 0.7; if(target.hasSkill('ziliang')) return 0.7;
if(get.mode()=='guozhan') return 0.5;
return [0.5,Math.max(target.num('h')/4,target.num('h','sha')+target.num('h','shan'))]; return [0.5,Math.max(target.num('h')/4,target.num('h','sha')+target.num('h','shan'))];
} }
} }

View File

@ -736,13 +736,23 @@ character.standard={
position:'he', position:'he',
viewAs:{name:'sha'}, viewAs:{name:'sha'},
viewAsFilter:function(player){ viewAsFilter:function(player){
if(!player.num('he',{color:'red'})) return false; if(get.zhu(player,'shouyue')){
if(!player.num('he')) return false;
}
else{
if(!player.num('he',{color:'red'})) return false;
}
}, },
prompt:'将一张红色牌当杀使用或打出', prompt:'将一张红色牌当杀使用或打出',
check:function(card){return 4-ai.get.value(card)}, check:function(card){return 4-ai.get.value(card)},
ai:{ ai:{
skillTagFilter:function(player){ skillTagFilter:function(player){
if(!player.num('he',{color:'red'})) return false; if(get.zhu(player,'shouyue')){
if(!player.num('he')) return false;
}
else{
if(!player.num('he',{color:'red'})) return false;
}
}, },
respondSha:true, respondSha:true,
} }

View File

@ -286,6 +286,7 @@ mode.guozhan={
direct:true, direct:true,
filter:function(event,player){ filter:function(event,player){
if(event.responded) return false; if(event.responded) return false;
if(player.isUnseen()) return false;
if(!event.filterCard({name:'sha'})) return false; if(!event.filterCard({name:'sha'})) return false;
var zhu=get.zhu(player,'hongfa'); var zhu=get.zhu(player,'hongfa');
if(zhu&&zhu.storage.huangjintianbingfu&&zhu.storage.huangjintianbingfu.length>0){ if(zhu&&zhu.storage.huangjintianbingfu&&zhu.storage.huangjintianbingfu.length>0){
@ -317,6 +318,7 @@ mode.guozhan={
_hongfa:{ _hongfa:{
enable:'chooseToUse', enable:'chooseToUse',
filter:function(event,player){ filter:function(event,player){
if(player.isUnseen()) return false;
if(!event.filterCard({name:'sha'},player)) return false; if(!event.filterCard({name:'sha'},player)) return false;
var zhu=get.zhu(player,'hongfa'); var zhu=get.zhu(player,'hongfa');
if(zhu&&zhu.storage.huangjintianbingfu&&zhu.storage.huangjintianbingfu.length>0){ if(zhu&&zhu.storage.huangjintianbingfu&&zhu.storage.huangjintianbingfu.length>0){
@ -1527,23 +1529,28 @@ mode.guozhan={
}, },
content:function(){ content:function(){
'step 0' 'step 0'
var choice='主将'; if(get.is.jun(target)){
var skills=lib.character[target.name2][3]; event._result={control:'副将'};
for(var i=0;i<skills.length;i++){ }
var info=get.info(skills[i]); else{
if(info&&info.ai&&info.ai.maixie){ var choice='主将';
choice='副将';break; var skills=lib.character[target.name2][3];
for(var i=0;i<skills.length;i++){
var info=get.info(skills[i]);
if(info&&info.ai&&info.ai.maixie){
choice='副将';break;
}
} }
if(target.name=='gz_zhoutai'){
choice='主将';
}
else if(target.name2=='gz_zhoutai'){
choice='副将';
}
player.chooseControl('主将','副将',function(){
return _status.event.choice;
}).set('prompt','暗置'+get.translation(target)+'的一张武将牌').set('choice',choice);
} }
if(target.name=='gz_zhoutai'){
choice='主将';
}
else if(target.name2=='gz_zhoutai'){
choice='副将';
}
player.chooseControl('主将','副将',function(){
return _status.event.choice;
}).set('prompt','暗置'+get.translation(target)+'的一张武将牌').set('choice',choice);
'step 1' 'step 1'
if(result.control=='主将'){ if(result.control=='主将'){
target.hideCharacter(0); target.hideCharacter(0);