This commit is contained in:
parent
b27cc9c9ae
commit
0d0531ae25
|
@ -1948,7 +1948,7 @@ character.ow={
|
|||
},
|
||||
content:function(){
|
||||
'step 0'
|
||||
player.chooseTarget('力场:令一名角色回复一点体力或摸两张牌',function(card,player,target){
|
||||
player.chooseTarget(get.prompt('lichang'),function(card,player,target){
|
||||
return get.distance(player,target)<=1;
|
||||
}).ai=function(target){
|
||||
var att=ai.get.attitude(player,target);
|
||||
|
@ -2821,71 +2821,9 @@ character.ow={
|
|||
},
|
||||
alter:true,
|
||||
content:function(){
|
||||
"step 0"
|
||||
var controls=['draw_card'];
|
||||
if(player.hp<player.maxHp){
|
||||
controls.push('recover_hp');
|
||||
}
|
||||
controls.push('cancel2');
|
||||
player.chooseControl(controls).set('prompt',get.prompt('ziyu')).set('ai',function(event,player){
|
||||
if(player.hp<player.maxHp) return 'recover_hp';
|
||||
return 'draw_card';
|
||||
});
|
||||
"step 1"
|
||||
if(result.control!='cancel2'){
|
||||
player.logSkill('ziyu');
|
||||
if(result.control=='draw_card'){
|
||||
player.draw();
|
||||
}
|
||||
else{
|
||||
player.recover();
|
||||
}
|
||||
}
|
||||
player.chooseDrawRecover(get.prompt('ziyu')).logSkill='ziyu';
|
||||
}
|
||||
},
|
||||
ziyu_old:{
|
||||
trigger:{global:'phaseBegin'},
|
||||
direct:true,
|
||||
filter:function(event,player){
|
||||
return event.player.hasSkill('ziyu3');
|
||||
},
|
||||
content:function(){
|
||||
"step 0"
|
||||
var controls=['draw_card'];
|
||||
if(player.hp<player.maxHp){
|
||||
controls.push('recover_hp');
|
||||
}
|
||||
controls.push('cancel2');
|
||||
player.chooseControl(controls).set('prompt',get.prompt('ziyu')).set('ai',function(event,player){
|
||||
if(player.hp<player.maxHp) return 'recover_hp';
|
||||
return 'draw_card';
|
||||
});
|
||||
"step 1"
|
||||
if(result.control!='cancel2'){
|
||||
player.logSkill('ziyu');
|
||||
if(result.control=='draw_card'){
|
||||
player.draw();
|
||||
}
|
||||
else{
|
||||
player.recover();
|
||||
}
|
||||
}
|
||||
},
|
||||
group:'ziyu2'
|
||||
},
|
||||
ziyu2:{
|
||||
trigger:{global:'recoverEnd'},
|
||||
forced:true,
|
||||
popup:false,
|
||||
silent:true,
|
||||
filter:function(event,player){
|
||||
return event.source==player&&event.player!=player;
|
||||
},
|
||||
content:function(){
|
||||
trigger.player.addTempSkill('ziyu3',{player:'phaseEnd'});
|
||||
}
|
||||
},
|
||||
ziyu3:{},
|
||||
shouhu:{
|
||||
mod:{
|
||||
cardEnabled:function(card){
|
||||
|
|
|
@ -509,23 +509,9 @@ character.shenhua={
|
|||
'step 0'
|
||||
event.num=trigger.num;
|
||||
'step 1'
|
||||
var controls=['draw_card','cancel2'];
|
||||
if(player.hp<player.maxHp) controls.unshift('recover_hp');
|
||||
player.chooseControl(controls).set('prompt',get.prompt('xinkuanggu')).set('ai',function(event,player){
|
||||
if(player.hp==player.maxHp) return 'draw_card';
|
||||
if(player.hp>=3&&player.num('h')<player.hp) return 'draw_card';
|
||||
if(player.hp==2&&player.num('h')==0) return 'draw_card';
|
||||
return 'recover_hp';
|
||||
});
|
||||
player.chooseDrawRecover(get.prompt('xinkuanggu')).set('logSkill','xinkuanggu');
|
||||
'step 2'
|
||||
if(result.control!='cancel2'){
|
||||
player.logSkill('xinkuanggu');
|
||||
if(result.control=='draw_card'){
|
||||
player.draw();
|
||||
}
|
||||
else{
|
||||
player.recover();
|
||||
}
|
||||
event.num--;
|
||||
if(event.num>0){
|
||||
event.goto(1);
|
||||
|
|
|
@ -6993,28 +6993,7 @@ character.sp={
|
|||
"step 1"
|
||||
if(result.bool){
|
||||
player.logSkill('shushen',result.targets);
|
||||
event.target=result.targets[0];
|
||||
if(event.target.hp==event.target.maxHp){
|
||||
event.target.draw(2);
|
||||
event.finish();
|
||||
}
|
||||
else{
|
||||
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.finish();
|
||||
}
|
||||
"step 2"
|
||||
if(result.control=='draw_card'){
|
||||
target.draw(2);
|
||||
}
|
||||
else{
|
||||
target.recover();
|
||||
result.targets[0].chooseDrawRecover(2,true);
|
||||
}
|
||||
},
|
||||
ai:{
|
||||
|
|
|
@ -761,26 +761,7 @@ character.yijiang={
|
|||
return false;
|
||||
},
|
||||
content:function(){
|
||||
"step 0"
|
||||
var controls=['draw_card'];
|
||||
if(player.hp<player.maxHp){
|
||||
controls.push('recover_hp');
|
||||
}
|
||||
controls.push('cancel2');
|
||||
player.chooseControl(controls).set('prompt',get.prompt('guizao')).set('ai',function(event,player){
|
||||
if(player.hp<player.maxHp) return 'recover_hp';
|
||||
return 'draw_card';
|
||||
});
|
||||
"step 1"
|
||||
if(result.control!='cancel2'){
|
||||
player.logSkill('guizao');
|
||||
if(result.control=='draw_card'){
|
||||
player.draw();
|
||||
}
|
||||
else{
|
||||
player.recover();
|
||||
}
|
||||
}
|
||||
player.chooseDrawRecover(get.prompt('guizao')).logSkill='guizao';
|
||||
},
|
||||
},
|
||||
jiyu:{
|
||||
|
@ -4887,18 +4868,11 @@ character.yijiang={
|
|||
},
|
||||
content:function(){
|
||||
"step 0"
|
||||
player.chooseControl('recover_hp','draw_card',function(event,player){
|
||||
if(player.hp>=2) return 'draw_card';
|
||||
return 'recover_hp';
|
||||
player.chooseDrawRecover(2,true,function(event,player){
|
||||
if(player.hp==1&&player.isDamaged()) return 'recover_hp';
|
||||
return 'draw_card';
|
||||
});
|
||||
"step 1"
|
||||
if(result.control=='draw_card'){
|
||||
player.draw(2);
|
||||
}
|
||||
else{
|
||||
player.recover();
|
||||
}
|
||||
"step 2"
|
||||
player.loseMaxHp();
|
||||
player.addSkill('paiyi');
|
||||
player.awakenSkill('zili');
|
||||
|
@ -5270,26 +5244,7 @@ character.yijiang={
|
|||
event.giver.$give(1,event.gainner);
|
||||
'step 2'
|
||||
if(event.gainner.num('h')==event.giver.num('h')){
|
||||
if(player.hp<player.maxHp){
|
||||
player.chooseControl('draw_card','recover_hp',function(event,player){
|
||||
if(player.hp>=3&&player.num('h')<player.hp) return 'draw_card';
|
||||
return 'recover_hp';
|
||||
});
|
||||
}
|
||||
else{
|
||||
player.draw();
|
||||
event.finish();
|
||||
}
|
||||
}
|
||||
else{
|
||||
event.finish();
|
||||
}
|
||||
'step 3'
|
||||
if(result.control=='draw_card'){
|
||||
player.draw();
|
||||
}
|
||||
else{
|
||||
player.recover();
|
||||
player.chooseDrawRecover(true);
|
||||
}
|
||||
},
|
||||
ai:{
|
||||
|
@ -6126,23 +6081,7 @@ character.yijiang={
|
|||
return false;
|
||||
},
|
||||
content:function(){
|
||||
"step 0"
|
||||
if(trigger.source.hp<trigger.source.maxHp){
|
||||
trigger.source.chooseControl('draw_card','recover_hp',function(event,target){
|
||||
return 'recover_hp';
|
||||
});
|
||||
}
|
||||
else{
|
||||
trigger.source.draw();
|
||||
event.finish();
|
||||
}
|
||||
"step 1"
|
||||
if(result.control=='draw_card'){
|
||||
trigger.source.draw();
|
||||
}
|
||||
else{
|
||||
trigger.source.recover();
|
||||
}
|
||||
trigger.source.chooseDrawRecover(true);
|
||||
},
|
||||
ai:{
|
||||
effect:{
|
||||
|
|
|
@ -13147,6 +13147,7 @@
|
|||
next.num2=1;
|
||||
}
|
||||
next.setContent('chooseDrawRecover');
|
||||
return next;
|
||||
},
|
||||
choosePlayerCard:function(){
|
||||
var next=game.createEvent('choosePlayerCard');
|
||||
|
|
|
@ -3021,27 +3021,9 @@ mode.guozhan={
|
|||
element:{
|
||||
content:{
|
||||
zhulian:function(){
|
||||
"step 0"
|
||||
player.popup('珠联璧合');
|
||||
game.log(player,'发动了【珠联璧合】');
|
||||
if(player.hp==player.maxHp){
|
||||
player.draw(2);
|
||||
event.finish();
|
||||
}
|
||||
else{
|
||||
player.chooseControl('draw_card','recover_hp',function(){
|
||||
if(player.hp>=2||player.hp>=player.maxHp-1) return 'draw_card';
|
||||
if(player.hp==2&&player.num('h')==0) return 'draw_card';
|
||||
return 'recover_hp';
|
||||
},ui.create.dialog('hidden','珠联璧合:选择一项奖励'));
|
||||
}
|
||||
"step 1"
|
||||
if(result.control=='draw_card'){
|
||||
player.draw(2);
|
||||
}
|
||||
else{
|
||||
player.recover();
|
||||
}
|
||||
player.chooseDrawRecover(2,true,'珠联璧合:摸两张牌或回复一点体力');
|
||||
}
|
||||
},
|
||||
player:{
|
||||
|
|
Loading…
Reference in New Issue