Commit Graph

77 Commits

Author SHA1 Message Date
Anthony Calosa
7b0fdcd721 refactor Legendary Rule 2017-02-01 09:49:36 +08:00
Anthony Calosa
bd5449a9a2 updated old tests
the new exile zone is utilized in comparing the number of cards it
has(since its enabled and viewable, the value is now counted)
2015-10-27 06:35:22 +08:00
pankdm
f7eded7417 Devotion mechanics (thanks to excessum for patch)
+ some refactoring:
extrManaCost --> ExtraManaCost
unattachCost --> UnattachCost
2013-10-18 06:37:09 +00:00
omegablast2002@yahoo.com
f1d88611cb updated test to adjust for new legendary rules 2013-06-18 01:42:49 +00:00
omegablast2002@yahoo.com
b7c13825c5 2013-01-27 02:55:35 +00:00
anthonycalosa@gmail.com
79d9ad865e moved the evolve test outside the main test suite 2013-01-27 02:13:35 +00:00
anthonycalosa@gmail.com
f6e95af995 Added generic test for Evolve mechanic. I intentionally reverese the order of creature so that the evolve come in play with no counters before hand, then attack with utvara hellkite to see if it will trigger evolve. 2013-01-27 01:24:44 +00:00
solo81@web.de
d0ee96e1a2 + Removed Elbrus, the Binding
+ Updated unsupported.txt.

+ Fixed Elbrus, the Binding Blade
+ Fixed several cards with flashback
+ Fixed Garruk Wildspeaker's once more
+ Fixed Painsmith 


+ Added Arcum's Sleigh
+ Added Elsewhere Flask
+ Added Runetail, Kitsune Ascendant
2012-03-18 10:14:34 +00:00
solo81@web.de
e9139bedab Readded the new code for Resounding Roar and Resounding Thunder.
Their code was just fine and 100% accurate in concerns with the official rules.

