Commit Graph

558 Commits

Author SHA1 Message Date
leungclj
16280c7ecb Jonathan - added few cards 2009-07-13 08:55:25 +00:00
leungclj
7f91770850 Jonathan - (r555) fix 2009-07-13 07:44:10 +00:00
leungclj
03f48bccd8 Jonathan - (r555) fix 2009-07-13 07:40:05 +00:00
leungclj
f3a6fcbf1b Jonathan - added few cards 2009-07-13 07:30:45 +00:00
leungclj
8b1d19ad41 Jonathan - (r552) fix 2009-07-12 15:16:40 +00:00
wagic.the.homebrew@gmail.com
31ec10b464 Erwan
- Added a few cards
2009-07-12 13:52:27 +00:00
wagic.the.homebrew@gmail.com
ab445c9758 Erwan
- Added a few cards
- Creature attacks, blocks, is re-ordered in blocking list events
2009-07-12 12:27:55 +00:00
leungclj
feedb16eae Jonathan - (EXO) updated 2009-07-12 09:10:39 +00:00
wagic.the.homebrew@gmail.com
0ecbfb5d82 Erwan
- Triggers made more generic in the parser
2009-07-12 07:47:54 +00:00
wagic.the.homebrew@gmail.com
3350ad6d03 Erwan
-added telkinetic sliver. This confirms that All lords that give a "complex" ability can now be added in cards.dat, as long as we can write the ability.
For example: lord(sliver) {T}:tap target(*) for telkinetic sliver. Please test and let me know
2009-07-12 03:02:38 +00:00
wagic.the.homebrew@gmail.com
cf45e00331 Erwan
- Fix compilation issue with gcc
2009-07-12 02:37:24 +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
leungclj
307c41c563 Jonathan - (ONS) fixed, added, reorder 2009-07-06 01:50:59 +00:00
leungclj
77e5e00ea5 Jonathan - (TSP) fixe Icatian Crier 2009-07-06 01:14:28 +00:00
wagic.the.homebrew@gmail.com
79d0a09de1 Erwan
- fix a bug with Arcanis the omnipotent (see tests)
2009-07-05 11:38:12 +00:00
wagic.the.homebrew@gmail.com
59bc3123e2 Erwan
-added a few cards for TSP
2009-07-05 11:17:12 +00:00
wagic.the.homebrew@gmail.com
11af671496 Erwan
- Added "Evil twin" Mode to unlock
2009-07-05 10:08:13 +00:00
wagic.the.homebrew@gmail.com
d8ac4a49b1 Erwan
-translation updates (including fr.txt)
2009-07-05 09:06:51 +00:00
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