diff --git a/Mage.Sets/src/mage/cards/w/WingedHiveTyrant.java b/Mage.Sets/src/mage/cards/w/WingedHiveTyrant.java new file mode 100644 index 0000000000..d43c9a9b46 --- /dev/null +++ b/Mage.Sets/src/mage/cards/w/WingedHiveTyrant.java @@ -0,0 +1,63 @@ +package mage.cards.w; + +import mage.MageInt; +import mage.abilities.Ability; +import mage.abilities.common.SimpleStaticAbility; +import mage.abilities.effects.common.continuous.GainAbilityAllEffect; +import mage.abilities.keyword.FlyingAbility; +import mage.abilities.keyword.HasteAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.Duration; +import mage.constants.SubType; +import mage.filter.FilterPermanent; +import mage.filter.common.FilterControlledCreaturePermanent; +import mage.filter.predicate.permanent.CounterAnyPredicate; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class WingedHiveTyrant extends CardImpl { + + private static final FilterPermanent filter + = new FilterControlledCreaturePermanent("creatures you control with counters on them"); + + static { + filter.add(CounterAnyPredicate.instance); + } + + public WingedHiveTyrant(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{3}{U}{R}"); + + this.subtype.add(SubType.TYRANID); + this.power = new MageInt(4); + this.toughness = new MageInt(4); + + // Flying + this.addAbility(FlyingAbility.getInstance()); + + // Haste + this.addAbility(HasteAbility.getInstance()); + + // The Will of the Hive Mind -- Other creatures you control with counters on them have flying and haste. + Ability ability = new SimpleStaticAbility(new GainAbilityAllEffect( + FlyingAbility.getInstance(), Duration.WhileOnBattlefield, filter, true + )); + ability.addEffect(new GainAbilityAllEffect( + HasteAbility.getInstance(), Duration.WhileOnBattlefield, filter, true + ).setText("and haste")); + this.addAbility(ability.withFlavorWord("The Will of the Hive Mind")); + } + + private WingedHiveTyrant(final WingedHiveTyrant card) { + super(card); + } + + @Override + public WingedHiveTyrant copy() { + return new WingedHiveTyrant(this); + } +} diff --git a/Mage.Sets/src/mage/sets/Warhammer40000.java b/Mage.Sets/src/mage/sets/Warhammer40000.java index f711369bb8..82cf28319e 100644 --- a/Mage.Sets/src/mage/sets/Warhammer40000.java +++ b/Mage.Sets/src/mage/sets/Warhammer40000.java @@ -74,6 +74,7 @@ public final class Warhammer40000 extends ExpansionSet { cards.add(new SetCardInfo("Tyranid Prime", 145, Rarity.RARE, mage.cards.t.TyranidPrime.class)); cards.add(new SetCardInfo("Unclaimed Territory", 304, Rarity.UNCOMMON, mage.cards.u.UnclaimedTerritory.class)); cards.add(new SetCardInfo("Venomthrope", 147, Rarity.UNCOMMON, mage.cards.v.Venomthrope.class)); + cards.add(new SetCardInfo("Winged Hive Tyrant", 148, Rarity.RARE, mage.cards.w.WingedHiveTyrant.class)); cards.add(new SetCardInfo("Zoanthrope", 149, Rarity.RARE, mage.cards.z.Zoanthrope.class)); } }