This commit is contained in:
libccy 2017-04-01 13:45:23 +08:00
parent f7dabbcf42
commit fd4e370bf8
2 changed files with 26 additions and 12 deletions

View File

@ -405,6 +405,7 @@ window.characterRank={
'hs_nozdormu',
'zhoucang',
'hs_shifazhe',
'guanyinping',
],
b:[
'sp_daqiao',
@ -499,7 +500,6 @@ window.characterRank={
'guohuai',
'sunluban',
'zhouyu',
'guanyinping',
'dingfeng',
'mayunlu',
'shen_guanyu',

View File

@ -17443,7 +17443,14 @@
}
return this;
},
updateTransform:function(bool){
updateTransform:function(bool,delay){
if(delay){
var that=this;
setTimeout(function(){
that.updateTransform(that.classList.contains('selected'));
},delay);
}
else{
if(_status.event.player!=game.me) return;
if(this._transform&&this.parentNode&&this.parentNode.parentNode&&
this.parentNode.parentNode.parentNode==ui.me&&
@ -17456,6 +17463,7 @@
this.style.transform=this._transform||'';
}
}
}
},
aiexclude:function(){
_status.event.aiexclude.add(this);
@ -35496,6 +35504,9 @@
var itemtype=get.itemtype(item);
if(itemtype=='card'||itemtype=='button'||itemtype=='player'){
_status.mouseleft=true;
if(ui.selected.cards.length){
ui.selected.cards[0].updateTransform(true,100);
}
var ex=e.touches[0].clientX/game.documentZoom-ui.arena.offsetLeft;
var ey=e.touches[0].clientY/game.documentZoom-ui.arena.offsetTop;
var exx=ex,eyy=ey;
@ -35865,6 +35876,9 @@
var itemtype=get.itemtype(item);
if(itemtype=='card'||itemtype=='button'||itemtype=='player'){
_status.mouseleft=true;
if(ui.selected.cards.length){
ui.selected.cards[0].updateTransform(true,100);
}
var ex=e.clientX/game.documentZoom-ui.arena.offsetLeft;
var ey=e.clientY/game.documentZoom-ui.arena.offsetTop;
var exx=ex,eyy=ey;