Commit Graph

131 Commits

Author SHA1 Message Date
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.the.homebrew@gmail.com
94e199d92a Erwan
- some cleanup (gcc warnings)
2009-07-26 07:27:27 +00:00
wagic.the.homebrew@gmail.com
bf8d4fd827 Erwan
- bug fixes (civic wayfinder, fault line)
- target's quad is displayed for generictargetabilities
- added menutext for powertoughnessmodifier
2009-07-26 03:15:52 +00:00
wagic.the.homebrew@gmail.com
76d386be06 Erwan
- fixed a bug with bottle gnomes (would give life to opponent even if you steal control)
- huge update for abilities life,draw,damage,deplete,discard in the parser. This breaks some cards (so we need to fix them) but allows more flexibility in the future. See my post on the forum
2009-07-25 14:57:27 +00:00
wagic.the.homebrew@gmail.com
760910709a Erwan
-fix bug with Regal force
2009-07-25 03:16:55 +00:00
wagic.the.homebrew@gmail.com
719c218552 Erwan
- fixed Beacon of unrest bug
- Fixed Kraken's eye bug
2009-07-25 02:57:30 +00:00
wagic.the.homebrew
57c58805a8 Erwan
-small fix counters
2009-07-22 01:03:59 +00:00
wagic.the.homebrew@gmail.com
7f93e03c9f Erwan
- added counters to parser. They can be used as an effect, not a cost!!! counter(p/t,n) where n is the number of counters. if n is ommitted, it is 1, if it is negative, it means "remove" counter
2009-07-21 11:10:30 +00:00
wagic.laurent
7ccac4bb9e Laurent - Removed useless code + updated corresponding cards.dat 2009-07-21 08:50:40 +00:00
wagic.the.homebrew@gmail.com
5a1b75b8d9 Erwan
-fixed bug with Rampant growth. Other cards that do the same kind of thing can now be coded
2009-07-20 13:56:30 +00:00
wagic.the.homebrew@gmail.com
82204fd8b3 Erwan
-Added a few cards
2009-07-20 12:05:12 +00:00
wagic.the.homebrew@gmail.com
9286f1b305 Erwan
-Added a few cards
2009-07-20 06:20:54 +00:00
wagic.the.homebrew@gmail.com
a376e8110b Erwan
-added "this" as valid target (still needs some work)  see cathodion
- Added mythic rares in boosters
2009-07-20 03:35:26 +00:00
wagic.the.homebrew@gmail.com
cca8d0f600 Erwan
-fixed bug with elvish promenade (and various instants/sorceries)
-Fixed bug with some auras that wouldn't go to graveyard in some conditions
2009-07-19 06:42:00 +00:00
wagic.the.homebrew@gmail.com
01c62d04bf Erwan
-removing useless code
-fixed a few cards (incorrect set)
2009-07-18 14:26:58 +00:00
wagic.the.homebrew@gmail.com
3e7ecb3016 Erwan
- fixed a bug (crash if a card that had an ability until end of turn would be put into the graveyard before the end of the turn)
- Added a new game Mode : Random 1 or 2 color.
2009-07-18 08:50:14 +00:00
wagic.the.homebrew@gmail.com
8681987f89 Erwan
- fix PSP Compilation issue
- Stillmoon cavalier (and other "until end of turn" activated abilities) bug fix
- attempt at fixing multi abilities that work "only from time to time"
2009-07-15 14:06:47 +00:00
wagic.the.homebrew@gmail.com
2ba5fcb955 Erwan
- Added "@movedTo(...) trigger. See argothian enchantress in USG
2009-07-14 13:29:12 +00:00
wagic.the.homebrew@gmail.com
da6542f9a7 Erwan
- Adding M10 todo.dat
- removed dead code
2009-07-13 12:35:13 +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
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.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
ddc4636bf6 Erwan
-fixed "lord changes controller" bug
2009-07-05 04:49:21 +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
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
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
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.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
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.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
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
61e449d02b Erwan
- Changecontroller now sends a changezone event
- Manacost bug fix (memory leak)
2009-06-21 10:46:33 +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.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.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.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.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.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
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
wagic.the.homebrew@gmail.com
75720b9459 Erwan
-Fix for sacrifice costs
2009-06-09 14:07:07 +00:00
wagic.the.homebrew@gmail.com
9ec582e02e Erwan
- a Few bug fix.
- I need to investigate for fledgling imp :(
2009-06-09 13:17:23 +00:00