Commit Graph

73 Commits

Author SHA1 Message Date
solo81@web.de b336bc85d4 1) Optimized the code of 38 cards based on rev2262.
Cards with FLASHBACK are finally 100%. Here is one example to see the changes:

OLD:

[card]
name=Lava Dart
auto=damage:1 target(creature,player)
autograveyard={S(mountain|mybattlefield)}:copy(this) && moveTo(mystack)
text=Lava Dart deals 1 damage to target creature. -- Flashback - Sacrifice a Mountain. (You may cast this card from your graveyard for its flashback cost. Then exile it.)
mana={R}
type=Instant
[/card]


NEW:

[card]
name=Lava Dart
target=creature,player
auto=damage:1
flashback={S(mountain|mybattlefield)}
text=Lava Dart deals 1 damage to target creature. -- Flashback - Sacrifice a Mountain. (You may cast this card from your graveyard for its flashback cost. Then exile it.)
mana={R}
type=Instant
[/card]


2)Added 21 successfully tested cards based on rev2262. Most of these cards have BUYBACK.


Tests for both keywords will follow in one of the next revisions.
2010-09-10 22:13:41 +00:00
solo81@web.de ca50a2a5a2 Added 21 successfully cards. Most of them profit from the newly introduced keyword=AFFINITY (thanks to Zethfox!)
[card]
name=Frogmite
abilities=affinityartifacts
text=Affinity for artifacts (This spell costs {1} less to cast for each artifact you control.)
mana={4}
type=Artifact Creature
subtype=Frog
power=2
toughness=2
[/card]

Added tests for that.

Have fun!
2010-09-10 16:19:19 +00:00
solo81@web.de 7b33d8382d Added 24 successfully tested cards based on rev2243 (many thx to Zethfox!!)
This addition includes
- cards with STORM (Dragonstorm,Tendrils of Agony,etc.) --> IT'S FINALLY THERE!
- cards which restrict the casting of spells (Arcane Laboratory,Silence)
- PLATINUM ANGEL (keyword: CANTLOSE)

Added tests for STORM;LAND:number,Sneak Attack

Removed Rhox Meditant and its tests.
2010-09-06 19:48:38 +00:00
solo81@web.de 3eb8e64a3e Added 43 successfully tested cards based on rev2234 + tests. 2010-09-03 23:17:17 +00:00
solo81@web.de d47b6fd4ec Added 66 successfully tested cards based on the last revisions. There are several cards groups in this package:
- Phantom creatures (Phantom Centaur, etc.)
- Soratami
- Cards with alternative casting cost (Force of Will) including almost all cards with EVOKE.
- Creatures which let you look at target players hand.


Added tests for several card groups.


Fixed issue148. Bloodhall Ooze works now as it should.
2010-09-01 23:37:18 +00:00
solo81@web.de 4dc2e4c401 1) Added 76 successfully tested cards based on rev2220.
Card list --> first comment


2) Added 3 tests for "PREVENT:*number*".


3) Fixed issue403.
2010-08-29 15:06:39 +00:00
solo81@web.de d67701a3b0 Added 7 successfully tested cards based on rev2209 (bloodthirst).
Added 1 test for creatures with Bloodthirst.

Removed 1 test (Tolsimir Wolfblood: This was related to a Voja workaround, which does not exist anymore!).
2010-08-28 22:11:57 +00:00
solo81@web.de a856d2908e Added 4 cards based on rev2206.
Fixed several card bugs.

Added some missing info to some sets.
2010-08-26 23:11:13 +00:00
solo81@web.de e59b883011 Added 8 cards based on the last 2 revisions.
Added 4 additional successfully tested cards.


Card list --> first comment
2010-08-23 23:06:44 +00:00
solo81@web.de a28b3fd708 Added 51 successfully tested cards. Most of these cards profit from the latest additions. Card list --> first comment 2010-08-21 21:33:58 +00:00
solo81@web.de 704a3018fa Added 23 cards based on rev2185. (Card list ---> first comment)
Added tests for manacost changers and TRANSFORM.
2010-08-17 23:22:00 +00:00
solo81@web.de 5d42bfa88f 1) Added a support for MANACOST CHANGING cards. (by Zethfox)
Two example codes:

[card]
name=Alabaster Leech
auto=lord(*[white]|myhand) white:+1
autoexile=all(*|myhand) resetcost
autograveyard=all(*|myhand) resetcost
autohand=all(*|myhand) resetcost
autolibrary=all(*|myhand) resetcost
text=White spells you cast cost {W} more to cast.
mana={W}
type=Creature
subtype=Leech
power=1
toughness=3
[/card]

[card]
name=Helm of Awakening
auto=lord(*|myhand) colorless:-1
auto=lord(*|opponenthand) colorless:-1
autoexile=all(*|myhand) resetcost
autograveyard=all(*|myhand) resetcost
autohand=all(*|myhand) resetcost
autolibrary=all(*|myhand) resetcost
text=Spells cost {1} less to cast.
mana={2}
type=Artifact
[/card]

autoexile=all(*|myhand) resetcost
autograveyard=all(*|myhand) resetcost
autohand=all(*|myhand) resetcost
autolibrary=all(*|myhand) resetcost

----> This code section is necessary, because manacost altering cards will keep their effect even when they have left the battlefield. RESETCOST erases all alterations which have no existing source on the battlefield anymore.


2) Added the new keyword TRANSFORM, which is similar to BECOMES. The main difference is that you can change single parameters of a permanent (color,type,...).

Example codes:

[card]
name=Memnarch
auto={1}{U}{U}:target(*) transforms(artifact)
auto={3}{U}:moveTo(myBattlefield) target(arifact)
text={1}{U}{U}: Target permanent becomes an artifact in addition to its other types. (This effect lasts indefinitely.) -- {3}{U}: Gain control of target artifact. (This effect lasts indefinitely.)
mana={7}
type=Legendary Artifact Creature
subtype=Wizard
power=4
toughness=5
[/card]

[card]
name=Dralnu's Crusade
auto=lord(goblin) 1/1
auto=lord(goblin) transforms(zombie,black)
text=Goblin creatures get +1/+1. -- All Goblins are black and are Zombies in addition to their other creature types.
mana={1}{B}{R}
type=Enchantment
[/card]

Important notes concerning TRANSFORM:
- IF YOU TARGET A CREATURE THE EFFECT IS PERMINENT.
- IF YOU TARGET THE SOURCE THE EFFECT IS UNTIL END OF TURN. 
- IF YOU USE LORD THE EFFECT LAST TIL PERMINENT SOURCE LEAVES PLAY.

These restrictions will probably be changed in the near future!


3) Added 57 successfully tested cards.
Card list ---> first comment


4) Changed the name of several tokens: "()" used to cuase crashes when used in the name-line.


5) Added the new keyword NONBATTLEZONE for leaves play trigger optimizing. It can be used to replace the phrase "EXILE,GRAVEYARD,HAND,LIBRARY".

I will add tests for test suite in one of the next revisions!!



####### TEST SUITE PROVEN ########
2010-08-17 00:23:48 +00:00
solo81@web.de 2c0867ea0c Added 6 cards (card list --> first comment).
All these cards are creatures which have a certain effect when being cast ("played" from owners hand).

Their code profits from the fact that KICKER is not optional in Wagic: This means that whenever you are able to pay Myojin's kicker cost for example (in this case it is {0} --> rate: 100%), it will enter the battlefield with a Divinity counter on it.
- Myojin won't get the Divinity counter
----> when brought into play from the hand with cards like Elvish Piper.
----> when brought into play from any other zone.
2010-08-14 17:58:48 +00:00
solo81@web.de 897114af70 Added the new zone "OPPONENTHAND" (by Zethfox).
Zethfox: "Opponenthand gui access, cards that target(*|opponenthand) can now be coded as such, target chooser will activate allowing you to click the new icon under the avatar of the opponent and open the opponents hand Gui so you may select the target card."

Cards in opponents hand are only viewable when target choosing would allow you to enter that zone! ;)


- Added the new keyword "NAME". (by Zethfox). 
When used in an autoline it replaces an autoline's "ability" text with a custom ability name. 
The basic phrase is: "auto=name(whatever you want) &&".

Example card:
[card]
name=Order of the Stars
abilities=defender
auto=choice name(white) && counter(0/0,1,White) all(this)
auto=choice name(blue) && counter(0/0,1,Blue) all(this)
auto=choice name(black) && counter(0/0,1,Black) all(this)
auto=choice name(red) && counter(0/0,1,Red) all(this)
auto=choice name(green) && counter(0/0,1,Green) all(this)
auto=this(counter{0/0.1.White}) protection from white
auto=this(counter{0/0.1.Blue}) protection from blue
auto=this(counter{0/0.1.Black}) protection from black
auto=this(counter{0/0.1.Red}) protection from red
auto=this(counter{0/0.1.Green}) protection from green
text=Defender (This creature can't attack.) -- As Order of the Stars enters the battlefield, choose a color. -- Order of the Stars has protection from the chosen color.
mana={W}
type=Creature
subtype=Human Cleric
power=0
toughness=1
[/card]

The popup window for this card will now contain a list with 

"white,"blue","black","red" and "green" 
instead of 
"ability","ability","ability","ability","ability".

This will make a lot of cards much easier to handle!


- Added 42 successfully test using one (or both) new keywords.
Card list --> First comment


Note that we did not add tests for both new keywords:
It is simply not possible to write them yet! They will follow as soon as they are possible. We guarantee that everything we submitted in this revision has been tested excessively!
2010-08-13 00:38:56 +00:00
solo81@web.de 477439773b - Fixed the "CANTREGENERATE" keyword (by Zethfox).
The engine always handled it as "REGENERATE" and thus had to be renamed. Its new name is "CANTREGEN". It has been tested excessively by me and Zethfox. Now all cards with the former "cantregenerate" work as they should.

- I also added a test for "CANTREGEN" (Incinerate).


- Added the new keyword "FOG" (by Zethfox). 
This is an equivalent for "PREVENTALLCOMBATDAMAGE", which only worked for instants and sorceries. "Fog" works only for permanents and is used in combination with the newly introduced parameter "ONESHOT"!

- I also added 2 tests for "FOG" (Maze of Ith, Spore Frog).

Both additions lead to several issue fixes:
Fixed issue286.
Fixed issue328.
Fixed issue332.
Fixed issue416.

- Removed Demonic Torment, Gaseous Form, General's Kabuto, Sandskin. Those cards never worked and could even not be fixed with "FOG".


- Optimized the code of the dragon-lair land-cycle from PLS and added 2 tests for them.

- Added 8 successfully tested cards. Card list -> first comment.
2010-08-09 23:49:31 +00:00
solo81@web.de 9e549f3e88 (Re)Added 16 successfully tested cards based on rev2155.
Card list -> first comment.

Optimized code for 9 cards (now 100%).
Card list -> first comment

Fixed issue355.
2010-08-09 14:35:18 +00:00
solo81@web.de a3376bf08c Added 18 successfully tested cards based on rev2155.
Card list -> first comment

- Added tests for "lifeset" (Biorhythm,Blessed Wind)

- Removed test for Hope Charm.

- Optimized all cards with life payment as activation cost or mana cost.

- Optimized all spells with a must choice.
2010-08-08 23:52:34 +00:00
solo81@web.de e8470d6f71 Added Sword of Kaldra. 2010-08-05 19:42:05 +00:00
solo81@web.de 91be52e50e Added 18 successfully tested cards based on rev2146.
Card list --> First comment.
2010-08-01 18:06:04 +00:00
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