event may be null, should use getEvent

master
melvinzhang 2015-04-26 12:47:06 +08:00
parent 83db7942f0
commit 8fb1f2fa47
1 changed files with 1 additions and 1 deletions

View File

@ -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 {