use itemOnStack.getSource() instead of itemOnStack.getEvent().getSource() to that source for MagicCardOnStack will be card instead of cardOnStack

master
melvin 2012-09-24 16:31:29 +08:00
parent f15dbb751b
commit 0638c12a2b
1 changed files with 1 additions and 1 deletions

View File

@ -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(),