It is currently 30 Oct 2025, 22:58
   
Text Size

Return to Ravnica Spoiler Season

Post MTG Forge Related Programming Questions Here

Moderators: timmermac, Agetian, friarsol, Blacksmith, KrazyTheFox, CCGHQ Admins

Re: Return to Ravnica Spoiler Season

Postby torridus » 18 Sep 2012, 22:29

Armada Wurm | Open
Code: Select all
Name:Armada Wurm
ManaCost:2 G G W W
Types:Creature Wurm
Text:no text
PT:5/5
K:Trample
T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Card.Self | Execute$ TrigToken | TriggerDescription$ When CARDNAME enters the battlefield, put a 5/5 green Wurm creature token with trample onto the battlefield.
SVar:TrigToken:AB$Token | Cost$ 0 | TokenAmount$ 1 | TokenName$ Wurm | TokenTypes$ Creature,Wurm | TokenOwner$ TriggeredCardController | TokenColors$ Green | TokenPower$ 5 | TokenToughness$ 5 | TokenKeywords$ Trample
SVar:Rarity:Mythic
End
Utvara Hellkite | Open
Code: Select all
Name:Utvara Hellkite
ManaCost:6 R R
Types:Creature Dragon
Text:no text
PT:6/6
K:Flying
T:Mode$ Attacks | ValidCard$ Creature.Dragon+YouCtrl | Execute$ TrigToken | TriggerDescription$ Whenever a dragon you control attacks, put a 6/6 red dragon creature token with flying onto the battlefield.
SVar:TrigToken:AB$Token | Cost$ 0 | TokenAmount$ 1 | TokenName$ Dragon | TokenTypes$ Creature,Dragon | TokenOwner$ You | TokenColors$ Red | TokenPower$ 6 | TokenToughness$ 6 | TokenKeywords$ Flying
SVar:Rarity:Mythic
SVar:Picture:http://www.wizards.com/global/images/magic/general/utvara_hellkite.jpg
End
Rakdos Ragemutt | Open
Code: Select all
Name:Rakdos Ragemutt
ManaCost:3 B R
Types:Creature Elemental Hound
Text:no text
PT:3/3
K:Haste
K:Lifelink
SVar:Rarity:Uncommon
End
Risen Sanctuary | Open
Code: Select all
Name:Risen Sanctuary
ManaCost:5 G W
Types:Creature Elemental
Text:no text
PT:8/8
K:Vigilance
SVar:Rarity:Uncommon
End
Trestle Troll | Open
Code: Select all
Name:Trestle Troll
ManaCost:1 B G
Types:Creature Troll
Text:no text
PT:1/4
K:Defender
K:Reach
A:AB$ Regenerate | Cost$ 1 B G | SpellDescription$ Regenerate CARDNAME.
SVar:Rarity:Common
End
Phantom General | Open
Code: Select all
Name:Phantom General
ManaCost:3 W
Types:Creature Spirit Soldier
Text:no text
PT:2/3
S:Mode$ Continuous | Affected$ Creature.token+YouCtrl | AddPower$ 1 | AddToughness$ 1 | Description$ Creature tokens you control get +1/+1.
SVar:PlayMain1:TRUE
SVar:Rarity:Uncommon
End
Dramatic Rescue | Open
Code: Select all
Name:Dramatic Rescue
ManaCost:W U
Types:Instant
Text:no text
A:SP$ ChangeZone | Cost$ W U | ValidTgts$ Creature | TgtPrompt$ Select target creature | Origin$ Battlefield | Destination$ Hand | SubAbility$ DBGainLife | SpellDescription$ Return target creature to its owner's hand. You gain 2 life.
SVar:DBGainLife:DB$GainLife | LifeAmount$ 2
SVar:Rarity:Common
End
Golgari Charm | Open
Code: Select all
Name:Golgari Charm
ManaCost:B G
Types:Instant
Text:no text
A:SP$ PumpAll | Cost$ B G | ValidCards$ Creature | NumAtt$ -1 | NumDef$ -1 | SpellDescription$ Choose one - all creatures get -1/-1 until end of turn;
A:SP$ Destroy | Cost$ B G | ValidTgts$ Enchantment | TgtPrompt$ Select target enchantment | SpellDescription$ or destroy target enchantment;
A:SP$RegenerateAll | Cost$ B G | ValidCards$ Creature.YouCtrl | SpellDescription$ or regenerate each creature you control.
SVar:Rarity:Uncommon
End
Trostani, Selesnya's Voice | Open
Code: Select all
Name:Trostani, Selesnya's Voice
ManaCost:G G W W
Types:Legendary Creature Dryad
Text:no text
PT:2/5
T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Creature.YouCtrl+Other | TriggerZones$ Battlefield | Execute$ TrigGainLife | TriggerDescription$ Whenever another creature enters the battlefield under your control, you gain life equal to that creature's toughness.
SVar:TrigGainLife:AB$GainLife | Cost$ 0 | Defined$ You | LifeAmount$ Life | References$ Life
SVar:Life:TriggeredCard$CardToughness
A:AB$ ChooseCard | Cost$ 1 G W T | Defined$ You | Amount$ 1 | Choices$ Creature.token+YouCtrl | SubAbility$ DBCopy | RememberChosen$ True | SpellDescription$ Populate. (Put a token onto the battlefield that's a copy of a creature token you control.)
SVar:DBCopy:DB$ CopyPermanent | Defined$ Remembered | NumCopies$ 1 | SubAbility$ DBCleanup
SVar:DBCleanup:DB$ Cleanup | ClearRemembered$ True
SVar:Rarity:Mythic
End
Vitu-Ghazi Guildmage | Open
Code: Select all
Name:Vitu-Ghazi Guildmage
ManaCost:G W
Types:Creature Dryad Shaman
Text:no text
PT:2/2
A:AB$ Token | Cost$ 4 G W | TokenAmount$ 1 | TokenName$ Centaur | TokenTypes$ Creature,Centaur | TokenOwner$ You | TokenColors$ Green | TokenPower$ 3 | TokenToughness$ 3 | SpellDescription$ Put a 3/3 green Centaur creature token onto the battlefield.
A:AB$ ChooseCard | Cost$ 2 G W | Defined$ You | Amount$ 1 | Choices$ Creature.token+YouCtrl | SubAbility$ DBCopy | RememberChosen$ True | SpellDescription$ Populate. (Put a token onto the battlefield that's a copy of a creature token you control.)
SVar:DBCopy:DB$ CopyPermanent | Defined$ Remembered | NumCopies$ 1 | SubAbility$ DBCleanup
SVar:DBCleanup:DB$ Cleanup | ClearRemembered$ True
SVar:Rarity:Uncommon
End
Grove of the Guardian | Open
Code: Select all
Name:Grove of the Guardian
ManaCost:no cost
Types:Land
Text:no text
A:AB$ Mana | Cost$ T | Produced$ 1 | SpellDescription$ Add 1 to your mana pool.
A:AB$ Token | Cost$ 3 G W T tapXType<2/Creature> Sac<1/CARDNAME> | CostDesc$ 3 G W T, Tap two untapped creatures you control, sacrifice CARDNAME: | TokenAmount$ 1 | TokenName$ Elemental | TokenTypes$ Creature,Elemental | TokenOwner$ You | TokenColors$ Green,White | TokenPower$ 8 | TokenToughness$ 8 | TokenKeywords$ Vigilance | SpellDescription$ Put an 8/8 green and white Elemental creature token with vigilance onto the battlefield.
SVar:Rarity:Rare
End
Still having difficulties with the wiki.

EDIT: Slight update for the wording on Armada Wurm, now that we have a visual spoiler to pick up where the textual spoiler left off.
Last edited by torridus on 21 Sep 2012, 18:20, edited 1 time in total.
torridus
 
Posts: 56
Joined: 03 Jul 2012, 12:58
Has thanked: 4 times
Been thanked: 9 times

Re: Return to Ravnica Spoiler Season

Postby ZzzzSleep » 20 Sep 2012, 04:50

I've claimed the cards you've listed here on the wiki for you, torridus.
ZzzzSleep
 
Posts: 182
Joined: 29 Oct 2010, 02:19
Has thanked: 18 times
Been thanked: 18 times

Re: Return to Ravnica Spoiler Season

Postby ZzzzSleep » 21 Sep 2012, 15:28

Some quick Red cards!
Annihilating Fire | Open
Code: Select all
Name:Annihilating Fire
ManaCost:1 R R
Types:Instant
Text:no text
A:SP$ DealDamage | Cost$ 1 R R | Tgt$ TgtCP | NumDmg$ 3 | SubAbility$ DB | SpellDescription$ CARDNAME deals 3 damage to target creature or player. If a creature dealt damage this way would die this turn, exile it instead.
SVar:DB:DB$Pump | KW$ HIDDEN If CARDNAME would be put into a graveyard, exile it instead. | Defined$ Targeted
SVar:Rarity:Common
SVar:Picture:http://www.wizards.com/global/images/magic/general/annihilating_fire.jpg
End
Bellows Lizard | Open
Code: Select all
Name:Bellows Lizard
ManaCost:R
Types:Creature Lizard
Text:no text
PT:1/1
A:AB$ Pump | Cost$ 1 R | NumAtt$ +1 | SpellDescription$ CARDNAME gets +1/+0 until end of turn.
SVar:Rarity:Common
End
Cobblebrute | Open
Code: Select all
Name:Cobblebrute
ManaCost:3 R
Types:Creature Elemental
Text:no text
PT:5/2
SVar:Rarity:Common
SVar:Picture:http://www.wizards.com/global/images/magic/general/cobblebrute.jpg
End
Minotaur Aggressor | Open
Code: Select all
Name:Minotaur Aggressor
ManaCost:6 R
Types:Creature Minotaur Berserker
Text:no text
PT:6/2
K:First Strike
K:Haste
SVar:Rarity:Uncommon
SVar:Picture:http://www.wizards.com/global/images/magic/general/minotaur_aggressor.jpg
End
Tenement Crasher | Open
Code: Select all
Name:Tenement Crasher
ManaCost:5 R
Types:Creature Beast
Text:no text
PT:5/4
K:Haste
SVar:Rarity:Common
SVar:Picture:http://www.wizards.com/global/images/magic/general/tenement_crasher.jpg
End
ZzzzSleep
 
Posts: 182
Joined: 29 Oct 2010, 02:19
Has thanked: 18 times
Been thanked: 18 times

Re: Return to Ravnica Spoiler Season

Postby ArsenalNut » 25 Sep 2012, 05:30

Axebane Guardian | Open
Name:Axebane Guardian
ManaCost:2 G
Types:Creature Human Druid
Text:no text
PT:0/3
K:Defender
A:AB$ Mana | Cost$ T | Produced$ Combo Any | Amount$ X | References$ X | SpellDescription$ Add X mana in any combination of colors to your mana pool, where X is the number of creatures with defender you control.
SVar:X:Count$Valid Creature.withDefender+YouCtrl
SVar:Rarity:Common
SVar:Picture:http://www.wizards.com/global/images/magic/general/axebane_guardian.jpg
End

This card requires the code additions in r17067. Right now, for the human player, there are no automatic choices made for the colors in the combination mana. There is a potential to reuse the logic used by the AI to automate some of the choices for the Human player also.

I also tested the Orcish Lumberjack script using the new combo mana format.
So many cards, so little time
User avatar
ArsenalNut
 
Posts: 512
Joined: 08 Jul 2011, 03:49
Has thanked: 27 times
Been thanked: 121 times

Re: Return to Ravnica Spoiler Season

Postby Max mtg » 25 Sep 2012, 09:56

Wen you'll be merging changes back to trunk, please keep in mind that there are considerable changes all around code related to CardList refactoring. My aim is to replace it with List<Card> and enable its filtering with my forge.util.closure.Predicate or even ( maybe at some later moment) switch to Google's com.google.common.collect.Iterable and Functions.
Single class for single responsibility.
Max mtg
Programmer
 
Posts: 1997
Joined: 02 Jul 2011, 14:26
Has thanked: 173 times
Been thanked: 334 times

Re: Return to Ravnica Spoiler Season

Postby ArsenalNut » 25 Sep 2012, 12:32

Max mtg wrote:Wen you'll be merging changes back to trunk, please keep in mind that there are considerable changes all around code related to CardList refactoring. My aim is to replace it with List<Card> and enable its filtering with my forge.util.closure.Predicate or even ( maybe at some later moment) switch to Google's com.google.common.collect.Iterable and Functions.
Shouldn't be a problem since the branch for the RTR cards only contains the cardsfolder.
So many cards, so little time
User avatar
ArsenalNut
 
Posts: 512
Joined: 08 Jul 2011, 03:49
Has thanked: 27 times
Been thanked: 121 times

Re: Return to Ravnica Spoiler Season

Postby friarsol » 25 Sep 2012, 17:40

ArsenalNut wrote:This card requires the code additions in r17067. Right now, for the human player, there are no automatic choices made for the colors in the combination mana. There is a potential to reuse the logic used by the AI to automate some of the choices for the Human player also.

I also tested the Orcish Lumberjack script using the new combo mana format.
Awesome, does that mean we can convert the 5 lands that have Add X Combination Mana that are currently hardcoded?
friarsol
Global Moderator
 
Posts: 7593
Joined: 15 May 2010, 04:20
Has thanked: 243 times
Been thanked: 965 times

Re: Return to Ravnica Spoiler Season

Postby moomarc » 25 Sep 2012, 18:02

I started converting some of these but when I tested Altar of the Lost, for instance, I realised that they have to be used before starting a cost payment which makes them slightly unwieldy. Is there any way to change that?
-Marc
User avatar
moomarc
Pixel Commander
 
Posts: 2091
Joined: 04 Jun 2010, 15:22
Location: Johannesburg, South Africa
Has thanked: 371 times
Been thanked: 372 times

Re: Return to Ravnica Spoiler Season

Postby friarsol » 26 Sep 2012, 13:09

Looks like RtR is up on gatherer and magiccards.info. Once Arch updates mtgdata.txt we can merge the branch back into the trunk.
friarsol
Global Moderator
 
Posts: 7593
Joined: 15 May 2010, 04:20
Has thanked: 243 times
Been thanked: 965 times

Re: Return to Ravnica Spoiler Season

Postby ArsenalNut » 26 Sep 2012, 13:36

moomarc wrote:I started converting some of these but when I tested Altar of the Lost, for instance, I realised that they have to be used before starting a cost payment which makes them slightly unwieldy. Is there any way to change that?
I am not sure I understand what you mean about using before payment. I notice when you pay a cost with Orcish Lumberjack that the mana goes into the mana pool instead of paying the cost directly. I think the additional cost of sacrificing a forest causes this to happen. I believe all mana abilities that have additional costs besides tapping have this issue. I have traced through this before but didn't see a great way to fix it. Is this what you meant by using them before paying the cost?

Alter of the Lost had a similar issue in that the mana from the subability goes into the mana pool rather than paying the cost. I converted Altar of the Lost to combo mana which solves the previous issue since there is now only one mana ability.
So many cards, so little time
User avatar
ArsenalNut
 
Posts: 512
Joined: 08 Jul 2011, 03:49
Has thanked: 27 times
Been thanked: 121 times

Re: Return to Ravnica Spoiler Season

Postby moomarc » 26 Sep 2012, 14:22

ArsenalNut wrote:
moomarc wrote:I started converting some of these but when I tested Altar of the Lost, for instance, I realised that they have to be used before starting a cost payment which makes them slightly unwieldy. Is there any way to change that?
I am not sure I understand what you mean about using before payment. I notice when you pay a cost with Orcish Lumberjack that the mana goes into the mana pool instead of paying the cost directly. I think the additional cost of sacrificing a forest causes this to happen. I believe all mana abilities that have additional costs besides tapping have this issue. I have traced through this before but didn't see a great way to fix it. Is this what you meant by using them before paying the cost?

Alter of the Lost had a similar issue in that the mana from the subability goes into the mana pool rather than paying the cost. I converted Altar of the Lost to combo mana which solves the previous issue since there is now only one mana ability.
:oops: #-o Turns out I was just just a twit and forgot to RTFC, so didn't take into account that the mana could only be used for flashback spells. I bow my head in shame and will wander off to do my penance now... 8-[
-Marc
User avatar
moomarc
Pixel Commander
 
Posts: 2091
Joined: 04 Jun 2010, 15:22
Location: Johannesburg, South Africa
Has thanked: 371 times
Been thanked: 372 times

Re: Return to Ravnica Spoiler Season

Postby friarsol » 26 Sep 2012, 14:49

moomarc wrote: :oops: #-o Turns out I was just just a twit and forgot to RTFC, so didn't take into account that the mana could only be used for flashback spells. I bow my head in shame and will wander off to do my penance now... 8-[
I declare your penance to be converting the 5 combination lands that are currently hardcoded :D

else if (cardName.equals("Calciform Pools") || cardName.equals("Dreadship Reef")
|| cardName.equals("Fungal Reaches") || cardName.equals("Molten Slagheap")
|| cardName.equals("Saltcrusted Steppe")) {

Check out Bottomless Vault to see how the removing of counters should work.
friarsol
Global Moderator
 
Posts: 7593
Joined: 15 May 2010, 04:20
Has thanked: 243 times
Been thanked: 965 times

Re: Return to Ravnica Spoiler Season

Postby moomarc » 26 Sep 2012, 14:54

friarsol wrote:
moomarc wrote: :oops: #-o Turns out I was just just a twit and forgot to RTFC, so didn't take into account that the mana could only be used for flashback spells. I bow my head in shame and will wander off to do my penance now... 8-[
I declare your penance to be converting the 5 combination lands that are currently hardcoded :D

else if (cardName.equals("Calciform Pools") || cardName.equals("Dreadship Reef")
|| cardName.equals("Fungal Reaches") || cardName.equals("Molten Slagheap")
|| cardName.equals("Saltcrusted Steppe")) {

Check out Bottomless Vault to see how the removing of counters should work.
Haha! That was the penance I'd selected already! First one done! :lol:
-Marc
User avatar
moomarc
Pixel Commander
 
Posts: 2091
Joined: 04 Jun 2010, 15:22
Location: Johannesburg, South Africa
Has thanked: 371 times
Been thanked: 372 times

Re: Return to Ravnica Spoiler Season

Postby moomarc » 27 Sep 2012, 11:30

So while I was looking for the reason why no tokens were being downloaded, I ended up coming across what's possibly the reason why blank cards are being downloaded for new sets. I added a test to check the response code for the download links and it always returns 200 which means that it thinks the url is valid. Then I came across something on StackOverflow about some sites returning 200 for any junk link. I think this is what's happening with Cardforge where you land on the homepage whenever you type a dud address. Not sure though (not my area of expertise). Anyone clued up on that side of things?

Otherwise before we release the beta, we must just filter out RtR set from GuiDownloadSetPicturesLQ until the HQ images are released so that I can process them for forge.
-Marc
User avatar
moomarc
Pixel Commander
 
Posts: 2091
Joined: 04 Jun 2010, 15:22
Location: Johannesburg, South Africa
Has thanked: 371 times
Been thanked: 372 times

Re: Return to Ravnica Spoiler Season

Postby friarsol » 27 Sep 2012, 12:13

moomarc wrote:So while I was looking for the reason why no tokens were being downloaded, I ended up coming across what's possibly the reason why blank cards are being downloaded for new sets. I added a test to check the response code for the download links and it always returns 200 which means that it thinks the url is valid. Then I came across something on StackOverflow about some sites returning 200 for any junk link. I think this is what's happening with Cardforge where you land on the homepage whenever you type a dud address. Not sure though (not my area of expertise). Anyone clued up on that side of things?
That sounds right. We can see if there's a way to not follow redirects so it forces the webserver to give us a 404 error instead of a redirect and the home page.
friarsol
Global Moderator
 
Posts: 7593
Joined: 15 May 2010, 04:20
Has thanked: 243 times
Been thanked: 965 times

PreviousNext

Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 26 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 26 users online :: 0 registered, 0 hidden and 26 guests (based on users active over the past 10 minutes)
Most users ever online was 9298 on 10 Oct 2025, 12:54

Users browsing this forum: No registered users and 26 guests

Login Form