Commit Graph

381 Commits

Author SHA1 Message Date
techdragon.nguyen@gmail.com b595091855 moved tests for rakdos pit dragon into bugs folder until issue 555 is resolved. 2010-12-09 07:58:58 +00:00
techdragon.nguyen@gmail.com dbb3e04de1 replacing old tests with new more complete tests for radkos pit dragon.
Note: currently two of the four tests fail due to issue 555 which is unresolved.
2010-12-09 06:14:33 +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
wagic.the.homebrew@gmail.com c28c14171f Erwan
-fix for issue 489 (protection prevents some triggers to happen)
2010-12-07 14:12:04 +00:00
wrenczes@gmail.com ffd3b7b074 At Z's request, fixed Issue 184, ExtraCost types with targets such as Siege-Gang Commander/Drowner of secrets combined with targeted abilities bug.
This one was a bit of a doozy to fix correctly, but the actual fix ended up being fairly simple - the upshot is that TargetAbility never checked for whether an extra cost needed setting prior doing a target selection.  While at it, I discovered and fixed another bug:  if you're in the middle of an extra cost choice (like sacrifice, for instance) and hit the next phase button, the game would let you proceed, and then hang in an endless loop.

While at it, did a little cleanup/refactoring around GameObserver's waitForExtraPayment - any time a bool has something that sounds like a verb, it probably deserves to be a function.  Now it is. (I needed to refactor it anyway, as I reused that code for the next phase hang.)

Note that after this fix, I had to patch two test cases (siege_gang_commander.txt & seismic_assault.txt) - since I've change the selection order (ie a target ability with a sacrifice cost requires the cost to be paid up front before picking the target), this means that tests involving targeting & sacrifices need to switch the order of the cards to pass.
2010-12-06 06:49:36 +00:00
techdragon.nguyen@gmail.com 8c7e06b6dc fix for issue found in forums with reinforcements. Not sure how wide spread the original coding will cause errors but this solution avoids it entirely.
Issue: 527
2010-11-22 21:38:12 +00:00
techdragon.nguyen@gmail.com f16192f685 added in missing tests for primeval titan and sun titan. ( these were not added on initial change )
fixed definitions for sun titan and primeval titan. ( these were clobbered with the latest changes. )
2010-11-11 17:05:28 +00:00
wagic.the.homebrew@gmail.com 416617fc0d Erwan
- fixed memory leak in AEquip/ATeach 
- Test suite now trims strings correctly (allows to have space between comma-separated card names)
- Added Paradise Mantle (for ATeach test)
- removed a missing wallpaper from wallpapers list
2010-11-07 02:27:54 +00:00
wagic.the.homebrew@gmail.com f847bff1d4 Erwan
- adding a test for issue 501 (changeling creatures do not get correct creature types)
2010-10-31 03:19:25 +00:00
omegablast2002@yahoo.com 73b7e8d361 adding a test to insure that a <1 aslongas actually remains on the field if the considiation is false. 2010-10-25 14:42:53 +00:00
techdragon.nguyen@gmail.com d358f14eed reverting change. thought the card was a black permenant. 2010-10-24 19:14:42 +00:00
techdragon.nguyen@gmail.com 219fdbf4f8 test broke due to omission of response to second counter request, if the test is for 1 counter, it needs to cancel the other counter request. So please test each change individually as well as part of the entire suite. If there are differences, than there is something fundamentally wrong with the suite. 2010-10-24 19:00:56 +00:00
omegablast2002@yahoo.com 4e6cd4309c changed bloodhall ooze test BACK to the way it was, please read cards before commiting a test change, also, re-run test suite when you make changes to test. 2010-10-24 18:36:13 +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
techdragon.nguyen@gmail.com ad4543b968 fixed test. missing an assignment of a counter and end condition was incorrect. life should be 17 not 18 since ooze gets two counters it is a 3/3 monster not 2/2. The test was stalling on the interrupt screen for the second counter. 2010-10-24 17:23:19 +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 f5575ac68e Erwan
- Updated fix for Dragon Broodmother
2010-10-18 13:33:54 +00:00
omegablast2002@yahoo.com 1071dbf738 2010-10-17 14:03:51 +00:00
wagic.the.homebrew@gmail.com 8fdb64e9ce Erwan
- adding tests for issue 489 and issue 491
- check for null pointers in Credits.cpp
- Test suite can now select tokens by their name
- Fixed Dragon Broodmothere's token name
2010-10-17 10:21:08 +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
solo81@web.de 98926caaa8 Added 5 tests to safe
aslongas + <
aslongas + >
aslongas + trigger

