use itemOnStack.getSource() instead of itemOnStack.getEvent().getSource() to that source for MagicCardOnStack will be card instead of cardOnStack
parent
f15dbb751b
commit
0638c12a2b
|
@ -12,7 +12,7 @@ import magic.model.trigger.MagicTrigger;
|
|||
public class MagicStackGetChoicesEvent extends MagicEvent {
|
||||
public MagicStackGetChoicesEvent(final MagicItemOnStack itemOnStack) {
|
||||
super(
|
||||
itemOnStack.getEvent().getSource(),
|
||||
itemOnStack.getSource(),
|
||||
itemOnStack.getController(),
|
||||
itemOnStack.getEvent().getChoice(),
|
||||
itemOnStack.getEvent().getTargetPicker(),
|
||||
|
|
Loading…
Reference in New Issue