Fix lands targeted by Tidal Warrior, Grixis Illusionist, and other similar effects erroneously keeping all their subtypes

This commit is contained in:
LoneFox 2015-06-21 13:30:35 +03:00
parent 2dfdc42b89
commit 15e229ab23

View file

@ -72,7 +72,7 @@ public class BecomesBasicLandTargetEffect extends ContinuousEffectImpl {
public BecomesBasicLandTargetEffect(Duration duration, boolean chooseLandType, String... landNames) {
this(duration, chooseLandType, true, landNames);
}
public BecomesBasicLandTargetEffect(Duration duration, boolean chooseLandType, boolean loseOther, String... landNames) {
super(duration, Outcome.Detriment);
this.landTypes.addAll(Arrays.asList(landNames));
@ -86,6 +86,7 @@ public class BecomesBasicLandTargetEffect extends ContinuousEffectImpl {
super(effect);
this.landTypes.addAll(effect.landTypes);
this.chooseLandType = effect.chooseLandType;
this.loseOther = effect.loseOther;
}
@Override
@ -111,7 +112,7 @@ public class BecomesBasicLandTargetEffect extends ContinuousEffectImpl {
this.discard();
}
}
if(!loseOther) {
for (UUID targetPermanent : targetPointer.getTargets(game, source)) {
Permanent land = game.getPermanent(targetPermanent);