This commit is contained in:
parent
87dabc24ee
commit
aed9dee740
|
@ -165,7 +165,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
}
|
||||
for(var i=0;i<ui.discardPile.childElementCount;i++){
|
||||
var card=ui.discardPile.childNodes[i];
|
||||
if(card.storage.vanishtag.contains('gwshenyu')) continue;
|
||||
if(card.vanishtag.contains('gwshenyu')) continue;
|
||||
if(get.type(card)=='spell'&&get.subtype(card)!='spell_gold'){
|
||||
return true;
|
||||
}
|
||||
|
@ -177,7 +177,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
var list=[];
|
||||
for(var i=0;i<ui.discardPile.childElementCount;i++){
|
||||
var card=ui.discardPile.childNodes[i];
|
||||
if(card.storage.vanishtag.contains('gwshenyu')) continue;
|
||||
if(card.vanishtag.contains('gwshenyu')) continue;
|
||||
if(get.type(card)=='spell'&&get.subtype(card)!='spell_gold'){
|
||||
list.push(card);
|
||||
}
|
||||
|
@ -238,7 +238,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
}
|
||||
'step 4'
|
||||
if(result.bool){
|
||||
result.links[0].storage.vanishtag.add('gwshenyu');
|
||||
result.links[0].vanishtag.add('gwshenyu');
|
||||
event.target.gain(result.links,'gain2','log');
|
||||
}
|
||||
},
|
||||
|
|
14
game/game.js
14
game/game.js
|
@ -18698,13 +18698,13 @@
|
|||
return node;
|
||||
},
|
||||
uncheck:function(skill){
|
||||
if(skill) this.storage.uncheck.add(skill);
|
||||
if(skill) this._uncheck.add(skill);
|
||||
this.classList.add('uncheck');
|
||||
},
|
||||
recheck:function(skill){
|
||||
if(skill) this.storage.uncheck.remove(skill);
|
||||
else this.storage.uncheck.length=0;
|
||||
if(this.storage.uncheck.length==0) this.classList.remove('uncheck');
|
||||
if(skill) this._uncheck.remove(skill);
|
||||
else this._uncheck.length=0;
|
||||
if(this._uncheck.length==0) this.classList.remove('uncheck');
|
||||
},
|
||||
discard:function(){
|
||||
ui.discardPile.appendChild(this);
|
||||
|
@ -36448,7 +36448,9 @@
|
|||
if(!noclick){
|
||||
lib.setIntro(node);
|
||||
}
|
||||
node.storage={uncheck:[],vanishtag:[]};
|
||||
node.storage={};
|
||||
node.vanishtag=[];
|
||||
node._uncheck=[];
|
||||
if(info!='noclick'){
|
||||
node.addEventListener(lib.config.touchscreen?'touchend':'click',ui.click.card);
|
||||
if(lib.config.touchscreen){
|
||||
|
@ -41345,7 +41347,7 @@
|
|||
}
|
||||
for(i=0;i<ui.discardPile.childNodes.length;i++){
|
||||
var currentcard=ui.discardPile.childNodes[i];
|
||||
currentcard.storage.vanishtag=[];
|
||||
currentcard.vanishtag.length=0;
|
||||
if(get.info(currentcard).vanish||currentcard.storage.vanish){
|
||||
currentcard.remove();
|
||||
continue;
|
||||
|
|
Loading…
Reference in New Issue