diff --git a/card/standard.js b/card/standard.js index eb90ec144..379f799d4 100755 --- a/card/standard.js +++ b/card/standard.js @@ -717,17 +717,22 @@ card.standard={ } } "step 3" - if(result.bool){ - if(event.turn==target) event.turn=player; - else event.turn=target; - event.goto(1); + if(event.target.isDead()||event.player.isDead()){ + event.finish(); } else{ - if(event.turn==target){ - target.damage(); + if(result.bool){ + if(event.turn==target) event.turn=player; + else event.turn=target; + event.goto(1); } else{ - player.damage(target); + if(event.turn==target){ + target.damage(); + } + else{ + player.damage(target); + } } } }, diff --git a/character/gujian.js b/character/gujian.js index 4ec67141b..0050e46d6 100755 --- a/character/gujian.js +++ b/character/gujian.js @@ -626,7 +626,7 @@ character.gujian={ filter:function(event,player){ if(event.card.name!='sha') return false; if(event.targets.length!=1) return false; - if(player.num('h',{type:'basic'})==player.num('h')) return false; + if(!player.num('he')) return false; var target=event.targets[0]; for(var i=0;iitem.offsetLeft&&exitem.offsetTop&&ey=0){ + if(dy<=0){ + deg+=90; + } + else{ + deg=90-deg; + } + } + else{ + if(dy<=0){ + deg=270-deg; + } + else{ + deg+=270; + } + } + node.style.transform='rotate('+(-deg)+'deg) scaleY(0)'; + node.style.height=get.xyDistance(from,to)+'px'; + if(lib.config.mode=='chess'){ + ui.chess.appendChild(node); + } + else{ + ui.arena.appendChild(node); + } + ui.refresh(node); + node.show(); + node.style.transform='rotate('+(-deg)+'deg) scaleY(1)'; + ui.touchlines.push(node); + node._origin=item; + } + } + } + else{ + _status.lastdragchange.remove(item); + for(var i=0;i.wunature{ #me .card.selected{ box-shadow: rgba(0, 0, 0, 0.2) 0 0 0 1px,rgb(255, 0, 0) 0 0 5px, rgba(255, 0, 0, 1) 0 0 10px !important; } +#me>#handcards1:not(.scrollh), +#me>#handcards2:not(.scrollh){ + z-index: 3; +} +/*#me>div:not(.scrollh)>.handcards>.card{ + top:0; +} +#me>div:not(.scrollh)>.handcards>.card.selected{ + top:-20px; +}*/ .glow{ box-shadow: rgba(0, 0, 0, 0.2) 0 0 0 1px, rgba(0, 133, 255, 0.4) 0 0 5px, rgba(0, 133, 255, 0.5) 0 0 12px, rgba(0, 133, 255, 0.8) 0 0 15px !important; } diff --git a/manifest.json b/manifest.json index 2dfa54a6d..fc493bda8 100644 --- a/manifest.json +++ b/manifest.json @@ -29,5 +29,6 @@ } ], "display": "fullscreen", - "orientation": "landscape" + "orientation": "landscape", + "xwalk_android_keep_screen_on":true }