mirror of
https://github.com/correl/mage.git
synced 2024-11-15 11:09:30 +00:00
Fixed drafting cards
This commit is contained in:
parent
8dcfead462
commit
dfbe144ad2
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue