mirror of
https://github.com/magefree/mage.git
synced 2025-12-20 02:30:08 -08:00
[FIC] Implement Flash Photography
This commit is contained in:
parent
7a3888e1ca
commit
bbca3f342e
2 changed files with 49 additions and 0 deletions
48
Mage.Sets/src/mage/cards/f/FlashPhotography.java
Normal file
48
Mage.Sets/src/mage/cards/f/FlashPhotography.java
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
package mage.cards.f;
|
||||
|
||||
import mage.abilities.common.CastAsThoughItHadFlashIfConditionAbility;
|
||||
import mage.abilities.condition.Condition;
|
||||
import mage.abilities.condition.common.SourceTargetsPermanentCondition;
|
||||
import mage.abilities.costs.mana.ManaCostsImpl;
|
||||
import mage.abilities.effects.common.CreateTokenCopyTargetEffect;
|
||||
import mage.abilities.keyword.FlashbackAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.filter.StaticFilters;
|
||||
import mage.target.TargetPermanent;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class FlashPhotography extends CardImpl {
|
||||
|
||||
private static final Condition condition = new SourceTargetsPermanentCondition(StaticFilters.FILTER_CONTROLLED_PERMANENT);
|
||||
|
||||
public FlashPhotography(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{2}{U}{U}");
|
||||
|
||||
// You may cast this spell as though it had flash if it targets a permanent you control.
|
||||
this.addAbility(new CastAsThoughItHadFlashIfConditionAbility(
|
||||
condition, "you may cast this spell as though it had flash if it targets a permanent you control"
|
||||
));
|
||||
|
||||
// Create a token that's a copy of target permanent.
|
||||
this.getSpellAbility().addEffect(new CreateTokenCopyTargetEffect());
|
||||
this.getSpellAbility().addTarget(new TargetPermanent());
|
||||
|
||||
// Flashback {4}{U}{U}
|
||||
this.addAbility(new FlashbackAbility(this, new ManaCostsImpl<>("{4}{U}{U}")));
|
||||
}
|
||||
|
||||
private FlashPhotography(final FlashPhotography card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public FlashPhotography copy() {
|
||||
return new FlashPhotography(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -165,6 +165,7 @@ public final class FinalFantasyCommander extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Fight Rigging", 303, Rarity.RARE, mage.cards.f.FightRigging.class));
|
||||
cards.add(new SetCardInfo("Final Judgment", 243, Rarity.MYTHIC, mage.cards.f.FinalJudgment.class));
|
||||
cards.add(new SetCardInfo("Fire-Lit Thicket", 392, Rarity.RARE, mage.cards.f.FireLitThicket.class));
|
||||
cards.add(new SetCardInfo("Flash Photography", 463, Rarity.RARE, mage.cards.f.FlashPhotography.class));
|
||||
cards.add(new SetCardInfo("Flayer of the Hatebound", 293, Rarity.RARE, mage.cards.f.FlayerOfTheHatebound.class));
|
||||
cards.add(new SetCardInfo("Flooded Grove", 393, Rarity.RARE, mage.cards.f.FloodedGrove.class));
|
||||
cards.add(new SetCardInfo("Foreboding Ruins", 394, Rarity.RARE, mage.cards.f.ForebodingRuins.class));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue