mirror of
https://github.com/correl/mage.git
synced 2024-11-15 11:09:30 +00:00
[STX] Implemented Solve the Equation
This commit is contained in:
parent
8dc0bbc35c
commit
1adde04352
2 changed files with 35 additions and 0 deletions
34
Mage.Sets/src/mage/cards/s/SolveTheEquation.java
Normal file
34
Mage.Sets/src/mage/cards/s/SolveTheEquation.java
Normal file
|
@ -0,0 +1,34 @@
|
|||
package mage.cards.s;
|
||||
|
||||
import mage.abilities.effects.common.search.SearchLibraryPutInHandEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.filter.StaticFilters;
|
||||
import mage.target.common.TargetCardInLibrary;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class SolveTheEquation extends CardImpl {
|
||||
|
||||
public SolveTheEquation(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{2}{U}");
|
||||
|
||||
// Search your library for an instant or sorcery card, reveal it, put it into your hand, then shuffle.
|
||||
this.getSpellAbility().addEffect(new SearchLibraryPutInHandEffect(
|
||||
new TargetCardInLibrary(StaticFilters.FILTER_CARD_INSTANT_OR_SORCERY), true, true
|
||||
));
|
||||
}
|
||||
|
||||
private SolveTheEquation(final SolveTheEquation card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public SolveTheEquation copy() {
|
||||
return new SolveTheEquation(this);
|
||||
}
|
||||
}
|
|
@ -87,6 +87,7 @@ public final class StrixhavenSchoolOfMages extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Shineshadow Snarl", 272, Rarity.RARE, mage.cards.s.ShineshadowSnarl.class));
|
||||
cards.add(new SetCardInfo("Silverquill Apprentice", 231, Rarity.UNCOMMON, mage.cards.s.SilverquillApprentice.class));
|
||||
cards.add(new SetCardInfo("Silverquill Command", 232, Rarity.RARE, mage.cards.s.SilverquillCommand.class));
|
||||
cards.add(new SetCardInfo("Solve the Equation", 14, Rarity.UNCOMMON, mage.cards.s.SolveTheEquation.class));
|
||||
cards.add(new SetCardInfo("Spirit Summoning", 236, Rarity.COMMON, mage.cards.s.SpiritSummoning.class));
|
||||
cards.add(new SetCardInfo("Star Pupil", 30, Rarity.COMMON, mage.cards.s.StarPupil.class));
|
||||
cards.add(new SetCardInfo("Stonebound Mentor", 239, Rarity.COMMON, mage.cards.s.StoneboundMentor.class));
|
||||
|
|
Loading…
Reference in a new issue