Commit Graph

6795 Commits

Author SHA1 Message Date
Maxmtg
9a66973dc4 fix bug in mana express choice from colorset 2013-05-19 21:51:07 +00:00
Maxmtg
fe02d5c6fc Triggers: someone has mindlessly copy-pasted method 'getCopy'. I've implemented it in base class (using reflection to get the right instance) and as mindlessly removed the duplicated code 2013-05-19 21:35:20 +00:00
Maxmtg
8791cd9400 input class for phyrexian dreadnought - from annonymous to nested 2013-05-19 21:06:32 +00:00
Maxmtg
b78cc19e1c CostPutCounter - input is based on select cards
CostRemoveCounter removed a variable (using a field from super class instead)
2013-05-19 20:50:30 +00:00
Maxmtg
0936352729 renamed 2nd mulligan class 2013-05-19 20:48:57 +00:00
Maxmtg
5246badd68 removed references to CMatch in a few inputs,
InputPayCostBase merged with its single descendant
2013-05-19 20:08:46 +00:00
RedDeckWins
d287394e30 Fix QuestEventDuelManager, remove java 7 diamond operator usage. 2013-05-19 19:36:16 +00:00
Maxmtg
5d16825183 delete duplicate method 2013-05-19 18:49:40 +00:00
Maxmtg
9f00358333 remove warnings 2013-05-19 18:49:26 +00:00
Maxmtg
4da3f550ed QuestEventChallenge are keyed by id in their storage.
The storage reader will print a warnings in console when you are trying to load a second object with same id.
2013-05-19 18:30:50 +00:00
Maxmtg
d1e058c4b2 finished replacing inplace deck chooser with component 2013-05-19 13:33:47 +00:00
Maxmtg
e3de88856f deck panel display 2013-05-19 13:22:32 +00:00
Maxmtg
84674aeb86 Quest duels and challenges stored in separate arrays.
When you chose a quest challenge from Home screen, you also get all extra creatures on battlefield
Deck generation now able to correctly generate decks of definite + random color
MyRandom uses SecureRandom
2013-05-19 13:17:30 +00:00
Maxmtg
28deb7d70a added cardsUsed list to test manacosts 2013-05-19 10:18:31 +00:00
RedDeckWins
f39e6e9fc3 implement bronze horse. added IsTargetingSource property. 2013-05-19 04:21:40 +00:00
Maxmtg
c4c2865647 Allow player to start quest with cards defined in a cube. (uniqueness ignored) 2013-05-18 22:57:49 +00:00
Maxmtg
ccf9fd4600 crown_of_empires - uses a common variable, not a custom condition to check for M12 empire parts.
Removed special conditions from spellability/SpellAbilityCondition.java
adjusted visibility for a few methods
Zone: cotains(predicate<Card>) method added, still don't know if it's correct to put it there.
2013-05-18 22:38:36 +00:00
Maxmtg
323fbcfb92 idle_thoughts.txt use a common condition check,
a dedicated condition 'ConditionCardsInHand' removed
2013-05-18 21:37:36 +00:00
Sloth
b3244f372d - Improved AI dealing with Armored Transport. 2013-05-18 09:13:35 +00:00
Maxmtg
bdc11dd9e7 made a few methods with descriptive names to wrap that payManaCost with 5 parameters
corrected the extra mana calculation for Nether Void and Spelltithe Enforcer
2013-05-18 06:57:02 +00:00
Maxmtg
591b05d1de @TriggerReplacementBase.meetsCommonRequirements a check for ManaNotSpent was fetching a wrong parameter 2013-05-18 05:47:37 +00:00
swordshine
ec0f47ee84 - M14: Added Shadowborn Apostle and Shadowborn Demon 2013-05-18 05:43:38 +00:00
Maxmtg
ebc75a9e62 added checkStaticAbilities before subAbilities resolve (fixes: Platinum Emperion targeted by Swords to Plowshares) 2013-05-18 05:40:48 +00:00
Maxmtg
1d4b6cc88a remove diamond operator in ManaCostBeingPaid
remove setKeywords from Player (the method was never referenced and has been added by checkstyle enforcing)
compare static abilities - a slight optimization
2013-05-18 05:23:40 +00:00
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