mirror of
https://github.com/correl/mage.git
synced 2024-11-15 03:00:16 +00:00
[40K] Implemented Tyranid Invasion
This commit is contained in:
parent
03b65ed99a
commit
f04d8f8a6e
3 changed files with 67 additions and 0 deletions
32
Mage.Sets/src/mage/cards/t/TyranidInvasion.java
Normal file
32
Mage.Sets/src/mage/cards/t/TyranidInvasion.java
Normal file
|
@ -0,0 +1,32 @@
|
|||
package mage.cards.t;
|
||||
|
||||
import mage.abilities.dynamicvalue.common.OpponentsCount;
|
||||
import mage.abilities.effects.common.CreateTokenEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.game.permanent.token.TyranidWarriorToken;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class TyranidInvasion extends CardImpl {
|
||||
|
||||
public TyranidInvasion(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{3}{G}");
|
||||
|
||||
// Create a number of 3/3 green Tyranid Warrior creature tokens with trample equal to the number of opponents you have.
|
||||
this.getSpellAbility().addEffect(new CreateTokenEffect(new TyranidWarriorToken(), OpponentsCount.instance));
|
||||
}
|
||||
|
||||
private TyranidInvasion(final TyranidInvasion card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public TyranidInvasion copy() {
|
||||
return new TyranidInvasion(this);
|
||||
}
|
||||
}
|
|
@ -110,6 +110,7 @@ public final class Warhammer40000 extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("The Swarmlord", 4, Rarity.MYTHIC, mage.cards.t.TheSwarmlord.class));
|
||||
cards.add(new SetCardInfo("Thornwood Falls", 302, Rarity.COMMON, mage.cards.t.ThornwoodFalls.class));
|
||||
cards.add(new SetCardInfo("Trygon Prime", 143, Rarity.UNCOMMON, mage.cards.t.TrygonPrime.class));
|
||||
cards.add(new SetCardInfo("Tyranid Invasion", 102, Rarity.UNCOMMON, mage.cards.t.TyranidInvasion.class));
|
||||
cards.add(new SetCardInfo("Tyranid Prime", 145, Rarity.RARE, mage.cards.t.TyranidPrime.class));
|
||||
cards.add(new SetCardInfo("Tyrant Guard", 103, Rarity.RARE, mage.cards.t.TyrantGuard.class));
|
||||
cards.add(new SetCardInfo("Unclaimed Territory", 304, Rarity.UNCOMMON, mage.cards.u.UnclaimedTerritory.class));
|
||||
|
|
|
@ -0,0 +1,34 @@
|
|||
package mage.game.permanent.token;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class TyranidWarriorToken extends TokenImpl {
|
||||
|
||||
public TyranidWarriorToken() {
|
||||
super("Tyranid Warrior Token", "3/3 green Tyranid Warrior creature token");
|
||||
cardType.add(CardType.CREATURE);
|
||||
color.setGreen(true);
|
||||
subtype.add(SubType.TYRANID);
|
||||
subtype.add(SubType.WARRIOR);
|
||||
power = new MageInt(3);
|
||||
toughness = new MageInt(3);
|
||||
|
||||
availableImageSetCodes.addAll(Arrays.asList("40K"));
|
||||
}
|
||||
|
||||
public TyranidWarriorToken(final TyranidWarriorToken token) {
|
||||
super(token);
|
||||
}
|
||||
|
||||
@Override
|
||||
public TyranidWarriorToken copy() {
|
||||
return new TyranidWarriorToken(this);
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue