added setCardDefinition
parent
620e9f7a13
commit
73edddea64
|
@ -13,8 +13,8 @@ public abstract class MagicTrigger implements MagicEventAction {
|
|||
private static final int DEFAULT_PRIORITY=10;
|
||||
|
||||
private final MagicTriggerType type;
|
||||
private final MagicCardDefinition card;
|
||||
private final int priority;
|
||||
private MagicCardDefinition card;
|
||||
|
||||
private MagicTrigger(final MagicTriggerType type,final MagicCardDefinition card,final int priority) {
|
||||
|
||||
|
@ -38,6 +38,10 @@ public abstract class MagicTrigger implements MagicEventAction {
|
|||
this(type,(MagicCardDefinition)null,DEFAULT_PRIORITY);
|
||||
}
|
||||
|
||||
public void setCardDefinition(final MagicCardDefinition card) {
|
||||
this.card = card;
|
||||
}
|
||||
|
||||
public final MagicCardDefinition getCardDefinition() {
|
||||
|
||||
return card;
|
||||
|
|
Loading…
Reference in New Issue