fixed Pharika's Libation (missing mode)

This commit is contained in:
Oleg Agafonov 2020-01-13 06:33:20 +04:00
parent 079a404d79
commit 6691306219

View file

@ -1,5 +1,6 @@
package mage.cards.p;
import mage.abilities.Mode;
import mage.abilities.effects.common.SacrificeEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
@ -25,10 +26,11 @@ public final class PharikasLibation extends CardImpl {
this.getSpellAbility().addTarget(new TargetOpponent());
// Target opponent sacrifices an enchantment.
this.getSpellAbility().addEffect(new SacrificeEffect(
Mode mode = new Mode(new SacrificeEffect(
StaticFilters.FILTER_ENCHANTMENT_PERMANENT, 1, "Target opponent"
));
this.getSpellAbility().addTarget(new TargetOpponent());
mode.addTarget(new TargetOpponent());
this.getSpellAbility().addMode(mode);
}
private PharikasLibation(final PharikasLibation card) {