Commit Graph

472 Commits

Author SHA1 Message Date
wagic.the.homebrew@gmail.com
810e1edec2 Erwan
-removing garbage file
2009-07-05 08:15:56 +00:00
wagic.the.homebrew@gmail.com
92027d5111 Erwan
- Adding french translated sets from PSPGen
2009-07-05 08:14:35 +00:00
wagic.the.homebrew@gmail.com
ddc4636bf6 Erwan
-fixed "lord changes controller" bug
2009-07-05 04:49:21 +00:00
wagic.the.homebrew@gmail.com
20a0322ebb Erwan
- Added onslaught, future sight, exodus, champions of kamigawa, Fallen empires, Time Spiral
- NOT TESTED, I just made sure the files where not crashing Wagic on the PC version. Have fun updating these files, guys :)
2009-07-04 14:49:43 +00:00
wagic.the.homebrew@gmail.com
b1e35a6bcb Erwan
- Moved "extraPayment" cancel verification into ActionLayer (was in GuiLayers)
- added "HUDDisplay" MTGAbility (displays damage/graveyard info)
- Added option to NOT interrupt own's spells and abilities. Allows smoother gameplay. We should add a "quick options" menu ingame to change those options on the fly
2009-07-04 14:10:21 +00:00
wagic.the.homebrew@gmail.com
5ff90a6f33 Erwan
- fix a risk for segv in DamageResolverLayer
2009-07-04 07:48:46 +00:00
wagic.the.homebrew@gmail.com
d52f06d98d Erwan
- Magic 2010 - blockers ordering
- Fixed a memory leak introduced in a previous revision (foreach)
2009-07-04 04:15:05 +00:00
leungclj
dfeada17a2 Jonathan - clean up for consistancy 2009-07-01 05:58:39 +00:00
wagic.laurent
01316167fc Laurent - Update to the foreach parser with "add" to be used for instant and sorcery (e.g. spoil of evil) also removed/added corresponding cards (spoil of evil, song of the damned and ancestor chosen).
Also added the ability "INDESTRUCTIBLE" did not test it yet + not sure about the ruling ...
2009-06-30 21:29:59 +00:00
leungclj
6c335232c7 Jonathan - a lot of card added, but not quite sure about (MRQ) Honor the Fallen 2009-06-30 15:18:34 +00:00
wagic.laurent
aa4f5793b8 Laurent - Updated MoveAll, Foreach and the ALifeModifierPutinplay.
ALifeModifierPutinplay is now with TargetChooser, means it can probably be used for a wider range of cards (need to test megrim...).
Also updated MoveAll (should now be able to target graveyard and hand).
Last update is on the "countcards" means all foreach should now take graveyard and hand as legal target... .
I did not test these additions yet...but test suite runs fine (it includes ankh of mishra so it means the first modification should go fine...).

If everything work fine it means also some hardcoded cards could be removed and softcoded like spoil of war, spoil of evil, ancestor choosen.. etc...

Grü.

L.
2009-06-30 13:38:55 +00:00
leungclj
2ccec4caf4 Jonathan - (INV) minor correction 2009-06-30 07:11:03 +00:00
leungclj
df2b24ee41 Jonathan - (MRD) added Cloudpost 2009-06-30 06:56:53 +00:00
leungclj
3015d85324 Jonathan - (MRQ) added Spontaneous Generation 2009-06-30 06:41:52 +00:00
leungclj
ba9edc6692 Jonathan - (USG) added Priest of Titania, Serra's Sanctum, Tolarian Academy 2009-06-30 06:11:12 +00:00
leungclj
15ddd2eec5 Jonathan - (SHM) - theres been a mistake with the {T} & {Q}, its been corrected also with Pili-Pala removed. 2009-06-30 04:21:10 +00:00
leungclj
12b85ed5af Jonathan - (ALL) replaced all ' " ' with ' " ' 2009-06-30 04:07:21 +00:00
wagic.the.homebrew
454bad67d8 Erwan
- it translation file
2009-06-30 00:58:17 +00:00
wagic.laurent
d9265090fd Laurent - Added "add" to the foreach parser... also now functions also with add:{x}.. see addition from USG.. Will add the other one later (or somebody else can do it)...
I tested this one and it works...
2009-06-29 17:23:09 +00:00
wagic.laurent
6097b1282b Laurent - Added draw/token to the foreach parser (allow to sligthly reduce the number of lines in MTGAbility.cpp and also add few cards to different cards.dat.)
NOTE that all these additions to the foreach parser are only available for the "inplay" area... "countcards" will need to be updated in order to have thing such as graveyard or hand to be taken into consideration (but when it will be done cards such as Spontaneous Generation - MRQ, could be added)
Also updated (tentatively) the "cantbeblockedby" in the parser it still does not work...ARG... but I can feel that I'm not far away from the solution...
We need also to go through some of the cards.dat to be sure we are not missing any possible addition ...
2009-06-29 11:11:41 +00:00
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