VOC: Donal and support

This commit is contained in:
Tim Mocny
2021-11-12 14:31:17 +00:00
committed by Hans Mackowiak
parent 822bab00e2
commit 41d14f8e51
2 changed files with 23 additions and 1 deletions

View File

@@ -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());

View File

@@ -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.)