Commit Graph

520 Commits

Author SHA1 Message Date
wagic.the.homebrew@gmail.com
0218680ae0 Erwan
- Added translated cards.dat for German and french. You can keep them up to date with sync.pl
2009-06-28 13:06:32 +00:00
wagic.the.homebrew@gmail.com
85931c6eb2 Erwan
- updated sync script
2009-06-28 12:52:36 +00:00
wagic.laurent
dcdd0a18d8 Laurent - Added damage to the foreach parser (finally did it).
I tryed everything for weeks, adding lines of codes with no success...Finally the answer was so simple as 2 lines of code...
Also added/removed from code Spitting earth and corrupt... Need to chase and remove all the lookalike/alias in the rest of the code. And also as usual will require further testing...

Grü.

L.
2009-06-27 09:49:31 +00:00
wagic.the.homebrew@gmail.com
d5a253d147 Erwan
- Added a perl script to synchronize _cards.dat translations with latest "original" _card.dat
2009-06-26 14:36:24 +00:00
wagic.the.homebrew@gmail.com
910401a2e5 Erwan
- Lord+Regenerate (zombie master) memory leak fix
- "... All" memory leak fix
- Sacrifice target memory leak fix
2009-06-26 11:38:53 +00:00
wagic.laurent
708af7b675 Laurent - Added a generic ankh of mishra/dingus egg. Tested ok on ankh of mishra. Also added Soul Warden (10E) with this and Angelic Chorus (10E). Also could be made more generic and eventually at a certain point of time put in the parser....
Test suite passed with exception of Hymn of rebirth ?? also at least dingus egg is also OK.

Ideally the whenever thing should be coupled with a kind of targetchooser thing to be put in the parser (would also allow colored cards...) ..

Todo: add a may ability option since lot of cards with this function use "may"  (e.g. Deathgreeter - ALA and Leonin Elder - MRD)

I did not remove the now obsolete code dingus egg and ankh of mishra...will wait until new portion of code is tested  more..

Grü
2009-06-26 01:03:56 +00:00
wagic.the.homebrew@gmail.com
630a239f31 Erwan
- tap/untap of a card now sends an event
2009-06-25 14:23:21 +00:00
wagic.the.homebrew@gmail.com
3d414f74b3 Erwan
- Fix a memory leak with Sacrifice costs
2009-06-25 13:20:27 +00:00
wagic.the.homebrew@gmail.com
71cc79b949 Erwan
- Replaced the BasicAbilities Array with a map. This reduces the size of MTGCard from >500 bytes to 392. Should be cool for people who have memory issues
2009-06-25 11:09:51 +00:00
wagic.laurent
f643f87b83 Laurent - Clean-up from code.
PLEASE REVIEW this one.

I removed all unusued portion of code, some other cleaning work could be performed (will discuss in forum).

Also just added "@each" as triggered ability in order to have it work properly with most cards "currentplayer" should be added to the TargetChooser.
2009-06-23 22:10:42 +00:00
wagic.the.homebrew@gmail.com
ca3c2d30ab Erwan
- Magic 2010: Combat Damages don't go on the stack anymore
- Comp rules: "goes to graveyard" effects don't go on the stack anymore
- Regenerate "fixed" (untested)
- Basic "ReplacementEffect" mechanism for damage prevention. Can be extended to other replacement effects with some limits.
- TODO: Damages don't go on the stack, the abilities that create them do.
2009-06-23 14:22:00 +00:00
wagic.laurent
5dc98359c1 Laurent - Added Threaten (10E) - Steal creature until end of turn. Return creature at end of turn to opponent and also "untap" it.. not sure if it is quite right, but does not make any difference since it is at the end of turn just before the untap phase of opponent.
Few comments: 

I spent quite some time to make it work... made some test all working but experienced some random crash in windows version (debugging did not help much) don't know if i broke something or if it is due to other SVN addition.

Some other cards are similar and could be hardcoded/aliased (Overtake - MRQ, Ray of Command - ICE,MIR, Slave of Bolas - ARB, Spinal Embrace INV, Unwilling Recruit EVE) we could discuss about them...

