event may be null, should use getEvent
parent
83db7942f0
commit
8fb1f2fa47
|
@ -106,7 +106,7 @@ public abstract class MagicItemOnStack extends MagicObjectImpl implements MagicT
|
|||
}
|
||||
|
||||
public MagicTarget getTarget() {
|
||||
final MagicTargetChoice tchoice = event.getChoice().getTargetChoice();
|
||||
final MagicTargetChoice tchoice = getEvent().getChoice().getTargetChoice();
|
||||
if (tchoice != null && tchoice.isTargeted()) {
|
||||
return (MagicTarget)choiceResults[event.getTargetChoiceResultIndex()];
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue