mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +00:00
Implemented Hexdrinker
This commit is contained in:
parent
d81f04a37e
commit
39d83d9e21
2 changed files with 89 additions and 0 deletions
88
Mage.Sets/src/mage/cards/h/Hexdrinker.java
Normal file
88
Mage.Sets/src/mage/cards/h/Hexdrinker.java
Normal file
|
@ -0,0 +1,88 @@
|
||||||
|
package mage.cards.h;
|
||||||
|
|
||||||
|
import mage.MageInt;
|
||||||
|
import mage.MageObject;
|
||||||
|
import mage.abilities.AbilitiesImpl;
|
||||||
|
import mage.abilities.costs.mana.ManaCostsImpl;
|
||||||
|
import mage.abilities.keyword.LevelUpAbility;
|
||||||
|
import mage.abilities.keyword.LevelerCardBuilder;
|
||||||
|
import mage.abilities.keyword.ProtectionAbility;
|
||||||
|
import mage.cards.CardSetInfo;
|
||||||
|
import mage.cards.LevelerCard;
|
||||||
|
import mage.constants.CardType;
|
||||||
|
import mage.constants.SubType;
|
||||||
|
import mage.filter.FilterCard;
|
||||||
|
import mage.filter.predicate.mageobject.CardTypePredicate;
|
||||||
|
import mage.game.Game;
|
||||||
|
|
||||||
|
import java.util.UUID;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author TheElk801
|
||||||
|
*/
|
||||||
|
public final class Hexdrinker extends LevelerCard {
|
||||||
|
|
||||||
|
private static final FilterCard filter = new FilterCard("instants");
|
||||||
|
|
||||||
|
static {
|
||||||
|
filter.add(new CardTypePredicate(CardType.INSTANT));
|
||||||
|
}
|
||||||
|
|
||||||
|
public Hexdrinker(UUID ownerId, CardSetInfo setInfo) {
|
||||||
|
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{G}");
|
||||||
|
|
||||||
|
this.subtype.add(SubType.SNAKE);
|
||||||
|
this.power = new MageInt(2);
|
||||||
|
this.toughness = new MageInt(1);
|
||||||
|
|
||||||
|
// Level up {1}
|
||||||
|
this.addAbility(new LevelUpAbility(new ManaCostsImpl("{1}")));
|
||||||
|
|
||||||
|
// LEVEL 3-7
|
||||||
|
// 4/4
|
||||||
|
// Protection from instants
|
||||||
|
// LEVEL 8+
|
||||||
|
// 6/6
|
||||||
|
// Protection from everything
|
||||||
|
this.addAbilities(LevelerCardBuilder.construct(
|
||||||
|
new LevelerCardBuilder.LevelAbility(
|
||||||
|
3, 7, new AbilitiesImpl(new ProtectionAbility(filter)), 4, 4
|
||||||
|
),
|
||||||
|
new LevelerCardBuilder.LevelAbility(
|
||||||
|
8, -1, new AbilitiesImpl(new HexdrinkerProtectionAbility()), 6, 6
|
||||||
|
)
|
||||||
|
));
|
||||||
|
|
||||||
|
this.setMaxLevelCounters(8);
|
||||||
|
}
|
||||||
|
|
||||||
|
private Hexdrinker(final Hexdrinker card) {
|
||||||
|
super(card);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Hexdrinker copy() {
|
||||||
|
return new Hexdrinker(this);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
class HexdrinkerProtectionAbility extends ProtectionAbility {
|
||||||
|
|
||||||
|
HexdrinkerProtectionAbility() {
|
||||||
|
super(new FilterCard("everything"));
|
||||||
|
}
|
||||||
|
|
||||||
|
private HexdrinkerProtectionAbility(final HexdrinkerProtectionAbility ability) {
|
||||||
|
super(ability);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public HexdrinkerProtectionAbility copy() {
|
||||||
|
return new HexdrinkerProtectionAbility(this);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean canTarget(MageObject source, Game game) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
|
@ -64,6 +64,7 @@ public final class ModernHorizons extends ExpansionSet {
|
||||||
cards.add(new SetCardInfo("Goblin War Party", 131, Rarity.COMMON, mage.cards.g.GoblinWarParty.class));
|
cards.add(new SetCardInfo("Goblin War Party", 131, Rarity.COMMON, mage.cards.g.GoblinWarParty.class));
|
||||||
cards.add(new SetCardInfo("Good-Fortune Unicorn", 201, Rarity.UNCOMMON, mage.cards.g.GoodFortuneUnicorn.class));
|
cards.add(new SetCardInfo("Good-Fortune Unicorn", 201, Rarity.UNCOMMON, mage.cards.g.GoodFortuneUnicorn.class));
|
||||||
cards.add(new SetCardInfo("Headless Specter", 95, Rarity.COMMON, mage.cards.h.HeadlessSpecter.class));
|
cards.add(new SetCardInfo("Headless Specter", 95, Rarity.COMMON, mage.cards.h.HeadlessSpecter.class));
|
||||||
|
cards.add(new SetCardInfo("Hexdrinker", 168, Rarity.MYTHIC, mage.cards.h.Hexdrinker.class));
|
||||||
cards.add(new SetCardInfo("Hollowhead Sliver", 132, Rarity.UNCOMMON, mage.cards.h.HollowheadSliver.class));
|
cards.add(new SetCardInfo("Hollowhead Sliver", 132, Rarity.UNCOMMON, mage.cards.h.HollowheadSliver.class));
|
||||||
cards.add(new SetCardInfo("Ice-Fang Coatl", 203, Rarity.RARE, mage.cards.i.IceFangCoatl.class));
|
cards.add(new SetCardInfo("Ice-Fang Coatl", 203, Rarity.RARE, mage.cards.i.IceFangCoatl.class));
|
||||||
cards.add(new SetCardInfo("Impostor of the Sixth Pride", 14, Rarity.COMMON, mage.cards.i.ImpostorOfTheSixthPride.class));
|
cards.add(new SetCardInfo("Impostor of the Sixth Pride", 14, Rarity.COMMON, mage.cards.i.ImpostorOfTheSixthPride.class));
|
||||||
|
|
Loading…
Reference in a new issue