mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +00:00
fixed Yawgmoth's Vile offering (fixes #4839)
This commit is contained in:
parent
7deb521a65
commit
e1d895e699
1 changed files with 8 additions and 8 deletions
|
@ -25,7 +25,7 @@ import mage.target.common.TargetCreatureOrPlaneswalker;
|
|||
*/
|
||||
public class YawgmothsVileOffering extends CardImpl {
|
||||
|
||||
private static final FilterPermanentCard cardFilter = new FilterPermanentCard();
|
||||
private static final FilterPermanentCard cardFilter = new FilterPermanentCard("creature or planeswalker card");
|
||||
|
||||
static {
|
||||
cardFilter.add(Predicates.or(
|
||||
|
@ -43,7 +43,7 @@ public class YawgmothsVileOffering extends CardImpl {
|
|||
|
||||
// Put up to one target creature or planeswalker from a graveyard onto the battlefield under your control.
|
||||
// Destroy up to one target creature or planeswalker. Exile Yawgmoth’s Vile Offering.
|
||||
this.getSpellAbility().addEffect(new YawgmothsVireOfferingEffect());
|
||||
this.getSpellAbility().addEffect(new YawgmothsVileOfferingEffect());
|
||||
this.getSpellAbility().addTarget(new TargetCardInGraveyard(0, 1, cardFilter));
|
||||
this.getSpellAbility().addTarget(new TargetCreatureOrPlaneswalker(0, 1, new FilterCreatureOrPlaneswalkerPermanent(), false));
|
||||
this.getSpellAbility().addEffect(ExileSpellEffect.getInstance());
|
||||
|
@ -59,14 +59,14 @@ public class YawgmothsVileOffering extends CardImpl {
|
|||
}
|
||||
}
|
||||
|
||||
class YawgmothsVireOfferingEffect extends OneShotEffect {
|
||||
class YawgmothsVileOfferingEffect extends OneShotEffect {
|
||||
|
||||
public YawgmothsVireOfferingEffect() {
|
||||
public YawgmothsVileOfferingEffect() {
|
||||
super(Outcome.Benefit);
|
||||
this.staticText = "Put up to one target creature or planeswalker from a graveyard onto the battlefield under your control. Destroy up to one target creature or planeswalker";
|
||||
this.staticText = "Put up to one target creature or planeswalker card from a graveyard onto the battlefield under your control. Destroy up to one target creature or planeswalker";
|
||||
}
|
||||
|
||||
public YawgmothsVireOfferingEffect(final YawgmothsVireOfferingEffect effect) {
|
||||
public YawgmothsVileOfferingEffect(final YawgmothsVileOfferingEffect effect) {
|
||||
super(effect);
|
||||
}
|
||||
|
||||
|
@ -93,7 +93,7 @@ class YawgmothsVireOfferingEffect extends OneShotEffect {
|
|||
}
|
||||
|
||||
@Override
|
||||
public YawgmothsVireOfferingEffect copy() {
|
||||
return new YawgmothsVireOfferingEffect(this);
|
||||
public YawgmothsVileOfferingEffect copy() {
|
||||
return new YawgmothsVileOfferingEffect(this);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue