Commit Graph

2751 Commits

Author SHA1 Message Date
Sol
06801023b5 - Adding Manifest effect 2015-01-02 22:48:47 +00:00
Myrd
51571c667d Oops, real fix for canBeTargetted. 2014-12-31 22:28:14 +00:00
swordshine
1634c04313 - Fixed canBeTargetedBy 2014-12-31 05:16:00 +00:00
Myrd
cee81da6ee Forgot to commit this. 2014-12-31 04:28:06 +00:00
Myrd
c57af8efc5 More use of visitor pattern to avoid allocations. 2014-12-31 04:10:21 +00:00
Myrd
6d7c7fe63c Use other method name here too. 2014-12-31 03:58:30 +00:00
Myrd
c2904fa2aa More visitors for keywords and merge duplicate keyword amount methods. 2014-12-31 03:57:16 +00:00
Myrd
35a1daf116 Fix a bug and more visiting. 2014-12-31 03:33:47 +00:00
Myrd
ea9f1f3ecf Fix error from my last commit. 2014-12-31 03:23:07 +00:00
Myrd
648756d1b8 More use of Visitor pattern - allowing iteration over all cards in the game without allocating a temporary collection. 2014-12-31 03:19:41 +00:00
Myrd
1f5cca02dd Optimize hasKeyword() to not need to allocate and concatenate a bunch of lists together.
Instead, makes it use the visitor pattern which allows traversing all the keywords without (usually) needing to allocate any  temporary lists.
2014-12-31 00:38:45 +00:00
Myrd
46a870a0ea Optimize more temporary allocations. 2014-12-30 22:19:54 +00:00
Myrd
b39a7d310c Use game.getCardsInGame() rather than duplicating logic in a less efficient way. 2014-12-30 21:55:54 +00:00
Myrd
4096643769 Optimization to avoid excessive allocations. 2014-12-30 21:30:25 +00:00
swordshine
32f52f6880 - FRF: Added Soulflayer 2014-12-30 13:03:24 +00:00
swordshine
2cd0919d29 - FRF: Added Sandsteppe Mastodon 2014-12-30 12:27:42 +00:00
swordshine
ff26173d64 - FRF: Added Kolaghan, the Storm's Fury (Keyword: Dash) 2014-12-30 10:54:52 +00:00
swordshine
3d2156b429 - Fixed an NPE 2014-12-29 05:05:07 +00:00
Myrd
bf34aec4fc Get rid of global static Card cache and hang it off the Game instead.
This paves the way for having multiple simulataneous game objects (e.g. for simulation).
2014-12-28 16:31:23 +00:00
swordshine
f9b867217c - Fixed ChangeTargets effect not working in WrappedAbility (reported by mastroego: http://www.slightlymagic.net/forum/viewtopic.php?f=26&t=16350&start=120#p170429) 2014-12-27 02:32:32 +00:00
Agetian
9ca09f9a94 - Improve handling of split cards: Now the names of split card halves will be attached to Oracle text in the card detail box to simplify understanding which part the text is related to. Also, split cards will be shown with correct color identity and textual description when they go on stack. 2014-12-21 09:29:15 +00:00
swordshine
8755f27f1d - Added an etb check for Putcounter effect to fix the bug when blinking walkers with Doubling Season in play by Venser, the Sojourner 2014-12-21 04:17:49 +00:00
Sol
e93f47865f - Extra error check for Conspiracies that aren't Power Play. 2014-12-19 04:34:24 +00:00
swordshine
fb91d352e7 - Added Barbarian Guides 2014-12-19 03:58:36 +00:00
Sol
de1c726b3c - Added Power Play (via manual editing of draft deck) 2014-12-19 03:53:30 +00:00
Myrd
a2ca6661df Make PhaseType.smartValueOf() able to parse both formats of phase name. 2014-12-18 16:12:25 +00:00
swordshine
cded63fe9f - Added Three Wishes 2014-12-18 08:50:19 +00:00
swordshine
2f5b7e0744 - Converted Final Fortune's effect to a delayed trigger 2014-12-18 05:38:48 +00:00
drdev
b97b586d2d Fix mobile game compile errors from recent refactoring 2014-12-17 02:01:58 +00:00
Myrd
30fb451a45 Remove global Player cache, instead make it hang off the Game object. 2014-12-16 21:55:33 +00:00
Myrd
6be85a1741 Fix shard sort order when deciding if a mana cost is payable.
Prior to this change, the logic would conclude that a {1}{W} cost is not payable with an untapped Scoured Barrens (w/b) and Jungle Hollow (b/g) on the field.

The code is unfortunately too tangled (has too many dependencies) to write a unit test for this. Ideally, we should refactor so it wouldn't depend on the player, etc and just take parameters that can be fed test data.
2014-12-16 20:26:41 +00:00
elcnesh
191b8e4e71 Add Fatespinner (AI uses it at random for now). 2014-12-14 17:00:31 +00:00
elcnesh
706a98460b Fix clone effects, among others the bug of Renegade Doppelganger doesn't change back. 2014-12-14 16:20:57 +00:00
elcnesh
4b32a86679 Add Spy Network. Add new card names to CHANGES.txt. 2014-12-14 13:22:42 +00:00
elcnesh
6fb1fd3058 Fix certain planes by triggering once for each plane left when planeswalking. 2014-12-14 13:08:26 +00:00
elcnesh
89dc827756 Add Aven Soulgazer and Smoke Teller. 2014-12-14 09:39:59 +00:00
Myrd
59c1aa95b8 Fix Satyr Wayfinder revealing the top 4 cards twice. 2014-12-13 16:50:04 +00:00
drdev
20b47f3b91 Support starting games with variants in Planar Conquest 2014-12-13 06:16:10 +00:00
elcnesh
9283328e22 Large cleanup in game; fix some small bugs and make a lot of methods static where applicable. 2014-12-12 10:39:45 +00:00
Agetian
798c6c26ec - Also specify the ID for cards that are currently face up (e.g. when revealing them). 2014-12-11 17:20:03 +00:00
Agetian
e57881f1d9 - Remove a leftover commented line. 2014-12-11 17:10:11 +00:00
Agetian
0ea126cd5d - Make sure the names of face-down cards are not spoiled, e.g. during blockers damage order assignment.
- A little typo fix.
2014-12-11 17:08:22 +00:00
elcnesh
5055ed4d2b Add a "Hidden card ID" to face-down cards to uniquely identify them without spoiling the actual card id (hidden id increments each time a card is turned face-down). 2014-12-10 18:36:04 +00:00
elcnesh
963743781a Make Hokori's untap mandatory. 2014-12-10 18:11:19 +00:00
elcnesh
278b1229c1 Fix and cleanup Hideaway. Plus a typo in Praetor's Grasp. 2014-12-08 20:50:34 +00:00
swordshine
d6010d6d40 - Added Nature Shields Its Own 2014-12-08 14:02:10 +00:00
Myrd
2db80f506b - When an effect mills cards, pop up a dialog to show which cards got milled. 2014-12-08 06:18:11 +00:00
Myrd
23c41834aa Fix flaky test ManaCostBeingPaidTest by making ManaCostBeingPaid.toString() not depend on map iteration ordering. 2014-12-08 05:49:11 +00:00
Myrd
6029b7bcde Implement Sidisi, Brood Tyrant along with corresponding engine changes to support her ability. 2014-12-08 04:27:05 +00:00
drdev
b8b433586d Support playing conquest games 2014-12-07 01:20:52 +00:00