DMC: Jared Carthalion and support (#1368)

* add text to all color tokens

* all_3_3_kavu_trample.txt

* ColorSet.isAllColors boolean

* ForgeScript.cardStateHasProperty "AllColors"

* CountersPutEffect.resolvePerType "CounterNumPerDefined"

* jared_carthalion.txt
This commit is contained in:
Northmoc
2022-08-21 09:20:21 -04:00
committed by GitHub
parent ce89121ba3
commit bb52a6b2bb
7 changed files with 42 additions and 0 deletions

View File

@@ -190,6 +190,15 @@ public final class ColorSet implements Comparable<ColorSet>, Iterable<Byte>, Ser
return this.countColors() > 1;
}
/**
* Checks if is all colors.
*
* @return true, if is all colors
*/
public boolean isAllColors() {
return this == ALL_COLORS;
}
/**
* Checks if is mono color.
*

View File

@@ -59,6 +59,11 @@ public class ForgeScript {
return false;
return property.startsWith("non") != colors.isMulticolor();
} else if (property.contains("AllColors")) {
if (property.endsWith("Source") && isColorlessSource)
return false;
return property.startsWith("non") != colors.isAllColors();
} else if (property.contains("MonoColor")) { // ... Card is monocolored
if (property.endsWith("Source") && isColorlessSource)
return false;

View File

@@ -439,6 +439,9 @@ public class CountersPutEffect extends SpellAbilityEffect {
}
if (obj instanceof Card) {
if (sa.hasParam("CounterNumPerDefined")) {
counterAmount = AbilityUtils.calculateAmount(gameCard, sa.getParam("CounterNumPerDefined"), sa);
}
counterAmount = sa.usesTargeting() && sa.isDividedAsYouChoose() ? sa.getDividedValue(gameCard)
: counterAmount;
if (!sa.usesTargeting() || gameCard.canBeTargetedBy(sa)) {

View File

@@ -0,0 +1,15 @@
Name:Jared Carthalion
ManaCost:W U B R G
Types:Legendary Planeswalker Jared
Loyalty:5
A:AB$ Token | Cost$ AddCounter<1/LOYALTY> | Planeswalker$ True | TokenScript$ all_3_3_kavu_trample | SpellDescription$ Create a 3/3 Kavu creature token with trample that's all colors.
A:AB$ PutCounter | Cost$ SubCounter<3/LOYALTY> | Planeswalker$ True | Defined$ Targeted | CounterType$ P1P1 | CounterNumPerDefined$ X | ValidTgts$ Creature | TargetMin$ 0 | TargetMax$ 2 | TgtPrompt$ Choose up to two target creatures | StackDescription$ For each of {c:Targeted}, put a number of +1/+1 counters on it equal to the number of colors it is. | SpellDescription$ Choose up to two target creatures. For each of them, put a number of +1/+1 counters on it equal to the number of colors it is.
SVar:X:Count$CardNumColors
A:AB$ ChangeZone | Cost$ SubCounter<6/LOYALTY> | Planeswalker$ True | Ultimate$ True | Origin$ Graveyard | Destination$ Hand | TgtPrompt$ Select target multicolored card in your graveyard | ValidTgts$ Card.MultiColor+YouOwn | RememberChanged$ True | SubAbility$ DBDraw | SpellDescription$ Return target multicolored card from your graveyard to your hand.
SVar:DBDraw:DB$ Draw | ConditionDefined$ Remembered | ConditionPresent$ Card.AllColors | SubAbility$ DBTreasure | StackDescription$ If that card was all colors, {p:You} draws a card and creates two Treasure tokens. | SpellDescription$ If that card was all colors, draw a card and create two Treasure tokens.
SVar:DBTreasure:DB$ Token | ConditionDefined$ Remembered | ConditionPresent$ Card.AllColors | TokenAmount$ 2 | TokenScript$ c_a_treasure_sac | SubAbility$ DBCleanup | StackDescription$ None
SVar:DBCleanup:DB$ Cleanup | ClearRemembered$ True
Text:CARDNAME can be your commander.
DeckHas:Ability$Token|Counters|Sacrifice|Graveyard & Type$Kavu|Artifact|Treasure
AI:RemoveDeck:Random
Oracle:[+1]: Create a 3/3 Kavu creature token with trample that's all colors.\n[3]: Choose up to two target creatures. For each of them, put a number of +1/+1 counters on it equal to the number of colors it is.\n[6]: Return target multicolored card from your graveyard to your hand. If that card was all colors, draw a card and create two Treasure tokens.\nJared Carthalion can be your commander.

View File

@@ -3,4 +3,5 @@ ManaCost:no cost
Colors:all
Types:Creature Citizen
PT:2/2
Text:This creature is all colors.
Oracle:This creature is all colors.

View File

@@ -0,0 +1,8 @@
Name:Kavu Token
ManaCost:no cost
Colors:all
Types:Creature Kavu
PT:3/3
K:Trample
Text:This creature is all colors.
Oracle:Trample\nThis creature is all colors.

View File

@@ -8,4 +8,5 @@ K:Vigilance
K:Trample
K:Lifelink
K:Haste
Text:CARDNAME is all colors.
Oracle:Mechtitan is all colors.\nFlying, vigilance, trample, lifelink, haste