mirror of
https://github.com/correl/mage.git
synced 2024-11-15 11:09:30 +00:00
[STX] Implemented Thrilling Discovery
This commit is contained in:
parent
f24cfab51b
commit
3fcc996cff
2 changed files with 40 additions and 0 deletions
39
Mage.Sets/src/mage/cards/t/ThrillingDiscovery.java
Normal file
39
Mage.Sets/src/mage/cards/t/ThrillingDiscovery.java
Normal file
|
@ -0,0 +1,39 @@
|
|||
package mage.cards.t;
|
||||
|
||||
import mage.abilities.costs.common.DiscardTargetCost;
|
||||
import mage.abilities.effects.common.DoIfCostPaid;
|
||||
import mage.abilities.effects.common.DrawCardSourceControllerEffect;
|
||||
import mage.abilities.effects.common.GainLifeEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.filter.StaticFilters;
|
||||
import mage.target.common.TargetCardInHand;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class ThrillingDiscovery extends CardImpl {
|
||||
|
||||
public ThrillingDiscovery(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{R}{W}");
|
||||
|
||||
// You gain 2 life. Then you may discard two cards. If you do, draw three cards.
|
||||
this.getSpellAbility().addEffect(new GainLifeEffect(2));
|
||||
this.getSpellAbility().addEffect(new DoIfCostPaid(
|
||||
new DrawCardSourceControllerEffect(3),
|
||||
new DiscardTargetCost(new TargetCardInHand(2, StaticFilters.FILTER_CARD))
|
||||
).setText("Then you may discard two cards. If you do, draw three cards"));
|
||||
}
|
||||
|
||||
private ThrillingDiscovery(final ThrillingDiscovery card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ThrillingDiscovery copy() {
|
||||
return new ThrillingDiscovery(this);
|
||||
}
|
||||
}
|
|
@ -85,6 +85,7 @@ public final class StrixhavenSchoolOfMages extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Study Break", 34, Rarity.COMMON, mage.cards.s.StudyBreak.class));
|
||||
cards.add(new SetCardInfo("Swamp", 370, Rarity.LAND, mage.cards.basiclands.Swamp.class, NON_FULL_USE_VARIOUS));
|
||||
cards.add(new SetCardInfo("Swamp", 371, Rarity.LAND, mage.cards.basiclands.Swamp.class, NON_FULL_USE_VARIOUS));
|
||||
cards.add(new SetCardInfo("Thrilling Discovery", 243, Rarity.COMMON, mage.cards.t.ThrillingDiscovery.class));
|
||||
cards.add(new SetCardInfo("Torrent Sculptor", 159, Rarity.RARE, mage.cards.t.TorrentSculptor.class));
|
||||
cards.add(new SetCardInfo("Valentin, Dean of the Vein", 161, Rarity.RARE, mage.cards.v.ValentinDeanOfTheVein.class));
|
||||
cards.add(new SetCardInfo("Venerable Warsinger", 355, Rarity.RARE, mage.cards.v.VenerableWarsinger.class));
|
||||
|
|
Loading…
Reference in a new issue