[DMU] Implemented Shore Up

This commit is contained in:
Evan Kranzler 2022-08-27 10:06:33 -04:00
parent 4734bdc9d7
commit cc1cbce35f
2 changed files with 41 additions and 0 deletions

View file

@ -0,0 +1,40 @@
package mage.cards.s;
import mage.abilities.effects.common.continuous.BoostTargetEffect;
import mage.abilities.effects.common.continuous.GainAbilityTargetEffect;
import mage.abilities.keyword.HexproofAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.Duration;
import mage.target.common.TargetControlledCreaturePermanent;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class ShoreUp extends CardImpl {
public ShoreUp(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{U}");
// Target creature you control gets +1/+1 and gains hexproof until end of turn. Untap it.
this.getSpellAbility().addEffect(new BoostTargetEffect(
1, 1, Duration.EndOfTurn
).setText("Target creature you control gets +1/+1"));
this.getSpellAbility().addEffect(new GainAbilityTargetEffect(
HexproofAbility.getInstance(), Duration.EndOfTurn
).setText("and gains hexproof until end of turn"));
this.getSpellAbility().addTarget(new TargetControlledCreaturePermanent());
}
private ShoreUp(final ShoreUp card) {
super(card);
}
@Override
public ShoreUp copy() {
return new ShoreUp(this);
}
}

View file

@ -161,6 +161,7 @@ public final class DominariaUnited extends ExpansionSet {
cards.add(new SetCardInfo("Shield-Wall Sentinel", 238, Rarity.COMMON, mage.cards.s.ShieldWallSentinel.class));
cards.add(new SetCardInfo("Shivan Devastator", 143, Rarity.MYTHIC, mage.cards.s.ShivanDevastator.class));
cards.add(new SetCardInfo("Shivan Reef", 255, Rarity.RARE, mage.cards.s.ShivanReef.class));
cards.add(new SetCardInfo("Shore Up", 64, Rarity.COMMON, mage.cards.s.ShoreUp.class));
cards.add(new SetCardInfo("Slimefoot's Survey", 178, Rarity.UNCOMMON, mage.cards.s.SlimefootsSurvey.class));
cards.add(new SetCardInfo("Smash to Dust", 144, Rarity.COMMON, mage.cards.s.SmashToDust.class));
cards.add(new SetCardInfo("Snarespinner", 179, Rarity.COMMON, mage.cards.s.Snarespinner.class));