Commit Graph

89 Commits

Author SHA1 Message Date
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 ab445c9758 Erwan
- Added a few cards
- Creature attacks, blocks, is re-ordered in blocking list events
2009-07-12 12:27:55 +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 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
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.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 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.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 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 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 9ec582e02e Erwan
- a Few bug fix.
- I need to investigate for fledgling imp :(
2009-06-09 13:17:23 +00:00
wagic.the.homebrew@gmail.com 1a21ca454a Erwan
- Fixed Damage All (Ashen Firebeast/ See test)
- Fixed Momir crash if no card with corresponding mana cost exists
2009-05-28 09:42:52 +00:00
wagic.laurent d5da4a3a23 Laurent - Update LEG (complete review and clean-up , + added some card to the code) some other cards could be added (storm world, storm seeker, typhoon, spiritual sanctuary) but that will be for later ;-) 2009-05-26 23:35:51 +00:00
wagic.laurent deffc085f4 Laurent - Added Dreamborn Muse (10E) tested and work, also tested the deplete function with instant and sorcery works fine (see ray of erasure ICE) 2009-05-26 22:03:30 +00:00
wagic.laurent 2f9df464b6 Laurent - Fixed the Basislik (not tested) and also some glitch in the token creation for Artifact Mutation and elvish promenade (added the "token" in the subtype since some cards target token). 2009-05-25 22:07:06 +00:00
wagic.laurent 182b133719 Laurent - Updated the discard function. Also you can now target the opponent or yourself. Once again this is the discard random function also mind rot (10E) is not 100% correct since if you were to play on yourself you should be able to choose which card to discard. If a card as no target(either in the target= line or in the discard:x target(X) line then it automatically applies to you.) it means cards that require you to discard a card at random in addition to its cost can now be coded (e.g. balduvian horde from alliance), but at the moment nothing will happen if you have no card to discard (did not test this one but it could be added if necessary).
Updated the deplete function. You can use deplete in instant and sorcery (not tested)
Updated rampage (add an issue with the last parameter and the annulation of the bonuses at end of turn) should be resolved now (not tested).
Added Basilik from 10E and also lavaborn (not tested yet), should try to do a more generic basilik (abomination, cockatrice, basilik, all have the same abilities but different criteria for the “type” of creature that would be or not be affected.
Also added Elvish promenade from LRW (this one is fun ;D)
2009-05-25 21:07:17 +00:00
jean.chalard dd054c4963 J :
* ostream printing of JGui objects.
2009-05-23 08:34:50 +00:00
wagic.laurent d7840821ad Laurent - added rampage to the parser (see example from diverse set) could be extended...I've let the ability "rampage" (in fact rampage 1) but older set (esp. legends, would need an update later on). 2009-05-22 22:02:08 +00:00
wagic.laurent 234cdc64c5 Laurent - Fixed Rampage, cleaned-up 10E. 2009-05-22 16:40:32 +00:00
wagic.laurent f566b4a8c5 Laurent - Updated discard function now function with cost & target (see update from MRD) - Note that this is the discard random function....
Did not try it yet without target (e.g. when comes intoplay auto=discard:19 probably will not work and would make the opponent discard a card randomnly...
2009-05-21 21:13:04 +00:00
wagic.laurent 37008df473 Laurent - Added "deplete" to the parser does not work for instant and sorcery at the moment (WILL NEED HELP FOR THAT)
Updated cards.dat to include the one with deplete possibility.
Also included various cards (alias from RV)
2009-05-21 16:28:13 +00:00
wagic.laurent 215c7448c9 Laurent - 10E added Demon's Horn, dragon's claw and co. works well you have to click the card to get 1 life as the card state "may"..also added consume spirit (alias of drain life RV)
- ICE complete update, reorganized all cards alphabetically both in cards.dat and todo.dat + some few addition
- tentatively added a generic millstone, first step to add the keyword "deplete" to the parser.. still working on this one.
2009-05-20 20:03:51 +00:00
laurent.rabouin c42d0d20ca Laurent - Added discard (see mind rot 10E) works did not try yet with cost (e.g {2}:discard:2) is only random discard function surely needs to be improved.
Added generic Karma Function (ADamageForTypeControlled, see ancient ruin from TMP) tested and work.
Happy to be back
2009-05-19 22:22:50 +00:00
wagic.the.homebrew@gmail.com f94df3862b Erwan
- Added translation mechanism, and basic french translation as an example
2009-05-16 15:23:26 +00:00
wagic.the.homebrew@gmail.com d074cc4de0 Erwan
- Fix bug with Northern Paladin
2009-05-14 12:39:25 +00:00
wagic.the.homebrew@gmail.com 041b3e16bb Erwan
- Added "lord until end of turn" (see titanic ultimatum in ALA)
2009-04-30 12:45:16 +00:00
wagic.the.homebrew@gmail.com 0af938589b Erwan
- a few bug fixes with cards that bring other cards back to play (zombify, resurrection...)
- bug fix with abilities parsing "reachshadow"
- a few card fixes
2009-04-19 07:47:52 +00:00
wagic.the.homebrew@gmail.com e7678522ee Erwan
- fixed a few memory leaks (but Wagic still crashes on the PSP after a few games :( )
2009-04-12 12:39:44 +00:00
wagic.the.homebrew@gmail.com fab150414b Erwan
- Added name effect for Momir
- Fixed a couple bugs with "moveTo", see test/Amugaba.txt
2009-04-11 03:59:46 +00:00
wagic.the.homebrew@gmail.com a8942331eb Erwan
- Fix a bug with Nevinyrrals Disk
2009-04-05 13:22:37 +00:00
wagic.the.homebrew@gmail.com a6c1776a90 Erwan
- 2 new ability keywords: mustattack and cantattack
2009-04-05 09:46:02 +00:00
wagic.the.homebrew@gmail.com 34c139a15d Erwan
-fixed bugs with lifelink
2009-04-05 09:01:31 +00:00
wagic.the.homebrew@gmail.com bdf989ffac Erwan
- fixed the "may" ability a little bit (needs testing: can it be called only once ???)
- Added "Clone", yay :)
2009-04-01 12:59:53 +00:00
wagic.the.homebrew@gmail.com 60b35f7f7f Erwan
-new keyword "may" (right now used only for : "when ... comes into play, you may ... moveTo). See Gravedigger 10E
2009-03-29 13:04:54 +00:00
wagic.the.homebrew@gmail.com 2031577de4 Erwan
- fix Fastbond bug
- Attempt at fixing issues with Escape artist and Amugaba (not tested)
2009-03-25 14:44:48 +00:00
wagic.the.homebrew 69e7191054 Erwan -fix one bug with animate dead 2009-03-18 14:03:18 +00:00
wagic.the.homebrew ff8e05cf04 Erwan
- replaced erroneous Mirrodin set with invasion set
- added a few cards with "aslongas" ability
2009-03-15 05:59:21 +00:00
wagic.the.homebrew ef53771843 Erwan
-replace "includeself" with "other" for lord and foreach keywords
-added aslongas keyword (kird ape...)
2009-03-15 05:00:06 +00:00
wagic.the.homebrew bb23db4b16 Erwan
- "foreach" auto keyword improved, now works like lord
- a few cards using "foreach" added
2009-03-03 14:02:40 +00:00
wagic.the.homebrew fa05ca5225 Erwan
- cards bugfixes
- added a few zone names for moveTo
2009-03-02 13:40:04 +00:00