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