[40K] Implemented Winged Hive Tyrant

This commit is contained in:
Evan Kranzler 2022-09-14 18:46:29 -04:00
parent cd49290b76
commit 61ad2fb655
2 changed files with 64 additions and 0 deletions

View file

@ -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);
}
}

View file

@ -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("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("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("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)); cards.add(new SetCardInfo("Zoanthrope", 149, Rarity.RARE, mage.cards.z.Zoanthrope.class));
} }
} }