From e430b1449a36a292ef2f138dccfe11bacc0ad832 Mon Sep 17 00:00:00 2001 From: libccy Date: Fri, 17 Feb 2017 14:09:25 +0800 Subject: [PATCH] 4 --- game/game.js | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/game/game.js b/game/game.js index fe9bbd05f..510b5d93d 100644 --- a/game/game.js +++ b/game/game.js @@ -4258,6 +4258,12 @@ e.stopPropagation(); return false; } + else if(e.keyCode==74&&(e.ctrlKey||e.metaKey)&&lib.node){ + lib.node.debug(); + } + else if(e.keyCode==27){ + ui.click.configMenu(); + } } else{ game.closePopped(); @@ -4307,6 +4313,12 @@ e.stopPropagation(); return false; } + else if(e.keyCode==74&&(e.ctrlKey||e.metaKey)&&lib.node){ + lib.node.debug(); + } + else if(e.keyCode==27){ + ui.click.config(); + } } }; window.onload=function(){ @@ -36780,7 +36792,7 @@ }, equipResult:function(player,target,name){ var card=get.card(); - if(card==undefined){ + if(!card||card.name!=name){ card={name:name}; } var value1=ai.get.value(card,target);