From 1dfb199bfbcc65c4881dc6e9a48dcebd6aaa5925 Mon Sep 17 00:00:00 2001 From: Guangcong Luo Date: Sat, 11 May 2013 23:29:40 -0700 Subject: [PATCH] Fix back button for battle choices --- js/client-battle.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/js/client-battle.js b/js/client-battle.js index db7975b7b..d3ff17fad 100644 --- a/js/client-battle.js +++ b/js/client-battle.js @@ -686,6 +686,10 @@ this.choice = null; this.updateControlsForPlayer(); }, + clearChoice: function() { + this.choice = null; + this.updateControlsForPlayer(); + }, leaveBattle: function() { this.hideTooltip(); this.send('/leavebattle');