forked from External/mage
[TLA] Implement Accumulate Wisdom
This commit is contained in:
parent
6fc4a5fbba
commit
522e54e215
3 changed files with 45 additions and 1 deletions
43
Mage.Sets/src/mage/cards/a/AccumulateWisdom.java
Normal file
43
Mage.Sets/src/mage/cards/a/AccumulateWisdom.java
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
package mage.cards.a;
|
||||
|
||||
import mage.abilities.condition.common.LessonsInGraveCondition;
|
||||
import mage.abilities.decorator.ConditionalOneShotEffect;
|
||||
import mage.abilities.effects.common.LookLibraryAndPickControllerEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.PutCards;
|
||||
import mage.constants.SubType;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class AccumulateWisdom extends CardImpl {
|
||||
|
||||
public AccumulateWisdom(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{1}{U}");
|
||||
|
||||
this.subtype.add(SubType.LESSON);
|
||||
|
||||
// Look at the top three cards of your library. Put one of those cards into your hand and the rest on the bottom of your library in any order. Put each of those cards into your hand instead if there are three or more Lesson cards in your graveyard.
|
||||
this.getSpellAbility().addEffect(new ConditionalOneShotEffect(
|
||||
new LookLibraryAndPickControllerEffect(3, 3, PutCards.HAND, PutCards.BOTTOM_ANY),
|
||||
new LookLibraryAndPickControllerEffect(3, 1, PutCards.HAND, PutCards.BOTTOM_ANY),
|
||||
LessonsInGraveCondition.THREE, "look at the top three cards of your library. " +
|
||||
"Put one of those cards into your hand and the rest on the bottom of your library in any order. " +
|
||||
"Put each of those cards into your hand instead if there are three or more Lesson cards in your graveyard"
|
||||
));
|
||||
this.getSpellAbility().addHint(LessonsInGraveCondition.getHint());
|
||||
}
|
||||
|
||||
private AccumulateWisdom(final AccumulateWisdom card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public AccumulateWisdom copy() {
|
||||
return new AccumulateWisdom(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -38,7 +38,7 @@ public final class ChakraMeditation extends CardImpl {
|
|||
null, new DiscardControllerEffect(1), LessonsInGraveCondition.THREE,
|
||||
"Then discard a card unless there are three or more Lesson cards in your graveyard"
|
||||
));
|
||||
this.addAbility(ability);
|
||||
this.addAbility(ability.addHint(LessonsInGraveCondition.getHint()));
|
||||
}
|
||||
|
||||
private ChakraMeditation(final ChakraMeditation card) {
|
||||
|
|
|
|||
|
|
@ -35,6 +35,7 @@ public final class AvatarTheLastAirbender extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Abandon Attachments", 205, Rarity.COMMON, mage.cards.a.AbandonAttachments.class));
|
||||
cards.add(new SetCardInfo("Abandoned Air Temple", 263, Rarity.RARE, mage.cards.a.AbandonedAirTemple.class, NON_FULL_USE_VARIOUS));
|
||||
cards.add(new SetCardInfo("Abandoned Air Temple", 386, Rarity.RARE, mage.cards.a.AbandonedAirTemple.class, NON_FULL_USE_VARIOUS));
|
||||
cards.add(new SetCardInfo("Accumulate Wisdom", 44, Rarity.UNCOMMON, mage.cards.a.AccumulateWisdom.class));
|
||||
cards.add(new SetCardInfo("Agna Qel'a", 264, Rarity.RARE, mage.cards.a.AgnaQela.class, NON_FULL_USE_VARIOUS));
|
||||
cards.add(new SetCardInfo("Agna Qel'a", 387, Rarity.RARE, mage.cards.a.AgnaQela.class, NON_FULL_USE_VARIOUS));
|
||||
cards.add(new SetCardInfo("Air Nomad Legacy", 206, Rarity.UNCOMMON, mage.cards.a.AirNomadLegacy.class));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue