Add files via upload

This commit is contained in:
Sukincen 2019-12-09 22:50:07 +08:00 committed by GitHub
parent f3124e5ae4
commit dff49b5a10
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -86,6 +86,7 @@ game.import('card',function(lib,game,ui,get,ai,_status){
} }
else{ else{
var next=target.chooseToUse('请使用一张闪响应杀'); var next=target.chooseToUse('请使用一张闪响应杀');
next.set('type','respondShan');
next.set('filterCard',function(card,player){ next.set('filterCard',function(card,player){
if(get.name(card)!='shan') return false; if(get.name(card)!='shan') return false;
return lib.filter.cardEnabled(card,player,'forceEnable'); return lib.filter.cardEnabled(card,player,'forceEnable');
@ -127,7 +128,7 @@ game.import('card',function(lib,game,ui,get,ai,_status){
//next.autochoose=lib.filter.autoRespondShan; //next.autochoose=lib.filter.autoRespondShan;
} }
"step 2" "step 2"
if(result.result!='shaned'){ if(!result||!result.result||result.result!='shaned'){
event.trigger('shaHit'); event.trigger('shaHit');
} }
else{ else{
@ -1187,7 +1188,7 @@ game.import('card',function(lib,game,ui,get,ai,_status){
}, },
content:function(){ content:function(){
"step 0" "step 0"
if(!target.hasSha()&&!_status.connectMode){ if(!_status.connectMode&&lib.config.skip_shan&&!target.hasSha()){
event.directfalse=true; event.directfalse=true;
} }
else{ else{