This commit is contained in:
libccy 2017-09-15 16:03:55 +08:00
parent 993383387f
commit 8025761c07
3 changed files with 18 additions and 36 deletions

View File

@ -1442,8 +1442,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
}, },
content:function(){ content:function(){
'step 0' 'step 0'
trigger.untrigger(); trigger.cancel();
trigger.finish();
if(trigger.player.countCards('e')){ if(trigger.player.countCards('e')){
trigger.player.chooseControl(function(event,player){ trigger.player.chooseControl(function(event,player){
if(player.hp==1) return 1; if(player.hp==1) return 1;
@ -1596,8 +1595,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
} }
} }
else{ else{
trigger.finish(); trigger.cancel();
trigger.untrigger();
event.finish(); event.finish();
} }
'step 3' 'step 3'
@ -1638,8 +1636,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
}, },
priority:-11, priority:-11,
content:function(){ content:function(){
trigger.untrigger(); trigger.cancel();
trigger.finish();
player.storage.kuanshi2.skip('phaseDraw'); player.storage.kuanshi2.skip('phaseDraw');
player.removeSkill('kuanshi2'); player.removeSkill('kuanshi2');
}, },
@ -3733,8 +3730,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
} }
} }
else{ else{
trigger.untrigger(); trigger.cancel();
trigger.finish();
} }
} }
else{ else{
@ -4242,8 +4238,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();
}, },
ai:{ ai:{
nofire:true, nofire:true,
@ -4391,8 +4386,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
ui.special.appendChild(trigger.card); ui.special.appendChild(trigger.card);
trigger.player.markSkill('zhenwei2'); trigger.player.markSkill('zhenwei2');
} }
trigger.untrigger(); trigger.cancel();
trigger.finish();
trigger.player.addSkill('zhenwei2'); trigger.player.addSkill('zhenwei2');
} }
game.delay(); game.delay();
@ -4547,8 +4541,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
return num>=3; return num>=3;
}, },
content:function(){ content:function(){
trigger.untrigger(); trigger.cancel();
trigger.finish();
var num=game.countPlayer(function(target){ var num=game.countPlayer(function(target){
return target.hp==player.hp; return target.hp==player.hp;
}); });
@ -4834,8 +4827,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
} }
'step 1' 'step 1'
player.draw(); player.draw();
trigger.untrigger(); trigger.cancel();
trigger.finish();
} }
}, },
target:{ target:{
@ -4860,8 +4852,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
"step 1" "step 1"
if(result.bool){ if(result.bool){
trigger.player.draw(); trigger.player.draw();
trigger.untrigger(); trigger.cancel();
trigger.finish();
} }
}, },
} }
@ -5703,8 +5694,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
player.logSkill('qingyi2',result.targets); player.logSkill('qingyi2',result.targets);
player.discard(result.cards[0]); player.discard(result.cards[0]);
player.useCard({name:'sha'},result.targets[0]); player.useCard({name:'sha'},result.targets[0]);
trigger.untrigger(); trigger.cancel();
trigger.finish();
} }
player.removeSkill('qingyi3'); player.removeSkill('qingyi3');
} }
@ -5724,8 +5714,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,
@ -6254,8 +6243,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
player.storage.biluan+=ng.length; player.storage.biluan+=ng.length;
player.markSkill('biluan'); player.markSkill('biluan');
game.addVideo('storage',player,['biluan',player.storage.biluan]); game.addVideo('storage',player,['biluan',player.storage.biluan]);
trigger.untrigger(); trigger.cancel();
trigger.finish();
}, },
mod:{ mod:{
globalTo:function(from,to,distance){ globalTo:function(from,to,distance){
@ -6348,8 +6336,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
return '残蚀:是否改为摸'+get.cnNumber(num)+'张牌?'; return '残蚀:是否改为摸'+get.cnNumber(num)+'张牌?';
}, },
content:function(){ content:function(){
trigger.untrigger(); trigger.cancel();
trigger.finish();
var num=game.countPlayer(function(current){ var num=game.countPlayer(function(current){
if(player.hasZhuSkill('guiming')&&current.group=='wu'&&current!=player) return true; if(player.hasZhuSkill('guiming')&&current.group=='wu'&&current!=player) return true;
return current.isDamaged(); return current.isDamaged();
@ -6554,8 +6541,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
}, },
trigger:{target:'useCardToBefore'}, trigger:{target:'useCardToBefore'},
content:function(){ content:function(){
trigger.untrigger(); trigger.cancel();
trigger.finish();
player.draw(); player.draw();
}, },
ai:{ ai:{
@ -7649,8 +7635,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
targets.sort(lib.sort.seat); targets.sort(lib.sort.seat);
event.targets=targets; event.targets=targets;
event.num=0; event.num=0;
trigger.untrigger(); trigger.cancel();
trigger.finish();
player.line(targets,'green'); player.line(targets,'green');
"step 1" "step 1"
if(num<event.targets.length){ if(num<event.targets.length){

View File

@ -291,8 +291,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
if(result.bool){ if(result.bool){
player.logSkill('tuxi',result.targets); player.logSkill('tuxi',result.targets);
player.gainMultiple(result.targets); player.gainMultiple(result.targets);
trigger.finish(); trigger.cancel();
trigger.untrigger();
} }
else{ else{
event.finish(); event.finish();
@ -1187,8 +1186,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
return player.countUsed('sha')==0; return player.countUsed('sha')==0;
}, },
content:function(){ content:function(){
trigger.untrigger(); trigger.cancel();
trigger.finish();
} }
}, },
kurou:{ kurou:{

View File

@ -2323,8 +2323,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
player.$giveAuto(cards,trigger.player); player.$giveAuto(cards,trigger.player);
} }
'step 3' 'step 3'
trigger.untrigger(); trigger.cancel();
trigger.finish();
player.die(); player.die();
} }
} }