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:
parent
8cbb4d9df7
commit
466150cf19
1 changed files with 3 additions and 3 deletions
|
@ -10,6 +10,7 @@ import mage.cards.Card;
|
||||||
import mage.cards.CardImpl;
|
import mage.cards.CardImpl;
|
||||||
import mage.cards.CardSetInfo;
|
import mage.cards.CardSetInfo;
|
||||||
import mage.constants.*;
|
import mage.constants.*;
|
||||||
|
import mage.filter.common.FilterCreatureOrPlaneswalkerPermanent;
|
||||||
import mage.filter.common.FilterPermanentCard;
|
import mage.filter.common.FilterPermanentCard;
|
||||||
import mage.filter.predicate.Predicates;
|
import mage.filter.predicate.Predicates;
|
||||||
import mage.filter.predicate.mageobject.CardTypePredicate;
|
import mage.filter.predicate.mageobject.CardTypePredicate;
|
||||||
|
@ -20,8 +21,7 @@ import mage.target.common.TargetCardInGraveyard;
|
||||||
import mage.target.common.TargetCreatureOrPlaneswalker;
|
import mage.target.common.TargetCreatureOrPlaneswalker;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author JRHerlehy
|
* @author JRHerlehy Created on 4/8/18.
|
||||||
* Created on 4/8/18.
|
|
||||||
*/
|
*/
|
||||||
public class YawgmothsVileOffering extends CardImpl {
|
public class YawgmothsVileOffering extends CardImpl {
|
||||||
|
|
||||||
|
@ -45,7 +45,7 @@ public class YawgmothsVileOffering extends CardImpl {
|
||||||
// Destroy up to one target creature or planeswalker. Exile Yawgmoth’s Vile Offering.
|
// Destroy up to one target creature or planeswalker. Exile Yawgmoth’s Vile Offering.
|
||||||
this.getSpellAbility().addEffect(new YawgmothsVireOfferingEffect());
|
this.getSpellAbility().addEffect(new YawgmothsVireOfferingEffect());
|
||||||
this.getSpellAbility().addTarget(new TargetCardInGraveyard(0, 1, cardFilter));
|
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());
|
this.getSpellAbility().addEffect(ExileSpellEffect.getInstance());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue