This commit is contained in:
libccy 2017-03-21 20:17:27 +08:00
parent b92269ba9b
commit b27cc9c9ae
3 changed files with 5 additions and 84 deletions

View File

@ -206,28 +206,11 @@ card.guozhan={
target.draw(targets.length-1);
event.finish();
}
else if(target.hp==target.maxHp){
event.directdraw=true;
}
else{
target.chooseControl('draw_card','recover_hp',function(event,target){
if(target.hp>=2||target.hp>=target.maxHp-1) return 'draw_card';
if(target.hp==2&&target.num('h')==0) return 'draw_card';
return 'recover_hp';
});
target.chooseDrawRecover(true);
}
'step 1'
if(!event.directdraw&&result&&result.control=='recover_hp'){
target.recover();
event.finish();
}
else{
target.draw();
}
'step 2'
if(target.isLinked()){
target.link();
}
target.link(false);
},
ai:{
order:3,

View File

@ -3245,27 +3245,7 @@ character.hearth={
if(result.bool){
event.target=result.targets[0];
player.logSkill('jiaohui',event.target);
if(event.target.hp<event.target.maxHp){
event.target.chooseControl('draw_card','recover_hp',function(event,target){
if(target.hp>=2||target.hp>=target.maxHp-1) return 'draw_card';
if(target.hp==2&&target.num('h')==0) return 'draw_card';
return 'recover_hp';
});
}
else{
event.target.draw();
event.finish();
}
}
else{
event.finish();
}
'step 2'
if(result.control=='draw_card'){
event.target.draw(2);
}
else{
event.target.recover();
event.target.chooseDrawRecover(true);
}
},
},
@ -3385,28 +3365,7 @@ character.hearth={
"step 1"
if(result.bool){
player.logSkill('lingzhou',result.targets);
var target=result.targets[0];
if(target.hp<target.maxHp){
target.chooseControl('draw_card','recover_hp',function(event,target){
if(target.hp>=3&&target.num('h')<target.hp) return 'draw_card';
return 'recover_hp';
});
event.target=target;
}
else{
target.draw();
event.finish();
}
}
else{
event.finish();
}
"step 2"
if(result.control=='draw_card'){
event.target.draw();
}
else{
event.target.recover();
result.targets[0].chooseDrawRecover(true);
}
},
ai:{

View File

@ -1961,28 +1961,7 @@ character.ow={
'step 1'
if(result.bool){
player.logSkill('lichang',result.targets);
event.target=result.targets[0];
if(event.target.isHealthy()){
event.target.draw(2);
event.finish();
}
else{
event.target.chooseControl('draw_card','recover_hp',function(event,player){
if(player.hp>=3&&player.num('h')<=player.hp) return 'draw_card';
if(player.hp==2&&player.num('h')<=1) return 'draw_card';
return 'recover_hp';
});
}
}
else{
event.finish();
}
'step 2'
if(result.control=='draw_card'){
event.target.draw(2);
}
else{
event.target.recover();
result.targets[0].chooseDrawRecover(2,true);
}
}
},