diff --git a/Mage.Sets/src/mage/cards/d/DemolitionField.java b/Mage.Sets/src/mage/cards/d/DemolitionField.java index cac932ebe90..bdfdcc2993a 100644 --- a/Mage.Sets/src/mage/cards/d/DemolitionField.java +++ b/Mage.Sets/src/mage/cards/d/DemolitionField.java @@ -54,7 +54,7 @@ public final class DemolitionField extends CardImpl { )); ability.addEffect(new SearchLibraryPutInPlayEffect( new TargetCardInLibrary(StaticFilters.FILTER_CARD_BASIC_LAND_A), - false, true, true, Outcome.PutLandInPlay + false, true, true )); ability.addTarget(new TargetLandPermanent(filter)); this.addAbility(ability); diff --git a/Mage/src/main/java/mage/abilities/effects/common/search/SearchLibraryPutInPlayEffect.java b/Mage/src/main/java/mage/abilities/effects/common/search/SearchLibraryPutInPlayEffect.java index 5b85f91eb84..e238a10d8b8 100644 --- a/Mage/src/main/java/mage/abilities/effects/common/search/SearchLibraryPutInPlayEffect.java +++ b/Mage/src/main/java/mage/abilities/effects/common/search/SearchLibraryPutInPlayEffect.java @@ -38,14 +38,19 @@ public class SearchLibraryPutInPlayEffect extends SearchEffect { } public SearchLibraryPutInPlayEffect(TargetCardInLibrary target, boolean tapped, boolean forceShuffle, Outcome outcome) { - this(target, tapped, forceShuffle, false, outcome); + this(target, tapped, forceShuffle, false); } - public SearchLibraryPutInPlayEffect(TargetCardInLibrary target, boolean tapped, boolean forceShuffle, boolean optional, Outcome outcome) { - super(target, outcome); + public SearchLibraryPutInPlayEffect(TargetCardInLibrary target, boolean tapped, boolean forceShuffle, boolean optional) { + super(target, Outcome.PutCardInPlay); this.tapped = tapped; this.forceShuffle = forceShuffle; this.optional = optional; + if (target.getDescription().contains("land")) { + this.outcome = Outcome.PutLandInPlay; + } else if (target.getDescription().contains("creature")) { + this.outcome = Outcome.PutCreatureInPlay; + } staticText = (optional ? "you may " : "") + "search your library for " + target.getDescription()