This commit is contained in:
parent
19833eb9a6
commit
23485a722c
|
@ -132,6 +132,9 @@ card.extra={
|
|||
value:[3,1],
|
||||
useful:1,
|
||||
},
|
||||
wuxie:function(target,card,player,current,state){
|
||||
if(ai.get.attitude(current,player)>=0&&state>0) return false;
|
||||
},
|
||||
result:{
|
||||
player:function(player){
|
||||
var nh=player.num('h');
|
||||
|
|
|
@ -208,6 +208,9 @@ card.hearth={
|
|||
value:[3,1],
|
||||
useful:1,
|
||||
},
|
||||
wuxie:function(target,card,player,current,state){
|
||||
if(ai.get.attitude(current,player)>=0&&state>0) return false;
|
||||
},
|
||||
result:{
|
||||
player:function(player){
|
||||
var nh=player.num('h');
|
||||
|
|
|
@ -315,6 +315,7 @@ character.fire={
|
|||
return -2;
|
||||
},
|
||||
target:function(player,target){
|
||||
if(player.hp<=2) return 0;
|
||||
return ai.get.damageEffect(target,player);
|
||||
}
|
||||
}
|
||||
|
|
21
game/game.js
21
game/game.js
|
@ -7157,16 +7157,15 @@
|
|||
node.addEventListener(lib.config.touchscreen?'touchend':'mouseup',function(e){
|
||||
node.classList.remove('controlthundertext');
|
||||
node.parentNode.classList.remove('controlpressdown');
|
||||
setTimeout(function(){
|
||||
node.parentNode.classList.remove('controlpressdownx');
|
||||
},200);
|
||||
node.parentNode.classList.remove('controlpressdownx');
|
||||
// setTimeout(function(){
|
||||
// if(node.parentNode)
|
||||
// },200);
|
||||
});
|
||||
node.addEventListener(lib.config.touchscreen?'touchmove':'mousemove',function(e){
|
||||
node.classList.remove('controlthundertext');
|
||||
node.parentNode.classList.remove('controlpressdown');
|
||||
setTimeout(function(){
|
||||
node.parentNode.classList.remove('controlpressdownx');
|
||||
},200);
|
||||
node.parentNode.classList.remove('controlpressdownx');
|
||||
});
|
||||
}
|
||||
},
|
||||
|
@ -10949,10 +10948,14 @@
|
|||
return caption;
|
||||
},
|
||||
control:function(){
|
||||
var nc=true;
|
||||
var nc=(ui.control.childNodes.length==0);
|
||||
for(var i=0;i<ui.control.childNodes.length;i++){
|
||||
if(!ui.control.childNodes[i].classList.contains('removing')){
|
||||
nc=false;break;
|
||||
if(ui.control.childNodes[i].classList.contains('removing')){
|
||||
var that=ui.control.childNodes[i];
|
||||
var width=that.offsetWidth;
|
||||
that.style.marginLeft=(-width/2)+'px';
|
||||
that.style.marginRight=(-width/2)+'px';
|
||||
that.style.transitionDuration=0.8*parseFloat(getComputedStyle(that).opacity)+'s';
|
||||
}
|
||||
}
|
||||
var i,controls;
|
||||
|
|
|
@ -1052,6 +1052,9 @@ mode.chess={
|
|||
}
|
||||
if(_status.characterList.length<6){
|
||||
game.over(true);
|
||||
event.done.close();
|
||||
event.control.close();
|
||||
return;
|
||||
}
|
||||
setTimeout(function(){
|
||||
dialog.open();
|
||||
|
|
Loading…
Reference in New Issue