diff --git a/forge-game/src/main/java/forge/game/card/CardFactory.java b/forge-game/src/main/java/forge/game/card/CardFactory.java index 1a772cc76cf..824e9c9bf01 100644 --- a/forge-game/src/main/java/forge/game/card/CardFactory.java +++ b/forge-game/src/main/java/forge/game/card/CardFactory.java @@ -134,9 +134,21 @@ public class CardFactory { c.removeType(CardType.Supertype.Legendary); } + if (sourceSA.hasParam("CopySetPower")) { + c.setBasePower(Integer.parseInt(sourceSA.getParam("CopySetPower"))); + } + + if (sourceSA.hasParam("CopySetToughness")) { + c.setBaseToughness(Integer.parseInt(sourceSA.getParam("CopySetToughness"))); + } + + if (sourceSA.hasParam("CopyAddTypes")) { + c.addType(Arrays.asList(sourceSA.getParam("CopyAddTypes").split(" & "))); + } + // change the color of the copy (eg: Fork) if (sourceSA.hasParam("CopyIsColor")) { - ColorSet finalColors = ColorSet.getNullColor(); + ColorSet finalColors; final String newColor = sourceSA.getParam("CopyIsColor"); if (newColor.equals("ChosenColor")) { finalColors = ColorSet.fromNames(source.getChosenColors()); diff --git a/forge-gui/res/cardsfolder/upcoming/donal_herald_of_wings.txt b/forge-gui/res/cardsfolder/upcoming/donal_herald_of_wings.txt new file mode 100644 index 00000000000..6ab6dd3e51e --- /dev/null +++ b/forge-gui/res/cardsfolder/upcoming/donal_herald_of_wings.txt @@ -0,0 +1,10 @@ +Name:Donal, Herald of Wings +ManaCost:2 U U +Types:Legendary Creature Human Wizard +PT:3/3 +T:Mode$ SpellCast | TriggerZones$ Battlefield | ValidCard$ Creature.withFlying+nonLegendary | ValidActivatingPlayer$ You | NoResolvingCheck$ True | ActivationLimit$ 1 | Execute$ TrigCopy | OptionalDecider$ You | TriggerDescription$ Whenever you cast a nonlegendary creature spell with flying, you may copy it, except the copy is a 1/1 Spirit in addition to its other types. Do this only once each turn. (The copy becomes a token.) +SVar:TrigCopy:DB$ CopySpellAbility | Defined$ TriggeredSpellAbility | CopySetPower$ 1 | CopySetToughness$ 1 | CopyAddTypes$ Spirit +DeckHas:Ability$Token +DeckHints:Keyword$Flying +SVar:BuffedBy:Creature.withFlying +Oracle:Whenever you cast a nonlegendary creature spell with flying, you may copy it, except the copy is a 1/1 Spirit in addition to its other types. Do this only once each turn. (The copy becomes a token.)