Nathaniel Brandes
f9f6b078ab
Properly fix ReturnToBattlefieldUnderYourControl.
...
All tests now passing. I broke out It That Betrays into it's own class,
as it doesn't actually care about zone when returning the permanent to
the battlefield, unlike most other abilities of that type, which target.
2015-05-04 21:31:01 -07:00
LevelX2
1a64f9e53e
* Added some tests for ReturnToBattlefieldUnderYourControlTargetEffect (related to #947 ).
2015-05-05 01:31:57 +02:00
LevelX2
c342c92160
* Destroy the Evidence - Fixed that no cards were moved to graveyard.
2015-05-05 00:53:03 +02:00
LevelX2
8eae24051a
* Fixed not unique target setting.
2015-05-05 00:50:47 +02:00
LevelX2
6403fff12b
* Fixed target hadnling of PreventDamageBySourceEffect ( fixes #952 ).
2015-05-04 18:38:26 +02:00
LevelX2
1f44e1a592
* Some minor adjustements to test handling.
2015-05-04 18:37:41 +02:00
LevelX2
0069241027
* Some minor changes.
2015-05-02 12:19:44 +02:00
LevelX2
8686f4f777
* Fixed a bug that the AI did for target selection not check correctly players with hexproof ability.
2015-05-02 09:47:38 +02:00
LevelX2
503dad24b3
* Added test for Spellskite.
2015-05-01 18:12:27 +02:00
LevelX2
85d7f099bd
* River Kelpie - Fixed that the first ability did not always trigger as intended.
2015-05-01 17:37:57 +02:00
LevelX2
d7c23bbfc0
* Fixed a bug that countered spells of creatures with the ability going back to library if going to graveyard (e.g. Legacy Waepon) stayed in hand or caused a java bug instead of going to library.
2015-05-01 14:04:52 +02:00
LevelX2
eb6e7f9b46
* Fixed a bug of draw card replace effect (e.g. multiple Thought Reflection enchantments on the battlefield let you draw less cards than intended).
2015-05-01 12:15:13 +02:00
LevelX2
0ae339ff26
* Hive Mind - Working again if copied spell is not countered. Added some tests for Hive Mind ( #717 ).
2015-05-01 11:09:57 +02:00
Nathaniel Brandes
ef7a001ce5
Add Volrath's Shapeshifter control test.
2015-04-30 19:34:12 -07:00
Nathaniel Brandes
b25c4aac77
Added Volrath's Shapeshifter.
...
The Graveyard was modified to become its own class, as the top card of
your graveyard matters for this card, and graveyard order matters for
some other old card. Note that due how Volrath's Shapeshifter's ability
works, it is applied in layer 3, after control effects. This is so it
can look at it's current controllers graveyard, instead of it's owner,
as it would if the copy effect was at layer 1.
2015-04-30 19:10:50 -07:00
LevelX2
9b3eff603c
* Laboratory Maniac - Fixed check for win condition (you can now win together with Platinum Angel).
2015-05-01 01:50:25 +02:00
LevelX2
4206ea97ec
Added another Infect test.
2015-05-01 00:39:13 +02:00
LevelX2
30bbd704e4
Added infect test.
2015-04-30 17:15:51 +02:00
LevelX2
f9c48cc4d5
* Some updates to cards that check the controller of the source of an event. Now prevention and replacement effect controller of non permanents are determine. But it can be wrong under some control changing circumstances. Only solution would be to have always the causing ability instead of only the sourceId ( fixes #804 ).
2015-04-30 16:15:39 +02:00
LevelX2
0cb6c7ee26
* Fixed a bug that number of targets for spells with multiple modal selection (e. g. Cryptic Command) was not calulated correctly.
2015-04-29 23:46:39 +02:00
LevelX2
830765996f
* Storm - Fixed handling of countered Storm spells. * Reworked Rebound more rule conform. * Fixed that zone change counter was not raised if a card is moved to stack.
2015-04-29 17:37:54 +02:00
Nathaniel Brandes
4b6993f398
Added global alternate costs to canPlay test. Added Omniscienece test
...
case.
2015-04-29 03:04:34 -07:00
Nathaniel Brandes
7648ca4b4f
Fix Lazav's copy ability "forgetting" about cards that change zones.
2015-04-28 19:43:31 -07:00
LevelX2
aa5d050571
Fixed ThragtuskTest failing sometimes because of random target.
2015-04-28 17:10:32 +02:00
LevelX2
63ae8a9f13
* Mistbind Clique - Added test for champpion triggered ability. Set zone ability has to work in.
2015-04-28 14:45:38 +02:00
LevelX2
72e63292e1
Added a multiplayer control change test.
2015-04-27 23:42:55 +02:00
LevelX2
98710f8660
Added a multiplayer control change test.
2015-04-27 23:42:32 +02:00
LevelX2
3758cefc59
Some changes to check if Object had ability and the abillity can trigger.
2015-04-27 18:05:39 +02:00
LevelX2
4e0929e3f2
* Fixed a bug of DiesThisOrAnotherCreatureTriggeredAbility that caused that some triggerd effects did not work (e.g. Xathrid Necromancer dying together with other creatures).
2015-04-25 20:50:31 +02:00
LevelX2
1e7f82bb3c
* Fixed a bug that attach effects were not stopped during resolution if the object to attach doe sno longer exist.
2015-04-25 19:13:02 +02:00
Nathaniel Brandes
ef5dff709a
Fix compilation in Java 7.
2015-04-24 01:33:52 -07:00
LevelX2
50b783d4a3
Fixed typo in test name.
2015-04-23 23:45:29 +02:00
LevelX2
ffd0b0c685
* Fixed that enchant card in graveyard auras select target when entering the battlefield (allows the Animate Dead Worlgorger Dragon combo).
2015-04-23 23:43:00 +02:00
LevelX2
393442a7fe
* Added test for counterspell while Rest in Peace is in play.
2015-04-23 09:53:17 +02:00
LevelX2
a845340e0d
* Morph - Fixed that token copies of morphed creatures (e.g. by Supplant Form) came into play like the morphed creature face up instead of a 2/2 nameless creatures.
2015-04-22 23:06:07 +02:00
LevelX2
2a6ba88971
Added test.
2015-04-22 17:24:10 +02:00
LevelX2
2ca2caf9d5
* Fixed a problem with left battlefield or dies triggered abilities of token permanents.
2015-04-21 17:18:50 +02:00
LevelX2
c2fb2de67a
Fixed a bunch of NPE and other possible exceptions.
2015-04-20 23:37:28 +02:00
LevelX2
2822c18b81
* Triton Tactics - Fixed that the don't untap effect for the blocked creatures did not work.
2015-04-20 17:35:32 +02:00
LevelX2
89ce87e16e
Merge origin/master
2015-04-20 10:57:39 +02:00
LevelX2
568f62c66f
Some changes to restrained event handling (simultaneous events) ( fixes #897 ).
2015-04-19 10:43:12 +02:00
LevelX2
a5967d9b2a
Added another test.
2015-04-19 09:13:58 +02:00
LevelX2
47b1753519
* Soulfire Grand Master - Fixed that a countered spell did wrongly return to hand if second ability was used.
2015-04-18 11:53:51 +02:00
LevelX2
0fc4c4b9f1
Added some tests.
2015-04-17 15:19:40 +02:00
LevelX2
57d8cd6ff4
* Delay - Fixed that suspend of the xiled spell did not work.
2015-04-17 14:50:33 +02:00
user
25749ff648
Some minor changes.
2015-04-17 00:20:34 +02:00
LevelX2
b2fe13c8c8
* Fixed attack tap handling - You can no longer attack with a mana producing creature that will be get tapped for attacking and use the creature itself to produce mana to pay for effects like Ghostly Prison if the mana ability has the cost to tap the creature.
2015-04-16 15:57:17 +02:00
LevelX2
77f3035443
Some changes to effect handling to fix failing tests.
2015-04-15 15:21:47 +02:00
LevelX2
9aa02f3d6f
* Sidisi, Brood Tyrant - Fixed that the second ability did wrongly trigger, if Sidisi left battlefield before first ability did resolve.
2015-04-15 08:16:58 +02:00
LevelX2
4785ebd5f8
Merge origin/master
2015-04-14 22:29:41 +02:00
LevelX2
1cb3e73b39
* Servant of the Scale - Fixed that the counters were not added to the target creature.
2015-04-14 22:28:36 +02:00
LevelX2
2691dea7ef
Added another Morph test.
2015-04-14 17:16:25 +02:00
LevelX2
7529d6f207
* Grindstone - Fixed a bug causing target player to lose game by grindstone effect itself.
2015-04-14 15:25:51 +02:00
LevelX2
15389b24d8
* Putrid Imp - Fixed that the can't block restriction did not work correctly.
2015-04-14 14:17:05 +02:00
LevelX2
67114c40a0
Added one more Manifest test.
2015-04-14 11:46:18 +02:00
LevelX2
d3dba58358
* Fixed that continuous effects of copied cards with limited duration stop to work as the copied card stops to exist.
2015-04-10 00:39:06 +02:00
LevelX2
d0900ebf6f
[TPR] Added Thopter Squadron.
2015-04-09 15:23:36 +02:00
LevelX2
fd8a18129b
* Loyal Cathar - Fixed that dies triggered ability also triggered for the night side card.
2015-04-07 23:39:38 +02:00
LevelX2
a58afbde4f
Added Forecast test.
2015-04-07 16:12:33 +02:00
LevelX2
f62d3ac227
* Exploit - Fixed that Exploit also triggered if the creature with Exploit left the battlefield before the first ability of Exploit resolved.
2015-04-07 00:27:07 +02:00
LevelX2
66cf690968
Fixed some bugs that prevent to select shroud or hexproof targets by not targeted effects (e.g. Proliferate).
2015-04-05 11:13:26 +02:00
LevelX2
a60ba1b20f
Added Amplify Test.
2015-04-04 12:42:48 +02:00
betasteward
18a4a98f1a
moved copied cards to GameState
2015-04-03 13:37:11 -04:00
LevelX2
dbb9be6703
* Arashin Sovereign - Fixed that the player had no option to let the card go to the graveyard.
2015-04-03 16:28:40 +02:00
fireshoes
0fbe4303ae
Added set Tempest Remastered and reprints. Added Pit Trap. Updated latest Game Day, FNM, Buy-a-box, WMCQ, and Release promos.
2015-03-30 22:51:34 -05:00
LevelX2
9d85a26e12
Added some tests and some minor changes.
2015-03-30 17:20:04 +02:00
betasteward
6405c8d2f0
move zoneChangeCounter to GameState - Card is now immutable
2015-03-29 08:30:31 -04:00
LevelX2
7bb2bbe1fa
* Lazav, Dimir Mastermind - Fixed that it came back from non battlefield zone to battlefield copying previous copied card.
2015-03-27 14:23:53 +01:00
LevelX2
46b8267735
* Added some tests for Soulfire Grand Master.
2015-03-26 17:16:46 +01:00
LevelX2
16469bafe6
* Soulfire Grand Master - updated handling.
2015-03-25 17:13:34 +01:00
LevelX2
b382865e8d
* Ashcloud Phoenix - Fixed that the dies triggered abilitiy worked if he died face down.
2015-03-25 15:13:46 +01:00
LevelX2
f1b279d650
* Added one more Morph test.
2015-03-25 00:30:03 +01:00
LevelX2
23d431a65a
* CantBeCounteredControlledEffect - Fixed a bug that the counter source was not cheched correctly (e.g. it was possible to counter spells with blue counters after Autumn's Veil).
2015-03-24 22:46:52 +01:00
Jeff
804f5c9908
- Added a test for The Wretched.
2015-03-24 11:15:32 -05:00
LevelX2
5161f849f9
Fixed Necromancy Test.
2015-03-23 19:40:19 +01:00
betasteward
72ff6f27b3
changes to the way abilities are added to cards
2015-03-23 13:04:09 -04:00
LevelX2
1b90730aeb
Fixed that to manifest an aura enchantments did not work correctly.
2015-03-23 00:03:09 +01:00
LevelX2
740611119b
* Mikaeus, the Unhallowed - Fixed that the given undying ability did not trigger.
2015-03-22 19:47:46 +01:00
LevelX2
07a6c8154a
* Fracturing Gust - Fixed that the life gain did not work if permanent with life gain preventing effect was destroyed.
2015-03-22 09:45:19 +01:00
LevelX2
b959b07fc1
Added test for It That Betrayed.
2015-03-14 10:57:02 +01:00
betasteward
9ad8530dee
moved faceDown property from Card to CardState
2015-03-12 22:09:12 -04:00
LevelX2
a7e4ceb234
* Parallax Wave - Fixed a bug that always all exiled objects returned also if they were exiled by an earlier instance of Parallax Wave (combo with Opalescence).
2015-03-11 16:25:53 +01:00
LevelX2
23de61b433
* Fixed that manifested card went to exile face down ( fixes #791 ).
2015-03-11 15:17:54 +01:00
LevelX2
e273481499
Some minor changes.
2015-03-11 15:02:52 +01:00
LevelX2
bda106d5eb
Finished change of delimter from ";" to "$" for internal handling of tests to prevent problems from rules containing — code.
2015-03-11 14:04:56 +01:00
LevelX2
8d7087d859
Fixed initialisation of targetPointer in BoostEquippedEffect ( fixes #790 ).
2015-03-11 13:24:11 +01:00
betasteward
fe2cd395a6
moved info from CardImpl to CardState and PermanentImpl + created InfoEffect for displaying rule info on Card
2015-03-10 14:57:55 -04:00
LevelX2
6b8493d9f8
* Changed all occurances of unblockable to can't be blocked.
2015-03-08 21:54:36 +01:00
LevelX2
43b0694ee3
* Jhoira of the Ghitu and Epochrasite - Fixed the not working suspend handling.
2015-03-08 01:40:16 +01:00
LevelX2
a1208f1a73
* Cascade - Fixed a bug that caused the controlling player to lose the game if all cards of the library were exiled with cascade although the cards were returned to library.
2015-03-07 14:26:26 +01:00
LevelX2
532ff611c4
* Reworked dealtDamageByThisTurn handling of permanents to take zone change of referenced objects into account.
2015-03-07 01:15:27 +01:00
LevelX2
34021ca44d
* Bestow - Fixed handling of Bestow ( fixes #772 ).
2015-03-05 15:42:28 +01:00
LevelX2
867bb38f91
* Geist of Saint Traft - Fixed that the Token was not exiled at end of combat.
2015-03-03 00:19:46 +01:00
betasteward
5c746e8ec2
Merge branch 'master' of https://github.com/magefree/mage
...
Conflicts:
Mage.Sets/src/mage/sets/avacynrestored/CavernOfSouls.java
Mage.Sets/src/mage/sets/shadowmoor/ManaReflection.java
2015-03-01 22:02:33 -05:00
betasteward
632573fc3e
moved Watchers to Ability and moved Counters to CardState
2015-03-01 21:17:23 -05:00
LevelX2
7ce1e6de19
* Some minor changes.
2015-03-01 17:22:39 +01:00
LevelX2
01ef3f9354
* Fixed a bug that replacemet effects did not work if the source object of the replacemet effect also changed zone ( fixes #759 ).
2015-02-28 12:55:49 +01:00
LevelX2
dd916a30e4
* Added undying test.
2015-02-27 15:18:19 +01:00
LevelX2
80d3e6bd9a
Fixed a bug of AI target selection that caused endless loops during build of test project.
2015-02-27 15:04:42 +01:00
LevelX2
debe2316b2
* Echo - Fixed that the sacrifice effect also forced the player to sacrifice a new instance of the permanent with echo.
2015-02-26 20:38:48 +01:00
LevelX2
957fa7d647
Some minor changes.
2015-02-25 23:47:53 +01:00
LevelX2
329165555b
* Undying - Fixed that the creature with undying returnd under the control of the previous controller instead of the card owner.
2015-02-25 22:21:17 +01:00
LevelX2
091fa9a528
* Bestow - Fixed that the converted mana costs were calculated from the bestow costs instead of the base cost of the spell.
2015-02-24 23:36:59 +01:00
LevelX2
2189236284
* Spellskite - Fixed that abilities (like the one of Wild Defiance) did not trigger if target was changed to Spellskite.
2015-02-21 17:26:14 +01:00
LevelX2
79e9312893
* Fixed the annoying SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder" on client start. Updated a lot of POM references. Fixed warnings of Test Project. Some changes to logging.
2015-02-20 13:58:13 +01:00
LevelX2
48e08d94ce
Set the convoke tests to ignore, because they don't work after the rework of convoke and delve.
2015-02-20 11:10:12 +01:00
LevelX2
d8e1a843c6
* Tidehollow Sculler - Fixed that the exiled card did not return opponents hand.
2015-02-16 20:46:23 +01:00
LevelX2
1342af5349
* Brain Maggot - Fixed that the exiled cards were not returned to opponents hand.
2015-02-14 10:54:31 +01:00
LevelX2
ad012ebd02
Fixed more CPU load caused by calculation of available mana.
2015-02-14 00:22:17 +01:00
LevelX2
8620fe5a7d
* Fixed another problem with available mana generation (e.g. with Nykthos, Shrine to Nyx).
2015-02-13 15:03:29 +01:00
LevelX2
0722276ca4
* Fixed a bug in calculation of available mana that can be a source of heavy server load.
2015-02-13 08:39:44 +01:00
LevelX2
ba1fb775b2
* Fixed that manifested or morphed creatures did wrongly trigger "enters the battlefield" abilities with their card attributes (e.g red card manifested triggered Foundry Street Denizens boost ability).
2015-02-12 15:54:41 +01:00
LevelX2
7b95da55a7
* Some more changes concerning sourceObject handling in ability. Added early event type check for triggered abilities.
2015-02-12 01:56:45 +01:00
LevelX2
b73f34a52e
* Some changes to zone object movement and source object handling. Origin source object of ability is now hold in ability to be able to check e.g. zone change counter.
2015-02-11 17:51:41 +01:00
LevelX2
874b170a74
Added ManaOptions test and some changes in handling.
2015-02-11 01:10:34 +01:00
LevelX2
974951e18d
* Fixed that for "Shoal" spells a wrong CMC was calculated while on the stack, if alternate casting cost was used ( fixes #696 ).
2015-02-06 16:13:51 +01:00
LevelX2
a245c0ed6f
Fixed a bug of Undying.
2015-02-02 22:08:33 +01:00
LevelX2
2544c12d48
* Some minor changes.
2015-02-01 16:47:21 +01:00
LevelX2
faa2b0a0bf
* Rally the Ancestors - Fixed that creatures cards were moved to exile also if already in the graveyard. Problem was that the zoneChangeCounter was not raised as a permanent card left the battlefield. So some more fixes were neccessary for implementations that are based on this fixed zoneChangeCounter of permanents leaving the battlefield. I guess there will be some more bugs caused by this change but I guess this is the correct way to go.
2015-01-31 19:17:22 +01:00
LevelX2
dbbbbc0279
* Fixed that continuous effects of face down creatures were applied.
2015-01-31 14:46:54 +01:00
LevelX2
5b79f99a85
Added log text to use of conditional mana of Cavern of Soul.
2015-01-30 16:58:21 +01:00
LevelX2
54e0068053
* Devotion - Fixed that face down permanents counted for devotion with their regular casting costs (workaround).
2015-01-23 15:12:29 +01:00
LevelX2
bc3dc9d548
* Fixed that ETB abilities of manifested cards did wrongly trigger (e.g. the Constellation ability of Doomwake Giant manifested by Reality Shift).
2015-01-23 13:48:03 +01:00
LevelX2
ac0d923afd
Added one more test for manifest.
2015-01-23 00:05:37 +01:00
LevelX2
89c8425d94
* Fixed that replacement or rule modifying effects of cards played with morph were wrongly applied on the stack (e.g. can't be countered of Akroma, Angel of Fury).
2015-01-22 23:43:25 +01:00
LevelX2
8b2445551e
* Added 2 tests to Phantasmal Image Tests.
2015-01-20 17:23:17 +01:00
LevelX2
79ceae999a
[FRF] Fixed ETB replacement and triggered abilities for manifested cards.
2015-01-17 15:30:00 +01:00
LevelX2
de10554ec4
[FRF] Added Brutal Hordechief and Crucible of the Spirit Dragon. FRF Complete!!!
2015-01-17 13:08:39 +01:00
LevelX2
effa560e02
[FRF] Fixed a bug of Hooded Assassin.
2015-01-07 23:42:42 +01:00
LevelX2
96aafcd475
Fixed that adjustTarget did not work correctly for Triggered abilities. Fixed that adjustTargets also works now for cards copied from graveyard (e.g.by Feldon of the Third Path).
2015-01-07 01:15:03 +01:00
LevelX2
4a35c8c567
Some changes to framework classes (e.g. to handle gained DiesTriggeredAbilities correctly).
2015-01-03 15:15:12 +01:00
LevelX2
4d6e818490
* Epochrasite - Fixed that it did not get the suspend ability after beeing exiled.
2014-12-31 11:46:13 +01:00
dokkaebi
349dc4f995
Added Poisonous keyword ability and Virulent Sliver
2014-12-30 18:08:43 -08:00
LevelX2
f00001aca2
* Fixed a bug that abilities gained from enchantments (e.g. regen from Molting Snakeskin) to enchanted permanent did not work.
2014-12-28 21:49:53 +01:00
LevelX2
c958a1af25
* Persist - Fixed that the permanent returns now correctly under owner control after dying.
2014-12-27 02:19:33 +01:00
LevelX2
18e4bc7f18
* Fixed a bug of Exchange control were activated abilities got the wrong controller.
2014-12-27 02:18:29 +01:00
LevelX2
34298e78f5
* Fixed a (probably recently unintentionally added) problem with activated abilities of tokens.
2014-12-26 21:08:05 +01:00
LevelX2
40eef06944
* Grindstone - Infinite loop (with e.g. two Progenitus) is handled as a draw.
2014-12-26 17:22:32 +01:00
LevelX2
dba3c881e1
* Fixed problem with CopyEffect and fixed MisdirectionTest.
2014-12-25 11:31:48 +01:00
LevelX2
4f1368f3de
* Made a lot of changes to handling of continuous and triggered abilities. This should fix the problems with Mage Singletons like Flyinging / Intimidate / Reach not working. Fixed also #533 and some other problems with copy effects of cards like Clone that did not end if e.g. Clone left the battlefield.
2014-12-25 02:07:40 +01:00
LevelX2
02ba80b719
* Switched from UUID to MageObjectReference to handle affected objects of continuous effects. Solvng problems with objects that changed (multiple times) zones while the effect lasts.
2014-12-25 02:03:21 +01:00
LevelX2
d66213b4fb
* Mephidross Vampire - Fixed that it gave a wrong ability to all controlled creatures.
2014-12-23 11:12:30 +01:00
LevelX2
1141e4c2fa
* Fixed two Morph Tests.
2014-12-16 15:07:13 +01:00
LevelX2
bc7a64677e
* Fixed some cards/effects that checked for permanents with the same name and did not work correctly with face down creatures.
2014-12-13 16:47:24 +01:00
LevelX2
6514e30b59
* Gather Specimens - Fixed that it did not work for token creatures the opponent brought onto the battlefield.
2014-12-01 13:28:39 +01:00
LevelX2
3446953a9d
Fixed two tests.
2014-11-29 15:05:43 +01:00
LevelX2
c673fbfae1
[C14] Added 6 blue cards.
2014-11-28 17:39:47 +01:00
LevelX2
036095f6ec
Some more changes to net mana handling.
2014-11-17 23:44:40 +01:00
LevelX2
b2e259422d
Changed counter names to start with lower case.
2014-11-14 15:11:20 +01:00
LevelX2
7dbf265fd5
* Tests - Use logname to check for objects.
2014-11-11 23:57:20 +01:00