From 2aaa0f666d83fdd45d2fe02c3dcc83846cc0f72b Mon Sep 17 00:00:00 2001 From: theelk801 Date: Tue, 28 Jan 2025 11:14:51 -0500 Subject: [PATCH] [DFT] Implement Hazoret, Godseeker --- .../src/mage/cards/h/HazoretGodseeker.java | 90 +++++++++++++++++++ Mage.Sets/src/mage/sets/Aetherdrift.java | 1 + 2 files changed, 91 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/h/HazoretGodseeker.java diff --git a/Mage.Sets/src/mage/cards/h/HazoretGodseeker.java b/Mage.Sets/src/mage/cards/h/HazoretGodseeker.java new file mode 100644 index 00000000000..454deab5e9b --- /dev/null +++ b/Mage.Sets/src/mage/cards/h/HazoretGodseeker.java @@ -0,0 +1,90 @@ +package mage.cards.h; + +import mage.MageInt; +import mage.abilities.Ability; +import mage.abilities.common.SimpleActivatedAbility; +import mage.abilities.common.SimpleStaticAbility; +import mage.abilities.condition.Condition; +import mage.abilities.costs.common.TapSourceCost; +import mage.abilities.costs.mana.GenericManaCost; +import mage.abilities.dynamicvalue.common.ControllerSpeedCount; +import mage.abilities.effects.common.combat.CantAttackBlockUnlessConditionSourceEffect; +import mage.abilities.effects.common.combat.CantBeBlockedTargetEffect; +import mage.abilities.keyword.HasteAbility; +import mage.abilities.keyword.IndestructibleAbility; +import mage.abilities.keyword.StartYourEnginesAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.ComparisonType; +import mage.constants.SubType; +import mage.constants.SuperType; +import mage.filter.FilterPermanent; +import mage.filter.common.FilterCreaturePermanent; +import mage.filter.predicate.mageobject.PowerPredicate; +import mage.game.Game; +import mage.target.TargetPermanent; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class HazoretGodseeker extends CardImpl { + + private static final FilterPermanent filter = new FilterCreaturePermanent("creature with power 2 or less"); + + static { + filter.add(new PowerPredicate(ComparisonType.FEWER_THAN, 3)); + } + + public HazoretGodseeker(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{R}"); + + this.supertype.add(SuperType.LEGENDARY); + this.subtype.add(SubType.GOD); + this.power = new MageInt(5); + this.toughness = new MageInt(3); + + // Indestructible + this.addAbility(IndestructibleAbility.getInstance()); + + // Haste + this.addAbility(HasteAbility.getInstance()); + + // Start your engines! + this.addAbility(new StartYourEnginesAbility()); + + // {1}, {T}: Target creature with power 2 or less can't be blocked this turn. + Ability ability = new SimpleActivatedAbility(new CantBeBlockedTargetEffect(), new GenericManaCost(1)); + ability.addCost(new TapSourceCost()); + ability.addTarget(new TargetPermanent(filter)); + this.addAbility(ability); + + // Hazoret can't attack or block unless you have max speed. + this.addAbility(new SimpleStaticAbility(new CantAttackBlockUnlessConditionSourceEffect(HazoretGodseekerCondition.instance))); + } + + private HazoretGodseeker(final HazoretGodseeker card) { + super(card); + } + + @Override + public HazoretGodseeker copy() { + return new HazoretGodseeker(this); + } +} + +enum HazoretGodseekerCondition implements Condition { + instance; + + @Override + public boolean apply(Game game, Ability source) { + return ControllerSpeedCount.instance.calculate(game, source, null) >= 4; + } + + @Override + public String toString() { + return "you have max speed"; + } +} diff --git a/Mage.Sets/src/mage/sets/Aetherdrift.java b/Mage.Sets/src/mage/sets/Aetherdrift.java index eb1e93fcf0f..1ddb562ef59 100644 --- a/Mage.Sets/src/mage/sets/Aetherdrift.java +++ b/Mage.Sets/src/mage/sets/Aetherdrift.java @@ -72,6 +72,7 @@ public final class Aetherdrift extends ExpansionSet { cards.add(new SetCardInfo("Greasewrench Goblin", 132, Rarity.UNCOMMON, mage.cards.g.GreasewrenchGoblin.class)); cards.add(new SetCardInfo("Guidelight Pathmaker", 206, Rarity.UNCOMMON, mage.cards.g.GuidelightPathmaker.class)); cards.add(new SetCardInfo("Haunted Hellride", 208, Rarity.UNCOMMON, mage.cards.h.HauntedHellride.class)); + cards.add(new SetCardInfo("Hazoret, Godseeker", 133, Rarity.MYTHIC, mage.cards.h.HazoretGodseeker.class)); cards.add(new SetCardInfo("Hulldrifter", 47, Rarity.COMMON, mage.cards.h.Hulldrifter.class)); cards.add(new SetCardInfo("Interface Ace", 17, Rarity.COMMON, mage.cards.i.InterfaceAce.class)); cards.add(new SetCardInfo("Intimidation Tactics", 92, Rarity.UNCOMMON, mage.cards.i.IntimidationTactics.class));