mirror of
https://github.com/correl/mage.git
synced 2024-11-15 11:09:30 +00:00
* Vision Charm - Fixed bug that caused exception.
This commit is contained in:
parent
eba1539fce
commit
3af9bd894f
1 changed files with 7 additions and 0 deletions
|
@ -102,6 +102,8 @@ class VisionCharmEffect extends ContinuousEffectImpl {
|
|||
|
||||
public VisionCharmEffect(final VisionCharmEffect effect) {
|
||||
super(effect);
|
||||
targetLandType = effect.targetLandType;
|
||||
targetBasicLandType = effect.targetBasicLandType;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -120,8 +122,13 @@ class VisionCharmEffect extends ContinuousEffectImpl {
|
|||
choice = new ChoiceBasicLandType();
|
||||
controller.choose(outcome, choice, game);
|
||||
targetBasicLandType = choice.getChoice();
|
||||
if (targetLandType == null || targetBasicLandType == null) {
|
||||
this.discard();
|
||||
return;
|
||||
}
|
||||
} else {
|
||||
this.discard();
|
||||
return;
|
||||
}
|
||||
FilterPermanent filter = new FilterLandPermanent();
|
||||
filter.add(new SubtypePredicate(SubType.byDescription(targetLandType)));
|
||||
|
|
Loading…
Reference in a new issue