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(target.num('h')==0) return 2;
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'))];
}
}

View File

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

View File

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