[40K] Implemented Thunderhawk Gunship

This commit is contained in:
Evan Kranzler 2022-09-17 23:25:35 -04:00
parent 10909c6694
commit 3c9fb843c7
3 changed files with 94 additions and 0 deletions

View file

@ -0,0 +1,57 @@
package mage.cards.t;
import mage.MageInt;
import mage.abilities.common.AttacksTriggeredAbility;
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
import mage.abilities.effects.common.CreateTokenEffect;
import mage.abilities.effects.common.continuous.GainAbilityControlledEffect;
import mage.abilities.keyword.CrewAbility;
import mage.abilities.keyword.FlyingAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.Duration;
import mage.constants.SubType;
import mage.filter.StaticFilters;
import mage.game.permanent.token.AstartesWarriorToken;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class ThunderhawkGunship extends CardImpl {
public ThunderhawkGunship(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{6}");
this.subtype.add(SubType.VEHICLE);
this.power = new MageInt(6);
this.toughness = new MageInt(6);
// Flying
this.addAbility(FlyingAbility.getInstance());
// When Thunderhawk Gunship enters the battlefield, create two 2/2 white Astartes Warrior creature tokens with vigilance.
this.addAbility(new EntersBattlefieldTriggeredAbility(
new CreateTokenEffect(new AstartesWarriorToken(), 2)
));
// Whenever Thunderhawk Gunship attacks, attacking creatures you control gain flying until end of turn.
this.addAbility(new AttacksTriggeredAbility(new GainAbilityControlledEffect(
FlyingAbility.getInstance(), Duration.EndOfTurn, StaticFilters.FILTER_ATTACKING_CREATURES
)));
// Crew 2
this.addAbility(new CrewAbility(2));
}
private ThunderhawkGunship(final ThunderhawkGunship card) {
super(card);
}
@Override
public ThunderhawkGunship copy() {
return new ThunderhawkGunship(this);
}
}

View file

@ -195,6 +195,7 @@ public final class Warhammer40000 extends ExpansionSet {
cards.add(new SetCardInfo("Their Name Is Death", 62, Rarity.RARE, mage.cards.t.TheirNameIsDeath.class));
cards.add(new SetCardInfo("Thornwood Falls", 302, Rarity.COMMON, mage.cards.t.ThornwoodFalls.class));
cards.add(new SetCardInfo("Thought Vessel", 259, Rarity.COMMON, mage.cards.t.ThoughtVessel.class));
cards.add(new SetCardInfo("Thunderhawk Gunship", 167, Rarity.RARE, mage.cards.t.ThunderhawkGunship.class));
cards.add(new SetCardInfo("Thunderwolf Cavalry", 16, Rarity.UNCOMMON, mage.cards.t.ThunderwolfCavalry.class));
cards.add(new SetCardInfo("Tranquil Cove", 303, Rarity.COMMON, mage.cards.t.TranquilCove.class));
cards.add(new SetCardInfo("Trygon Prime", 143, Rarity.UNCOMMON, mage.cards.t.TrygonPrime.class));

View file

@ -0,0 +1,36 @@
package mage.game.permanent.token;
import mage.MageInt;
import mage.abilities.keyword.VigilanceAbility;
import mage.constants.CardType;
import mage.constants.SubType;
import java.util.Arrays;
/**
* @author TheElk801
*/
public final class AstartesWarriorToken extends TokenImpl {
public AstartesWarriorToken() {
super("Astartes Warrior Token", "2/2 white Astartes Warrior creature tokens with vigilance");
cardType.add(CardType.CREATURE);
color.setWhite(true);
subtype.add(SubType.ASTARTES);
subtype.add(SubType.WARRIOR);
power = new MageInt(2);
toughness = new MageInt(2);
addAbility(VigilanceAbility.getInstance());
availableImageSetCodes.addAll(Arrays.asList("40K"));
}
public AstartesWarriorToken(final AstartesWarriorToken token) {
super(token);
}
@Override
public AstartesWarriorToken copy() {
return new AstartesWarriorToken(this);
}
}