Commit Graph

66 Commits

Author SHA1 Message Date
Psyyringe
5c3b3f1d03 Psyringe - added quantifiable target restrictions. Whenever you use square brackets [] to specify attributes of a target, you can use the operators <=, >= and = to specify quantities for power, toughness, and/or converted manacost. See added cards for examples.
Limitations:
- Operators for "greater than", "less than", "unequal" have not been implemented, but if a card actually needs them, you can use a preceding minus sign to negate a comparison. Example: -power=3 means "power not equal to 3", -toughness<=3 means "toughness>3".
- You can't use spaces when specifying such restrictions. Write "power<=3" instead of "power <= 3"
- You now need to use a space before the "<" and ">" commands that count the matches for lord(), foreach(), all() and aslongas(). So far we always did use spaces in front of them without actually needing to, now we need to.
- manacost restrictions don't take "X" costs into account. Example: Mistmeadow Skulkin (FUT) has protection from manacost>=3. Blaze has a converted manacost of 1, but when you cast it with an X of 2, then it actually has a converted manacost of 3 while on the stack, and Mistmeadow Skulkin would be protected from it, but currently it isn't.

Please review the code, I'll add a few remarks/questions of my own.
2009-12-26 01:50:33 +00:00
wagic.laurent
a2205c013a Laurent - Fix issue 253 (ZEN) few additions/corrections related to the addition made in R1485 (myUpkeepOnly). I did not add all of them, some that might work are still in the todo.dat with a tag "#Require Testing".
Removed Minotaur Explorer (ODY)
2009-12-16 10:42:16 +00:00
wagic.the.homebrew@gmail.com
cc46be7fbe Erwan
-close issue 171 (remove Soul net from the game)
2009-12-13 10:21:33 +00:00
wagic.the.homebrew@gmail.com
ee4e9f2262 Erwan
-fix issue 161 (brass man can untap outside of upkeep). Use "myUpkeepOnly" keyword. Other keywords such as "myDrawOnly" of course work. Haven't implemented "opponent" yet, is it needed ?
2009-12-13 10:18:37 +00:00
wagic.the.homebrew@gmail.com
f9c810058d Erwan
-closing issue 165 (glasses of urza). Removed the card from the game, won't fix.
2009-12-13 09:48:29 +00:00
wagic.the.homebrew@gmail.com
927382ac8b Erwan
-Remove disrupting scepter from the game, closing issue 163
2009-12-13 09:45:10 +00:00
wagic.the.homebrew@gmail.com
a7493154fa Erwan
- fix issue 168 (kudzu)
- Fix issue 162 (copy VS shroud). This fix introduces a new keyword: NotATarget() instead of Target(). (Which was the best way for me to keep some kind of backward compatibility/ not alter the code too much / fix the bug)
2009-12-13 07:03:28 +00:00
leungclj
fd5731969e JON4TH4N - many minor fixes 2009-12-11 01:12:21 +00:00
wagic.laurent
226c132946 Laurent - Code Clean-Up removed some Hardcode replace with softcode, mostly RV. Tested most of them (except exile from ALL but that should be the same as Swords to plowshares)...
Did not manage to remove/softcode The Rack.
2009-12-07 16:16:01 +00:00
Psyyringe
6da34f642f Psyringe - fixed issue 230. Also softcoded Braingeyser (RV) and Stroke of Genius (USG) and removed interfering obsolete hardcode for Braingeyser. Please review, this is my first attempt of moving hardcode to softcode. 2009-12-05 08:31:09 +00:00
wagic.the.homebrew@gmail.com
1d38a4794d Erwan
- Adding Fog
2009-11-29 12:54:00 +00:00
wagic.the.homebrew@gmail.com
f924546dcc Erwan
- Code cleanup
- fix issue 142 . This will lead to other issues for some cards. These issues can be fixed by using targetcontroller/controller...etc
- Added a few cards
2009-11-21 09:40:14 +00:00
wagic.the.homebrew@gmail.com
1d55211245 Erwan
- Added ">" and "<" for foreach and aslongas. Can be used to code threshold cards. See black vise (RV) and korsan beast (ODY)
2009-11-18 14:37:28 +00:00
wagic.the.homebrew@gmail.com
7f9d22e0aa Erwan
-fixed a memory leak
- Added P02 and PTK 
- New way to create tokens in the parser, much more flexible, see the Hive in RV. Tokens can now be written as other cards, with a rarity of "T". I suggest their id to be the negative value of the card that generates them when possible. Naming convention for images is the same as before: a negative id such as -1138 will need a [id]t.jpg image (1138t.jpg). Positive ids work as "normal" pictures
2009-11-18 13:14:08 +00:00
wagic.the.homebrew@gmail.com
e2d282637c Erwan
- Activated abilities can now use the extra "myTurnOnly" keyword
- {0} Activated abilities should now work
- Fixed issue 166 (instill energy)
2009-11-14 14:17:01 +00:00
wagic.the.homebrew@gmail.com
9ca552093e Erwan
- Added "PreventAllCombatDamage" [from(...)] [to(...)] keyword. Please test it on a few cards before we "mass" use it. As a side effect, fixed issue 155 (ebony horse target).
2009-11-14 11:35:29 +00:00
solo81@web.de
548a512776 Fixed Cursed Land (RV)
Yes, the card still does not for 100% do what the original card should do, but as long as no one will enchant a land of its own everything will be alright.
2009-10-28 14:36:16 +00:00
leungclj
ec306ce615 JON4TH4N - (RV) fixed Fungusaur 2009-10-21 14:39:45 +00:00
wagic.laurent
8583d8a3d4 Laurent . Few additions with @damaged (ARB, ODY, RV) small correction (Idyllic Tutor from MOR) 2009-10-21 13:41:05 +00:00
wagic.laurent
af41e28180 Laurent - small set additions/corrections 2009-10-19 21:12:16 +00:00
solo81@web.de
912974307b (RV):
- wording update (->Gatherer)
- reordering
- bug fixes
- removed Power Surge (cannot work for now!)
2009-10-12 18:18:15 +00:00
leungclj
5ca1292344 J0N4TH4N - (RV) update, removed a few hardcoded cards
-minor update on other sets
2009-10-04 17:13:44 +00:00
wagic.the.homebrew@gmail.com
78da055dd2 Erwan
-Adding "becomes(types,p/t,color abilities)" to the parser. Please do not use yet as it requires more testing
2009-09-30 12:28:50 +00:00
wagic.the.homebrew@gmail.com
e464b8616a Erwan
- removing creatures with banding. Banding is not supported in Wagic anymore, sorry :(
2009-09-27 08:22:18 +00:00
wagic.the.homebrew@gmail.com
515c5ef0db Erwan
-new trigger: @tapped(...
-Parser now supports X for P/T. WARNING: this does not work for activated abilities. And currently this works only for P/T but will be added progressively to other things
2009-09-27 03:41:28 +00:00
wagic.the.homebrew@gmail.com
8771ee7579 Erwan
-Various card fixes
2009-09-06 09:55:11 +00:00
wagic.the.homebrew@gmail.com
163d296bb5 Erwan
- removed useless "color=" lines
- Added color override for cards such as crimson kobolds (note: color should be after the "mana" line to avoid side effects)
2009-08-28 13:40:14 +00:00
solo81@web.de
b822d841a0 refixed r675 2009-08-11 06:05:59 +00:00
solo81@web.de
b9c5d65b38 Some fixes (RV) 2009-08-10 15:48:27 +00:00
wagic.the.homebrew@gmail.com
258e08786d Erwan
- fixed a few cards
- removed extra phasebar
- doesnotuntap and protection from... will now work as auras
2009-08-10 13:22:22 +00:00
wagic.laurent
717fbd2f4f Laurent - Few addition, all tested and worked (exception Disciple of Vault (MRD) & Mercadia's downfall (MRQ) not tested yet...) 2009-07-31 22:00:43 +00:00
leungclj
8149881001 Jonathan - some clean up 2009-07-29 01:11:33 +00:00
wagic.the.homebrew@gmail.com
62048ef486 Erwan
- code cleanup
2009-07-28 14:15:59 +00:00
leungclj
4e440998c1 Jonathan - some random update 2 2009-07-26 09:27:04 +00:00
leungclj
cd040a51ec Jonathan - some random update + my first edition on MTGAbility.cpp + not tested Cruel Tutor (POR), I hope it doesn't shuffle after the card is put on to the top of the library..... 2009-07-26 08:00:23 +00:00
wagic.laurent
dc80253bde Laurent - Fix to R600 + few cards added to EVE 2009-07-21 09:07:05 +00:00
wagic.laurent
7ccac4bb9e Laurent - Removed useless code + updated corresponding cards.dat 2009-07-21 08:50:40 +00:00
wagic.the.homebrew
5dc37d2cf6 Erwan
-Added a few cards
2009-07-21 04:36:54 +00:00
wagic.the.homebrew@gmail.com
c8333e76b1 Erwan
- Updated Parser mechanism. Right now this doesn't change functionalities much, but should be more readable, and make it easier to code some new abilities in the future
- Fixed regenerate, broken with r532
- Death Ward now works
- I think "&&" now works with all abilities, needs to be tested...
2009-07-11 15:59:51 +00:00
wagic.laurent
6d42aa6e77 Laurent - Corrected Sacrifice (RV) 2009-06-13 20:39:33 +00:00
leungclj
d45d526d6d Jonathan - (ALL) updated the ":" for p/t, removed restrain. And yes, removing ":" still works 2009-06-08 10:39:23 +00:00
wagic.the.homebrew@gmail.com
1f25f78965 Erwan
-Added a few cards using library
2009-05-30 09:52:33 +00:00
wagic.the.homebrew
b187150908 Erwan
- Fixed Zombie master
2009-05-27 03:29:55 +00:00
wagic.laurent
37008df473 Laurent - Added "deplete" to the parser does not work for instant and sorcery at the moment (WILL NEED HELP FOR THAT)
Updated cards.dat to include the one with deplete possibility.
Also included various cards (alias from RV)
2009-05-21 16:28:13 +00:00
wagic.the.homebrew@gmail.com
d074cc4de0 Erwan
- Fix bug with Northern Paladin
2009-05-14 12:39:25 +00:00
leungclj
fab6b30521 Jonathan - (RV) fixed Prodigal Sorcerer 2009-05-13 12:13:43 +00:00
wagic.the.homebrew@gmail.com
42e6521155 Erwan
- Added "stack" as a zone in the perser
- Added "fizzle" keyword in the parser for counterspells
2009-05-11 13:23:09 +00:00
wagic.the.homebrew@gmail.com
bdf989ffac Erwan
- fixed the "may" ability a little bit (needs testing: can it be called only once ???)
- Added "Clone", yay :)
2009-04-01 12:59:53 +00:00
leungclj
434de4eb9e corrected subtypes for numbers of creatures 2009-03-22 15:40:56 +00:00
wagic.the.homebrew
070e24ec7a Erwan
- fixed compilation issues
- fixed bug with persuasion
2009-03-18 10:39:38 +00:00