mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +00:00
[40K] Implemented Winged Hive Tyrant
This commit is contained in:
parent
cd49290b76
commit
61ad2fb655
2 changed files with 64 additions and 0 deletions
63
Mage.Sets/src/mage/cards/w/WingedHiveTyrant.java
Normal file
63
Mage.Sets/src/mage/cards/w/WingedHiveTyrant.java
Normal 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);
|
||||||
|
}
|
||||||
|
}
|
|
@ -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));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue