From dfbe144ad26974a7f25e452399667b892d75c709 Mon Sep 17 00:00:00 2001 From: North Date: Thu, 8 Nov 2012 23:11:39 +0200 Subject: [PATCH] Fixed drafting cards --- Mage.Client/src/main/java/mage/client/draft/DraftPanel.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Mage.Client/src/main/java/mage/client/draft/DraftPanel.java b/Mage.Client/src/main/java/mage/client/draft/DraftPanel.java index 9172ea186f..a81eea2ce7 100644 --- a/Mage.Client/src/main/java/mage/client/draft/DraftPanel.java +++ b/Mage.Client/src/main/java/mage/client/draft/DraftPanel.java @@ -49,6 +49,7 @@ import java.awt.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.util.UUID; +import mage.view.SimpleCardView; /** * @@ -115,7 +116,8 @@ public class DraftPanel extends javax.swing.JPanel { @Override public void event(Event event) { if (event.getEventName().equals("pick-a-card")) { - DraftPickView view = session.sendCardPick(draftId, (UUID)event.getSource()); + SimpleCardView source = (SimpleCardView) event.getSource(); + DraftPickView view = session.sendCardPick(draftId, source.getId()); if (view != null) { //draftBooster.loadBooster(view.getBooster(), bigCard); draftBooster.loadBooster(emptyView, bigCard);