Some new cards patch
Post MTG Forge Related Programming Questions Here
Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins
Some new cards patch
by 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 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
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
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 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");
}
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
by 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.
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.
-
DennisBergkamp - AI Programmer
- Posts: 2602
- Joined: 09 Sep 2008, 15:46
- Has thanked: 0 time
- Been thanked: 0 time
Re: Some new cards patch
by 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.
Re: Some new cards patch
by Marek14 » 04 Feb 2010, 00:04
Well, technically, it doesn't target...Snacko wrote: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
by Rob Cashwalker » 04 Feb 2010, 01:27
Why not just write the input to continue requesting creatures until the condition is satisfied?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.
The Force will be with you, Always.
-
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
by DennisBergkamp » 04 Feb 2010, 02:16
Yeah, we're doing exactly that with cards like Cloud of Faeries, Garruk Wildspeaker and Gush / Thwart.Rob Cashwalker wrote:Why not just write the input to continue requesting creatures until the condition is satisfied?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.
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?).
-
DennisBergkamp - AI Programmer
- Posts: 2602
- Joined: 09 Sep 2008, 15:46
- Has thanked: 0 time
- Been thanked: 0 time
Re: Some new cards patch
by Huggybaby » 04 Feb 2010, 03:19
-
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
by Marek14 » 04 Feb 2010, 07:30
Would it work for Mossbridge Troll?DennisBergkamp wrote:Yeah, we're doing exactly that with cards like Cloud of Faeries, Garruk Wildspeaker and Gush / Thwart.Rob Cashwalker wrote:Why not just write the input to continue requesting creatures until the condition is satisfied?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.
Re: Some new cards patch
by 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.
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.
- Mr.Chaos
- Tester
- Posts: 625
- Joined: 06 Sep 2008, 08:15
- Has thanked: 0 time
- Been thanked: 0 time
Re: Some new cards patch
by zerker2000 » 04 Feb 2010, 07:59
During the second main phase, if it can be cast either: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?).
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
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
by Snacko » 04 Feb 2010, 08:31
When ~ = triggered abilityMr.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.
@Marek14
Well yes it doesn't target in the MTG kind of meaning.
11 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 79 guests