Commit graph

3921 commits

Author SHA1 Message Date
LevelX2
039c4f22a6 * Wither - Added reminder text. 2015-05-23 14:53:58 +02:00
LevelX2
64ea893ea0 Some changes to logging. 2015-05-22 22:33:01 +02:00
LevelX2
467a11b4cd Started to rework player.moveCard methods to handle multiple cards. 2015-05-22 15:15:39 +02:00
LevelX2
d7255f971c * Some more minor changes. Added test. 2015-05-21 23:25:46 +02:00
LevelX2
093b22081a * Some minor changes. 2015-05-21 22:39:30 +02:00
LevelX2
6097e297fe * Prevention effects - Fixed that prevention effects also prevented damage that was not preventable (fixes #983). 2015-05-21 00:25:37 +02:00
LevelX2
f5245ade01 * Game timer - Fixed that the timer count down was not shown while selecting the starting player and deciding for mulligan. 2015-05-20 23:27:00 +02:00
LevelX2
a3065b703a * Fixed that named searches (e.g. Surgical Extraction) work also if the selected card is a split card. 2015-05-20 17:17:42 +02:00
zweistecken
f7fdd0edde fixed AttackedByCreatureTriggeredAbility to behave as before adding SetTargetPointer 2015-05-20 09:01:43 +02:00
zweistecken
1fe1a08bd5 Merge remote-tracking branch 'upstream/master' 2015-05-19 18:43:31 +02:00
zweistecken
e324d53d97 added SetTargetPointer Enum to AttackedByCreatureTriggeredAbility
PERMANENT targeting attacking creature
PLAYER targeting attacking player
modified Garruk Apex Predator (only card using this) to use SetTargetPointer
2015-05-19 18:33:10 +02:00
LevelX2
c6d0c78d16 Merge pull request #976 from lunaskyrise/unchecked-and-deprecated
Remove most "has been deprecated" and "unchecked conversion" errors
2015-05-19 14:48:25 +02:00
Luna Skyrise
7f63ad02a6 Basal Sliver: use SimpleManaAbility...
...instead of a custom SimpleActivatedAbility
2015-05-18 20:27:37 -03:00
Luna Skyrise
4f079286ec Remove most "unchecked conversion" errors 2015-05-18 19:53:34 -03:00
LevelX2
591c289627 Merge pull request #974 from lunaskyrise/animal-boneyard-and-more
Animal Boneyard and more
2015-05-19 00:05:19 +02:00
LevelX2
04730e490b * Deranged Assistant - Disallowed possible undo to prevent cheating with otherwise hidden information (top card of library). 2015-05-18 23:06:15 +02:00
LevelX2
e5a792a8f5 * Puppeteer Clique - Fixed that the ability also tiggered without a valid target. 2015-05-18 21:46:22 +02:00
LevelX2
27cbe6a463 * Triggered abilities - Fixed class back to ConcurrentHashMap (fixes #966). 2015-05-18 20:56:33 +02:00
LevelX2
b0a404e84b * Retrace - Fixed that retrace did not work correctly with cost modifications. 2015-05-18 20:48:01 +02:00
Luna Skyrise
2facda95aa Fix typo in SourceOnBattlefieldCondition's class name 2015-05-16 21:32:05 -03:00
emerald000
6c010a8efe Added Bitter Ordeal and Psychogenic Probe 2015-05-14 04:07:08 -04:00
LevelX2
988ed217f3 * Angelic Destiny - Fixed that the enchantment did not return from graveyard to hand. 2015-05-13 23:05:02 +02:00
LevelX2
7bc8ff9955 * Otherworldly Journey - Fixed that the returning creature did not get the +1/+1 counter. 2015-05-13 17:45:44 +02:00
LevelX2
fa847e8feb * Update to version 1.4.0v0. 2015-05-12 23:11:25 +02:00
LevelX2
ed501cad21 * Some minor adjustements/changes. 2015-05-12 23:00:34 +02:00
LevelX2
28d46e2a95 * Added a simple identifier to tooltip and game log to be able to identify the exact target if multiple objects with the same name exist. 2015-05-12 17:30:14 +02:00
LevelX2
e2cb40de70 Some minor log changes and added tests. 2015-05-12 17:29:00 +02:00
LevelX2
1561ed3fa4 * Fixed a recently added bug that prevented attack a player if also a planeswalker of the attacked player is on the battlerfield. 2015-05-12 17:28:17 +02:00
LevelX2
69b381779b * Added a simple skill level to set and filter for tables. 2015-05-12 15:10:24 +02:00
LevelX2
e3cb007848 Merge pull request #962 from lunaskyrise/master
Add 18 new cards + change set package name
2015-05-12 01:31:56 +02:00
LevelX2
15efe14fd5 * Fixed human players controlling other human players turn (e.g. by Mindsliver). 2015-05-12 01:10:56 +02:00
Luna Skyrise
a49d082823 Orcish Spy: modify LookLibraryTopCardTargetPlayerEffect to admit multiple cards 2015-05-11 19:07:14 -03:00
LevelX2
1067ba296b * Chief Engineer - Fixed that convoke did not work for Artifacts while Chief Engineer was on the battlefield. 2015-05-11 15:26:48 -03:00
LevelX2
70f152feb1 * Fixed that some mana effects did not send all neded events (prevented that Contamination chnaged conditonal mana from Cavern of Souls to black mana). 2015-05-11 15:26:39 -03:00
LevelX2
ef1ee0adbf * Norn's Annex - Fixed that the effect did not work if a planeswalker of the controller was attacked. 2015-05-11 15:26:29 -03:00
LevelX2
d42901d052 Some minor changes. 2015-05-11 15:26:19 -03:00
LevelX2
7338022dd1 * Fixed that cyle triggered abilities did not work. 2015-05-11 15:26:09 -03:00
LevelX2
e5a1a623ae * Chief Engineer - Fixed that convoke did not work for Artifacts while Chief Engineer was on the battlefield. 2015-05-11 19:17:38 +02:00
LevelX2
eec65a2881 * Fixed that some mana effects did not send all neded events (prevented that Contamination chnaged conditonal mana from Cavern of Souls to black mana). 2015-05-11 15:33:22 +02:00
LevelX2
17f9bf57d0 * Norn's Annex - Fixed that the effect did not work if a planeswalker of the controller was attacked. 2015-05-11 15:00:54 +02:00
LevelX2
7d2883560c Some minor changes. 2015-05-11 13:49:04 +02:00
LevelX2
fdcc365926 * Fixed that cyle triggered abilities did not work. 2015-05-11 12:18:07 +02:00
Luna Skyrise
dd32411e83 [8ED, FEM] Added Orcish Spy...
...and the revealing target player's library effect
2015-05-10 23:51:00 -03:00
LevelX2
5abcefa09e Minor changes to log and tooltip text generation. 2015-05-10 11:24:43 +02:00
LevelX2
25ef57570d [MM2] Added Worldhear Phoneix. 2015-05-10 01:33:02 +02:00
LevelX2
7cdda24e9a Fixed that AI destroyed all their permanents with Rats of Rath. 2015-05-10 01:32:14 +02:00
LevelX2
9c97953b6b Added some font color to object and player names output to game logging and feedback area. 2015-05-09 21:18:00 +02:00
LevelX2
799def3b49 [MMB] Added Horde of Notion and All Suns' Dawn. 2015-05-08 19:15:40 +02:00
LevelX2
5c041753a6 * Progenitor Mimic - Fixed that the copy effect did not work correctly (fixes #958). 2015-05-08 14:45:14 +02:00
LevelX2
0ef2919a08 Some minor changes. Added a Kicker test. 2015-05-07 21:54:28 +02:00
LevelX2
182f91ea41 * Kuon, Ogre Ascendant - Fixed that also non creatures going to graveyard were count for Kuon, Ogre Ascendant flip ability. 2015-05-07 21:14:21 +02:00
LevelX2
4bea123bf3 Some minor changes. Added a test. 2015-05-07 21:04:04 +02:00
LevelX2
4d62d62768 * Fixed a bug that triggered abilities went under certain circumstances to stack at the wrong time (fixes the not working Sharuum The Hegemnon + Clone + Blood Artist combo). 2015-05-07 18:12:58 +02:00
betasteward
695f274803 allow Game objects to be serialized 2015-05-07 10:48:44 -04:00
betasteward
3231688855 fixed an issue with excessive mismatched merge states in MCTS AI 2015-05-07 10:43:30 -04:00
betasteward
fcb9bc9351 Convert TriggeredAbilities back to HashMap - no multi-threaded updates to this object should occur 2015-05-07 10:38:32 -04:00
LevelX2
bc990ad24a * Some minor fixed to tooltip texts. 2015-05-06 15:58:18 +02:00
LevelX2
5dbd5401fa * Dredge Ability - The effect is no longer active (e.g. for choosing the order of resolution) if not enough cards left in the library. 2015-05-06 15:57:39 +02:00
LevelX2
607680b78a Added source object name to effect rule text in choice window of replacment effects to select the order the effects resolve. 2015-05-06 15:56:11 +02:00
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
LevelX2
89ce87e16e Merge origin/master 2015-04-20 10:57:39 +02:00
LevelX2
4735e73967 CardUtil - renamed and made adjustAbilityCost public. 2015-04-20 00:05:57 +02:00
LevelX2
568f62c66f Some changes to restrained event handling (simultaneous events) (fixes #897). 2015-04-19 10:43:12 +02:00
LevelX2
59a9a97910 Added Judge of Currents. 2015-04-18 19:27:58 +02:00
LevelX2
f226664ed4 Some changes for 2014-03-14v8. 2015-04-18 12:48:51 +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
7897485539 [TPR] Added Pandemonium, Cannibalize, Silver Wyvern and Coffin Queen. 2015-04-18 01:21:50 +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
3da92fad26 * Tooth and Nail - Fixed that the searched cards were not revealed and not shown in the log. 2015-04-15 15:31:21 +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
2691dea7ef Added another Morph test. 2015-04-14 17:16:25 +02:00
LevelX2
e747b48b41 * Cavern of Souls - Fixed a bug where spells cast with first ability can't be countered. 2015-04-14 16:31:11 +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
ae43fc7c1f * Mogg Conscripts and Goblib Cohort - Fixed that using watchers with the same name could lead to cast errors. 2015-04-14 10:32:22 +02:00
LevelX2
3064a52fc8 * Lurking Arynx - Fixed that the for the activated ability no target could be selected. 2015-04-12 23:39:52 +02:00
LevelX2
203b65c584 * Fixed a bug that if power/toughness was set from a creature itself (e.g. Marsh Fitter) the effect was still applied if the creature left the battlefield and returned within the duration of the effect. 2015-04-12 23:31:05 +02:00
LevelX2
0ae89c453c * Raid - Fixed that attacking with Meandering Towershell does fulfill the Raid condition. 2015-04-12 21:50:18 +02:00
LevelX2
809bf663df * Fixed land image downloading from gatherer and handling of Anthology Duel Decks. 2015-04-12 10:37:16 +02:00
LevelX2
b79d6e64cf [TPR] Added Volrath's Curse and Crovax the Cursed. 2015-04-11 12:09:46 +02:00
LevelX2
4d7f1a05bf * Fixed that modes (if more than one was selected) did not resolve in the order they are written on the card but in order of selection by user. 2015-04-11 12:08:09 +02:00
LevelX2
0fb7cf8317 * Added a deck hash tag that's shown at the start of the game log to be able to identify a deck. 2015-04-11 00:47:54 +02:00
LevelX2
c65adebc57 Fixed that to allow watchers of a game to see the hand cards of players did not work correctly. 2015-04-10 12:36:22 +02:00
LevelX2
c0db6dfdc8 Merge pull request #901 from bigzwine/fixcompileprobs
Fixed couple compile problems found in Eclipse
2015-04-10 01:06:54 +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
bigzwine
fb810b1774 Fixed couple compile problems found in Eclipse 2015-04-10 00:16:30 +03:00
LevelX2
7292a1625c [TPR] Added Dracoplasm. 2015-04-09 18:09:05 +02:00
LevelX2
cc67312850 Fixed a bug recenttly introduced to handling of triggered abilities . 2015-04-09 15:12:31 +02:00
LevelX2
b737cbfe24 * Necropotence - Fixed that the name of the exiled cards was shown in the log. 2015-04-09 14:53:24 +02:00
emerald000
5594516c01 [TPR] Added Dream Prowler, Kor Chant and Legerdemain. 2015-04-08 15:23:46 -04:00
LevelX2
04ce4c85c0 * Fixed some problems with transform triggering on the wrong card side. 2015-04-08 16:41:49 +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
2f09b2859c Some minor changes. 2015-04-07 16:46:10 +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
389f2574ba Added Magmasaur, Mogg Infestation and Furnace Brood. 2015-04-06 08:48:55 +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
03b8a22c43 * Fixed Wirewood Channeler and Harabaz Druid allowing any combinations of Colors instead if any one color. 2015-04-04 14:58:47 +02:00