diff --git a/card/guozhan.js b/card/guozhan.js index dad1a1a3b..e087fc6a0 100644 --- a/card/guozhan.js +++ b/card/guozhan.js @@ -696,7 +696,7 @@ game.import('card',function(lib,game,ui,get,ai,_status){ }); }, mode:['guozhan'], - global:['g_chiling1','g_chiling2','g_chiling3'], + //global:['g_chiling1','g_chiling2','g_chiling3'], filterTarget:function(card,player,target){ return target.isUnseen(); }, @@ -754,6 +754,27 @@ game.import('card',function(lib,game,ui,get,ai,_status){ } target.draw(); }, + destroy:function(card,targetPosition,player,event){ + if(event.name!='lose'||event.name!='cardsDiscard'||targetPosition!='discardPile') return false; + var evt=event.getParent().relatedEvent; + if(evt&&evt.name=='useCard') return false; + + return true; + }, + onDestroy:function(){ + var currentPhase=_status.currentPhase; + if(currentPhase){ + _status.chiling=true; + currentPhase.addTempSkill('g_chiling3'); + } + if(!lib.inpile.contains('zhaoshu')){ + lib.inpile.push('zhaoshu'); + var card=game.createCard2('zhaoshu','club',3); + game.log(card,'被置于了牌堆底'); + ui.cardPile.appendChild(card); + game.updateRoundNumber(); + } + }, ai:{ order:6, result:{ @@ -1570,50 +1591,9 @@ game.import('card',function(lib,game,ui,get,ai,_status){ } }, }, - g_chiling1:{ - mode:['guozhan'], - trigger:{ - player:'loseEnd', - global:'cardsDiscardEnd', - }, - filter:function(event,player){ - var evt=event.getParent().relatedEvent; - if(evt&&evt.name=='useCard') return false; - for(var i=0;i