diff --git a/Mage.Sets/src/mage/cards/l/LoathsomeTroll.java b/Mage.Sets/src/mage/cards/l/LoathsomeTroll.java new file mode 100644 index 0000000000..6c24781cd0 --- /dev/null +++ b/Mage.Sets/src/mage/cards/l/LoathsomeTroll.java @@ -0,0 +1,57 @@ +package mage.cards.l; + +import mage.MageInt; +import mage.abilities.common.SimpleActivatedAbility; +import mage.abilities.costs.mana.ManaCostsImpl; +import mage.abilities.effects.common.PutOnLibrarySourceEffect; +import mage.abilities.effects.common.ReturnSourceFromGraveyardToBattlefieldEffect; +import mage.abilities.effects.common.ReturnToHandSourceEffect; +import mage.abilities.effects.common.RollDieWithResultTableEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.SubType; +import mage.constants.Zone; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class LoathsomeTroll extends CardImpl { + + public LoathsomeTroll(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{3}{G}{G}"); + + this.subtype.add(SubType.TROLL); + this.power = new MageInt(6); + this.toughness = new MageInt(2); + + // {3}{G}: Roll a d20. Activate only if Loathsome Troll is in your graveyard. + RollDieWithResultTableEffect effect = new RollDieWithResultTableEffect( + 20, "roll a d20. Activate only if {this} is in your graveyard" + ); + this.addAbility(new SimpleActivatedAbility(Zone.GRAVEYARD, effect, new ManaCostsImpl<>("{3}{G}"))); + + // 1-9 | Put Loathsome Troll on top of your library. + effect.addTableEntry(1, 9, new PutOnLibrarySourceEffect( + true, "put {this} on top of your library" + )); + + // 10-19 | Return Loathsome Troll to your hand. + effect.addTableEntry(10, 19, new ReturnToHandSourceEffect().setText("retun {this} to your hand")); + + // 20 | Return Loathsome Troll to the battlefield tapped. + effect.addTableEntry(20, 20, new ReturnSourceFromGraveyardToBattlefieldEffect(true) + .setText("return {this} to the battlefield tapped")); + } + + private LoathsomeTroll(final LoathsomeTroll card) { + super(card); + } + + @Override + public LoathsomeTroll copy() { + return new LoathsomeTroll(this); + } +} diff --git a/Mage.Sets/src/mage/sets/AdventuresInTheForgottenRealms.java b/Mage.Sets/src/mage/sets/AdventuresInTheForgottenRealms.java index 02ea0787d0..eff0ca9efe 100644 --- a/Mage.Sets/src/mage/sets/AdventuresInTheForgottenRealms.java +++ b/Mage.Sets/src/mage/sets/AdventuresInTheForgottenRealms.java @@ -142,6 +142,7 @@ public final class AdventuresInTheForgottenRealms extends ExpansionSet { cards.add(new SetCardInfo("Krydle of Baldur's Gate", 226, Rarity.UNCOMMON, mage.cards.k.KrydleOfBaldursGate.class)); cards.add(new SetCardInfo("Leather Armor", 248, Rarity.COMMON, mage.cards.l.LeatherArmor.class)); cards.add(new SetCardInfo("Lightfoot Rogue", 111, Rarity.UNCOMMON, mage.cards.l.LightfootRogue.class)); + cards.add(new SetCardInfo("Loathsome Troll", 192, Rarity.UNCOMMON, mage.cards.l.LoathsomeTroll.class)); cards.add(new SetCardInfo("Lolth, Spider Queen", 112, Rarity.MYTHIC, mage.cards.l.LolthSpiderQueen.class)); cards.add(new SetCardInfo("Loyal Warhound", 23, Rarity.RARE, mage.cards.l.LoyalWarhound.class)); cards.add(new SetCardInfo("Lurking Roper", 194, Rarity.UNCOMMON, mage.cards.l.LurkingRoper.class));