mirror of
https://github.com/correl/mage.git
synced 2024-11-15 03:00:16 +00:00
Fixed Irresistible Prey's must be blocked ability
Also unified the implementation of similar effects.
This commit is contained in:
parent
b4325b1daa
commit
ee4312436d
3 changed files with 5 additions and 15 deletions
|
@ -27,11 +27,9 @@ public final class ElementalUprising extends CardImpl {
|
|||
super(ownerId,setInfo,new CardType[]{CardType.INSTANT},"{1}{G}");
|
||||
|
||||
// Target land you control becomes a 4/4 Elemental creature with haste until end of turn. It's still a land. It must be blocked this turn if able.
|
||||
getSpellAbility().addEffect(new BecomesCreatureTargetEffect(new ElementalUprisingToken(), false, true, Duration.EndOfTurn));
|
||||
getSpellAbility().addTarget(new TargetPermanent(new FilterControlledLandPermanent()));
|
||||
Effect effect = new MustBeBlockedByAtLeastOneTargetEffect(Duration.EndOfTurn);
|
||||
effect.setText("It must be blocked this turn if able");
|
||||
getSpellAbility().addEffect(effect);
|
||||
this.getSpellAbility().addEffect(new BecomesCreatureTargetEffect(new ElementalUprisingToken(), false, true, Duration.EndOfTurn));
|
||||
this.getSpellAbility().addTarget(new TargetPermanent(new FilterControlledLandPermanent()));
|
||||
this.getSpellAbility().addEffect(new MustBeBlockedByAtLeastOneTargetEffect(Duration.EndOfTurn));
|
||||
}
|
||||
|
||||
public ElementalUprising(final ElementalUprising card) {
|
||||
|
|
|
@ -23,9 +23,7 @@ public final class EmergentGrowth extends CardImpl {
|
|||
// Target creature gets +5/+5 until end of turn and must be blocked this turn if able.
|
||||
this.getSpellAbility().addTarget(new TargetCreaturePermanent());
|
||||
this.getSpellAbility().addEffect(new BoostTargetEffect(5, 5, Duration.EndOfTurn));
|
||||
Effect effect = new MustBeBlockedByAtLeastOneTargetEffect();
|
||||
effect.setText("and must be blocked this turn if able");
|
||||
this.getSpellAbility().addEffect(effect);
|
||||
this.getSpellAbility().addEffect(new MustBeBlockedByAtLeastOneTargetEffect(Duration.EndOfTurn));
|
||||
}
|
||||
|
||||
public EmergentGrowth(final EmergentGrowth card) {
|
||||
|
|
|
@ -2,15 +2,12 @@
|
|||
package mage.cards.i;
|
||||
|
||||
import java.util.UUID;
|
||||
import mage.abilities.common.SimpleStaticAbility;
|
||||
import mage.abilities.effects.common.DrawCardSourceControllerEffect;
|
||||
import mage.abilities.effects.common.combat.MustBeBlockedByAtLeastOneTargetEffect;
|
||||
import mage.abilities.effects.common.continuous.GainAbilityTargetEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Duration;
|
||||
import mage.constants.Zone;
|
||||
import mage.target.common.TargetCreaturePermanent;
|
||||
|
||||
/**
|
||||
|
@ -25,10 +22,7 @@ public final class IrresistiblePrey extends CardImpl {
|
|||
|
||||
// Target creature must be blocked this turn if able.
|
||||
// Draw a card.
|
||||
this.getSpellAbility().addEffect(
|
||||
new GainAbilityTargetEffect(
|
||||
new SimpleStaticAbility(Zone.BATTLEFIELD, new MustBeBlockedByAtLeastOneTargetEffect()),
|
||||
Duration.EndOfTurn));
|
||||
this.getSpellAbility().addEffect(new MustBeBlockedByAtLeastOneTargetEffect(Duration.EndOfTurn));
|
||||
this.getSpellAbility().addTarget(new TargetCreaturePermanent());
|
||||
this.getSpellAbility().addEffect(new DrawCardSourceControllerEffect(1));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue