It is currently 27 Apr 2024, 06:10
   
Text Size

Some new cards patch

Post MTG Forge Related Programming Questions Here

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

Some new cards patch

Postby Snacko » 03 Feb 2010, 19:54

Some new cards:
Mystical Tutor
Rebuild
Spell Pierce
Stifle (seems to work correctly, can counter your own abilities if needed; didn't code Phyrexian Dreadnought, but it's a fun combo with this card 2 mana {1} {U} for 12/12, why not) AI most likely wont know how to use this
Wasteland and Strip Mine (no AI code for this but probably something like if have 1-2 lands in play and 1-2 in hand kill a 1 of dual)

You can apply the patch to SVN r323 (can apply via Eclipse Team>Apply Patch..).

edit: if you downloaded the v1 it contained a bug for wasteland / strip either download v2 or change filters
Code: Select all
public boolean addCard(Card c)
                 {
                  if(card.getName().equals("Wasteland"))
                    return c.getType().contains("Land") && !c.getType().contains("Basic");
                  else
                    return c.getType().contains("Land"); 
                 }
This allows to build the Cold Fish deck:
60 Total Cards

19 Creatures
-------------
4x Cold-Eyed Selkie
3x Meddling Mage
4x Noble Hierarch
4x Qasali Pridemage
4x Tarmogoyf

23 Spells
----------
1x Ancestral Recall
1x Black Lotus
1x Brainstorm
3x Daze
4x Force of Will
1x Mox Emerald
1x Mox Pearl
1x Mox Sapphire
1x Mystical Tutor
2x Rebuild
3x Spell Pierce
3x Stifle
1x Time Walk

18 Land
--------
1x Flooded Strand
1x Forest
1x Island
4x Misty Rainforest
1x Strip Mine
3x Tropical Island
3x Tundra
4x Wasteland
Snacko
DEVELOPER
 
Posts: 826
Joined: 29 May 2008, 19:35
Has thanked: 4 times
Been thanked: 74 times

Re: Some new cards patch

Postby DennisBergkamp » 03 Feb 2010, 21:35

Wow, these are some very cool cards, thanks Snacko!
I could give you committer privileges to the SVN by the way, which might be easier.

Another card that would work well with Phyrexian Dreadnought would be Illusionary Mask, but the Dreadnought is kind of a pain to code.
User avatar
DennisBergkamp
AI Programmer
 
Posts: 2602
Joined: 09 Sep 2008, 15:46
Has thanked: 0 time
Been thanked: 0 time

Re: Some new cards patch

Postby Snacko » 03 Feb 2010, 22:20

I'm not sure how hard is it to multi target something in Forge, otherwise Phyrexian Dreadnought is pretty easy to code.
Snacko
DEVELOPER
 
Posts: 826
Joined: 29 May 2008, 19:35
Has thanked: 4 times
Been thanked: 74 times

Re: Some new cards patch

Postby Marek14 » 04 Feb 2010, 00:04

Snacko wrote:I'm not sure how hard is it to multi target something in Forge, otherwise Phyrexian Dreadnought is pretty easy to code.
Well, technically, it doesn't target...
Marek14
Tester
 
Posts: 2761
Joined: 07 Jun 2008, 07:54
Has thanked: 0 time
Been thanked: 297 times

Re: Some new cards patch

Postby Rob Cashwalker » 04 Feb 2010, 01:27

DennisBergkamp wrote:Another card that would work well with Phyrexian Dreadnought would be Illusionary Mask, but the Dreadnought is kind of a pain to code.
Why not just write the input to continue requesting creatures until the condition is satisfied?
The Force will be with you, Always.
User avatar
Rob Cashwalker
Programmer
 
Posts: 2167
Joined: 09 Sep 2008, 15:09
Location: New York
Has thanked: 5 times
Been thanked: 40 times

Re: Some new cards patch

Postby DennisBergkamp » 04 Feb 2010, 02:16

Rob Cashwalker wrote:
DennisBergkamp wrote:Another card that would work well with Phyrexian Dreadnought would be Illusionary Mask, but the Dreadnought is kind of a pain to code.
Why not just write the input to continue requesting creatures until the condition is satisfied?
Yeah, we're doing exactly that with cards like Cloud of Faeries, Garruk Wildspeaker and Gush / Thwart.
It's definitely doable, but it's still a bit of a pain to get the AI part right (when would it make sense for the AI to cast it?).
User avatar
DennisBergkamp
AI Programmer
 
