Commit graph

3710 commits

Author SHA1 Message Date
LevelX2
5095e64462 Fixed possible null pointer exception of TargetDefender. 2015-05-05 21:48:00 +02:00
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
9923fc1052 Merge origin/master 2015-05-05 00:53:41 +02:00
LevelX2
8eae24051a * Fixed not unique target setting. 2015-05-05 00:50:47 +02:00
betasteward
c5e216ddbf more MCTS improvements 2015-05-04 15:41:37 -04:00
LevelX2
6403fff12b * Fixed target hadnling of PreventDamageBySourceEffect (fixes #952). 2015-05-04 18:38:26 +02:00
Nathaniel Brandes
efb48e2ace Fixed source damage prevention not working properly.
Tested for Burrenton Forge-Tender.
2015-05-04 02:09:43 -07:00
Nathaniel Brandes
ddc2128f78 Fix return to battlefield effect losing target if it has changed zones
for a fixed target pointer.
2015-05-04 01:08:41 -07:00
Nathaniel Brandes
2f476b7c53 Cleanup sets.
This is an extensive renaming of sets to their correct names. "Duel
Decks" and "Not Standard Legal" have been merged into a "Supplemental"
set type. MTGO-only sets have been put into their own set type, just
like magiccards.info. Supplemental sets now have a "block" which is the
block that they have under magiccards.info, for easier organization. The
deck builder on the client now relies on an autogenerated list instead
of a hardcoded one.
2015-05-03 20:07:13 -07:00
LevelX2
880fab9014 * Fixed typos of Archmage Ascension and LookLibraryControllerEffect. 2015-05-03 23:44:10 +02:00
betasteward
282f600749 additions and improvements to ThreadLocalStringBuilder 2015-05-03 13:09:22 -04:00
LevelX2
cf6884b4a5 * Some minor changes for release. 2015-05-02 13:02:48 +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
85d7f099bd * River Kelpie - Fixed that the first ability did not always trigger as intended. 2015-05-01 17:37:57 +02:00
betasteward
e131caa453 Use ThreadLocal StringBuilder for frequently used StringBuilders - saves having to construct new StringBuilder objects 2015-05-01 08:10:22 -04: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
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
442b12503a Merge origin/master 2015-04-30 17:16:41 +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
Nathaniel Brandes
da6fec0e65 Correct effects for "cares about Dragons" cards.
A Dragon card does not necessarily have to be a creature. In your hand,
it can be a tribal instant (like Nameless Inversion). In the
battlefield, it can be any permanent of subtype dragon, not just a
creature.
2015-04-30 02:31:44 -07:00
LevelX2
c8b79f5568 Merge origin/master 2015-04-30 10:25:46 +02:00
LevelX2
4d21cde3bb * Loam Dweller - Fixed that the land was not put onto battlefield tapped. 2015-04-30 10:24:55 +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
255d436148 Omniscience now only allows you to play cards from your hand without
paying their mana costs.
2015-04-29 01:58:11 -07:00
LevelX2
66499bd58f * Mana Payment - Fixed a bug where the check if a specific colorored mana was payed could give back the wrong result (allowed e.g. the player sometimes to pay colored hybrid mana with the wrong colored mana). 2015-04-29 10:32:33 +02:00
LevelX2
aa5d050571 Fixed ThragtuskTest failing sometimes because of random target. 2015-04-28 17:10:32 +02:00
LevelX2
4b481b59e6 Added DTK as set for token image of Dragon Fodder. 2015-04-27 18:16:49 +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
Nathaniel Brandes
5a3c90a295 Changed Kentaro, the Smiling Cat's ability to be an alternate cost
instead of a set cost effect.

Also cleaned up dash names to be "dash" instead of "evoke".
2015-04-27 02:25:20 -07:00
LevelX2
a496e614d3 * Delve - Fixed that if automatically mana payment is deactivated cards could be delved without using it for mana payment of the delve spell. While automatically mana payment is deactivated only one card at a time can be used for delve now fixes #929. 2015-04-26 22:16:09 +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
159e36eabe * Fixed a bug that attach effects were not stopped during resolution if the object to attach does no longer exist - added fix. 2015-04-25 20:49:05 +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
LevelX2
167bf8be3c * Fixed a bug that cost adjustments for costs of abilities that had multiple ManaCost objects in the ManaCosts could be applied muliple times (e.g. Everflowing Chalice with Thorn of Amethyst). 2015-04-25 19:11:49 +02:00
LevelX2
a3dba9b1d0 Added some error handling client startup. 2015-04-25 11:07:01 +02:00
LevelX2
f94497fac8 * Fixed a bug in DealsDamageToACreatureTriggeredAbility (caused Stinkweed Imp (and other creatures) to trigger also from non combat damage). 2015-04-25 01:17:20 +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
a0424aec50 Added Fluctuator, Stone Calendar, Planar Gate, Mana Matrix and Urza's Filter. 2015-04-23 15:44:55 +02:00
Nathaniel Brandes
27005fcba4 Fix counterspells not working when Rest in Peace is in play. 2015-04-22 23:01:33 -07: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
96a23d42cc * Added missing creature types not appearing on type lines of cards. Removed wrong creature type Forest. 2015-04-22 22:23:52 +02:00
LevelX2
18bc7df6c9 Added Blinkmoth to the list of creature types. 2015-04-22 15:27:24 +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