This commit is contained in:
libccy 2017-03-31 23:27:04 +08:00
parent 671b482e9d
commit 552f76a58d
3 changed files with 31 additions and 5 deletions

View File

@ -846,7 +846,7 @@ card.guozhan={
} }
"step 1" "step 1"
if(result.bool){ if(result.bool){
player.phase(); player.insertPhase();
} }
}, },
}, },

View File

@ -174,16 +174,23 @@ character.hearth={
priority:-50, priority:-50,
direct:true, direct:true,
filter:function(event,player){ filter:function(event,player){
if(get.mode()=='identity'&&_status.mode=='zhong'&&
game.zhu&&!game.zhu.isZhu&&player==game.zhong){
return false;
}
return !player.isTurnedOver(); return !player.isTurnedOver();
}, },
content:function(){ content:function(){
'step 0' 'step 0'
player.chooseTarget(get.prompt('mengye'),function(card,player,target){ player.chooseTarget(get.prompt('mengye'),function(card,player,target){
if(target==player){
return false;
}
if(get.mode()=='identity'&&_status.mode=='zhong'&&game.zhu&&!game.zhu.isZhu){ if(get.mode()=='identity'&&_status.mode=='zhong'&&game.zhu&&!game.zhu.isZhu){
return target==game.zhong; return target==game.zhong;
} }
if(target.identity=='zhu'||get.is.jun(target)) return false; if(target.identity=='zhu'||get.is.jun(target)) return false;
return target!=player; return true;
}).ai=function(target){ }).ai=function(target){
var att=-ai.get.attitude(player,target); var att=-ai.get.attitude(player,target);
if(att<=0) return 0; if(att<=0) return 0;
@ -220,7 +227,7 @@ character.hearth={
target.unmarkSkill('mad'); target.unmarkSkill('mad');
} }
player.out('mengye'); player.out('mengye');
target.phase(); target.insertPhase();
}, },
ai:{ ai:{
threaten:2 threaten:2
@ -3197,7 +3204,7 @@ character.hearth={
}, },
content:function(){ content:function(){
player.draw(); player.draw();
player.phase(); player.insertPhase();
}, },
ai:{ ai:{
threaten:1.8 threaten:1.8

View File

@ -13063,31 +13063,50 @@
} }
this.node.identity.dataset.color=identity; this.node.identity.dataset.color=identity;
}, },
insertPhase:function(){
var evt=_status.event.getParent('phase');
var next;
if(evt&&evt.parent&&evt.parent.next){
next=game.createEvent('phase',null,evt.parent);
console.log(evt.parent);
}
else{
next=game.createEvent('phase');
}
next.player=this;
next.setContent('phase');
return next;
},
phase:function(){ phase:function(){
var next=game.createEvent('phase'); var next=game.createEvent('phase');
next.player=this; next.player=this;
next.setContent('phase'); next.setContent('phase');
return next;
}, },
phaseJudge:function(){ phaseJudge:function(){
var next=game.createEvent('phaseJudge'); var next=game.createEvent('phaseJudge');
next.player=this; next.player=this;
next.setContent('phaseJudge'); next.setContent('phaseJudge');
return next;
}, },
phaseDraw:function(){ phaseDraw:function(){
var next=game.createEvent('phaseDraw'); var next=game.createEvent('phaseDraw');
next.player=this; next.player=this;
next.num=2; next.num=2;
next.setContent('phaseDraw'); next.setContent('phaseDraw');
return next;
}, },
phaseUse:function(){ phaseUse:function(){
var next=game.createEvent('phaseUse'); var next=game.createEvent('phaseUse');
next.player=this; next.player=this;
next.setContent('phaseUse'); next.setContent('phaseUse');
return next;
}, },
phaseDiscard:function(){ phaseDiscard:function(){
var next=game.createEvent('phaseDiscard'); var next=game.createEvent('phaseDiscard');
next.player=this; next.player=this;
next.setContent('phaseDiscard'); next.setContent('phaseDiscard');
return next;
}, },
chooseToUse:function(use){ chooseToUse:function(use){
var next=game.createEvent('chooseToUse'); var next=game.createEvent('chooseToUse');
@ -38459,7 +38478,7 @@
return num?Math.round(9*(num-1)/8+1):'sp'; return num?Math.round(9*(num-1)/8+1):'sp';
} }
} }
return num?Math.round(6*(num-1)/8+1):'x'; return num?Math.round(9*(num-1)/8+1):'x';
}, },
targetsInfo:function(targets){ targetsInfo:function(targets){
var info=[]; var info=[];