This commit is contained in:
parent
b92269ba9b
commit
b27cc9c9ae
|
@ -206,28 +206,11 @@ card.guozhan={
|
||||||
target.draw(targets.length-1);
|
target.draw(targets.length-1);
|
||||||
event.finish();
|
event.finish();
|
||||||
}
|
}
|
||||||
else if(target.hp==target.maxHp){
|
|
||||||
event.directdraw=true;
|
|
||||||
}
|
|
||||||
else{
|
else{
|
||||||
target.chooseControl('draw_card','recover_hp',function(event,target){
|
target.chooseDrawRecover(true);
|
||||||
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';
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
'step 1'
|
'step 1'
|
||||||
if(!event.directdraw&&result&&result.control=='recover_hp'){
|
target.link(false);
|
||||||
target.recover();
|
|
||||||
event.finish();
|
|
||||||
}
|
|
||||||
else{
|
|
||||||
target.draw();
|
|
||||||
}
|
|
||||||
'step 2'
|
|
||||||
if(target.isLinked()){
|
|
||||||
target.link();
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
ai:{
|
ai:{
|
||||||
order:3,
|
order:3,
|
||||||
|
|
|
@ -3245,27 +3245,7 @@ character.hearth={
|
||||||
if(result.bool){
|
if(result.bool){
|
||||||
event.target=result.targets[0];
|
event.target=result.targets[0];
|
||||||
player.logSkill('jiaohui',event.target);
|
player.logSkill('jiaohui',event.target);
|
||||||
if(event.target.hp<event.target.maxHp){
|
event.target.chooseDrawRecover(true);
|
||||||
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();
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -3385,28 +3365,7 @@ character.hearth={
|
||||||
"step 1"
|
"step 1"
|
||||||
if(result.bool){
|
if(result.bool){
|
||||||
player.logSkill('lingzhou',result.targets);
|
player.logSkill('lingzhou',result.targets);
|
||||||
var target=result.targets[0];
|
result.targets[0].chooseDrawRecover(true);
|
||||||
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();
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
ai:{
|
ai:{
|
||||||
|
|
|
@ -1961,28 +1961,7 @@ character.ow={
|
||||||
'step 1'
|
'step 1'
|
||||||
if(result.bool){
|
if(result.bool){
|
||||||
player.logSkill('lichang',result.targets);
|
player.logSkill('lichang',result.targets);
|
||||||
event.target=result.targets[0];
|
result.targets[0].chooseDrawRecover(2,true);
|
||||||
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();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue