1
0
Fork 0
mirror of https://github.com/correl/mage.git synced 2025-03-13 01:09:53 -09:00

fixed Yawgmoth's Vile Offering requiring a permanent to target

This commit is contained in:
Evan Kranzler 2018-04-21 08:11:36 -04:00
parent 8cbb4d9df7
commit 466150cf19

View file

@ -10,6 +10,7 @@ import mage.cards.Card;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.*;
import mage.filter.common.FilterCreatureOrPlaneswalkerPermanent;
import mage.filter.common.FilterPermanentCard;
import mage.filter.predicate.Predicates;
import mage.filter.predicate.mageobject.CardTypePredicate;
@ -20,8 +21,7 @@ import mage.target.common.TargetCardInGraveyard;
import mage.target.common.TargetCreatureOrPlaneswalker;
/**
* @author JRHerlehy
* Created on 4/8/18.
* @author JRHerlehy Created on 4/8/18.
*/
public class YawgmothsVileOffering extends CardImpl {
@ -45,7 +45,7 @@ public class YawgmothsVileOffering extends CardImpl {
// Destroy up to one target creature or planeswalker. Exile Yawgmoths Vile Offering.
this.getSpellAbility().addEffect(new YawgmothsVireOfferingEffect());
this.getSpellAbility().addTarget(new TargetCardInGraveyard(0, 1, cardFilter));
this.getSpellAbility().addTarget(new TargetCreatureOrPlaneswalker());
this.getSpellAbility().addTarget(new TargetCreatureOrPlaneswalker(0, 1, new FilterCreatureOrPlaneswalkerPermanent(), false));
this.getSpellAbility().addEffect(ExileSpellEffect.getInstance());
}