mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 04:38:00 +00:00
- Add Support for ChosenColor in AF_Mana
- Add My Grail (Sol Grail)
This commit is contained in:
1
.gitattributes
vendored
1
.gitattributes
vendored
@@ -7263,6 +7263,7 @@ res/cardsfolder/s/soaring_hope.txt svneol=native#text/plain
|
|||||||
res/cardsfolder/s/soaring_seacliff.txt svneol=native#text/plain
|
res/cardsfolder/s/soaring_seacliff.txt svneol=native#text/plain
|
||||||
res/cardsfolder/s/soilshaper.txt svneol=native#text/plain
|
res/cardsfolder/s/soilshaper.txt svneol=native#text/plain
|
||||||
res/cardsfolder/s/sokenzan_bruiser.txt svneol=native#text/plain
|
res/cardsfolder/s/sokenzan_bruiser.txt svneol=native#text/plain
|
||||||
|
res/cardsfolder/s/sol_grail.txt -text
|
||||||
res/cardsfolder/s/sol_ring.txt svneol=native#text/plain
|
res/cardsfolder/s/sol_ring.txt svneol=native#text/plain
|
||||||
res/cardsfolder/s/solar_blast.txt svneol=native#text/plain
|
res/cardsfolder/s/solar_blast.txt svneol=native#text/plain
|
||||||
res/cardsfolder/s/solar_tide.txt svneol=native#text/plain
|
res/cardsfolder/s/solar_tide.txt svneol=native#text/plain
|
||||||
|
|||||||
@@ -1,10 +1,12 @@
|
|||||||
Name:Hunting Kavu
|
Name:Hunting Kavu
|
||||||
ManaCost:1 R G
|
ManaCost:1 R G
|
||||||
Types:Creature Kavu
|
Types:Creature Kavu
|
||||||
Text:no text
|
Text:no text
|
||||||
PT:2/3
|
PT:2/3
|
||||||
A:AB$ ChangeZone | Cost$ 1 R G T | ValidTgts$ Creature.withoutFlying+YouDontCtrl+attacking | TgtPrompt$ Select target creature without flying that's attacking you | Origin$ Battlefield | Destination$ Exile | SubAbility$ ExileSelf | SpellDescription$ Exile CARDNAME and target creature without flying that's attacking you.
|
A:AB$ ChangeZone | Cost$ 1 R G T | ValidTgts$ Creature.withoutFlying+YouDontCtrl+attacking | TgtPrompt$ Select target creature without flying that's attacking you | Origin$ Battlefield | Destination$ Exile | SubAbility$ ExileSelf | SpellDescription$ Exile CARDNAME and target creature without flying that's attacking you.
|
||||||
SVar:ExileSelf:DB$ ChangeZone | Defined$ Self | Origin$ Battlefield | Destination$ Exile
|
SVar:ExileSelf:DB$ ChangeZone | Defined$ Self | Origin$ Battlefield | Destination$ Exile
|
||||||
SVar:Rarity:Uncommon
|
SVar:Rarity:Uncommon
|
||||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/hunting_kavu.jpg
|
SVar:Picture:http://www.wizards.com/global/images/magic/general/hunting_kavu.jpg
|
||||||
|
SetInfo:INV|Uncommon|http://magiccards.info/scans/en/in/252.jpg
|
||||||
|
Oracle:{1}{R}{G}, {T}: Exile Hunting Kavu and target creature without flying that's attacking you.
|
||||||
End
|
End
|
||||||
@@ -1,15 +1,17 @@
|
|||||||
Name:Riptide Replicator
|
Name:Riptide Replicator
|
||||||
ManaCost:X 4
|
ManaCost:X 4
|
||||||
Types:Artifact
|
Types:Artifact
|
||||||
Text:no text
|
Text:no text
|
||||||
T:Mode$ ChangesZone | ValidCard$ Card.Self | Origin$ Any | Destination$ Battlefield | Execute$ ChooseColor | Static$ True | TriggerDescription$ As CARDNAME enters the battlefield, choose a color and a creature type.
|
T:Mode$ ChangesZone | ValidCard$ Card.Self | Origin$ Any | Destination$ Battlefield | Execute$ ChooseColor | Static$ True | TriggerDescription$ As CARDNAME enters the battlefield, choose a color and a creature type.
|
||||||
SVar:ChooseColor:AB$ ChooseColor | Cost$ 0 | Defined$ You | SubAbility$ ChooseCT
|
SVar:ChooseColor:AB$ ChooseColor | Cost$ 0 | Defined$ You | SubAbility$ ChooseCT
|
||||||
SVar:ChooseCT:DB$ ChooseType | Defined$ You | Type$ Creature
|
SVar:ChooseCT:DB$ ChooseType | Defined$ You | Type$ Creature
|
||||||
K:etbCounter:CHARGE:X
|
K:etbCounter:CHARGE:X
|
||||||
SVar:X:Count$xPaid
|
SVar:X:Count$xPaid
|
||||||
A:AB$ Token | Cost$ 4 T | TokenAmount$ 1 | TokenName$ ChosenType | TokenTypes$ Creature,ChosenType | TokenOwner$ You | TokenColors$ ChosenColor | TokenPower$ Y | TokenToughness$ Y | SpellDescription$ Put an X/X creature token of the chosen color and type onto the battlefield, where X is the number of charge counters on CARDNAME.
|
A:AB$ Token | Cost$ 4 T | TokenAmount$ 1 | TokenName$ ChosenType | TokenTypes$ Creature,ChosenType | TokenOwner$ You | TokenColors$ ChosenColor | TokenPower$ Y | TokenToughness$ Y | SpellDescription$ Put an X/X creature token of the chosen color and type onto the battlefield, where X is the number of charge counters on CARDNAME.
|
||||||
SVar:Y:Count$CardCounters.CHARGE
|
SVar:Y:Count$CardCounters.CHARGE
|
||||||
SVar:RemAIDeck:True
|
SVar:RemAIDeck:True
|
||||||
SVar:Rarity:Rare
|
SVar:Rarity:Rare
|
||||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/riptide_replicator.jpg
|
SVar:Picture:http://www.wizards.com/global/images/magic/general/riptide_replicator.jpg
|
||||||
|
SetInfo:ONS|Rare|http://magiccards.info/scans/en/on/309.jpg
|
||||||
|
Oracle:As Riptide Replicator enters the battlefield, choose a color and a creature type.\nRiptide Replicator enters the battlefield with X charge counters on it.\n{4}, {T}: Put an X/X creature token of the chosen color and type onto the battlefield, where X is the number of charge counters on Riptide Replicator.
|
||||||
End
|
End
|
||||||
13
res/cardsfolder/s/sol_grail.txt
Normal file
13
res/cardsfolder/s/sol_grail.txt
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
Name:Sol Grail
|
||||||
|
ManaCost:3
|
||||||
|
Types:Artifact
|
||||||
|
Text:no text
|
||||||
|
T:Mode$ ChangesZone | ValidCard$ Card.Self | Origin$ Any | Destination$ Battlefield | Execute$ ChooseColor | Static$ True | TriggerDescription$ As CARDNAME enters the battlefield, choose a color.
|
||||||
|
SVar:ChooseColor:DB$ ChooseColor | Defined$ You
|
||||||
|
A:AB$ Mana | Cost$ T | Produced$ Chosen | SpellDescription$ Add one mana of the chosen color to your mana pool.
|
||||||
|
SVar:RemAIDeck:True
|
||||||
|
SVar:Rarity:Uncommon
|
||||||
|
SVar:Picture:http://www.wizards.com/global/images/magic/general/sol_grail.jpg
|
||||||
|
SetInfo:ALL|Uncommon|http://magiccards.info/scans/en/ai/173.jpg
|
||||||
|
Oracle:As Sol Grail enters the battlefield, choose a color.\n{T}: Add one mana of the chosen color to your mana pool.
|
||||||
|
End
|
||||||
@@ -237,9 +237,13 @@ public class AbilityFactory_Mana {
|
|||||||
private static String generatedMana(Ability_Mana abMana, AbilityFactory af, SpellAbility sa) {
|
private static String generatedMana(Ability_Mana abMana, AbilityFactory af, SpellAbility sa) {
|
||||||
// Calculate generated mana here for stack description and resolving
|
// Calculate generated mana here for stack description and resolving
|
||||||
HashMap<String, String> params = af.getMapParams();
|
HashMap<String, String> params = af.getMapParams();
|
||||||
|
Card card = sa.getSourceCard();
|
||||||
int amount = params.containsKey("Amount") ? AbilityFactory.calculateAmount(af.getHostCard(), params.get("Amount"), sa) : 1;
|
int amount = params.containsKey("Amount") ? AbilityFactory.calculateAmount(af.getHostCard(), params.get("Amount"), sa) : 1;
|
||||||
|
|
||||||
String baseMana = abMana.mana();
|
String baseMana = abMana.mana();
|
||||||
|
if (baseMana.equals("Chosen")){
|
||||||
|
baseMana = Input_PayManaCostUtil.getShortColorString(card.getChosenColor());
|
||||||
|
}
|
||||||
|
|
||||||
if (params.containsKey("Bonus")) {
|
if (params.containsKey("Bonus")) {
|
||||||
// For mana abilities that get a bonus
|
// For mana abilities that get a bonus
|
||||||
|
|||||||
Reference in New Issue
Block a user