This commit is contained in:
libccy 2017-09-15 16:07:52 +08:00
parent 8025761c07
commit b06ff23f85
2 changed files with 22 additions and 44 deletions

View File

@ -2176,8 +2176,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
} }
"step 2" "step 2"
if(!result.bool){ if(!result.bool){
trigger.untrigger(); trigger.cancel();
trigger.finish();
trigger.player.skip('phaseDiscard'); trigger.player.skip('phaseDiscard');
} }
}, },
@ -3776,8 +3775,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
"step 1" "step 1"
if(result.bool){ if(result.bool){
game.delay(2); game.delay(2);
trigger.untrigger(); trigger.cancel();
trigger.finish();
} }
else{ else{
event.finish(); event.finish();
@ -3825,8 +3823,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
} }
"step 1" "step 1"
if(result.bool){ if(result.bool){
trigger.untrigger(); trigger.cancel();
trigger.finish();
player.logSkill('xiaozhan'); player.logSkill('xiaozhan');
} }
}, },
@ -3978,8 +3975,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
player.logSkill('guisi'); player.logSkill('guisi');
trigger.player.gain(result.cards,player); trigger.player.gain(result.cards,player);
player.$give(result.cards,trigger.player); player.$give(result.cards,trigger.player);
trigger.untrigger(); trigger.cancel();
trigger.finish();
} }
}, },
}, },
@ -4841,8 +4837,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
"step 1" "step 1"
if(result.bool){ if(result.bool){
// player.chooseToDiscard('h',true); // player.chooseToDiscard('h',true);
trigger.untrigger(); trigger.cancel();
trigger.finish();
trigger.player.hp=1; trigger.player.hp=1;
if(trigger.player.maxHp<1) trigger.player.maxHp=1; if(trigger.player.maxHp<1) trigger.player.maxHp=1;
trigger.player.update(); trigger.player.update();
@ -5305,8 +5300,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
} }
"step 2" "step 2"
if(result.suit!='heart'){ if(result.suit!='heart'){
trigger.untrigger(); trigger.cancel();
trigger.finish();
} }
} }
}, },
@ -7134,8 +7128,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
"step 1" "step 1"
if(result.bool){ if(result.bool){
game.delay(); game.delay();
trigger.untrigger(); trigger.cancel();
trigger.finish();
} }
} }
}, },
@ -7642,8 +7635,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
"step 1" "step 1"
switch(result.suit){ switch(result.suit){
case 'spade':{ case 'spade':{
trigger.untrigger(); trigger.cancel();
trigger.finish();
break; break;
} }
case 'heart':{ case 'heart':{
@ -7793,8 +7785,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
return eff<=0; return eff<=0;
}, },
content:function(){ content:function(){
trigger.untrigger(); trigger.cancel();
trigger.finish();
player.recover(); player.recover();
}, },
}, },
@ -7955,8 +7946,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
forced:true, forced:true,
priority:10, priority:10,
content:function(){ content:function(){
trigger.untrigger(); trigger.cancel();
trigger.finish();
player.loseHp(); player.loseHp();
} }
}, },
@ -8002,8 +7992,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
content:function(){ content:function(){
if(Math.random()>(1.3+trigger.targets.length/5)/trigger.targets.length){ if(Math.random()>(1.3+trigger.targets.length/5)/trigger.targets.length){
trigger.target.popup('失误'); trigger.target.popup('失误');
trigger.untrigger(); trigger.cancel();
trigger.finish();
} }
} }
}, },
@ -8386,8 +8375,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
trigger:{player:'damageBefore'}, trigger:{player:'damageBefore'},
forced:true, forced:true,
content:function(){ content:function(){
trigger.untrigger(); trigger.cancel();
trigger.finish();
if(player.countCards('h')) player.loseHp(); if(player.countCards('h')) player.loseHp();
}, },
ai:{ ai:{
@ -8921,8 +8909,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
}, },
forced:true, forced:true,
content:function(){ content:function(){
trigger.untrigger(); trigger.cancel();
trigger.finish();
}, },
}, },
ljifeng:{ ljifeng:{
@ -8966,8 +8953,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
player.logSkill('ljifeng',result.targets); player.logSkill('ljifeng',result.targets);
player.discard(result.cards); player.discard(result.cards);
player.useCard({name:'sha'},result.targets).animate=false; player.useCard({name:'sha'},result.targets).animate=false;
trigger.untrigger(); trigger.cancel();
trigger.finish();
} }
} }
}, },

View File

@ -171,8 +171,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
return false; return false;
}, },
content:function(){ content:function(){
trigger.untrigger(); trigger.cancel();
trigger.finish();
player.draw(2); player.draw(2);
player.recover(); player.recover();
player.addTempSkill('txianqu2'); player.addTempSkill('txianqu2');
@ -736,8 +735,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
mark:true, mark:true,
forced:true, forced:true,
content:function(){ content:function(){
trigger.untrigger(); trigger.cancel();
trigger.finish();
}, },
ai:{ ai:{
nofire:true, nofire:true,
@ -788,8 +786,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
logTarget:'player', logTarget:'player',
content:function(){ content:function(){
'step 0' 'step 0'
trigger.untrigger(); trigger.cancel();
trigger.finish();
player.awakenSkill('shiying'); player.awakenSkill('shiying');
player.storage.shiying=true; player.storage.shiying=true;
@ -998,8 +995,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
return player.hp>0&&event.num>0; return player.hp>0&&event.num>0;
}, },
content:function(){ content:function(){
trigger.untrigger(); trigger.cancel();
trigger.finish();
player.draw(2*trigger.num); player.draw(2*trigger.num);
}, },
group:'tanhua_remove', group:'tanhua_remove',
@ -1301,8 +1297,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
player.addSkill('fenglue_draw'); player.addSkill('fenglue_draw');
player.storage.fenglue_draw_num=0; player.storage.fenglue_draw_num=0;
player.storage.fenglue_draw=event.target; player.storage.fenglue_draw=event.target;
trigger.untrigger(); trigger.cancel();
trigger.finish();
event.cards=result.cards.slice(0); event.cards=result.cards.slice(0);
player.lose(event.cards,ui.special); player.lose(event.cards,ui.special);
} }
@ -3792,8 +3787,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
}); });
"step 1" "step 1"
if(result.bool){ if(result.bool){
trigger.untrigger(); trigger.cancel();
trigger.finish();
} }
} }
}, },
@ -4006,8 +4000,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
else{ else{
return; return;
} }
trigger.untrigger(); trigger.cancel();
trigger.finish();
// player.popup('xiaoyao'); // player.popup('xiaoyao');
}, },
ai:{ ai:{
@ -4064,8 +4057,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
}, },
forced:true, forced:true,
content:function(){ content:function(){
trigger.untrigger(); trigger.cancel();
trigger.finish();
}, },
ai:{ ai:{
nofire:true, nofire:true,