[WOE] Implement Water Wings (#10946)

This commit is contained in:
Susucre 2023-08-22 15:49:19 +02:00 committed by GitHub
parent 0def1af79e
commit ee4936c645
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 49 additions and 0 deletions

View file

@ -0,0 +1,48 @@
package mage.cards.w;
import mage.abilities.effects.common.continuous.GainAbilityTargetEffect;
import mage.abilities.effects.common.continuous.SetBasePowerToughnessTargetEffect;
import mage.abilities.keyword.FlyingAbility;
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 Susucr
*/
public final class WaterWings extends CardImpl {
public WaterWings(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{1}{U}");
// Until end of turn, target creature you control has base power and toughness 4/4 and gains flying and hexproof.
this.getSpellAbility().addEffect(
new SetBasePowerToughnessTargetEffect(4, 4, Duration.EndOfTurn)
.setText("until end of turn, target creature you control has base power and toughness 4/4")
);
this.getSpellAbility().addEffect(
new GainAbilityTargetEffect(FlyingAbility.getInstance())
.setText("and gains flying")
);
this.getSpellAbility().addEffect(
new GainAbilityTargetEffect(HexproofAbility.getInstance())
.setText("and hexproof")
);
this.getSpellAbility().addTarget(new TargetControlledCreaturePermanent());
}
private WaterWings(final WaterWings card) {
super(card);
}
@Override
public WaterWings copy() {
return new WaterWings(this);
}
}

View file

@ -167,6 +167,7 @@ public final class WildsOfEldraine extends ExpansionSet {
cards.add(new SetCardInfo("Virtue of Persistence", 115, Rarity.MYTHIC, mage.cards.v.VirtueOfPersistence.class));
cards.add(new SetCardInfo("Voracious Vermin", 116, Rarity.COMMON, mage.cards.v.VoraciousVermin.class));
cards.add(new SetCardInfo("Warehouse Tabby", 117, Rarity.COMMON, mage.cards.w.WarehouseTabby.class));
cards.add(new SetCardInfo("Water Wings", 77, Rarity.COMMON, mage.cards.w.WaterWings.class));
cards.add(new SetCardInfo("Welcome to Sweettooth", 198, Rarity.UNCOMMON, mage.cards.w.WelcomeToSweettooth.class));
cards.add(new SetCardInfo("Werefox Bodyguard", 39, Rarity.RARE, mage.cards.w.WerefoxBodyguard.class));
cards.add(new SetCardInfo("Will, Scion of Peace", 218, Rarity.MYTHIC, mage.cards.w.WillScionOfPeace.class));