cancel
This commit is contained in:
parent
c04fa03c7d
commit
8d386ad6e6
|
@ -32,8 +32,7 @@ game.import('card',function(lib,game,ui,get,ai,_status){
|
|||
global:'g_jinlianzhu',
|
||||
content:function(){
|
||||
var evt=event.getParent(3)._trigger;
|
||||
evt.untrigger();
|
||||
evt.finish();
|
||||
evt.cancel()
|
||||
if(evt.source){
|
||||
evt.source.draw();
|
||||
}
|
||||
|
|
|
@ -14,8 +14,7 @@ game.import('card',function(lib,game,ui,get,ai,_status){
|
|||
if(evt.jinchan){
|
||||
var type=get.type(evt.card,'trick');
|
||||
if(type=='basic'||type=='trick'){
|
||||
evt.untrigger();
|
||||
evt.finish();
|
||||
evt.cancel();
|
||||
}
|
||||
}
|
||||
player.draw(2);
|
||||
|
|
|
@ -1713,12 +1713,12 @@ game.import('card',function(lib,game,ui,get,ai,_status){
|
|||
if(event.list.length==0){
|
||||
event.finish();
|
||||
if(!event.state){
|
||||
trigger.untrigger();
|
||||
if(event.triggername=='phaseJudge'){
|
||||
trigger.untrigger();
|
||||
trigger.cancelled=true;
|
||||
}
|
||||
else{
|
||||
trigger.finish();
|
||||
trigger.cancel();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1822,12 +1822,12 @@ game.import('card',function(lib,game,ui,get,ai,_status){
|
|||
}
|
||||
else{
|
||||
if(!event.state){
|
||||
trigger.untrigger();
|
||||
if(event.triggername=='phaseJudge'){
|
||||
trigger.untrigger();
|
||||
trigger.cancelled=true;
|
||||
}
|
||||
else{
|
||||
trigger.finish();
|
||||
trigger.cancel();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -418,8 +418,7 @@ game.import('card',function(lib,game,ui,get,ai,_status){
|
|||
event.finish();
|
||||
return;
|
||||
}
|
||||
info.evt.untrigger();
|
||||
info.evt.finish();
|
||||
info.evt.cancel();
|
||||
event.source=info.source;
|
||||
event.source.storage.youdishenru=player;
|
||||
event.source.addSkill('youdishenru');
|
||||
|
|
|
@ -2749,8 +2749,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
content:function(){
|
||||
var evt=event.getParent(3)._trigger;
|
||||
if(evt.gw_dudayuanshuai1){
|
||||
evt.untrigger();
|
||||
evt.finish();
|
||||
evt.cancel();
|
||||
}
|
||||
if(evt.cards){
|
||||
player.gain(evt.cards,'gain2');
|
||||
|
|
|
@ -1995,7 +1995,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
}
|
||||
},
|
||||
jiezi:{
|
||||
trigger:{global:'phaseDrawSkipped'},
|
||||
trigger:{global:['phaseDrawSkipped','phaseDrawCancelled']},
|
||||
forced:true,
|
||||
filter:function(event,player){
|
||||
return event.player!=player;
|
||||
|
|
|
@ -9599,7 +9599,7 @@
|
|||
var name=event.card.viewAs||event.card.name;
|
||||
if(event.cancelled&&!event.direct){
|
||||
if(lib.card[name].cancel){
|
||||
var next=game.createEvent(name+'Cancelled');
|
||||
var next=game.createEvent(name+'Cancel');
|
||||
next.setContent(lib.card[name].cancel);
|
||||
next.card=event.card;
|
||||
next.player=player;
|
||||
|
@ -25694,8 +25694,8 @@
|
|||
}
|
||||
else if(event.finished){
|
||||
if(event._triggered==1){
|
||||
if(event.type=='card') event.trigger('useCardToCancelled');
|
||||
event.trigger(event.name+'Cancelled');
|
||||
if(event.type=='card') event.trigger('useCardToOmitted');
|
||||
event.trigger(event.name+'Omitted');
|
||||
event._triggered=4;
|
||||
}
|
||||
else if(event._triggered==2){
|
||||
|
|
Loading…
Reference in New Issue