Commit graph

3087 commits

Author SHA1 Message Date
LevelX2
06cc8d8771 Merge pull request #514 from magefree/feature/SacredGround
Sacred Ground implemented.  Re-ordered logic in GameImpl to handle simultaneous events before removing top of the stack.
2014-08-16 10:00:27 +02:00
LevelX2
57ccef6092 * Fixed can't counter ability that did not work correctly. 2014-08-16 09:33:31 +02:00
Dustin Conrad
893e83ef7c Sacred Ground implemented. Re-ordered logic in GameImpl to handle simultaneous events before removing top of the stack. 2014-08-15 22:24:42 -04:00
LevelX2
bdb05d4ca0 * Added tests for Valakut, the Molten Pinnacle. All worked already correct so far. No bug found. Closes #506. 2014-08-15 16:46:47 +02:00
LevelX2
429e114f69 * Convoke - Fixed that creatures with protection from color of convoke spell could not be tapped. Fixes #513- 2014-08-15 12:42:56 +02:00
magenoxx
de6d1bf46b Asserting action count in tests. minor changes. 2014-08-15 10:52:37 +04:00
magenoxx
0597aaf4f4 [TestAPI] Cast when spell or ability are not on the stack 2014-08-15 10:16:28 +04:00
Dustin Conrad
a545ed3b60 Added CantBlockCreaturesSourceEffect. Sneaky Homunculus, Brassclaw Orcs, Ironclaw Orcs, Ironclaw Buzzardiers. Fix Curse of the Nightly Hunt 2014-08-14 23:41:45 -04:00
magenoxx
5ede7221c8 Fixes #512 2014-08-15 00:12:29 +04:00
LevelX2
2326fcc0d1 * Trickbind and Stiffle - Fixed that the spells could wronly also counter spells. 2014-08-14 15:27:33 +02:00
LevelX2
f0e8041906 * Fixed a bug that winning with alternate win condition (e.g. Biovisionary) did not set game end date. That leads to a NPE in client. 2014-08-14 14:08:41 +02:00
LevelX2
484a4fe0f6 * Leyline of Anticipation - Fixed that it only worked for creatures instead of all nonland permanents. 2014-08-14 12:48:41 +02:00
LevelX2
a8bf35e39a Fixed that canPlayCardsFromGraveyard of player was not taken into account for getPlayable() method. 2014-08-14 12:47:54 +02:00
Dustin Conrad
ee65d08160 Paralyze implemented 2014-08-13 20:58:19 -04:00
LevelX2
15b08c110e Some minor fixes to tooltip texts. 2014-08-13 21:59:09 +02:00
LevelX2
98bfd16680 Fixed adouble calss name. 2014-08-13 18:44:43 +02:00
LevelX2
a42318070e Changed duration of Intimidate to EndOfGame (like Flying and Shadow) instead of WhileOnBattlefield. 2014-08-13 16:58:01 +02:00
LevelX2
3bbbd4c02b Replaced use of source.getId() by source.getSourceId() for Mage Framework. 2014-08-13 14:22:32 +02:00
Quercitron
a2b650722a * Add Predict, Mask of Memory, Rhystic Study and Perplex 2014-08-13 03:02:41 +04:00
LevelX2
ae9f056e1a Some log improvement for player moves card. 2014-08-12 23:58:38 +02:00
magenoxx
5ec0b656bb Returning source.getSourceId() for DISCARED_CARD event 2014-08-12 21:19:45 +04:00
magenoxx
06b61fcba7 Made Elemental token origin set Conflux 2014-08-12 13:44:24 +04:00
magenoxx
a2e93986bc Added Research/Development card 2014-08-12 09:57:01 +04:00
magenoxx
709dc83ae6 2 requested cards 2014-08-11 20:30:39 +04:00
magenoxx
e6750f2f58 Merge branch 'master' of https://github.com/magefree/mage 2014-08-11 17:45:53 +04:00
magenoxx
e2bc5756e0 Requested card: Fire Covenant 2014-08-11 17:45:45 +04:00
LevelX2
9ade5efde0 * Fixed possible NPE in CostsImpl. 2014-08-11 13:57:18 +02:00
LevelX2
057f3aed07 * Added 4 cards. 2014-08-11 13:56:54 +02:00
emerald000
58bdbb8c13 M15 Oracle changes.
See: http://magic.wizards.com/en/articles/archive/magic-2015-update-bulletin-2014-07-17
2014-08-11 00:44:03 -04:00
Quercitron
294f5cfc19 * Add Tornado, Lyzolda the Blood Witch, Mental Note, Blood Knight 2014-08-10 21:36:59 +04:00
Quercitron
f93624f827 Add ability to Cost.canPay method parameters 2014-08-10 21:34:17 +04:00
LevelX2
a4866a9782 Fixed that looking in the top x cards while playing with the top card revealed shows wrongly the next card in library (fixes #487). Maybe there are some individual cards left that also need fixing. 2014-08-10 15:20:57 +02:00
LevelX2
c8fa685735 Fix for issue #493. Tests do all work, need some more checking if this really works. 2014-08-10 11:28:02 +02:00
Dustin Conrad
809d61d5ea Use dependency management to use common versions of log4j and junit in all the projects. 2014-08-09 19:38:34 -04:00
LevelX2
826005c945 * Fixed a bug that prevented some continuous effects of permanents to work correctly if the permanents controller changed (e.g. play lands from libraray with a controlled Courser of Kruphix). 2014-08-09 23:38:20 +02:00
LevelX2
6068357c3f Set all cards at game start to face up (can be set to face down from previous game of the match e.g. by Pyxis of Pandemonium). 2014-08-09 19:44:14 +02:00
LevelX2
a7fc5b9583 * Hushwing Gryff - Fixed a bug that the effect was wrongly implemented as replacement effect with potential to repalce other replacement effects. 2014-08-09 16:40:21 +02:00
LevelX2
609b5af2fe Fixed a bug in TargetSpell that allowed a spell to select itself as target (#491). 2014-08-09 15:27:39 +02:00
LevelX2
2ca945fabf Some more changes concerning ThoughtAsEffects. 2014-08-09 11:48:40 +02:00
LevelX2
4f0f42133d Divided thoughtAs.Cast into two different states CAST_FROM_NON_HAND_ZONE and CAST_AS_INSTANT. Some checks and tests still needed. 2014-08-08 17:27:10 +02:00
LevelX2
e893999657 * Chandra Pyromaster - Fixed that the exiled card from second ability could e.g. not be cast with overload. Fixes #486. Added tests. 2014-08-08 12:00:57 +02:00
LevelX2
8140893f0d *Fixing handling return state. 2014-08-08 01:18:59 +02:00
LevelX2
f7cc260219 Returning only a copy of netMana in ManaAbility. Try to fix issue #432. 2014-08-08 00:14:46 +02:00
LevelX2
49a23503a1 Some changes to logging. 2014-08-07 17:17:04 +02:00
LevelX2
471c5bed4a * Pauper - Added pauper format. 2014-08-07 17:16:42 +02:00
LevelX2
a05077f558 * Player tournament result - Fixed a bug that draws were not shown correctly. Instead of "1-1-1" it was "11--1" shown for the result ( 1 win, 1 draw, 1 loss). 2014-08-07 16:41:20 +02:00
LevelX2
2b3352b3b8 * Fixed some "enter the battlefield as a copy of " effects (e.g. Phyrexian Metamorph, Quicksilver Gargantuan) that were handled targeted and so protection abilities could prevent that a permanent was selected. 2014-08-07 15:53:44 +02:00
LevelX2
fe7ec072c1 * reverted change that caused endless loops while applying continuous effects. 2014-08-07 14:29:46 +02:00
emerald000
10840840ac Added Aura of Silence and fixed The Mimeoplasm. 2014-08-07 02:19:47 -04:00
magenoxx
7720301fa7 Fixed Abrubt Decay could be countered by Kira, Great Glass-Spinner's ability 2014-08-07 09:25:23 +04:00
LevelX2
8b03a5b940 * Encrust - Fixed that the deny use of abilities did not work. 2014-08-06 20:03:59 +02:00
LevelX2
020daf94f5 Changes to logging an chat session handling. 2014-08-06 17:17:50 +02:00
LevelX2
6776b03bae Added Copy Enchantment. 2014-08-06 12:21:05 +02:00
LevelX2
336a6546dc Added Copy Enchantment. 2014-08-06 12:20:52 +02:00
LevelX2
42973302f4 * Fixes to M15 token images handling. 2014-08-06 08:22:43 +02:00
LevelX2
792e23a0b0 * Steel Hellkite - Fixed that the activated ability of a Steel Hellkite copied with Phantasmal Image did not work. 2014-08-05 14:48:36 +02:00
LevelX2
568984615f * Changes to logging. 2014-08-05 07:39:13 +02:00
LevelX2
3aab091492 Some changes to client and server logging messages. 2014-08-04 17:21:14 +02:00
LevelX2
9f6555240a * Changes to logging. 2014-08-03 15:01:33 +02:00
LevelX2
df3b6afc8d Replaced more replacement effects by ContinuousRuleModifyingEffects or RestrictionEffects. 2014-08-02 11:21:28 +02:00
LevelX2
4e2c8dbe02 * Permanent.canAttack() check for restriction effects more improvements and fix in CanAttackControllerAttachedEffect. 2014-08-01 19:22:48 +02:00
LevelX2
cbb6117b8e Replaced some replacement effects with restriction effects. Added new method to restriction effect. Improved canAttack methods (not finished yet). 2014-08-01 15:59:59 +02:00
LevelX2
d3dadc41aa Minor formattings. 2014-08-01 15:21:32 +02:00
LevelX2
d70a35961b * Show playable cards - Fixed that this feature created NPEs because it was already called if no proper game step is set (small update). 2014-08-01 12:42:29 +02:00
LevelX2
2c6aaf272f * Show playable cards - Fixed that this feature created NPEs because it was already called if no proper game step is set. 2014-08-01 12:21:56 +02:00
LevelX2
11cf5ab4fe * ForcastAbility - Fixed that forecast ability wrongly did only work one time from hand for a card. 2014-08-01 00:25:21 +02:00
LevelX2
16b58a337d Fixed some missing return statements. 2014-08-01 00:22:20 +02:00
LevelX2
1a1fc09221 * Fixed a bug that allowed to apply damage prevention replacement effects under certain circumstances multiple times to the same event. 2014-07-31 15:16:48 +02:00
LevelX2
84246e1935 * Commander - Fixed that commander with flash wrongly couldn't be cast from command zone using flash. 2014-07-31 14:17:04 +02:00
LevelX2
7de00610e8 * Fixed some minor issues concerning cards searching for permanent cards and bringing them onto the battlefield. 2014-07-31 13:50:54 +02:00
emerald000
ccef0f4fb2 [NEW] Added Grandeur ability word and the five cards using it. 2014-07-31 01:45:22 -04:00
magenoxx
bf7fe02a32 Issue#453: possibly correct fix for Commander abilities displayed twice 2014-07-30 22:43:18 +04:00
LevelX2
02df3f49a7 * Prevented NPE for getPhaseType(). 2014-07-30 20:08:27 +02:00
magenoxx
b1908219ff Test and fix for prev commit 2014-07-30 19:36:17 +04:00
magenoxx
62b959f6b1 [UI] Resolved Issue#460: Simplify hybrid mana use 2014-07-30 18:37:48 +04:00
magenoxx
2a3db04be1 ManaSymbol and ManaSymbols classes 2014-07-30 18:36:37 +04:00
LevelX2
dcf8c8e45e * Overload - Fixed that overload abilities of sorceries could be used with instant speed (Mizzium Mortars, Vandablast and Teleportal). 2014-07-30 12:21:53 +02:00
LevelX2
33918623aa Fixed some more mixed up parameters of target classes. 2014-07-30 10:47:51 +02:00
LevelX2
1f51d243ec * Finished to change ReplacementEffects for UNTAP event to ContinuousRuleModifyingEffect. 2014-07-29 17:45:48 +02:00
LevelX2
ea1a098300 * Spellskite - Fixed that target could wrongly not be changed to spellskite in some cases. 2014-07-29 17:44:42 +02:00
LevelX2
48f0437bc7 Added log for mana bug. 2014-07-29 07:47:01 +02:00
LevelX2
9f9d140fa5 * Started to change ReplacementEffects for UNTAP event to ContinuousRuleModifyingEffect (not finished). 2014-07-28 17:46:25 +02:00
LevelX2
caf8a1e5ec * Changed "Activate only during upkeep" abilities to conditional abilities instead of a cost for this restriction. 2014-07-28 16:53:37 +02:00
LevelX2
f51e7722cc * Changed ReplacementEffects for TARGET and COUNTER events to ContinuousRuleModifyingEffects. 2014-07-28 08:21:17 +02:00
LevelX2
e22174b148 * Fixed that sacrifice was handled targeted (because of using other method now with sourceId and controllerId). 2014-07-27 15:51:51 +02:00
magenoxx
96beb5c986 minor comment fix 2014-07-27 15:33:04 +04:00
LevelX2
c8d76cdaaf * Added Dream Halls and Curse of chain (and what was neccessary to get Dream Hall costs to work). 2014-07-27 11:22:22 +02:00
LevelX2
2e7219de2f * Fixed bug that rule text of singletons like FlyingAbility were missing sometimes in permanents tooltiptext (fixes #453) . 2014-07-27 02:00:07 +02:00
LevelX2
f493d8ff99 Added Phage the Untouchable and all creatures with Dethrone ability. 2014-07-26 17:57:17 +02:00
LevelX2
25e2fb59e1 Support of play_land event for get playable cards. 2014-07-26 15:01:17 +02:00
LevelX2
4efb832b8d * Fixed a bug in getPlayableInHand(). 2014-07-26 00:48:13 +02:00
LevelX2
e8edf39f51 More replacement effects switched to continuous rule modyfing effect. 2014-07-26 00:47:29 +02:00
LevelX2
e25a60b312 * Changed table maneger to remove chat sessions that were never removed. Minor formattings. 2014-07-25 15:54:51 +02:00
LevelX2
7f6d5bcac6 * Fixed a bug introduced with TargetSource() fix. 2014-07-25 14:43:13 +02:00
LevelX2
54570bac59 Changed ReplacementEffects to ContinuousRuleModifyingEffects for 10 objects. 2014-07-25 13:11:14 +02:00
LevelX2
05a2e09b2a Adeded ContinuousRuleModifyingEffect and handling for it. This effects will also be taken into account when checking if a spell gets yellow frame if it can be cast. 2014-07-25 13:09:48 +02:00
LevelX2
de71d9b194 * Burrenton Forge-Tender - Fixed that damage prevention did not work for sources that were stack objects. This was a common problem of TargetSource class. 2014-07-24 16:30:58 +02:00
magenoxx
1caaad831e Issue#467: usable activated ability in hand now also displayed yellow (e.g. Cycling) 2014-07-24 13:21:52 +04:00
LevelX2
c17be6c3ab Added Vedalken Archmage, some minor formating and code cleanup. 2014-07-23 23:59:51 +02:00
LevelX2
45618309fb Removed some redundant casts. Added missing type definitions. 2014-07-23 17:42:07 +02:00
LevelX2
03b51d1f34 Fixed some effects apply return value. Some changes to game logging. 2014-07-23 08:11:11 +02:00
LevelX2
245582303c * Show playable cards - Fixed possible Null Pointer Exception. 2014-07-23 08:09:06 +02:00
LevelX2
a58c699880 Minor changes for move permanent to graveyard action from sacrifice. 2014-07-21 17:42:49 +02:00
LevelX2
9ece8a21f6 * Brood Sliver - Fixed a bug that happened by text generation. 2014-07-21 17:13:27 +02:00
LevelX2
c70828bda0 Added debug messages to narrow down #440. 2014-07-21 15:19:50 +02:00
LevelX2
142e95fe42 * Fixed provisional game freezing bugs of the show playable cards feature #457 (caused by DelverAbility, OfferingAbility, Rooftop Storm, Omniscience, Aluren). 2014-07-21 13:03:41 +02:00
LevelX2
ad9b73c34c Fix Effect.apply return status. Minor formattings. 2014-07-21 08:26:52 +02:00
emerald000
3d5d12c418 [NEW] Added Plunge into Darkness, Favor of the Mighty, Disciple of the Vault and Arena. 2014-07-20 16:07:24 -04:00
LevelX2
993cb99e11 * Dee-Sea Kraken - Fixed a bug that oponent spells didn't trigger the ability to remove supend counters. 2014-07-19 22:13:16 +02:00
LevelX2
6bd1a9c7ca * Fixed calculation of converted mana costs for spells on the stack (fixes #459). Added test. Some minor formattings. 2014-07-19 15:17:46 +02:00
LevelX2
bfca0b2b04 * Discard - Fixed that discard cost are valid if Rest in Peace is in play. 2014-07-19 10:23:58 +02:00
emerald000
476358740b [NEW] Added Sky Hussar, Lantern of Insight, Nether Spirit, Necroplasm and Hypergenesis. 2014-07-18 22:15:03 -04:00
emerald000
c185b2e1c7 [NEW] Added Exhaustion, Sudden Impact, Petrified Field, Spiraling Embers, Ebony Owl Netsuke, Martyr of Spores, Martyr of Bones, Martyr of Frost and Martyr of Ashes.
+ updated Martyr of Sands with new dynamic cost.
2014-07-18 08:24:03 -04:00
magenoxx
65a0c9fc79 [UI] Displaying creatures that can attack 2014-07-18 16:05:21 +04:00
magenoxx
a8476d3613 [UI] Fixed Issue#467: yellow frame is displayed for instances when declaring attackers 2014-07-18 13:17:33 +04:00
Quercitron
e5b2b39701 Make order of parameters the same for methods player.damage and permanent.damage 2014-07-18 02:11:11 +04:00
LevelX2
d268642d95 * Synase Sliver, Brood Sliver - Fixed triggered ability. 2014-07-17 17:12:06 +02:00
LevelX2
020958078c Fixed end turn handling. Fixes #463 (this does not handle Time Vault correctly. It needs a skip current turn effect that's not implemented yet). 2014-07-17 15:37:48 +02:00
LevelX2
0b9b9d52f0 Fixed some objects using wrong event (END_PHASE_PRE instead of END_TURN_STEP_PRE). 2014-07-17 14:47:52 +02:00
magenoxx
4b547e7a06 javadoc fixes 2014-07-17 15:16:46 +04:00
emerald000
7218cfe9a6 [NEW] Added Time Vault, Grim Tutor and Aluren. 2014-07-16 21:25:23 -04:00
LevelX2
6238bca8e5 * Fixed a bug that if you concede a game while your turn was controlled by another player (e.g. Mindslaver) the control by the other player was still active in the next game of the match. 2014-07-17 00:41:16 +02:00
Quercitron
59c80771e9 * Earnest Fellowship - Fix protection working wrong for multicolored creatures 2014-07-17 02:27:57 +04:00
LevelX2
945284946a * Convoke - Fixed that any number od creatures could be tapped. Now only creatures will be tapped that reduce the mana costs of the convoke spell. Added log info about the with convoke tapped creatures. 2014-07-16 17:53:31 +02:00
LevelX2
e717d18b3a Added some javadoc text. 2014-07-16 08:28:44 +02:00
emerald000
7b9eb5516c [NEW] Added Breakthrough, Ill-Gotten Gains and Nether Void. 2014-07-15 22:01:42 -04:00
emerald000
219f23adc5 [NEW] Added Academy Researchers + Aura Swap fix. 2014-07-15 17:21:33 -04:00
emerald000
c3ca3cfd68 [NEW] Added Patagia Viper and Arcanum Wings
+ Ulasht, the Hate Seed fix.
2014-07-15 15:08:30 -04:00
magenoxx
8a9474d839 [Server] fastDbMode for starting without scanning for cards 2014-07-15 21:44:48 +04:00
LevelX2
1d8712335f * Descent into Madness - Fixed handling according the existing rules. 2014-07-15 16:58:11 +02:00
LevelX2
310347fc8b * M15 - Fixed that booster generation did also generate cards that are only included in supplemental products and not in boosters. 2014-07-15 01:08:22 +02:00
LevelX2
de47dbad43 Some formatting and change of handling of adjust methods of StackAbility. 2014-07-14 17:41:30 +02:00
magenoxx
acd6514bab Made a workaround for Issue#457 to prevent from StackOverflowError 2014-07-14 17:30:31 +04:00
LevelX2
aad8ad0871 * Not targeted selections - Fixed a but where not targeted selections did trigger the target events (e.g. Kira, Great Glass-Spinner counter ability was triggered by taping creatures for convoke ability). 2014-07-14 14:19:18 +02:00
LevelX2
943ff0d78d Some minor formattings. 2014-07-14 09:05:33 +02:00
LevelX2
12a2d020e7 * Changed handling of getting source object. Needed some change to adjust methods. 2014-07-14 09:02:06 +02:00
emerald000
7ca60078a0 Merge origin/master 2014-07-14 01:01:39 -04:00
emerald000
3a5e45cc87 [NEW] Added Gemstone Caverns. 2014-07-14 00:58:54 -04:00
LevelX2
0aa263cd55 * Transmute - Fied that transmute could be activated wrongy as instant instead of only at sorcery time. 2014-07-12 23:58:33 +02:00
LevelX2
b602be2b53 * Fixed that spells with target amount distribution did not fizzle if all their targets were illegal at resolution (e.g. Electrolyze). 2014-07-12 19:31:57 +02:00
emerald000
7b7d07fe1b [FIX] Fix SacrificeTargetCost(). 2014-07-11 12:45:00 -04:00
magenoxx
5fcc3b1ba8 [UI] Displaying playable cards in hand 2014-07-11 19:35:01 +04:00
emerald000
b7570cf28f [FIX] Minor fixes. 2014-07-11 00:00:00 -04:00
emerald000
9a26a9c50c [NEW] Added Food Chain + minor fixes. 2014-07-10 18:22:33 -04:00
LevelX2
30839b8a0a [M15] Fixed The Chain Veil and Garruk Apex Predator. 2014-07-10 23:17:17 +02:00
LevelX2
98e3fe9bde [M15] Added The Chain Veil Artifact. 2014-07-10 22:19:09 +02:00
LevelX2
810434932b * Planeswalker - Changed handling of LoyayltyAbilities to a times used based handling. 2014-07-10 08:52:21 +02:00
magenoxx
aadb89a8ef [M15] 6 black cards 2014-07-10 01:02:41 +04:00
LevelX2
9167261223 [M15] Added 6 green cards. 2014-07-09 20:44:31 +02:00
LevelX2
d40a3f591d Changes to game log. 2014-07-09 20:44:06 +02:00