for future code changes.
2010-10-15 20:32:15 +00:00
omegablast2002@yahoo.com 2f73400cbb updated _test, and rewrote bug test to safe "aslongas" effects in the future. 2010-10-15 15:21:55 +00:00
techdragon.nguyen@gmail.com 4a0331cbb9 corrected kicker test end conditions. 2010-10-13 21:24:50 +00:00
solo81@web.de ce934123b0 Added a test for issue483.
Fixed Lux Cannon.
2010-10-12 15:05:52 +00:00
wagic.the.homebrew@gmail.com 508040b3a7 Erwan
- fix for issue 467 (simultaneous triggers + "trigger" keyword)
- MootPoint's patch for some string parsing
- some random int/float compilation warning fixes
2010-10-01 16:33:07 +00:00
wagic.the.homebrew@gmail.com f4e87b7daf Erwan
- adding test to repro issue 467
2010-10-01 14:18:05 +00:00
wagic.the.homebrew@gmail.com 5de20792fd Erwan
- revert a mistake with tests from r2342
2010-09-28 22:37:28 +00:00
wagic.the.homebrew@gmail.com b79c7eea53 Erwan
- fix for issue 462 (graphical glitch when cards come back from graveyard)
- adding Kaioshin's wallpaper
- fixed minor issue in mtg.txt
2010-09-28 13:58:22 +00:00
solo81@web.de 56a6c7b6f6 Readded Mephidross Vampire.
Added a few tests.
2010-09-26 13:53:25 +00:00
wagic.the.homebrew@gmail.com 82ab92a61f Erwan
-fix for issue 408 (issues with life + targetcontroller + targets on the stack)
2010-09-26 12:57:12 +00:00
solo81@web.de 04ae98466b Added the correct test.txt. 2010-09-25 22:13:03 +00:00
solo81@web.de 73e420626e Fixed several card bug reports from the forum. 2010-09-25 21:59:48 +00:00
wagic.the.homebrew@gmail.com a6e4fba26b Erwan
- fix issue 304 (Momir + persist)
- some minor cleanup
2010-09-25 09:13:30 +00:00
wagic.the.homebrew@gmail.com f3cc20eb31 Erwan
- Fix for issue 284 (Damage not triggering when creature dies in combat phase)
2010-09-25 05:15:09 +00:00
wagic.the.homebrew@gmail.com a6a75af52a Erwan
- Partial fix for issue 335. This fixes the general problem of triggers not working in the case @movedTo(Battlefield) from(anywhere), but not the specific case of River kelpie not getting to draw a card after being "persisted"
2010-09-23 08:29:35 +00:00
wagic.the.homebrew@gmail.com bba6274f8b Erwan
- fix from issue 439 (skullclamp)
- reorganized a few files in VC++ project
2010-09-23 04:46:43 +00:00
solo81@web.de 2b81ba33f2 Added 33 successfully tested cards mainly based on rev2272.
2 example cards:

