Commit Graph

54 Commits

Author SHA1 Message Date
solo81@web.de
8159071849 Added 4 successfully tested cards with Hellbent. (card list ->> first comment)
Added 2 tests for hellbent.
2010-07-28 20:45:50 +00:00
solo81@web.de
a537522770 - Added 22 successful tested cards (card list --> first comment)
Zethfox found out that a single sacrifice cost as an addition to a normal manacost can be added to the manacost-line of a card!

Here is a code example from the famous card Natural Order (VIS):

[card]
name=Natural Order
auto=moveTo(myBattlefield) target(creature[green]|myLibrary)
text=As an additional cost to cast Natural Order, sacrifice a green creature. -- Search your library for a green creature card and put it onto the battlefield. Then shuffle your library.
mana={2}{G}{G}{s;notatarget(creature[green]|mybattlefield)}
type=Sorcery
[/card]

I tested this excessively and I have to say: This kind of code leads to absolute 100%ers.


- Added 2 tests for this to save it from being broken by future code changes.


- Removed the land cycle from Visions (Coral Atoll, everglades, etc.).
2010-07-28 18:30:16 +00:00
solo81@web.de
9a66dec391 Readded a fixed version of Enclave Cryptologist. --- Thx to Zethfox!! 2010-07-24 08:54:34 +00:00
solo81@web.de
352394cfd8 Optimized code for:
Demon's Jester
Fen Stalker
Rakdos Pit Dragon
Scoria Cat
Slithering Shade
Spur Grappler
Taste for Mayhem


Fixed:

Tectonic Edge


ADDED:

Cackling Flames
Cutthroat il-Dal
Keldon Megaliths
Sarcomancy
Spirit Mirror
2010-07-15 21:34:22 +00:00
solo81@web.de
03d0b8a2fa Added M11. 2010-07-09 23:34:55 +00:00
solo81@web.de
852e6e5bf1 Fixed several bugs.
Removed Mystic Snake.

Removed Utopia Vow.
2010-07-09 20:59:12 +00:00
solo81@web.de
0f6093fbc3 Fixed Battle-Rattle Shaman and Walking Atlas.
Removed the Lair-land-cycle (PLS). hey obviously never worked as they should.
2010-07-02 13:52:22 +00:00
solo81@web.de
cd57fcff7d Moved Presence of the Master and Null Brooch to the mtg_todo.dat.
Both cards have been reported not to work. Because there are no tests for them in the test suite, it is very likely that they never worked at all.
2010-06-16 21:40:18 +00:00
solo81@web.de
d618aa4e6e 1) Added several successfully tested cards based on the fact that "<1" now seems to work completely for any permanents.
Card list -> first comment.

2) Fixed issue422.

3) Optimized 3 cards:

Covetous Dragon
Emperor Crocodile
Tethered Griffin


All additions and changes don't cause test suite to crash.

Will also add some tests in the next few days.
2010-06-09 20:47:38 +00:00
solo81@web.de
a75e6fd5b8 Added Bazaar of Baghdad and Magus of the Bazaar. 2010-06-09 13:20:15 +00:00
solo81@web.de
aa6a3cf1a9 Removed Calcite Snapper.
Added Glimpse of Nature.
2010-06-06 20:35:12 +00:00
solo81@web.de
ce34e4c73a Fixed Buried Alive.
Moved Reiver Demon to mtg_todo.dat. This card can only work after some engine fixing... .
2010-06-05 18:05:14 +00:00
solo81@web.de
b2860c24c6 Fixed Antler Skulkin, Keldon Marauders and Zendikar Shrine Expedition. 2010-05-25 11:41:08 +00:00
solo81@web.de
d73416440b Fixed Quirion Trailblazer 2010-05-15 10:19:39 +00:00
solo81@web.de
998e17ef25 Added all remaining codable cards with Unearth.
Card list -> First comment
2010-05-11 21:05:19 +00:00
solo81@web.de
a4faacc7e1 Added some successfully tested cards with Unearth.
Example code:

[card]
name=Dregscape Zombie
autograveyard={B}:moveto(exile) && token(17483511) asSorcery
text=Unearth {B} ({B}: Return this card from your graveyard to the battlefield. It gains haste. Exile it at the beginning of the next end step or if it would leave the battlefield. Unearth only as a sorcery.)
mana={1}{B}
type=Creature
subtype=Zombie
power=2
toughness=1
[/card]
[card]
name=Dregscape Zombie Unearthed
type=Creature
subtype=Zombie
abilities=haste
auto=@next end:moveTo(exile)
power=2
toughness=1
mana={1}{B}
[/card]

Added a test script for this card as an example for cards with Unearth.

Card list -> First comment


More cards with Unearth will follow tomorrow.
2010-05-09 22:09:18 +00:00
solo81@web.de
64367d27a4 Added 37 successfully tested cards based on this discussion
--> http://wololo.net/forum/viewtopic.php?f=21&t=1430

!!!!Many thanks to Kaioshin!!!!


One example card code:

[card]
name=Arc Lightning
target=creature,player
auto=damage:1
auto=damage:1 target(creature,player)
auto=token(-1111112)
text=Arc Lightning deals 3 damage divided as you choose among one, two, or three target creatures and/or players.
mana={2}{R}
type=Sorcery
[/card]
[card]
name=Arc Lightning's 3rd Damage
auto=counter(0/0,1,Arc Lightning)
auto=@damaged(creature,player):thisforeach(counter{0/0.1.Arc Lightning}>0) damage:1 target(creature,player) && counter(0/0,-1,Arc Lightning) && counter(0/0,1,Bury)
auto=thisforeach(counter{0/0.1.Bury}>0) bury
type=Nothing
id=-1111112
[/card]

This new introduced use for fullcoded tokens seems more borderline than it in fact is:

- The tokens cannot be targeted or destroyed except for their own sac-effect.
- They don't cause any effects on the board to trigger.
- The interactions with their "mothercard" cannot be interrupted.
- They are invisible (this is true for most of the cards), because they exist as short as a permanent can exist, vanishing immediately after entering the board.

I couldn't believe it when I saw this way of coding the first time, but it just works wonderfully! Very few people will recognize any difference between this and the usually coded cards.

THIS ADDITION DOES NOT CAUSE TEST SUITE TO CRASH!! ;)


Card List -> First Comment
2010-05-06 21:02:49 +00:00
solo81@web.de
f5b08ade13 Fixed issue397.
Fixed issue398.

Removed Silent Arbiter: This card does not work. Opponent can always attack or block with more then one creature although Silent Arbiter is on the battlefield. Closing issue400.
2010-05-02 19:42:38 +00:00
solo81@web.de
ba91fcfcac Fixed Beastmasters Ascension.
Optimized all cards with Graft.

Removed Merrow Reejerey: Permanents with two or more "may"-lines never worked because all these lines will always trigger, so you could use them all. Closing issue362.
2010-05-01 17:25:42 +00:00
solo81@web.de
ebff6e7872 Removed Miraculous Recovery.
This card cannot work for now: The engine always tries to let the "+1/+1 counter"-effect trigger first, so it tries to give a creature in a graveyard a +1/+1 counter, and this is not possible in wagic for the moment.

Closing issue306.
2010-05-01 14:49:22 +00:00
solo81@web.de
c887ef808a Added 6 successfully tested cards based on rev2021
(winGame keyword).

Added 2 interesting draw spells (they work 100% as they should!)

Added 6 other yet undiscovered, but perfectly working cards.


Card list -> First post
2010-04-27 21:28:01 +00:00
solo81@web.de
f566d8d146 Added 41 successfully tested cards with Cumulative Upkeep. This addition is based on the bug fix in rev2018.
Added 10 other successfully tested cards. These are instants or sorceries with up to two optional targets.

Card list -> First comment
2010-04-24 20:30:00 +00:00
solo81@web.de
c6eff5d83e Added 71 successfully tested cards based on rev2012.
- Several creatures with upkeep costs.
- Almost all creatures with Echo. 
- Force of Nature and Lord o f the Pit are softcoded now.

Card list -> First comment

Fixed issue389.
2010-04-21 18:26:00 +00:00
solo81@web.de
73cfbce0ae Added 36 cards with Flashback.
Thanks to Norrin who initiated the idea of coding cards with flashback this way (-> Wagic Forum -> Card/Sets)

Card list -> First post
2010-04-19 13:20:03 +00:00
solo81@web.de
3ba4bd0cfc Added 4 successfully tested cards with buyback.
Buyback spells with a target don't work yet (see for the reason in my post in this revision).

Card List -> First post
2010-04-18 09:58:11 +00:00
solo81@web.de
52503efaab Added 9 successfully tested cards based on rev2007.
Card list -> First comment
2010-04-18 08:49:15 +00:00
leungclj
ed6361598c addition to r2007 2010-04-17 20:35:37 +00:00
solo81@web.de
27a922db38 Added 11 successfully tested cards based on rev2003.
Activated abilities with {X}-costs that have a target don't work yet.

Card list -> First comment


Fixed issue386. It was just a little typo in Nekrataals autoline.
2010-04-17 12:07:57 +00:00
solo81@web.de
47b5b5f7df Added 84 successfully tested cards.
Most of the cards are based on the last adds by salmelo, while some few cards could have been added for half a year or more.

2 weeks of intensive testing are over, and I think all cards will do what they should but if you still find something discussable after testing them by yourself, plz post it here!

Card list -> First post.
2010-04-16 20:04:23 +00:00
solo81@web.de
90da515334 Added 6 cards based on rev1996.
Card list --> first comment
2010-03-30 23:37:14 +00:00
solo81@web.de
9cb8cd68d5 Added 16 successfully tested cards.
Card list --> first comment
2010-03-30 22:05:32 +00:00
solo81@web.de
5af82ca96b Added 10 creatures with 'Modular' (DST). All cards have been tested successfully.
Card list --> first comment
2010-03-30 13:10:22 +00:00
solo81@web.de
906e51b371 Updated mtg_todo.dat 2010-03-28 22:54:52 +00:00
wagic.laurent
1408f2ef09 Added a few cards; corrected manavault
#Added Incinerate, raking canopy, Aphetto Vulture, Barishi, Cho-Manno, Revolutionary, Marton Stromgald (thanks to entferno).
2010-03-28 17:20:52 +00:00
solo81@web.de
07361b19f5 This is another patch by the great newcomer salmelo.
Salmelo:"Here is another patch, this time adding counters to target specifications, so now you should be able to target things with counters on them as well as use counters for criterion for Lord, aslongas, foreach, etc.
I had to muddle the syntax a little bit though, so heres an example, taken from gwafa hazid, whom I added to the primitives to test with.

lord(creature[counter{0/0.1.Bribe}]|opponentbattlefield) cantattack

obviously the part we are worried about is the counter part, note that those are curly braces { } and periods . instead of parentheses ( ) and commas , this is so that it does not conflict with how targets are normally parsed, which it did before I changed those. Counters still work the same way everywhere else though, you only need to use { } and periods in target code.

Also, you can use counter{any} to specify that it should look for things with any kind of counter on them, not just specific ones, this is used by Kulrath Knight, for example.

I also consolidated most of the code used to parse counter specifications, as it seemed unnecessary duplicating it three times.

Anyway, aside from this major addition, I also added Gwafa Hazid, Profiteer; and Kulrath Knight to the primitives, as well as a test file for each to make sure it worked.

Hopefully y'all will find this patch useful.

Oh, and I should point out that it only works with one Counter in the target specification, i imagine if you put two in the same one then it would either overwrite the first with the second or merge them into some sort of hybrid counter monstrosity, either way, I wouldn't suggest it. "

Cards with vanishing are also codable now. Have a look at the comments for explanation.

daily_build.
2010-03-24 21:15:34 +00:00
solo81@web.de
68d8da296a Added 6 successfully tested cards.
"@movedTo" in combination with "autograveyard" WORKS!" Thanks to Abrasax!

Fixed 18 cards, 1 of them is Rancor. Now works 100%, so issue311 is fixed.

You find a list of all added and fixed cards in the first comment.
2010-03-23 20:54:30 +00:00
solo81@web.de
d924881466 Updated mtg_todo.dat 2010-03-23 16:45:59 +00:00
wagic.the.homebrew@gmail.com
22a35d2265 Erwan
- Added remove/add counters as a cost, patch by Salmelo, thanks man!. See primitives/mtg.txt -> Thallid to see how it works
- added test for i286 by salmelo
- added basic display for counters (this needs improvement) by salmelo
2010-03-22 04:26:42 +00:00
Psyyringe
3b7281cfe8 Psyringe - fixed bugs with Yavimaya Dryad (thanks PrimsSoup), Ogre Arsonist and Crosis's Charm (thanks Niegen), and added a missing text= identifier to "Call of the Herd" (in mtg_todo.dat) 2010-02-11 07:54:09 +00:00
wagic.jeck
69967b6d9c Jeck - Added 7 primitives with the "can't be blocked by more than one blocker" ability: Charging Rhino, Familiar Ground, "Huang Zhong, Shu General", Ironhoof Ox, Norwood Riders, Vorrac Battlehorns, "Yuan Shao, the indecisive". 2010-02-09 01:17:02 +00:00
Psyyringe
d84ce36c55 Psyringe - complete wording update for all cards in mtg.txt and mtg_todo.dat. As a side effect, there shouldn't be any non-basic-ASCII characters left in these files anymore.
Note: I replaced paragraphs (which Wagic can't display at the moment) with the sequence " -- ". If that's not desired, they can be easily replaced, but I think they improve readability. Previously, paragraphs where transcribed into slightly larger spaces, and I found that slightly confusing when reading the texts in-game.
2010-02-09 00:28:20 +00:00
wagic.jeck
b348ab5d24 Jeck - Added and tested "oneblocker" ability, which allows for cards that "can't be blocked by more than one creature.". I've put in Stalking Tiger (I think... these primitives are cool! I just added the prim and all of a sudden it was in 10E), but this should also add Charging Rhino, Familiar Ground, "Huang Zhong, Shu General", Ironhoof Ox, Krosan Vorine, Norwood Riders, Vorrac Battlehorns, "Yuan Shao, the indecisive".
Test and more cards (the ones I can figure out how to do) forthcoming.
2010-02-08 18:18:44 +00:00
Psyyringe
64d592f588 Psyringe - small addition to r1823: fixed 4 bugs in WWK cards (which I hadn't checked for the previous update, now these are checked too). 2010-02-07 22:02:03 +00:00
Psyyringe
70ac1e5d52 Psyringe - Checked the manacost, color, type, subtype, power, toughness, and loyalty data of all cards in mtg.txt and mtg_todo.dat, and did about 200 bugfixes, optimizations, and cosmetic changes. All cards in both files should now have correct values for the keywords mentioned above.
Note: I checked all changes manually, so in the cases where the value *has* to be different for the card to work (e.g.Covetous Dragon), I left the values as they were. In these cases I added a comment to the card code which notes why the values need to be different, so that no one else breaks the card by "correcting" them.

Note 2: You may have noticed that I used a fixed sequence of lines for all cards. That was a byproduct of the file unification process, but I think it's also rather useful. Above the "text=" line are the lines that we need to code (abilities=, target=, auto= etc.). Below the "text=" line are the fixed values (mana=, type=, power= etc.) which we only need to touch if either the card gets errata'd, or we need to do some tricky coding (e.g. Covetous Dragon). So, in other words, everything below the "text=" line should be okay now in both files, and doesn't need to be checked when implementing or debugging a card.
2010-02-07 20:57:51 +00:00
Psyyringe
55ba75d348 Psyringe - compared the complete code of all cards that were coded in at least two different ways prior to r1774. Fixed a number of bugs. This closes issue 204. 2010-02-06 22:09:20 +00:00
wagic.the.homebrew@gmail.com
b645f1cff4 Erwan
- remove Kor Haven and other incorrectly coded "prevent damage" cards
2010-02-06 08:23:32 +00:00
Psyyringe
694efe96b7 Psyringe - even more card cleanup. Added some cards that were mysteriously missing (thanks to bcdiscman for spotting this!). 2010-02-04 20:21:44 +00:00
Psyyringe
ba11d414a5 Psyringe - more card cleanup, added some S99 cards, and some that apparently got lost earlier. 2010-02-03 23:13:35 +00:00
Psyyringe
ce4ac55441 Psyringe - added missing cards from Alpha / Beta / Unlimited to mtg.txt and mtg_todo.dat. Wagic finally supports Black Lotus, the Moxes, Ancestral Recall etc. out of the box now. 2010-02-03 20:55:35 +00:00
Psyyringe
9aa8d37b50 Psyringe - further card cleanup:
- matched card names of flip cards and split cards in _cards.dat and mtg:todo.dat

- removed the now superfluous todo.dat files, the file mtg_todo.dat replaces these.
2010-02-03 19:01:16 +00:00