Posts: 2602
Joined: 09 Sep 2008, 15:46
Has thanked: 0 time
Been thanked: 0 time

Re: Some new cards patch

Postby Huggybaby » 04 Feb 2010, 03:19

Cool, Mystical Tutor.

Snacko truly is the Master Programmer.
User avatar
Huggybaby
Administrator
 
Posts: 3207
Joined: 15 Jan 2006, 19:44
Location: Finally out of Atlanta
Has thanked: 701 times
Been thanked: 594 times

Re: Some new cards patch

Postby Marek14 » 04 Feb 2010, 07:30

DennisBergkamp wrote:
Rob Cashwalker wrote:
DennisBergkamp wrote:Another card that would work well with Phyrexian Dreadnought would be Illusionary Mask, but the Dreadnought is kind of a pain to code.
Why not just write the input to continue requesting creatures until the condition is satisfied?
Yeah, we're doing exactly that with cards like Cloud of Faeries, Garruk Wildspeaker and Gush / Thwart.
Would it work for Mossbridge Troll?
Marek14
Tester
 
Posts: 2761
Joined: 07 Jun 2008, 07:54
Has thanked: 0 time
Been thanked: 297 times

Re: Some new cards patch

Postby Mr.Chaos » 04 Feb 2010, 07:49

Uh... Stifle + Phyrexian Dreadnought should not work, rules wise.
At least, if I remember correctly, the sacrifice part of the dreadnought is part of its castingcost and not an activated/triggered ability. In other words, you must sacrifice creatures with total power of 12 or greater BEFORE the dreadnought enters play so there is nothing for Stifle to target.
](*,) = coder at work, according to a coder.It does explain some of the bugs. :wink:
Mr.Chaos
Tester
 
Posts: 625
Joined: 06 Sep 2008, 08:15
Has thanked: 0 time
Been thanked: 0 time

Re: Some new cards patch

Postby zerker2000 » 04 Feb 2010, 07:59

DennisBergkamp wrote:It's definitely doable, but it's still a bit of a pain to get the AI part right (when would it make sense for the AI to cast it?).
During the second main phase, if it can be cast either:
a)With a possibility of being hit with a Stifle, Trickbind, or Voidslime immediately afterwards.
b)Sacrificing mostly creatures that will be gone at EOT(not sure how to check for this, alternatively any >2/1)
c)Leaving enough blockers to face a full human charge and still be at >4 life. Counting it as one of the blockers obviously.
d)Above check for >0 life, Human at ≤ 12 life has no flyers, playable card in hand containing "Target creature [...] gains [...] Flying". Repeat check for shadow. Tentative.

Or at least that's about what I'd do in most situations.
O forest, hold thy wand'ring son
Though fears assail the door.
O foliage, cloak thy ravaged one
In vestments cut for war.


--Eladamri, the Seed of Freyalise
zerker2000
Programmer
 
Posts: 569
Joined: 09 May 2009, 21:40
Location: South Pasadena, CA
Has thanked: 0 time
Been thanked: 0 time

Re: Some new cards patch

Postby Snacko » 04 Feb 2010, 08:31

Mr.Chaos wrote:Uh... Stifle + Phyrexian Dreadnought should not work, rules wise.
At least, if I remember correctly, the sacrifice part of the dreadnought is part of its castingcost and not an activated/triggered ability. In other words, you must sacrifice creatures with total power of 12 or greater BEFORE the dreadnought enters play so there is nothing for Stifle to target.
When ~ = triggered ability

@Marek14
Well yes it doesn't target in the MTG kind of meaning.
Snacko
DEVELOPER
 
Posts: 826
Joined: 29 May 2008, 19:35
Has thanked: 4 times
Been thanked: 74 times


Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 79 guests


Who is online

In total there are 79 users online :: 0 registered, 0 hidden and 79 guests (based on users active over the past 10 minutes)
Most users ever online was 4143 on 23 Jan 2024, 08:21

Users browsing this forum: No registered users and 79 guests

Login Form