[card]
name=Decree of Justice
auto=token(Angel,Creature Angel,4/4,flying,white)*XX
autohand={2}{W}:cycling
autohand={X}{W}:name(cycle and soldier tokens) && cycling && thisforeach(X) token(Soldier,Creature Soldier,1/1,white)*X
text=Put X 4/4 white Angel creature tokens with flying onto the battlefield. -- Cycling {2}{W} ({2}{W}, Discard this card: Draw a card.) -- When you cycle Decree of Justice, you may pay {X}. If you do, put X 1/1 white Soldier creature tokens onto the battlefield.
mana={X}{X}{2}{W}{W}
type=Sorcery
[/card]

[card]
name=Stormbind
auto={2}{D}:damage:2 target(creature,player)
text={2}, Discard a card at random: Stormbind deals 2 damage to target creature or player.
mana={1}{R}{G}
type=Enchantment
[/card]


Added 2 tests for the keywords introduced in rev2272.


Corrected several card bugs.
2010-09-12 17:45:59 +00:00
solo81@web.de a417da60c7 Added a test for flashback. 2010-09-11 13:02:04 +00:00
solo81@web.de 1136cbf04f Fixed the test for Whispers of the Muse. 2010-09-11 12:21:42 +00:00
solo81@web.de 5658b1887b Readded the correct test.txt. Sorry! 2010-09-10 16:53:29 +00:00
solo81@web.de ca50a2a5a2 Added 21 successfully cards. Most of them profit from the newly introduced keyword=AFFINITY (thanks to Zethfox!)
[card]
name=Frogmite
abilities=affinityartifacts
text=Affinity for artifacts (This spell costs {1} less to cast for each artifact you control.)
mana={4}
type=Artifact Creature
subtype=Frog
power=2
toughness=2
[/card]

Added tests for that.

Have fun!
2010-09-10 16:19:19 +00:00
solo81@web.de 7b33d8382d Added 24 successfully tested cards based on rev2243 (many thx to Zethfox!!)
This addition includes
- cards with STORM (Dragonstorm,Tendrils of Agony,etc.) --> IT'S FINALLY THERE!
- cards which restrict the casting of spells (Arcane Laboratory,Silence)
- PLATINUM ANGEL (keyword: CANTLOSE)

Added tests for STORM;LAND:number,Sneak Attack

Removed Rhox Meditant and its tests.
2010-09-06 19:48:38 +00:00
solo81@web.de 3eb8e64a3e Added 43 successfully tested cards based on rev2234 + tests. 2010-09-03 23:17:17 +00:00
solo81@web.de d47b6fd4ec Added 66 successfully tested cards based on the last revisions. There are several cards groups in this package:
- Phantom creatures (Phantom Centaur, etc.)
- Soratami
- Cards with alternative casting cost (Force of Will) including almost all cards with EVOKE.
- Creatures which let you look at target players hand.


Added tests for several card groups.


Fixed issue148. Bloodhall Ooze works now as it should.
2010-09-01 23:37:18 +00:00
omegablast2002@yahoo.com 45f37b7545 fix windswept_heath.txt missing choice 1, added unearth support without workaround, tweaked alternative cost, added treason/sneak attack ability, added frozen. 2010-09-01 21:31:27 +00:00
omegablast2002@yahoo.com e6769fcfe9 fixed a error in plumes_of_peace_i260.txt it was missing a "choice 1" to select the tap function. 2010-08-30 07:42:17 +00:00
solo81@web.de 327b43d209 Added the 3 missing tests from last revision. 2010-08-29 15:08:05 +00:00
solo81@web.de 4dc2e4c401 1) Added 76 successfully tested cards based on rev2220.
Card list --> first comment


2) Added 3 tests for "PREVENT:*number*".


3) Fixed issue403.
2010-08-29 15:06:39 +00:00
solo81@web.de d67701a3b0 Added 7 successfully tested cards based on rev2209 (bloodthirst).
Added 1 test for creatures with Bloodthirst.

Removed 1 test (Tolsimir Wolfblood: This was related to a Voja workaround, which does not exist anymore!).
2010-08-28 22:11:57 +00:00