This commit is contained in:
parent
927e4fca18
commit
44fc8fca1f
19
game/game.js
19
game/game.js
|
@ -4777,10 +4777,17 @@
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if(ui.tempnowuxie&&ui.tempnowuxie.classList.contains('glow')&&event.state>0){
|
if(ui.tempnowuxie&&ui.tempnowuxie.classList.contains('glow')&&event.state>0){
|
||||||
event.result={
|
var triggerevent=event.getTrigger();
|
||||||
bool:false
|
if(ui.tempnowuxie._origin==triggerevent.parent.id){
|
||||||
|
event.result={
|
||||||
|
bool:false
|
||||||
|
}
|
||||||
|
if(triggerevent.targets&&triggerevent.num==triggerevent.targets.length-1){
|
||||||
|
ui.tempnowuxie.close();
|
||||||
|
}
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
if(!_status.connectMode&&lib.config.wuxie_self&&event.getParent().state){
|
if(!_status.connectMode&&lib.config.wuxie_self&&event.getParent().state){
|
||||||
var tw=event.getTrigger().parent;
|
var tw=event.getTrigger().parent;
|
||||||
|
@ -25645,6 +25652,12 @@
|
||||||
this.classList.toggle('glow');
|
this.classList.toggle('glow');
|
||||||
if(this.classList.contains('glow')&&_status.event.type=='wuxie'&&
|
if(this.classList.contains('glow')&&_status.event.type=='wuxie'&&
|
||||||
_status.event.isMine()&&ui.confirm&&_status.imchoosing){
|
_status.event.isMine()&&ui.confirm&&_status.imchoosing){
|
||||||
|
var triggerevent=_status.event.getTrigger();
|
||||||
|
if(triggerevent&&this._origin==triggerevent.parent.id){
|
||||||
|
if(triggerevent.targets&&triggerevent.num==triggerevent.targets.length-1){
|
||||||
|
this.close();
|
||||||
|
}
|
||||||
|
}
|
||||||
ui.click.cancel(ui.confirm.lastChild);
|
ui.click.cancel(ui.confirm.lastChild);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue