Commit Graph

373 Commits

Author SHA1 Message Date
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
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
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
leungclj
b687c6f79e re-include leveler back to _test.txt 2010-08-01 13:13:16 +00:00
leungclj
1aff826a0a test for Twinstrike, don't remember seeing card that allows targeting 2 things.
improved description on Twinstrike too.
2010-08-01 13:01:14 +00:00
wagic.the.homebrew@gmail.com
ce69e23357 Erwan
- minor fix in Zethfox cards addon (Bad lines error from parser)
- Zethfox's patch for {t(target)} as an extra Cost. Works the same way as sacrifice, check Azami, Lady of Scrolls for an example
- fixed compilation on the PSP (sorry!)
2010-08-01 03:21:59 +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
leungclj
9fb7114b43 leungclj - test for Skullclamp
When equipped creature is put into a graveyard, draw two cards.
this will also trigger if equipped creature goes else where.
2010-07-16 12:05:02 +00:00
solo81@web.de
d18dbe0ac8 Added Scute Mob.
Thanks to Zethfox!
2010-07-15 14:29:05 +00:00
leungclj@googlemail.com
cf5491a08e leungclj - "fixed" Tolsimir Wolfblood by giving the token milticolour manacost. Test included. 2010-07-12 08:01:13 +00:00
wagic.the.homebrew@gmail.com
fd8645d1a4 Erwan
- JGE updates : main accepts argv/argc. Compilation variables for MP3 and Network support
- Minor fix in Wagic (potentially fixes crashes when using activated abilities several times in onr turn. Couldn't reproduce the issue)
2010-07-11 10:56:12 +00:00
leungclj@googlemail.com
4679741c0c leungclj - Fixed Lightmine field 2010-07-03 08:30:26 +00:00
leungclj@googlemail.com
31619aad06 leungclj - fixed gravity well(ROE). test included. 2010-07-02 18:59:47 +00:00
solo81@web.de
aa33af43b8 Added Zombie Infestation.
Added a test for Zombie Infestation.


Thanks to moxen & Zethfox!
2010-06-28 16:34:24 +00:00
wagic.the.homebrew@gmail.com
5cbc8e4b4a Erwan
- fix issue 425 (Echo)
2010-06-21 12:25:38 +00:00
solo81@web.de
4176e1b286 Added One Dozen Eyes (the first card with Entwine in Wagic).
Added a test for One Dozen Eyes and Glimmervoid.
2010-06-12 20:16:52 +00:00
wagic.the.homebrew@gmail.com
0b1fd9359f Erwan
- fixed a duplicate id in primitives (please be careful!)
- fixed issue 426
2010-06-12 14:35:19 +00:00
solo81@web.de
1e25fc44d4 Added 10 successfully tested cards with Devour.
Added a test script creatures with Devour.

Card list -> First comment
2010-05-12 22:02:14 +00:00
leungclj
d92cdfacc1 1 more test script for unearth - pass 2010-05-11 12:00:26 +00:00
leungclj
b9aa9b3df5 test script for unearth - pass 2010-05-11 11:50:51 +00:00
solo81@web.de
dc8c492137 Added several other card tests. 2010-05-08 23:11:42 +00:00
solo81@web.de
f0896a29d9 Added a test for Brainstorm.
This is my first test addition! 

^^ I will now do my best to create tests for all new greater card groups for Wagic 0.12.1.
2010-05-08 18:35:27 +00:00
wagic.the.homebrew@gmail.com
0149512412 Erwan
- fixed bugs introduced in revision 2034 (Giant Growth)
- Extended Story mode xml: much easier to write basic thing, font selection, possibility to position answers, answers now in correct order
- moved story in the menu because it is not major for now
2010-05-06 13:47:56 +00:00
salmelo16
be1a52f660 Update this(X) so that it works with spells as well as activated abilities. Also fixed a bug were this(X) did not work with targeting.
Adds Martial Coup
2010-04-17 19:45:57 +00:00
salmelo16
9cf4c7587b added ability to have triggered abilities target based on the event that triggered, bramblewood paragon, graft, etc.
use "trigger" inside target code of triggered ability.
does not work with @each and @next.
@damaged can use trigger[to] and trigger[from] to specify the target or source of the damage, respectively.

Adds cards:
Aether Flash
Bramblewood Paragon
In the Web of War
Juniper Order Ranger
Mortuary
Primal Forcemage
Fungus Sliver
Simic Initiate

as well as a test file for feral hydra, missing from my last commit.
and daily build.
2010-04-03 23:50:39 +00:00
salmelo16
3a61eba007 allow to use X as the number of counters. daily build.
Added feral hydra.
2010-03-30 22:34:25 +00:00
salmelo16
a06980a197 added new auto keys, this and thisforeach, functionallity similair to aslongas and foreach, but for properties of the card as opposed to cards on the field. More details in first comment. 2010-03-28 02:21:25 +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
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
wagic.the.homebrew@gmail.com
99db31fe9d Erwan
-Kjeldoran_frostbeast fix i167 by salmelo
2010-03-22 03:13:40 +00:00
wagic.jeck
907c0b7b5d Jeck - Test for Oneblocker ability, r1837. 2010-02-08 18:32:42 +00:00
wagic.the.homebrew@gmail.com
21eb34d0fa Erwan
-fix Scourglass. I'm not happy with the fix but there's a huge limitation with the parser here and I'm too lazy to deal with it currently...
2010-02-06 08:04:12 +00:00
wagic.the.homebrew@gmail.com
d50aecdde4 Erwan
-fix issue related to drawing card (underworld dreams)
2010-02-06 07:32:59 +00:00
wagic.the.homebrew@gmail.com
cc1d479070 Erwan
-fix goblin gardener
-fix slithering shade
2010-02-06 06:35:09 +00:00
wagic.the.homebrew@gmail.com
ab9366f035 Erwan
- fix issue 310 (exalted)
- fix issue 312 (heap corruption)
2010-02-04 13:28:04 +00:00
wagic.the.homebrew@gmail.com
e3d98f23f9 Erwan
- fix issue 308
- daily build
2010-01-31 06:24:28 +00:00
wagic.the.homebrew@gmail.com
1747f3af16 Erwan
- fixed test suite typo
- added test for issue 306
2010-01-30 14:31:05 +00:00
wagic.the.homebrew@gmail.com
536ca897bc Erwan
-adding test for error 305 (promise of bunrei). Can't reproduce the issue.
2010-01-30 14:19:15 +00:00
wagic.the.homebrew@gmail.com
54969a2179 Erwan
- Fix an issue with "becomes ueot". See blinkmoth nexus in DST
- Daily build
2010-01-30 12:58:49 +00:00
wagic.the.homebrew@gmail.com
3edc364d8e Erwan
- fix for issue 301 (creatures go to graveyard)
- This adds an important change to "movedTo", which now accepts a "full" target description in both "from" and "movedTo". The point is that a card does not move to "creature|graveyard" from "battlefield" but moves from "creature|battlefield" to "graveyard".
2010-01-21 14:12:11 +00:00
wagic.the.homebrew@gmail.com
fe6ec307d9 Erwan
-fix issue 300 (silver seraph)
2010-01-17 10:34:36 +00:00
wagic.the.homebrew@gmail.com
9d4e9ab5de Erwan
-fix issue 275
2010-01-16 06:26:22 +00:00
wagic.the.homebrew@gmail.com
7de479b73b Erwan
-adding tests for issue 294 (can't reproduce)
2010-01-16 04:33:04 +00:00
wagic.the.homebrew@gmail.com
3be21618d5 Erwan
-fix issue 283 (lord sorcery effects last indefinitely)
2010-01-16 03:10:10 +00:00
wagic.the.homebrew@gmail.com
fea7985212 Erwan
- fix issue 228 (cockatrice VS regenerate)
2010-01-15 14:44:55 +00:00
wagic.the.homebrew@gmail.com
2b39f576d7 Erwan
- fix issue 143 (exalted should be a triggered ability)
2010-01-15 13:29:49 +00:00
wagic.the.homebrew@gmail.com
b3dc2bcda2 Erwan
- fixed issue 267 (hope charm)
- fixed an issue in which the core Rules where not correctly loaded for the test suite
2010-01-10 03:32:18 +00:00
wagic.the.homebrew@gmail.com
192103b105 Erwan
- fix issue 260
- ad test for issue 267
2010-01-09 11:09:44 +00:00
wagic.the.homebrew@gmail.com
dabd93b5d7 Erwan
-fix issue 287 (urza's mine)
2010-01-08 15:07:56 +00:00