mirror of
https://github.com/correl/mage.git
synced 2024-11-16 03:00:12 +00:00
Implemented Titanoth Rex
This commit is contained in:
parent
272f78e88a
commit
a9c3a3319f
2 changed files with 55 additions and 0 deletions
54
Mage.Sets/src/mage/cards/t/TitanothRex.java
Normal file
54
Mage.Sets/src/mage/cards/t/TitanothRex.java
Normal file
|
@ -0,0 +1,54 @@
|
|||
package mage.cards.t;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.CycleTriggeredAbility;
|
||||
import mage.abilities.costs.mana.ManaCostsImpl;
|
||||
import mage.abilities.effects.common.counter.AddCountersTargetEffect;
|
||||
import mage.abilities.keyword.CyclingAbility;
|
||||
import mage.abilities.keyword.TrampleAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
import mage.counters.CounterType;
|
||||
import mage.target.common.TargetControlledCreaturePermanent;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class TitanothRex extends CardImpl {
|
||||
|
||||
public TitanothRex(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{7}{G}{G}");
|
||||
|
||||
this.subtype.add(SubType.DINOSAUR);
|
||||
this.subtype.add(SubType.BEAST);
|
||||
this.power = new MageInt(11);
|
||||
this.toughness = new MageInt(11);
|
||||
|
||||
// Trample
|
||||
this.addAbility(TrampleAbility.getInstance());
|
||||
|
||||
// Cycling {1}{G}
|
||||
this.addAbility(new CyclingAbility(new ManaCostsImpl("{1}{G}")));
|
||||
|
||||
// When you cycle Titanoth Rex, put a trample counter on target creature you control.
|
||||
Ability ability = new CycleTriggeredAbility(
|
||||
new AddCountersTargetEffect(CounterType.TRAMPLE.createInstance())
|
||||
);
|
||||
ability.addTarget(new TargetControlledCreaturePermanent());
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
||||
private TitanothRex(final TitanothRex card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public TitanothRex copy() {
|
||||
return new TitanothRex(this);
|
||||
}
|
||||
}
|
|
@ -32,6 +32,7 @@ public final class IkoriaLairOfBehemoths extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Gloom Pangolin", 89, Rarity.COMMON, mage.cards.g.GloomPangolin.class));
|
||||
cards.add(new SetCardInfo("Mosscoat Goriak", 167, Rarity.COMMON, mage.cards.m.MosscoatGoriak.class));
|
||||
cards.add(new SetCardInfo("Pacifism", 25, Rarity.COMMON, mage.cards.p.Pacifism.class));
|
||||
cards.add(new SetCardInfo("Titanoth Rex", 377, Rarity.UNCOMMON, mage.cards.t.TitanothRex.class));
|
||||
cards.add(new SetCardInfo("Void Beckoner", 373, Rarity.UNCOMMON, mage.cards.v.VoidBeckoner.class));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue