mirror of
https://github.com/correl/mage.git
synced 2024-12-25 11:11:16 +00:00
[MOM] Implement Tenured Oilcaster
This commit is contained in:
parent
37b7c09336
commit
a782030f72
2 changed files with 58 additions and 0 deletions
57
Mage.Sets/src/mage/cards/t/TenuredOilcaster.java
Normal file
57
Mage.Sets/src/mage/cards/t/TenuredOilcaster.java
Normal file
|
@ -0,0 +1,57 @@
|
||||||
|
package mage.cards.t;
|
||||||
|
|
||||||
|
import mage.MageInt;
|
||||||
|
import mage.abilities.common.AttacksOrBlocksTriggeredAbility;
|
||||||
|
import mage.abilities.common.SimpleStaticAbility;
|
||||||
|
import mage.abilities.condition.common.CardsInOpponentGraveyardCondition;
|
||||||
|
import mage.abilities.decorator.ConditionalContinuousEffect;
|
||||||
|
import mage.abilities.effects.common.MillCardsEachPlayerEffect;
|
||||||
|
import mage.abilities.effects.common.continuous.BoostSourceEffect;
|
||||||
|
import mage.abilities.keyword.MenaceAbility;
|
||||||
|
import mage.cards.CardImpl;
|
||||||
|
import mage.cards.CardSetInfo;
|
||||||
|
import mage.constants.CardType;
|
||||||
|
import mage.constants.Duration;
|
||||||
|
import mage.constants.SubType;
|
||||||
|
import mage.constants.TargetController;
|
||||||
|
|
||||||
|
import java.util.UUID;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author TheElk801
|
||||||
|
*/
|
||||||
|
public final class TenuredOilcaster extends CardImpl {
|
||||||
|
|
||||||
|
public TenuredOilcaster(UUID ownerId, CardSetInfo setInfo) {
|
||||||
|
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{3}{B}");
|
||||||
|
|
||||||
|
this.subtype.add(SubType.PHYREXIAN);
|
||||||
|
this.subtype.add(SubType.WIZARD);
|
||||||
|
this.power = new MageInt(2);
|
||||||
|
this.toughness = new MageInt(4);
|
||||||
|
|
||||||
|
// Menace
|
||||||
|
this.addAbility(new MenaceAbility());
|
||||||
|
|
||||||
|
// Tenured Oilcaster gets +3/+0 as long as an opponent has eight or more cards in their graveyard.
|
||||||
|
this.addAbility(new SimpleStaticAbility(new ConditionalContinuousEffect(
|
||||||
|
new BoostSourceEffect(3, 0, Duration.WhileOnBattlefield),
|
||||||
|
CardsInOpponentGraveyardCondition.EIGHT, "{this} gets +3/+0 as long as " +
|
||||||
|
"an opponent has eight or more cards in their graveyard"
|
||||||
|
)).addHint(CardsInOpponentGraveyardCondition.EIGHT.getHint()));
|
||||||
|
|
||||||
|
// Whenever Tenured Oilcaster attacks or blocks, each player mills a card.
|
||||||
|
this.addAbility(new AttacksOrBlocksTriggeredAbility(
|
||||||
|
new MillCardsEachPlayerEffect(1, TargetController.EACH_PLAYER), false
|
||||||
|
));
|
||||||
|
}
|
||||||
|
|
||||||
|
private TenuredOilcaster(final TenuredOilcaster card) {
|
||||||
|
super(card);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public TenuredOilcaster copy() {
|
||||||
|
return new TenuredOilcaster(this);
|
||||||
|
}
|
||||||
|
}
|
|
@ -119,6 +119,7 @@ public final class MarchOfTheMachine extends ExpansionSet {
|
||||||
cards.add(new SetCardInfo("Sunfall", 40, Rarity.RARE, mage.cards.s.Sunfall.class));
|
cards.add(new SetCardInfo("Sunfall", 40, Rarity.RARE, mage.cards.s.Sunfall.class));
|
||||||
cards.add(new SetCardInfo("Swamp", 279, Rarity.LAND, mage.cards.basiclands.Swamp.class, NON_FULL_USE_VARIOUS));
|
cards.add(new SetCardInfo("Swamp", 279, Rarity.LAND, mage.cards.basiclands.Swamp.class, NON_FULL_USE_VARIOUS));
|
||||||
cards.add(new SetCardInfo("Swiftwater Cliffs", 273, Rarity.COMMON, mage.cards.s.SwiftwaterCliffs.class));
|
cards.add(new SetCardInfo("Swiftwater Cliffs", 273, Rarity.COMMON, mage.cards.s.SwiftwaterCliffs.class));
|
||||||
|
cards.add(new SetCardInfo("Tenured Oilcaster", 216, Rarity.COMMON, mage.cards.t.TenuredOilcaster.class));
|
||||||
cards.add(new SetCardInfo("Thornwood Falls", 274, Rarity.COMMON, mage.cards.t.ThornwoodFalls.class));
|
cards.add(new SetCardInfo("Thornwood Falls", 274, Rarity.COMMON, mage.cards.t.ThornwoodFalls.class));
|
||||||
cards.add(new SetCardInfo("Thunderhead Squadron", 81, Rarity.COMMON, mage.cards.t.ThunderheadSquadron.class));
|
cards.add(new SetCardInfo("Thunderhead Squadron", 81, Rarity.COMMON, mage.cards.t.ThunderheadSquadron.class));
|
||||||
cards.add(new SetCardInfo("Tiller of Flesh", 44, Rarity.UNCOMMON, mage.cards.t.TillerOfFlesh.class));
|
cards.add(new SetCardInfo("Tiller of Flesh", 44, Rarity.UNCOMMON, mage.cards.t.TillerOfFlesh.class));
|
||||||
|
|
Loading…
Reference in a new issue