Page 1 of 1

Some new cards patch

PostPosted: 03 Feb 2010, 19:54
by Snacko
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

Re: Some new cards patch

PostPosted: 03 Feb 2010, 21:35
by DennisBergkamp
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.

Re: Some new cards patch

PostPosted: 03 Feb 2010, 22:20
by Snacko
I'm not sure how hard is it to multi target something in Forge, otherwise Phyrexian Dreadnought is pretty easy to code.

Re: Some new cards patch

PostPosted: 04 Feb 2010, 00:04
by Marek14
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...

Re: Some new cards patch

PostPosted: 04 Feb 2010, 01:27
by Rob Cashwalker
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?

Re: Some new cards patch

PostPosted: 04 Feb 2010, 02:16
by DennisBergkamp
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?).

Re: Some new cards patch

PostPosted: 04 Feb 2010, 03:19
by Huggybaby
Cool, Mystical Tutor.

Snacko truly is the Master Programmer.

Re: Some new cards patch

PostPosted: 04 Feb 2010, 07:30
by Marek14
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?

Re: Some new cards patch

PostPosted: 04 Feb 2010, 07:49
by Mr.Chaos
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.

Re: Some new cards patch

PostPosted: 04 Feb 2010, 07:59
by zerker2000
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.

Re: Some new cards patch

PostPosted: 04 Feb 2010, 08:31
by Snacko
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.