diff --git a/Mage.Sets/src/mage/cards/f/FocusFire.java b/Mage.Sets/src/mage/cards/f/FocusFire.java new file mode 100644 index 00000000000..c6a096b8240 --- /dev/null +++ b/Mage.Sets/src/mage/cards/f/FocusFire.java @@ -0,0 +1,57 @@ +package mage.cards.f; + +import mage.abilities.dynamicvalue.DynamicValue; +import mage.abilities.dynamicvalue.common.PermanentsOnBattlefieldCount; +import mage.abilities.effects.common.DamageTargetEffect; +import mage.abilities.hint.Hint; +import mage.abilities.hint.ValueHint; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.SubType; +import mage.filter.FilterPermanent; +import mage.filter.common.FilterControlledPermanent; +import mage.filter.predicate.Predicates; +import mage.target.common.TargetAttackingOrBlockingCreature; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class FocusFire extends CardImpl { + + private static final FilterPermanent filter = new FilterControlledPermanent(); + + static { + filter.add(Predicates.or( + CardType.CREATURE.getPredicate(), + SubType.SPACECRAFT.getPredicate() + )); + } + + private static final DynamicValue xValue = new PermanentsOnBattlefieldCount(filter, 2); + private static final Hint hint = new ValueHint( + "Creatures and/or Spacecraft you control", new PermanentsOnBattlefieldCount(filter) + ); + + public FocusFire(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{W}"); + + // Focus Fire deals X damage to target attacking or blocking creature, where X is 2 plus the number of creatures and/or Spacecraft you control. + this.getSpellAbility().addEffect(new DamageTargetEffect(xValue) + .setText("{this} deals X damage to target attacking or blocking creature, " + + "where X is 2 plus the number of creatures and/or Spacecraft you control")); + this.getSpellAbility().addTarget(new TargetAttackingOrBlockingCreature()); + this.getSpellAbility().addHint(hint); + } + + private FocusFire(final FocusFire card) { + super(card); + } + + @Override + public FocusFire copy() { + return new FocusFire(this); + } +} diff --git a/Mage.Sets/src/mage/sets/EdgeOfEternities.java b/Mage.Sets/src/mage/sets/EdgeOfEternities.java index 5d0825a7dbd..22bb3a46978 100644 --- a/Mage.Sets/src/mage/sets/EdgeOfEternities.java +++ b/Mage.Sets/src/mage/sets/EdgeOfEternities.java @@ -97,6 +97,7 @@ public final class EdgeOfEternities extends ExpansionSet { cards.add(new SetCardInfo("Famished Worldsire", 182, Rarity.MYTHIC, mage.cards.f.FamishedWorldsire.class, NON_FULL_USE_VARIOUS)); cards.add(new SetCardInfo("Famished Worldsire", 341, Rarity.MYTHIC, mage.cards.f.FamishedWorldsire.class, NON_FULL_USE_VARIOUS)); cards.add(new SetCardInfo("Fell Gravship", 101, Rarity.UNCOMMON, mage.cards.f.FellGravship.class)); + cards.add(new SetCardInfo("Focus Fire", 18, Rarity.COMMON, mage.cards.f.FocusFire.class)); cards.add(new SetCardInfo("Forest", 266, Rarity.LAND, mage.cards.basiclands.Forest.class, FULL_ART_BFZ_VARIOUS)); cards.add(new SetCardInfo("Forest", 275, Rarity.LAND, mage.cards.basiclands.Forest.class, NON_FULL_USE_VARIOUS)); cards.add(new SetCardInfo("Forest", 276, Rarity.LAND, mage.cards.basiclands.Forest.class, NON_FULL_USE_VARIOUS)); diff --git a/Utils/mtg-cards-data.txt b/Utils/mtg-cards-data.txt index fa57986495f..f7b86cd7f8b 100644 --- a/Utils/mtg-cards-data.txt +++ b/Utils/mtg-cards-data.txt @@ -59117,6 +59117,7 @@ Beyond the Quiet|Edge of Eternities|7|R|{3}{W}{W}|Sorcery|||Exile all creatures Cosmogrand Zenith|Edge of Eternities|9|M|{2}{W}|Creature - Human Soldier|2|4|Whenever you cast your second spell each turn, choose one --$* Create two 1/1 white Human Soldier creature tokens.$* Put a +1/+1 counter on each creature you control.| Emergency Eject|Edge of Eternities|14|U|{2}{W}|Instant|||Destroy target nonland permanent. Its controller creates a Lander token.| Exalted Sunborn|Edge of Eternities|15|M|{3}{W}{W}|Creature - Angel Wizard|4|5|Flying, lifelink$If one or more tokens would be created under your control, twice that many of those tokens are created instead.$Warp {1}{W}| +Focus Fire|Edge of Eternities|18|C|{W}|Instant|||Focus Fire deals X damage to target attacking or blocking creature, where X is 2 plus the number of creatures and/or Spacecraft you control.| Haliya, Guided by Light|Edge of Eternities|19|R|{2}{W}|Legendary Creature - Human Soldier|3|3|Whenever Haliya or another creature or artifact you control enters, you gain 1 life.$At the beginning of your end step, draw a card if you've gained 3 or more life this turn.$Warp {W}| Hardlight Containment|Edge of Eternities|20|R|{W}|Enchantment - Aura|||Enchant artifact you control$When this Aura enters, exile target creature an opponent controls until this Aura leaves the battlefield.$Enchanted permanent has ward {1}.| Honored Knight-Captain|Edge of Eternities|22|U|{1}{W}|Creature - Human Advisor Knight|1|1|When this creature enters, create a 1/1 white Human Soldier creature token.${4}{W}{W}, Sacrifice this creature: Search your library for an Equipment card, put it onto the battlefield, then shuffle.|