Commit Graph

144 Commits

Author SHA1 Message Date
Anthony Calosa
7f2f68ec58 Update all Core Sets 2016-07-01 07:05:47 +08: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
Psyyringe
9150a5b13c Psyringe - made all cards using the primitives system, added some sets. Important: This update changes the file where we store the card code, now all card code is in primitives/mtg.txt. We also have only one "todo" file now, it's mtg.todo. Note: mtg.todo had to be put out of the "primitives" folder for the being, since Wagic currently loads everthing in this folder, regardless of file extension. Once this is fixed, mtg.todo will be moved into the "primitives" folder.
More detailed instructions will follow shortly.
2010-02-01 07:40:39 +00:00
solo81@web.de
de47b25866 Added 51 successfully tested cards based on rev1757. 2010-01-31 20:56:25 +00:00
solo81@web.de
8ca821c284 Added 36 Cards.
All cards have been tested successfully.

This update contains 2 card groups:

1) Creatures which get a certain power- and or toughness bonus when blocking and/or being blocked. This includes

2) Creatures with "bushido". Works 100%!
2010-01-29 17:59:34 +00:00
solo81@web.de
bec268df16 Added 38 successfully tested cards.
This update contents:

1. Creatures which get a certain power- and/or toughness-bonus when attacking or blocking.

2. Creatures which leave the battlefield at end of combat after having attacked or blocked.

3. Clockwork-"family" from Mirrodin.
2010-01-28 19:16:39 +00:00
solo81@web.de
e48f9bd7f1 Added 102! successfully tested cards.
After weeks of hard work, I can proudly present you this huge package of cards, based only on already existing card code elements.

Some examples and important notes:

- Cards that get buried if you don't fulfill a condition
1. when they enter the battlefield (Hidden Horror[WEL]; Mercenary Knight, Thundering Wurm [both POR])
2. during your upkeep (Endless Wurm[USG]).

- Cards that allow to draw a card, then discard a card when entering the battlefield or damaging an opponent (Owl Familiar[POR], Looter il-Kor[TSP]).

IMPORTANT NOTE: Those cards work only correctly because the draw effect resolves before the discard effect. 
Instants and Sorceries with such effects or permanents that have an activation cost for drawing, then discarding a card won't work because the two effects don't trigger in the correct order.

- Land cycle from Visions and Planeshift (both very puzzling, but working perfectly!)


I also updated World enchantments (tested & working, see rules for them in Gatherer!)

Several card fixes.


If you have any questions, post them! ;)
2010-01-24 20:43:21 +00:00
solo81@web.de
0892516ef4 Added huge amount of successfully tested cards.
Updated wordings (10E).
2010-01-09 22:03:21 +00:00
wagic.the.homebrew@gmail.com
28a9b83c1b Erwan
-"minor" fixes in Aven cloudchaser
2010-01-06 14:27:02 +00:00
wagic.the.homebrew@gmail.com
6f5b603912 Erwan
-missing todo.dat from previous update
2010-01-06 14:23:26 +00:00
wagic.the.homebrew@gmail.com
da07370243 Erwan
- (Finally) adding "must" abilities. Usage is as natural as possible, check Aven cloudchaser in 10E.
2010-01-06 14:22:41 +00:00
wagic.jeck
50169eb5fb Jeck - Metadata edits.
* Set names redacted pending further research.
* Blocks assigned "safe", vaguely similar words.
2010-01-06 09:52:18 +00:00
wagic.jeck
3cdae99e46 Jeck - Rudimentary metadata for all current sets. 2010-01-06 00:06:43 +00:00
wagic.the.homebrew@gmail.com
69c5dee979 Erwan
- IMPORTANT: Legendary is not an ability anymore, creating cards with super types should be much more natural. You can now say "type=Snow Land", and stuff like that. No backward compatibility!!!
2010-01-03 03:11:30 +00:00
solo81@web.de
79a98e1c8f Small corrections 2010-01-03 02:51:41 +00:00
solo81@web.de
79b248a152 Added many cards with "cantbeblockedby". 2009-12-29 18:17:06 +00:00
Psyyringe
49536fce44 Psyringe - introducing new ability: cantBeBlockedBy(T). T can be any targez specification, like "wall", "creature[flying]", etc. See added cards for examples. Note: This ability currently has the same restrictions as "protection from(T)", i.e. it can't be used in activated abilities or instants/sorceries. It *can* be used for creatures,auras, and other continuous abilities (e.g. an enchantment which grants "unblockable by walls" to all rats should be possible, although I didn't test that). There are 47 cards which use the phrase "can't be blocked by", so we should be able to get another fair mount of cards out of that.
Notes to programmers:
1. This feature uses an awful lot of copy-pasta, using "protetcion from()" as a base. While I'm learning the architecture, it's easier for me to have a dedicated single-purpose piece of code to work with, than trying to create multi-purpose code. I'm aware that this isn't a very elegant approach though, and I hope to be able to refactor additions like this into multi-purpose code once I have a better understanding of the architecture as a whole.

2. Please check the questions I'll add in my next code comments, specifically about AI integration and activated abilities / instants / sorceries.

3. I did have a crash (with the debugger complaining about stack corruption around the cd variable) during testing. I wasn't able to reproduce it though. I did have to clean the solution in-between when I updated to the primitives system, so perhaps there was this cleaning solved whatever corruption was in my files. I'm mentioning the issue in case someone has an idea on where my code might be risky (I'm still probne to making beginners mistakes).
2009-12-28 18:19:17 +00:00
wagic.the.homebrew@gmail.com
05a72de5bc Erwan
- Card Primitives system. Check Royal Assassin in RV, 10E, M10
- Please review, is sets/primitives a good directory? Should we rename MTGCard into "CardPrint"? 
- Unfortunately for now it is not possible to "override" a Primitive. A card that links to a primitive but also defines new "values" will create its own data and ignore the data in the "linked" primitive for the time being. I hope to solve that at some point...
2009-12-27 12:14:36 +00:00
Psyyringe
0856fcc931 Psyringe - fixed Stun (10E). Thanks to Rob for the bug report. 2009-12-26 19:19:21 +00:00
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
leungclj
b762a7e3a9 JON4TH4N - applied the same change from r1604, the reason because "may" will not work with "moveto" follow with a cost, and since you already paid for your ability cost, why pay a "may" there? Pay {G} and you dont have to use this ability XD. Tested asSorcery, works, but also found Flame Jab not working, reasons attached, so its removed. 2009-12-22 14:19:29 +00:00
leungclj
ccb07a25d1 JON4TH4N - fixed Skyshroud Ranger, yes, tested, no bug, no crash from this fix, no segfault (not sure what segfault is XD) 2009-12-22 02:20:03 +00:00
leungclj
6ed9fd2be4 JON4TH4N - addition to r1553 2009-12-17 13:03:25 +00:00
solo81@web.de
5e9e0b6348 Added Squee, Goblin Nabob (MRQ,10E). Card has been successfully tested ingame! 2009-12-17 12:44:22 +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
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
wagic.the.homebrew@gmail.com
3d23a4f3c8 Erwan
- fix twitch in 10E
2009-12-12 10:46:08 +00:00
leungclj
aa27e4ca16 JON4TH4N - (10E) added equipment 2009-12-12 06:57:26 +00:00
wagic.the.homebrew@gmail.com
04ab044438 Erwan
-fix conviction,scultping steel, whip silk
2009-12-10 13:47:31 +00:00
Psyyringe
13f49fe395 Psyringe - minor maintenance: removed some superfluous color= lines 2009-12-04 16:48:29 +00:00
wagic.the.homebrew
1d816b3277 Erwan
- P02
2009-11-30 04:41:58 +00:00
solo81@web.de
348b926bae Added Darkness (LEG), Fog (M10,MIR) and Holy Day (10E,INV,LEG). 2009-11-29 18:31:53 +00:00
leungclj
3f21dad546 JON4TH4N - Contaminated Bond may be codeable, please check 2009-11-28 16:26:42 +00:00
wagic.the.homebrew
22875def74 Erwan
- Small card fixes
2009-11-25 04:18:20 +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
solo81@web.de
54e78ee604 Fixed Mind Shatter (MOR)
Fixed Sculpting Steel (10E,MRD)

Fixed Kris Mage (MRQ)
2009-11-19 08:55:43 +00:00
wagic.laurent
245cfc625c Laurent - Bug corrections ICE: Enervate, removed: Forbidden Lore, Krovikan Fetish (@next upkeep works same as @each upkeep not really a bug since only this card as such effect). ODY Squirrel mob (wrong p/T). 10E tentatively fixed Twitch (not sure about it yet) POR: Fixed devastation, changed Vampiric Touch (to better reflect the card wording) 2009-11-07 18:25:38 +00:00
leungclj
b5e049e1be JON4TH4N - apply the same change as r1189 2009-10-26 16:55:24 +00:00
wagic.laurent
0c79d97bd9 Laurent - Bug fixes - some buggy cards identified during playtest in random deck mode (great to test cards) 2009-10-26 15:13:28 +00:00
wagic.laurent
f95b46f256 - Laurent Oops correction to 10E (thieving magpie)... was the old wrong code for thieving magpie...(opponent is not a valid target and was missing the from() )
Sorry for that...
2009-10-15 09:41:02 +00:00
wagic.laurent
adba482340 -Laurent Added @damaged, cards to 10E and LEG, small correction to ALA, ARB, CHK, EVE and ZEN
- Added @damaged works fine (tested with thieving magpie), please test your additions if you plan to add some cards with this keyword and report if buggy. As the other trigger, you cannot have a target unless there is a may ability.
- Added 2 cards to 10E - Reminisce and Thieving Magpie both tested and working.
- Added 2 cards to LEG - Jovial Evil and Spiritual Sanctuary (not tested yet) but should work.
2009-10-15 09:30:09 +00:00
wagic.laurent
34045737c7 Laurent - Few additions and corrections (RAV, STH,TMP, TSP) 2009-10-05 10:14:57 +00:00
leungclj
f882fd437b J0N4TH4N - removed hard code for Dreamborn Muse 2009-10-04 01:39:23 +00:00
leungclj
b6e97c1f17 J0N4TH4N - please review the removal of Dehydration in MTGAbility.cpp 2009-10-03 15:36:53 +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
6df665c340 Erwan
-check athat act of treason works correctly
-Fixed emblem of warmind
-removed incorrect cards ("When this enters the battlefield, target..." please see http://wololo.net/forum/viewtopic.php?f=6&t=669
2009-09-26 04:10:29 +00:00
leungclj
e85f2afec8 J0N4TH4N - (10E) fixed Nekrataal 2009-09-25 10:00:42 +00:00
leungclj
252f1bb100 J0N4TH4N - a lot of update, review welcome, none tested, all based on previous updates 2009-09-25 00:00:27 +00:00
leungclj
bd450df542 J0N4TH4N - few more updates 2009-09-24 17:22:18 +00:00
leungclj
09ed6d149d J0N4TH4N - few updates 2009-09-17 03:33:55 +00:00