[40K] Implemented Reaver Titan

This commit is contained in:
Evan Kranzler 2022-10-12 19:22:16 -04:00
parent 4e1a7f25f8
commit 2c35f8ad31
2 changed files with 58 additions and 0 deletions

View file

@ -0,0 +1,57 @@
package mage.cards.r;
import mage.MageInt;
import mage.abilities.common.AttacksTriggeredAbility;
import mage.abilities.effects.common.DamagePlayersEffect;
import mage.abilities.keyword.CrewAbility;
import mage.abilities.keyword.ProtectionAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.ComparisonType;
import mage.constants.SubType;
import mage.constants.TargetController;
import mage.filter.FilterCard;
import mage.filter.predicate.mageobject.ManaValuePredicate;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class ReaverTitan extends CardImpl {
private static final FilterCard filter = new FilterCard("mana value 3 or less");
static {
filter.add(new ManaValuePredicate(ComparisonType.FEWER_THAN, 4));
}
public ReaverTitan(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{7}");
this.subtype.add(SubType.VEHICLE);
this.power = new MageInt(10);
this.toughness = new MageInt(10);
// Void Shields -- Protection from mana value 3 or less.
this.addAbility(new ProtectionAbility(filter).withFlavorWord("Void Shields"));
// Gatling Blaster -- Whenever Reaver Titan attacks, it deals 5 damage to each opponent.
this.addAbility(new AttacksTriggeredAbility(new DamagePlayersEffect(
5, TargetController.OPPONENT, "it"
)).withFlavorWord("Gatling Blaster"));
// Crew 4
this.addAbility(new CrewAbility(4));
}
private ReaverTitan(final ReaverTitan card) {
super(card);
}
@Override
public ReaverTitan copy() {
return new ReaverTitan(this);
}
}

View file

@ -190,6 +190,7 @@ public final class Warhammer40000 extends ExpansionSet {
cards.add(new SetCardInfo("Purestrain Genestealer", 97, Rarity.UNCOMMON, mage.cards.p.PurestrainGenestealer.class));
cards.add(new SetCardInfo("Rampant Growth", 220, Rarity.COMMON, mage.cards.r.RampantGrowth.class));
cards.add(new SetCardInfo("Ravener", 138, Rarity.RARE, mage.cards.r.Ravener.class));
cards.add(new SetCardInfo("Reaver Titan", 163, Rarity.RARE, mage.cards.r.ReaverTitan.class));
cards.add(new SetCardInfo("Reconnaissance Mission", 193, Rarity.UNCOMMON, mage.cards.r.ReconnaissanceMission.class));
cards.add(new SetCardInfo("Reliquary Tower", 291, Rarity.UNCOMMON, mage.cards.r.ReliquaryTower.class));
cards.add(new SetCardInfo("Reverberate", 207, Rarity.RARE, mage.cards.r.Reverberate.class));