diff --git a/card/swd.js b/card/swd.js index 3949cadda..dcbbeae34 100755 --- a/card/swd.js +++ b/card/swd.js @@ -2045,7 +2045,10 @@ card.swd={ ai:{ order:10, result:{ - target:-1 + target:function(player,target){ + if(target.isMad()) return 0; + return -1; + } } } }, diff --git a/character/shenhua.js b/character/shenhua.js index 6369d94e6..f0b280538 100644 --- a/character/shenhua.js +++ b/character/shenhua.js @@ -515,7 +515,7 @@ character.shenhua={ filter:function(event,player){ if(player==_status.currentPhase) return false; for(var i=0;i1&&document.documentElement.offsetWidth<900&&!lib.crosswalk){ + if(lib.device=='android'&&window.devicePixelRatio>1&&document.documentElement.offsetWidth<900&&!lib.crosswalk){ game.documentZoom=document.documentElement.offsetWidth/960; game.deviceZoom=game.documentZoom; document.documentElement.style.zoom=game.documentZoom; } else{ + if(lib.device=='ios'){ + if(document.documentElement.offsetWidth<900){ + var zoom=Math.round(document.documentElement.offsetWidth/96)/10; + var metas=document.head.querySelectorAll('meta'); + for(var j=0;j