forked from External/mage
[TLE] Implement Water Whip
This commit is contained in:
parent
c6b631a5b4
commit
3fd6ee8d6a
2 changed files with 49 additions and 0 deletions
41
Mage.Sets/src/mage/cards/w/WaterWhip.java
Normal file
41
Mage.Sets/src/mage/cards/w/WaterWhip.java
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
package mage.cards.w;
|
||||
|
||||
import mage.abilities.costs.common.WaterbendCost;
|
||||
import mage.abilities.effects.common.DrawCardSourceControllerEffect;
|
||||
import mage.abilities.effects.common.ReturnToHandTargetEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
import mage.target.common.TargetCreaturePermanent;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class WaterWhip extends CardImpl {
|
||||
|
||||
public WaterWhip(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{U}{U}");
|
||||
|
||||
this.subtype.add(SubType.LESSON);
|
||||
|
||||
// As an additional cost to cast this spell, waterbend {5}.
|
||||
this.getSpellAbility().addCost(new WaterbendCost(5));
|
||||
|
||||
// Return up to two target creatures to their owners' hands. Draw two cards.
|
||||
this.getSpellAbility().addEffect(new ReturnToHandTargetEffect());
|
||||
this.getSpellAbility().addTarget(new TargetCreaturePermanent(0, 2));
|
||||
this.getSpellAbility().addEffect(new DrawCardSourceControllerEffect(2));
|
||||
}
|
||||
|
||||
private WaterWhip(final WaterWhip card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public WaterWhip copy() {
|
||||
return new WaterWhip(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -4,11 +4,16 @@ import mage.cards.ExpansionSet;
|
|||
import mage.constants.Rarity;
|
||||
import mage.constants.SetType;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class AvatarTheLastAirbenderEternal extends ExpansionSet {
|
||||
|
||||
private static final List<String> unfinished = Arrays.asList("Water Whip");
|
||||
|
||||
private static final AvatarTheLastAirbenderEternal instance = new AvatarTheLastAirbenderEternal();
|
||||
|
||||
public static AvatarTheLastAirbenderEternal getInstance() {
|
||||
|
|
@ -45,8 +50,11 @@ public final class AvatarTheLastAirbenderEternal extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Thriving Heath", 262, Rarity.COMMON, mage.cards.t.ThrivingHeath.class));
|
||||
cards.add(new SetCardInfo("Thriving Isle", 263, Rarity.COMMON, mage.cards.t.ThrivingIsle.class));
|
||||
cards.add(new SetCardInfo("Thriving Moor", 264, Rarity.COMMON, mage.cards.t.ThrivingMoor.class));
|
||||
cards.add(new SetCardInfo("Water Whip", 227, Rarity.RARE, mage.cards.w.WaterWhip.class));
|
||||
cards.add(new SetCardInfo("Wolf Cove Villager", 221, Rarity.COMMON, mage.cards.w.WolfCoveVillager.class));
|
||||
cards.add(new SetCardInfo("Zhao, the Seething Flame", 245, Rarity.UNCOMMON, mage.cards.z.ZhaoTheSeethingFlame.class));
|
||||
cards.add(new SetCardInfo("Zuko's Offense", 247, Rarity.COMMON, mage.cards.z.ZukosOffense.class));
|
||||
|
||||
cards.removeIf(setCardInfo -> unfinished.contains(setCardInfo.getName()));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue