[M21] Primal Might - fixed wrong targets and text;

This commit is contained in:
Oleg Agafonov 2020-06-14 05:11:11 +04:00
parent 3ac1f924b3
commit 7f511275ad

View file

@ -1,20 +1,17 @@
package mage.cards.p; package mage.cards.p;
import mage.abilities.dynamicvalue.common.ManacostVariableValue; import mage.abilities.dynamicvalue.common.ManacostVariableValue;
import mage.abilities.effects.common.FightTargetsEffect;
import mage.abilities.effects.common.continuous.BoostTargetEffect; import mage.abilities.effects.common.continuous.BoostTargetEffect;
import mage.cards.CardImpl; import mage.cards.CardImpl;
import mage.cards.CardSetInfo; import mage.cards.CardSetInfo;
import mage.constants.CardType; import mage.constants.CardType;
import mage.constants.Duration; import mage.constants.Duration;
import mage.filter.common.FilterCreaturePermanent; import mage.filter.StaticFilters;
import mage.target.common.TargetCreaturePermanent;
import mage.abilities.effects.common.FightTargetsEffect;
import java.util.UUID;
import mage.filter.FilterPermanent;
import mage.target.TargetPermanent; import mage.target.TargetPermanent;
import mage.target.common.TargetAnyTarget; import mage.target.common.TargetControlledCreaturePermanent;
import java.util.UUID;
/** /**
* @author mikalinn777 * @author mikalinn777
@ -23,16 +20,17 @@ import mage.target.common.TargetAnyTarget;
public final class PrimalMight extends CardImpl { public final class PrimalMight extends CardImpl {
private static final FilterPermanent filter = new FilterCreaturePermanent("creature you don't control");
public PrimalMight(UUID ownerId, CardSetInfo setInfo) { public PrimalMight(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{X}{G}"); super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{X}{G}");
// Target creature gets +X/+X until end of turn.
this.getSpellAbility().addTarget(new TargetCreaturePermanent()); // Target creature you control gets +X/+X until end of turn. Then it fights up to one target creature you dont control.
this.getSpellAbility().addTarget(new TargetControlledCreaturePermanent());
this.getSpellAbility().addEffect(new BoostTargetEffect(ManacostVariableValue.instance, ManacostVariableValue.instance, Duration.EndOfTurn)); this.getSpellAbility().addEffect(new BoostTargetEffect(ManacostVariableValue.instance, ManacostVariableValue.instance, Duration.EndOfTurn));
// Then, it fights up to one target creature. //
this.getSpellAbility().addEffect(new FightTargetsEffect()); this.getSpellAbility().addEffect(new FightTargetsEffect()
this.getSpellAbility().addTarget(new TargetPermanent(0, 1, filter, false)); .concatBy("Then")
.setText("it fights up to one target creature you dont control"));
this.getSpellAbility().addTarget(new TargetPermanent(0, 1, StaticFilters.FILTER_CREATURE_YOU_DONT_CONTROL, false));
} }