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