The tests 'cycling2' and 'resounding_roar' occured because of a missing 'choice 0'. Now, the test suite passes.
2011-11-17 18:56:24 +00:00
wagic.the.homebrew
d32ffc5e10 Moved a bunch of old tests related to (fixed) issues to the tests folder, and added them to the tests list 2011-05-29 07:10:14 +00:00
wagic.the.homebrew
2f3e6b56e5 - Fix for issue 660 (changelings have become slower)
-- I removed the string comparison, which was expensive (the test is not necessary anymore, since it was "shielding" us from fake types (names), which are not creature subtypes, and therefore do not go through). I also moved one function call outside of the loop, just in case that wasn't optimized by the compiler.
- Removed unused Subtypes.cpp function (I don't really want people to use it, it can be quite expensive if used incorrectly)
- moved a test for issue 501 that has been fixed a while ago (we forgot to add the test to the test suite)
2011-05-15 14:38:41 +00:00
omegablast2002@yahoo.com
feee31a360 updated kicker test by adding "choice 1" pay kicker, it will have no effect on "always pay" option, but if a player has "offer choice" they will still pass... 2011-04-22 11:18:47 +00:00
wagic.the.homebrew@gmail.com
70b93482b3 - fix incorrect test generic/trigger_blocking.txt
- Updated version number to 0.15.1
2011-04-11 11:12:56 +00:00
omegablast2002@yahoo.com
4b944bd345 updated this test as it hlycon was changed recently to include "from(myhand)" for "cast" effect...the test now actually cast grizzly bears from your hand.... 2011-02-25 18:22:19 +00:00
wagic.the.homebrew@gmail.com
60017a6652 Erwan
- replaced variables canPutLandsIntoPlay and landsPlayerCanStillPlay with a PlayRestrictions class.
- Added  seenThisTurn(TargetChooser * tc) in MTGGameZones, which allows to count how many cards matching a targetChooser have been in a given zone in the current turn. With minor work, this can probably be reused by the ability parser for some cards that need to count how many **** where played or put on the stack during a turn.
-- for example player->game->stack->seenThisTurn([put a TypeTargetChooser("creature") here]) would give you the number of creature spells cast by the player this turn.
- This is the first step of a refactor that aims at removing all the adhoc variables for "cant cast". I plan to get rid of the following variables in Player.h (and the associated code, which hopefully will become smaller):  
    int castedspellsthisturn;
    bool onlyonecast;
    int castcount;
    bool nocreatureinstant;
    bool nospellinstant;
    bool onlyoneinstant;
    bool castrestrictedcreature;
    bool castrestrictedspell;
    bool onlyoneboth;
    bool bothrestrictedspell;
    bool bothrestrictedcreature;

They will be replaced by the PlayRestrictions system, and hopefully I'll have time to update the parser to make this more generic as well.
My initial goal with this change was to move the limit of 1 land per turn outside of the code, and make it an external rule in Rules/mtg.txt. I have yet to do it.
2011-02-12 16:31:07 +00:00
leungclj@googlemail.com
0311cfd1eb leungclj - Added test for indestructible, also submitted issue for indestructible bug. Please refer to "indestructible_2_i569.txt" 2010-12-29 12:55:44 +00:00
omegablast2002@yahoo.com
99266ebae4 corrected mikes ABSOLUTE fail attempt at a test. yes, im pissed off. RUN YOUR TEST IN SLOW MOTION PLEASE!!!! THANKS! 2010-12-15 19:26:22 +00:00
techdragon.nguyen@gmail.com
2fdf538014 Added another test for 559 to verify cards like Halcyon Glaze works as specified.
Note this particular aspect of the "becomes" ability was not broken prior to the fix for 559.  This is a sanity check as it has nothing to do with color change. but tests ability changes due to "becomes" ability.

Issue: 559
2010-12-13 16:58:37 +00:00
wagic.the.homebrew@gmail.com
1046ffac02 Erwan
- fix for issue 559 based on Mike's suggestions. The test suite passes
2010-12-13 13:59:07 +00:00
omegablast2002@yahoo.com
5713a45006 reverting this test back to yesterday 2010-12-09 13:32:34 +00:00
omegablast2002@yahoo.com
079d2dbd22 updated this test as it uses the trigger step, note: the 7 or so trigger based test dont want to actually test in test suite...i tried correct a typo in the _test.txt they have an extra "S"...but still they did not get tested...any ideas? if you can get them testing, please remember the combat ones need an extra next directly before the "next for combatdamage. 2010-12-08 14:34:17 +00:00
techdragon.nguyen@gmail.com
ddc07a4e40 removed duplicate tests. these were prefixed with trigger_ instead of @ 2010-10-24 17:25:02 +00:00
solo81@web.de
04efd4f78f Added 37 cards based on rev2444 and rev2479. (Card list -> First comment)
Fixed Sun Titan and some other reported card bugs.
2010-10-22 19:37:43 +00:00
solo81@web.de
e8a44cc375 - Added 242 successfully tested cards based on rev2444 (Card list --> First comment).
- Optimized 163 cards (Card list --> First comment). 
Most of them profit from the much more detailed combat trigger system and the new types of damage prevention.


- Added 17 tests to save Zethfox's additions for the future.


- Fixed issue182.
2010-10-20 19:13:17 +00:00
wagic.the.homebrew@gmail.com
d9f5b1586c Erwan
- fixing buggy test for kicker introduced in r2414
- removed old translation tool scripts (not needed anymore)
- simplified "borderline.txt" using the global "borderline" grade.
2010-10-17 05:37:22 +00:00
techdragon.nguyen@gmail.com
4a0331cbb9 corrected kicker test end conditions. 2010-10-13 21:24:50 +00:00
wagic.the.homebrew@gmail.com
ce69e23357 Erwan
- minor fix in Zethfox cards addon (Bad lines error from parser)
- Zethfox's patch for {t(target)} as an extra Cost. Works the same way as sacrifice, check Azami, Lady of Scrolls for an example
- fixed compilation on the PSP (sorry!)
2010-08-01 03:21:59 +00:00
salmelo16
a06980a197 added new auto keys, this and thisforeach, functionallity similair to aslongas and foreach, but for properties of the card as opposed to cards on the field. More details in first comment. 2010-03-28 02:21:25 +00:00
solo81@web.de
a2987f7b0e This is another patch by salmelo.
It fixes several problems with the newly introduced improvements concerning Counters.

Added 8 successfully tested cards, 1 of them is DARK DEPTHS!

Daily_Build update

Complete list in the first comment.
2010-03-25 23:28:55 +00:00
solo81@web.de
07361b19f5 This is another patch by the great newcomer salmelo.
Salmelo:"Here is another patch, this time adding counters to target specifications, so now you should be able to target things with counters on them as well as use counters for criterion for Lord, aslongas, foreach, etc.
I had to muddle the syntax a little bit though, so heres an example, taken from gwafa hazid, whom I added to the primitives to test with.

lord(creature[counter{0/0.1.Bribe}]|opponentbattlefield) cantattack

obviously the part we are worried about is the counter part, note that those are curly braces { } and periods . instead of parentheses ( ) and commas , this is so that it does not conflict with how targets are normally parsed, which it did before I changed those. Counters still work the same way everywhere else though, you only need to use { } and periods in target code.

Also, you can use counter{any} to specify that it should look for things with any kind of counter on them, not just specific ones, this is used by Kulrath Knight, for example.

I also consolidated most of the code used to parse counter specifications, as it seemed unnecessary duplicating it three times.

Anyway, aside from this major addition, I also added Gwafa Hazid, Profiteer; and Kulrath Knight to the primitives, as well as a test file for each to make sure it worked.

Hopefully y'all will find this patch useful.

Oh, and I should point out that it only works with one Counter in the target specification, i imagine if you put two in the same one then it would either overwrite the first with the second or merge them into some sort of hybrid counter monstrosity, either way, I wouldn't suggest it. "

Cards with vanishing are also codable now. Have a look at the comments for explanation.

daily_build.
2010-03-24 21:15:34 +00:00
wagic.jeck
907c0b7b5d Jeck - Test for Oneblocker ability, r1837. 2010-02-08 18:32:42 +00:00
wagic.the.homebrew@gmail.com
ab9366f035 Erwan
- fix issue 310 (exalted)
- fix issue 312 (heap corruption)
2010-02-04 13:28:04 +00:00
wagic.the.homebrew@gmail.com
2b39f576d7 Erwan
- fix issue 143 (exalted should be a triggered ability)
2010-01-15 13:29:49 +00:00
wagic.the.homebrew@gmail.com
da07370243 Erwan
- (Finally) adding "must" abilities. Usage is as natural as possible, check Aven cloudchaser in 10E.
2010-01-06 14:22:41 +00:00
wagic.the.homebrew@gmail.com
2285821d36 Erwan
-fix issue 252 (equipment goes to graveyard)
2010-01-05 13:48:17 +00:00
wagic.the.homebrew@gmail.com
9f8a394a9f Erwan
- Test for invalid issue 249. closing the issue
2009-12-15 12:05:55 +00:00
leungclj
f35ec32653 JON4TH4N - added a few cards with attach, need testing, new daily_build please.
- also need to test equipment a bit more, think I found a bug.
-test script for Resounding Thunder
2009-12-13 12:29:47 +00:00
leungclj
f84cd15c4b JON4TH4N - added a few more cards + test script 2009-12-12 17:26:26 +00:00
leungclj
e65d1bda75 JON4TH4N - added a few more cards 2009-12-12 15:46:09 +00:00
wagic.the.homebrew@gmail.com
512f649147 Erwan
- Adding cycling. Check Akroma's vengeance in ONS for an example. Note that this uses autohand instead of auto, this is important! You can also use autograveyard. 
- All "auto" activated abilities should work with autohand, so this is not only for cycling, but could be used for other abilities as well. For example autohand={3}:cycling can also be written autohand={3}{S}:Draw:1
2009-12-12 11:09:13 +00:00
leungclj
11b2a4b288 JON4TH4N - (SHM)(EVE) added equipment and test script 2009-12-12 08:21:54 +00:00
leungclj
826f7e5116 JON4TH4N - (5DN) added equipment, fixed twitch test, improved equip_shroud test 2009-12-12 07:23:43 +00:00
leungclj
aa27e4ca16 JON4TH4N - (10E) added equipment 2009-12-12 06:57:26 +00:00
leungclj
9f38fa5b06 JON4TH4N - improved test 2009-12-11 00:53:43 +00:00
leungclj
c779c626b2 JON4TH4N - (ZEN) equipment added, please look at the todo, and perhaps expand on "mytgt" or "this" 2009-12-10 17:50:45 +00:00
Psyyringe
12d2c87aef Psyringe - added test script for Rampage(2/2,1) - result of hunting a bug that didn't reproduce 2009-12-10 12:13:02 +00:00
Psyyringe
1a8bd648d8 Psyringe - added test scripts for recently added cards and mechanics (nofizzle, manacost, X-effects). Also added thorough testing for Angry Mob to help clearing up recent discussion. 2009-12-03 17:37:05 +00:00
wagic.the.homebrew@gmail.com
7f9d22e0aa Erwan
-fixed a memory leak
- Added P02 and PTK 
- New way to create tokens in the parser, much more flexible, see the Hive in RV. Tokens can now be written as other cards, with a rarity of "T". I suggest their id to be the negative value of the card that generates them when possible. Naming convention for images is the same as before: a negative id such as -1138 will need a [id]t.jpg image (1138t.jpg). Positive ids work as "normal" pictures
2009-11-18 13:14:08 +00:00
wagic.the.homebrew@gmail.com
d85b1d66de Erwan
-fix issue 187 (Double Strike + First Strike)
2009-11-15 10:23:37 +00:00
wagic.the.homebrew@gmail.com
5781060d83 Erwan
- fix issue 179 (@movedTo battlefield triggers when a creature changes controller)
- fix issue 176 (Ray of Command)
2009-11-14 08:28:29 +00:00