I think it is the last card that was missing for the red premade 10E deck. Now 10E has 255 cards and is the set with the most cards...

Grü.
L.
2009-06-23 00:43:31 +00:00
wagic.laurent
be086640eb Laurent - Added 8 cards to SHM (Flow of ideas, Fracturing Gut, Howl of the Night Pack, Poison the Well, Smash to Smithereens, Spiteflame Witch, Thoughweft Gambit, Windbrisk Raptor)
+ Forgot to upload Targetchooser.cpp by R499 :D  (needed for opponentshroud..)
2009-06-22 19:50:26 +00:00
solo81@web.de
1cdeebd3e1 Added Scattershot Archer 2009-06-22 17:10:36 +00:00
jean.chalard
2f3259fd55 J :
* Add the rolling phasebar.
* This is a preview version. It shares most of the code with the definitive
  version, but when the real code is checked in, this will be deleted.
2009-06-22 14:45:27 +00:00
solo81@web.de
ed9c739963 Added Slippery Bogle 2009-06-22 08:14:53 +00:00
solo81@web.de
3f52770075 Added Privileged Position 2009-06-22 08:10:57 +00:00
solo81@web.de
256322f0fc Added Plated Slagwurm 2009-06-22 08:00:50 +00:00
solo81@web.de
cdf5179cf1 Added Leonin Abunas 2009-06-22 07:57:07 +00:00
solo81@web.de
f67a241f86 Removed Flame Jab and Monstrify (Retrace is not implemented). 2009-06-22 07:46:27 +00:00
solo81@web.de
af008ff273 Added Troll Ascetic (10E,MRD) 2009-06-22 07:42:53 +00:00
wagic.laurent
7ade86e818 Laurent - Added new ability "opponentshroud" means "can't be the target of spells or abilities your opponents control." tested and works (see SHM _cards.dat)
Also added Flowstone Side (10E) - Tested and work probably my last addition to 10E.
2009-06-21 20:38:40 +00:00
wagic.the.homebrew@gmail.com
887336aa7c Erwan
-fixed a memory leak in Test suite
2009-06-21 13:19:15 +00:00
wagic.the.homebrew@gmail.com
61e449d02b Erwan
- Changecontroller now sends a changezone event
- Manacost bug fix (memory leak)
2009-06-21 10:46:33 +00:00
wagic.superhiro
dfdc61e9db Fixed Flying for Aven Trailblazer. 2009-06-21 08:43:49 +00:00
wagic.laurent
7c3464e3ba Laurent - 10E - 6 cards added
Added Graveborn Muse (just missing one muse now, too complicated for me).
Added  Beacon of destruction,unrest and immortality.
Added Traumatize
Added Verdant Force
All tested (except beacon of unrest) and working.
2009-06-21 01:59:28 +00:00
wagic.the.homebrew@gmail.com
b5139ea523 Erwan
- Fix morphling's cost
2009-06-21 01:39:37 +00:00
wagic.laurent
c40d2b5cea Laurent -
Added "untap all" to the parser (not tested but should work since it is the same as tap all)
Modified "cantbeblockedby" also still don't function properly, atm it cause the creature to be "unblockable"... Should work, I don't get it !!! (Why ???)
Also added Seedborn Muse (like all the Muse a very Powerfull card), especially as combo with cards that "DOESNOTUNTAP" during your untap phase...
2009-06-20 11:01:04 +00:00
wagic.the.homebrew
d1e0814315 Erwan
- Fix for Selesnya guildmage token ability
2009-06-19 07:47:58 +00:00
wagic.the.homebrew
e54cee98fa Erwan
-Pendelhaven fix
2009-06-19 07:46:24 +00:00
wagic.laurent
5ce66a289e Laurent - Added new keyword "cantbeblockedby" See 10E addition Elven Riders and Juggernaut.
I tested Elven Riders successfully, but not juggernaut yet... Also if this new keyword function correctly we remove abilities like FEAR and UNBLOCKABLE... Needs to be further tested...
Feedback and extensive test are welcome on this one...
2009-06-18 23:14:47 +00:00
wagic.the.homebrew@gmail.com
2e3ccae712 Erwan
-added event when drawing from the library
2009-06-18 12:54:40 +00:00
wagic.laurent
cf35acd3f3 Laurent -
Added ability DOESNOTUNTAP , see _cards.dat from 10E (Colossus of sardia, dehydratation). Test suite OK. The ability does not work with enchant creature (as for protection from...) So Dehydratation is hardcoded (can be aliased if necessary) Small bug with dehydratation, will untap creature when cast... WHY ? Any Idea/Solution welcome...
2009-06-17 23:54:05 +00:00
wagic.laurent
ba83a42fa4 Laurent - Added deluge (10E) also added "all" to the tap parser, tested and work, not compatible with cost at the moment. Test suite before R486 was running fine on this update. 2009-06-17 20:50:21 +00:00
wagic.the.homebrew@gmail.com
53b1b5e9ec Erwan
- Magic 2010 - inplay becomes Battlefield. Wagic is still compatible with both, but try to use "battlefield" from now on. For example moveTo(battlefield) instead of moveTo(inPlay)
- Magic 2010 - "Removed from game" becomes "Exile". Wagic is still compatible with both, but try to use "exile" from now on. For example moveTo(exile) instead of moveTo(removedFromGame)
- Magic 2010 - "End of turn" step becomes "end" step. Wagic is still compatible with both, but try to use "end" from now on. for example: "@next end" rather than "@next endofturn" (not sure this is more clear than before, but at least it's consistent with the rules)
2009-06-17 13:11:45 +00:00
wagic.laurent
43bc3f9137 Laurent - Added Soulblast (10E) + Correction from glitch in R483 (forgot colossus and sardia and doppel target line in sudden impact) 2009-06-16 21:48:25 +00:00
wagic.the.homebrew@gmail.com
7804cbbd64 Erwan
- Send an event when Phase changes
2009-06-16 14:10:33 +00:00
wagic.laurent
96963fc5ac Laurent - AI deck update - Added some cards (Sudden impact (10E,TMP,LEG), colossus of Sardia (10E), etc...) 2009-06-15 23:46:47 +00:00
jean.chalard
6d7eb8276d J :
* Re-add Effects.cpp
2009-06-15 01:01:57 +00:00
jean.chalard
a5929440e8 J :
* Remove a renamed file ?
2009-06-15 00:58:25 +00:00
jean.chalard
cb91a6e40c J :
* Match the .cpp
2009-06-15 00:56:30 +00:00
jean.chalard
c795bdfe96 J :
* Match the .cpp file :o
2009-06-15 00:55:15 +00:00
jean.chalard
22cf188bc9 J :
* Remove crap.
2009-06-15 00:54:17 +00:00
wagic.the.homebrew@gmail.com
f1a3895fc6 Erwan
- Magic 2010 Rule: removed Manaburn
- Magic 2010 Rule: manapools empty at the end of each step
2009-06-14 09:21:49 +00:00
leungclj
56193a7656 Jonathan - (TMP) tested Escape Shapeshifter, doesn't full function correctly 2009-06-14 08:49:35 +00:00
wagic.laurent
6d42aa6e77 Laurent - Corrected Sacrifice (RV) 2009-06-13 20:39:33 +00:00
wagic.laurent
984038e5e2 Laurent - Added cards to USG - First step of Counter adding to parser (does not work yet). Update of AI deck description 2009-06-13 19:43:57 +00:00
jean.chalard
3e12e7d630 J :
* Switch to RTTI.
2009-06-13 06:12:53 +00:00
wagic.the.homebrew@gmail.com
35214a2f7e ERwan
- bug fix for zone changes
2009-06-13 05:39:18 +00:00
wagic.the.homebrew@gmail.com
54b8aab96b Erwan
- Event System for MTGGuiPlay.cpp
- THIS DOES NOT WORK
2009-06-13 05:21:24 +00:00