diff --git a/Mage.Sets/src/mage/cards/b/BroodrageMycoid.java b/Mage.Sets/src/mage/cards/b/BroodrageMycoid.java new file mode 100644 index 00000000000..959f2d63eb7 --- /dev/null +++ b/Mage.Sets/src/mage/cards/b/BroodrageMycoid.java @@ -0,0 +1,45 @@ +package mage.cards.b; + +import mage.MageInt; +import mage.abilities.common.BeginningOfEndStepTriggeredAbility; +import mage.abilities.condition.common.DescendedThisTurnCondition; +import mage.abilities.dynamicvalue.common.DescendedThisTurnCount; +import mage.abilities.effects.common.CreateTokenEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.SubType; +import mage.constants.TargetController; +import mage.game.permanent.token.FungusCantBlockToken; +import mage.watchers.common.DescendedWatcher; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class BroodrageMycoid extends CardImpl { + + public BroodrageMycoid(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{3}{B}"); + + this.subtype.add(SubType.FUNGUS); + this.power = new MageInt(4); + this.toughness = new MageInt(3); + + // At the beginning of your end step, if you descended this turn, create a 1/1 black Fungus creature token with "This creature can't block." + this.addAbility(new BeginningOfEndStepTriggeredAbility( + new CreateTokenEffect(new FungusCantBlockToken()), + TargetController.YOU, DescendedThisTurnCondition.instance, false + ).addHint(DescendedThisTurnCount.getHint()), new DescendedWatcher()); + } + + private BroodrageMycoid(final BroodrageMycoid card) { + super(card); + } + + @Override + public BroodrageMycoid copy() { + return new BroodrageMycoid(this); + } +} diff --git a/Mage.Sets/src/mage/sets/TheLostCavernsOfIxalan.java b/Mage.Sets/src/mage/sets/TheLostCavernsOfIxalan.java index 17d7d1a7389..893adf994f1 100644 --- a/Mage.Sets/src/mage/sets/TheLostCavernsOfIxalan.java +++ b/Mage.Sets/src/mage/sets/TheLostCavernsOfIxalan.java @@ -26,6 +26,7 @@ public final class TheLostCavernsOfIxalan extends ExpansionSet { cards.add(new SetCardInfo("Bartolome del Presidio", 224, Rarity.UNCOMMON, mage.cards.b.BartolomeDelPresidio.class)); cards.add(new SetCardInfo("Bladewheel Chariot", 36, Rarity.UNCOMMON, mage.cards.b.BladewheelChariot.class)); cards.add(new SetCardInfo("Breeches, Eager Pillager", 137, Rarity.RARE, mage.cards.b.BreechesEagerPillager.class)); + cards.add(new SetCardInfo("Broodrage Mycoid", 95, Rarity.COMMON, mage.cards.b.BroodrageMycoid.class)); cards.add(new SetCardInfo("Captain Storm, Cosmium Raider", 227, Rarity.UNCOMMON, mage.cards.c.CaptainStormCosmiumRaider.class)); cards.add(new SetCardInfo("Careening Mine Cart", 247, Rarity.UNCOMMON, mage.cards.c.CareeningMineCart.class)); cards.add(new SetCardInfo("Cavern of Souls", 269, Rarity.MYTHIC, mage.cards.c.CavernOfSouls.class)); diff --git a/Mage/src/main/java/mage/game/permanent/token/FungusCantBlockToken.java b/Mage/src/main/java/mage/game/permanent/token/FungusCantBlockToken.java new file mode 100644 index 00000000000..3a28dae4d63 --- /dev/null +++ b/Mage/src/main/java/mage/game/permanent/token/FungusCantBlockToken.java @@ -0,0 +1,36 @@ +package mage.game.permanent.token; + +import mage.MageInt; +import mage.abilities.common.SimpleStaticAbility; +import mage.abilities.effects.common.combat.CantBlockSourceEffect; +import mage.constants.CardType; +import mage.constants.Duration; +import mage.constants.SubType; + +/** + * @author TheElk801 + */ +public final class FungusCantBlockToken extends TokenImpl { + + public FungusCantBlockToken() { + super("Fungus Token", "1/1 black Fungus creature token with \"This creature can't block.\""); + cardType.add(CardType.CREATURE); + color.setBlack(true); + subtype.add(SubType.FUNGUS); + power = new MageInt(1); + toughness = new MageInt(1); + + this.addAbility(new SimpleStaticAbility( + new CantBlockSourceEffect(Duration.WhileOnBattlefield) + .setText("this creature can't block") + )); + } + + private FungusCantBlockToken(final FungusCantBlockToken token) { + super(token); + } + + public FungusCantBlockToken copy() { + return new FungusCantBlockToken(this); + } +}