forked from External/mage
[TLA] Implement Sokka's Haiku
This commit is contained in:
parent
4b22e9755c
commit
02d3d78609
2 changed files with 51 additions and 0 deletions
50
Mage.Sets/src/mage/cards/s/SokkasHaiku.java
Normal file
50
Mage.Sets/src/mage/cards/s/SokkasHaiku.java
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
package mage.cards.s;
|
||||
|
||||
import mage.abilities.effects.common.CounterTargetEffect;
|
||||
import mage.abilities.effects.common.DrawCardSourceControllerEffect;
|
||||
import mage.abilities.effects.common.MillCardsControllerEffect;
|
||||
import mage.abilities.effects.common.UntapTargetEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
import mage.target.TargetSpell;
|
||||
import mage.target.common.TargetLandPermanent;
|
||||
import mage.target.targetpointer.SecondTargetPointer;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class SokkasHaiku extends CardImpl {
|
||||
|
||||
public SokkasHaiku(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{3}{U}{U}");
|
||||
|
||||
this.subtype.add(SubType.LESSON);
|
||||
|
||||
// Counter target spell.
|
||||
this.getSpellAbility().addEffect(new CounterTargetEffect());
|
||||
this.getSpellAbility().addTarget(new TargetSpell());
|
||||
|
||||
// Draw a card, then mill three cards.
|
||||
this.getSpellAbility().addEffect(new DrawCardSourceControllerEffect(1).concatBy("<br>"));
|
||||
this.getSpellAbility().addEffect(new MillCardsControllerEffect(3).concatBy(", then"));
|
||||
|
||||
// Untap target land.
|
||||
this.getSpellAbility().addEffect(new UntapTargetEffect("untap target land")
|
||||
.concatBy("<br>")
|
||||
.setTargetPointer(new SecondTargetPointer()));
|
||||
this.getSpellAbility().addTarget(new TargetLandPermanent());
|
||||
}
|
||||
|
||||
private SokkasHaiku(final SokkasHaiku card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public SokkasHaiku copy() {
|
||||
return new SokkasHaiku(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -22,5 +22,6 @@ public final class AvatarTheLastAirbender extends ExpansionSet {
|
|||
this.hasBasicLands = false; // temporary
|
||||
|
||||
cards.add(new SetCardInfo("Katara, the Fearless", 230, Rarity.RARE, mage.cards.k.KataraTheFearless.class));
|
||||
cards.add(new SetCardInfo("Sokka's Haiku", 71, Rarity.UNCOMMON, mage.cards.s.SokkasHaiku.class));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue