Commit Graph

6221 Commits

Author SHA1 Message Date
Maxmtg
0df9763ec1 AI & Human mana payment, ManaPool, ManaCostBeingPaid refactored.
The game uses a byte with flags set instead of color names in more cases.
2013-05-17 18:45:06 +00:00
Sloth
e3bbf15a9c - Cleanup in ComputerUtil. 2013-05-17 11:43:57 +00:00
Maxmtg
a44f27d280 minor rearrangement (just need to get these out of files-to-commit list) 2013-05-16 06:21:15 +00:00
Sloth
7dd6df890e - Fixed AI of Death by Dragons. 2013-05-15 20:57:08 +00:00
Sloth
d62941f5ad - Improved LifeLoseAi. 2013-05-15 18:01:52 +00:00
Sloth
73f81361a0 - Added a default logic to ProtectionEffect AI. 2013-05-15 17:15:35 +00:00
Sloth
848fd460dc - Added a castSpellInMain1 AI function that currently checks for Cipher subAbilities and BuffedBy SVars. 2013-05-15 14:50:41 +00:00
RedDeckWins
1577f9110d war tax implemented. propaganda combat check now looks in the command zone as well. 2013-05-15 04:49:56 +00:00
Maxmtg
37655012ad SpellAbilityStackInstance keeps original activating player and restores it on getSpellAbility call 2013-05-15 04:11:23 +00:00
Maxmtg
77e9ebc456 more resilent quest loader - handles situations like 'I took quest save from my friend who has all duel decks added to setdata.txt, and this quest fails to load on my machine dues to missing cards' 2013-05-15 04:03:09 +00:00
Maxmtg
6d36ca9e67 ManaCostShard converted to enum
maps of lists - for future commits
2013-05-14 10:35:09 +00:00
Maxmtg
edf8422360 converted sunburstMap to byte (from strings and hashmaps) 2013-05-14 06:45:36 +00:00
Maxmtg
aca519c0f0 InputPayManaX - bugfix + some improved code 2013-05-14 05:57:56 +00:00
Maxmtg
5d737fd104 refactored a dumb switch 2013-05-14 05:33:22 +00:00
Maxmtg
e3836fc1f7 compile errors 2013-05-14 05:29:25 +00:00
Maxmtg
cf2d6466a9 MagicStack no longer exposes getStack method, uses a synchronized queue to manage contents 2013-05-14 05:25:51 +00:00
Hellfish
1544a86044 *Tweaked DigUntil to allow digging through Planar & Scheme decks.
*Many tweaks to planechase handling.
*Made MagicStack.peekAbility synchronized.
*Fixed(?) ConcurrentModificationException. in VStack.
*Added phenomenon: Spatial Merging.
2013-05-13 21:36:26 +00:00
Maxmtg
a9fb1fa85d payCostDuringAbilityResolve moved to HumanPlay
MagicStack is Iterable<SpellAbilityStackInstance>, get(i) methods removed, many invocations of size() replaced with isEmpty or iteration when appropriate/
GameActionUtil - some other methods inlined for being 2-lines long or used only once
2013-05-13 12:18:28 +00:00
swordshine
70a36b5fc7 - Fixed Nivmagus Elemental 2013-05-13 01:42:24 +00:00
swordshine
529ec27359 - Converted Tarmogoyf 2013-05-13 00:50:21 +00:00
swordshine
77fa660693 - Added Logic Knot
- Planes: Added Naar Isle and Selesnya Loft Gardens
2013-05-13 00:47:20 +00:00
Sloth
92f871a470 - Fixed possible duplication in TwoPiles AI. 2013-05-12 19:50:42 +00:00
Maxmtg
f3dd9404bf AIPlayer.java removed 2013-05-12 18:45:39 +00:00
Maxmtg
abbfb171b4 removed references to Aiplayer methods, next step is class removal 2013-05-12 18:23:24 +00:00
Maxmtg
a1ecabccf8 HumanPlayer.java removed, references cast to Player 2013-05-12 18:18:41 +00:00
Maxmtg
3327ac3f4b removed everything from HumanPlayer class, deleting on next step 2013-05-12 18:15:31 +00:00
Maxmtg
5ba925c156 HumanPlayer: all specific methods converted to static, preparing to delete the enclosing class. 2013-05-12 18:00:16 +00:00
Maxmtg
158cc0c895 remove unused imports,
changed the destination type in type cast at triggers
2013-05-12 17:46:06 +00:00
Maxmtg
f352cba904 Restart game - update ability executor to work correctly with async inputs. 2013-05-12 17:33:57 +00:00
Maxmtg
be08ba3285 a few minor optimizations 2013-05-12 16:51:55 +00:00
Hellfish
6b6b9cbf03 *Preliminary work to allow multiple planes.
*Fixed Panopticon triggering outside the Command zone.
2013-05-12 16:20:34 +00:00
Maxmtg
c5e01741c8 ComputerUtilCard - bugfix of getColorByProminence and code optimizations 2013-05-12 14:39:07 +00:00
Hellfish
251636e6b6 *Missed some stuff with schemes. 2013-05-12 13:18:38 +00:00
Hellfish
fd52e98c18 *Converted Planar deck and Scheme deck to zones. 2013-05-12 13:08:41 +00:00
Sloth
960ce927b6 - Improved tapUnpreferredTargeting AI. 2013-05-12 13:02:01 +00:00
Hellfish
0930ed6c15 *Fixed rigged planar dice rolls. 2013-05-12 09:33:18 +00:00
Hellfish
63fe69dbca *Added an "Inbound Token" list to Player. Tokens go there before they're put onto the battlefield to let their ETB Replacements be run. 2013-05-12 08:51:20 +00:00
Maxmtg
07f7a1b9bc replaced boxed integers with plain ones. initial fill of arrays with zeros. 2013-05-12 07:55:21 +00:00
Maxmtg
6dcfe506f1 just small rearrangements 2013-05-12 07:47:09 +00:00
Maxmtg
c768b5e8fb the former black screen at match start: understood how it happens but don't know how to fix yet. 2013-05-12 04:44:44 +00:00
Maxmtg
c3ffd8f0d6 fix to previous one 2013-05-12 04:35:56 +00:00
Maxmtg
44924a0c88 controller and lobbyPlayer moved to base class 2013-05-12 04:32:39 +00:00
Maxmtg
72b2344cc9 HumanPlayer - changed 1st portion of methods invoking abilities from GUI into static methods (to move them later to a different place later) 2013-05-12 03:40:10 +00:00
Sol
4ed58e2a4d - Disable Express Mana choosing mode for paying with with cards like Vivid Crag for generic mana 2013-05-12 02:34:18 +00:00
Sol
ff1e742427 - Canceling when paying an X Mana cost will now actually cancel the Cost. 2013-05-11 19:59:27 +00:00
Sol
633d061977 - Add some basic logic for Momir Avatar ability 2013-05-11 17:55:17 +00:00
Sol
7f2d1e49f9 - Don't crash for ante if only basic lands are found 2013-05-11 17:53:32 +00:00
swordshine
2b04071f93 - Added Mana Maze 2013-05-11 07:20:35 +00:00
Sol
ee0f3e04dc - Momir Avatar was completely broken 2013-05-11 04:02:59 +00:00
swordshine
5d157fafbf - Added Locket of Yesterdays and Mana Skimmer 2013-05-11 01:03:06 +00:00