mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 11:48:02 +00:00
- C15: added Seal of the Guilds
This commit is contained in:
1
.gitattributes
vendored
1
.gitattributes
vendored
@@ -12649,6 +12649,7 @@ forge-gui/res/cardsfolder/s/seal_of_fire.txt svneol=native#text/plain
|
||||
forge-gui/res/cardsfolder/s/seal_of_primordium.txt svneol=native#text/plain
|
||||
forge-gui/res/cardsfolder/s/seal_of_removal.txt svneol=native#text/plain
|
||||
forge-gui/res/cardsfolder/s/seal_of_strength.txt svneol=native#text/plain
|
||||
forge-gui/res/cardsfolder/s/seal_of_the_guildpact.txt -text
|
||||
forge-gui/res/cardsfolder/s/sealed_fate.txt svneol=native#text/plain
|
||||
forge-gui/res/cardsfolder/s/sealock_monster.txt -text
|
||||
forge-gui/res/cardsfolder/s/seance.txt -text
|
||||
|
||||
@@ -1459,6 +1459,14 @@ public class AbilityUtils {
|
||||
|
||||
return sum;
|
||||
}
|
||||
//Count$HasNumChosenColors.<DefinedCards related to spellability>
|
||||
if (sq[0].contains("HasNumChosenColors")) {
|
||||
int sum = 0;
|
||||
for (Card card : AbilityUtils.getDefinedCards(sa.getHostCard(), sq[1], sa)) {
|
||||
sum += CardUtil.getColors(card).getSharedColors(ColorSet.fromNames(c.getChosenColors())).countColors();
|
||||
}
|
||||
return sum;
|
||||
}
|
||||
if (sq[0].startsWith("TriggerRememberAmount")) {
|
||||
final SpellAbility root = sa.getRootAbility();
|
||||
int count = 0;
|
||||
|
||||
@@ -3649,10 +3649,6 @@ public class Card extends GameEntity implements Comparable<Card> {
|
||||
if (!source.hasChosenColor() || !CardUtil.getColors(this).hasAnyColor(MagicColor.fromName(source.getChosenColor())))
|
||||
return false;
|
||||
|
||||
} else if (property.equals("AllChosenColors")) {
|
||||
if (!source.hasChosenColor() || !CardUtil.getColors(this).hasAllColors(ColorSet.fromNames(source.getChosenColors()).getColor()))
|
||||
return false;
|
||||
|
||||
} else if (property.equals("AnyChosenColor")) {
|
||||
if (!source.hasChosenColor() || !CardUtil.getColors(this).hasAnyColor(ColorSet.fromNames(source.getChosenColors()).getColor()))
|
||||
return false;
|
||||
|
||||
10
forge-gui/res/cardsfolder/s/seal_of_the_guildpact.txt
Normal file
10
forge-gui/res/cardsfolder/s/seal_of_the_guildpact.txt
Normal file
@@ -0,0 +1,10 @@
|
||||
Name:Seal of the Guildpact
|
||||
ManaCost:5
|
||||
Types:Artifact
|
||||
K:ETBReplacement:Other:ChooseColors
|
||||
SVar:ChooseColors:DB$ ChooseColor | Defined$ You | TwoColors$ True | AILogic$ MostProminentDualInComputerDeck | SpellDescription$ As CARDNAME enters the battlefield, choose two colors.
|
||||
S:Mode$ ReduceCost | ValidCard$ Card | Type$ Spell | Activator$ You | Amount$ Col | Description$ Spells you cast cost {1} less to cast for each card with the same name as that spell in your graveyard.
|
||||
SVar:Col:Count$HasNumChosenColors.Self
|
||||
SVar:RemRandomDeck:True
|
||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/seal_of_the_guildpact.jpg
|
||||
Oracle:As Seal of the Guildpact enters the battlefield, choose two colors.\nEach spell you cast costs {1} less to cast for each of the chosen colors it is.
|
||||
@@ -3,9 +3,8 @@ ManaCost:2
|
||||
Types:Artifact
|
||||
K:ETBReplacement:Other:ChooseColors
|
||||
SVar:ChooseColors:DB$ ChooseColor | Defined$ You | TwoColors$ True | AILogic$ MostProminentDualInComputerDeck | SpellDescription$ As CARDNAME enters the battlefield, choose two colors.
|
||||
T:Mode$ SpellCast | ValidCard$ Card.AnyChosenColor | ValidActivatingPlayer$ You | Execute$ TrigGainFirstLife | TriggerDescription$ Whenever you cast a spell, if it's at least one of the chosen colors, you gain 1 life for each of the chosen colors it is.
|
||||
SVar:TrigGainFirstLife:DB$ GainLife | LifeAmount$ 1 | SubAbility$ GainSecondLife
|
||||
SVar:GainSecondLife:DB$ GainLife | LifeAmount$ 1 | ConditionCheckSVar$ AllCols
|
||||
SVar:AllCols:TriggeredCard$Valid Card.AllChosenColors
|
||||
T:Mode$ SpellCast | ValidCard$ Card.AnyChosenColor | ValidActivatingPlayer$ You | Execute$ TrigGainLife | TriggerDescription$ Whenever you cast a spell, if it's at least one of the chosen colors, you gain 1 life for each of the chosen colors it is.
|
||||
SVar:TrigGainLife:DB$ GainLife | LifeAmount$ X | References$ X
|
||||
SVar:X:Count$HasNumChosenColors.TriggeredCard
|
||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/tablet_of_the_guilds.jpg
|
||||
Oracle:As Tablet of the Guilds enters the battlefield, choose two colors.\nWhenever you cast a spell, if it's at least one of the chosen colors, you gain 1 life for each of the chosen colors it is.
|
||||
|
||||
Reference in New Issue
Block a user