mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 20:58:03 +00:00
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:
@@ -190,6 +190,15 @@ public final class ColorSet implements Comparable<ColorSet>, Iterable<Byte>, Ser
|
|||||||
return this.countColors() > 1;
|
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.
|
* Checks if is mono color.
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -59,6 +59,11 @@ public class ForgeScript {
|
|||||||
return false;
|
return false;
|
||||||
return property.startsWith("non") != colors.isMulticolor();
|
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
|
} else if (property.contains("MonoColor")) { // ... Card is monocolored
|
||||||
if (property.endsWith("Source") && isColorlessSource)
|
if (property.endsWith("Source") && isColorlessSource)
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
@@ -439,6 +439,9 @@ public class CountersPutEffect extends SpellAbilityEffect {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (obj instanceof Card) {
|
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 = sa.usesTargeting() && sa.isDividedAsYouChoose() ? sa.getDividedValue(gameCard)
|
||||||
: counterAmount;
|
: counterAmount;
|
||||||
if (!sa.usesTargeting() || gameCard.canBeTargetedBy(sa)) {
|
if (!sa.usesTargeting() || gameCard.canBeTargetedBy(sa)) {
|
||||||
|
|||||||
15
forge-gui/res/cardsfolder/upcoming/jared_carthalion.txt
Normal file
15
forge-gui/res/cardsfolder/upcoming/jared_carthalion.txt
Normal 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.
|
||||||
@@ -3,4 +3,5 @@ ManaCost:no cost
|
|||||||
Colors:all
|
Colors:all
|
||||||
Types:Creature Citizen
|
Types:Creature Citizen
|
||||||
PT:2/2
|
PT:2/2
|
||||||
|
Text:This creature is all colors.
|
||||||
Oracle:This creature is all colors.
|
Oracle:This creature is all colors.
|
||||||
|
|||||||
8
forge-gui/res/tokenscripts/all_3_3_kavu_trample.txt
Normal file
8
forge-gui/res/tokenscripts/all_3_3_kavu_trample.txt
Normal 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.
|
||||||
@@ -8,4 +8,5 @@ K:Vigilance
|
|||||||
K:Trample
|
K:Trample
|
||||||
K:Lifelink
|
K:Lifelink
|
||||||
K:Haste
|
K:Haste
|
||||||
|
Text:CARDNAME is all colors.
|
||||||
Oracle:Mechtitan is all colors.\nFlying, vigilance, trample, lifelink, haste
|
Oracle:Mechtitan is all colors.\nFlying, vigilance, trample, lifelink, haste
|
||||||
|
|||||||
Reference in New Issue
Block a user