diff --git a/src/main/java/views/MainPanel.java b/src/main/java/views/MainPanel.java index 60015c8..c7cc1f0 100644 --- a/src/main/java/views/MainPanel.java +++ b/src/main/java/views/MainPanel.java @@ -96,12 +96,14 @@ selectText = "Bot drew."; }else{ atk= bot.selectAttacker(iAttack); + opponentHandButtons.get(atk).setEnabledSelection(true); selectText = "Bot selected. "; } JOptionPane.showMessageDialog(null,selectText); var targetText = ""; var tar = bot.selectTarget(iAttack); + myHandButtons.get(tar).setEnabledSelection(true); JOptionPane.showMessageDialog(null,"Bot targeted this."); @@ -115,6 +117,7 @@ resultMessage+=isSucceed?"Succeed.":"Failed."; JOptionPane.showMessageDialog(null,resultMessage); + myHandButtons.get(tar).setEnabledSelection(false); repaintField(iAttack); if(isGameOver(iAttack)){ finishGame(iAttack);