From 14c7fd31d72cd34d98042ef652228ab31afd642c Mon Sep 17 00:00:00 2001 From: libccy Date: Tue, 31 May 2016 15:09:52 +0800 Subject: [PATCH] r --- game/game.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/game/game.js b/game/game.js index 2506b0651..88648d669 100755 --- a/game/game.js +++ b/game/game.js @@ -4964,6 +4964,10 @@ } "step 2" if(event.result.bool&&!game.online){ + var info=get.info(event.result.skill); + if(info&&info.onrespond){ + info.onrespond(event.result,player); + } player.respond(event.result.cards,event.result.card,event.animate,event.result.skill,event.source); } if(event.dialog&&event.dialog.close) event.dialog.close(); @@ -6418,10 +6422,6 @@ respond:function(){ var cardaudio=true; if(event.skill){ - var info=get.info(event.skill); - if(info&&info.onrespond){ - info.onrespond(result,player); - } if(lib.skill[event.skill].audio){ cardaudio=false; }