myk
244b1c65f7
merge myk-separate-writable-data branch
2013-03-17 05:34:13 +00:00
myk
9b6bc2eb55
merge latest trunk
2013-03-17 00:23:16 +00:00
Sloth
f22b7aee0f
- Rewrote the card controller system.
...
- Converted Control Magic auras to continuous static abilities.
2013-03-16 23:28:18 +00:00
Maxmtg
8dc331ed14
little polishing on QuestRewardCard classes
2013-03-16 22:25:34 +00:00
Maxmtg
74b2d09f41
made a base class for quest/QuestRewardCardChooser and quest/QuestRewardCardFiltered to dump duplicate code there.
2013-03-16 22:22:27 +00:00
Maxmtg
c195e944da
balance hands written in less lines
2013-03-16 22:16:26 +00:00
Maxmtg
7c334b51b1
minor - remove unused methods,
...
quest controllers uses lobbyPlayer to detect human playing quest
one discard(int, sa) call less (inlined in AiInputCommon)
2013-03-16 22:05:59 +00:00
Maxmtg
742cec28a7
dredge action from player* moved: decisions are taken at PlayerController, execution remains in Player
2013-03-16 21:39:18 +00:00
Maxmtg
3b0a3e6658
Code that chooses cards to be discarded moved to PlayerController and ComputerUtil
2013-03-16 20:41:02 +00:00
Sloth
73c457f46a
- The AI will no longer play Mind Twist with X=0.
2013-03-16 16:35:21 +00:00
myk
d574334287
merge latest trunk
2013-03-16 16:12:07 +00:00
Sloth
561b8f95bf
- Removed some unnecessary addController calls.
2013-03-16 14:59:46 +00:00
Maxmtg
e9b51dc21d
chains_of_mephistopheles.txt hardcode moved from specific player classes
...
several instances of Chains of Mephistopheles are handled closer to the rules
2013-03-16 14:27:15 +00:00
Sloth
03d005ed8e
- The AI will now try to fetch duallands with fetchlands.
2013-03-16 13:03:52 +00:00
Sloth
e6a3fb93a7
- Improved AI distributing Damage.
2013-03-16 12:01:21 +00:00
Maxmtg
b59c47c766
Replacement handlers used hashmap in ctor and method parameters instead of plain map (that is quite sufficient for their needs)
2013-03-16 11:55:30 +00:00
Maxmtg
4efcbc3311
Mulligan - uses drawCards(n)
2013-03-16 11:49:14 +00:00
Maxmtg
b19e5c82d8
Quest mulligan code moved out of HumanPlayer
...
QuestController is listening for some events and reacts to human's first mulligan
2013-03-16 11:19:24 +00:00
Sloth
9c4c2328ec
- More improvements in AttachAI.
2013-03-16 10:52:10 +00:00
swordshine
50799c4f9d
- Added Sasaya, Orochi Ascendant
2013-03-16 10:45:42 +00:00
Maxmtg
2ba9d7bfc8
avoid empty scry
2013-03-16 10:44:33 +00:00
Maxmtg
c3bb1c17a5
a special case for Human scrying with a single card available and no need to arrange
2013-03-16 10:43:08 +00:00
Maxmtg
c96304666d
removed clash code from Player class, since it's referenced only from ClashEffect.java
...
Improved GuiDialog.confirm to accept custom values for choice options
Also added default question icon to dialogs (may remove if it's too ugly)
decision-making about "where to put the card used to clash" moved to PlayerController* classes
2013-03-16 10:35:38 +00:00
Sloth
ea78324d15
- Little improvements in AttachAI.
2013-03-16 10:25:48 +00:00
Maxmtg
4acffc60cd
scry now uses player controllers to learn player's choice, method player.scry() moved to ScryEffect
...
Human uses GuiChoice.order to arrange cards to be put on top or bottom of library (that means less popping windows)
AI has a method in ComputerUtil to learn where to put a given card.
2013-03-16 10:04:39 +00:00
Maxmtg
92caa7514d
rem warning,
...
replace array with immutable list in Color
2013-03-16 10:01:18 +00:00
Sloth
23fb1054ba
- The AI will now use the ability of Shirei, Shizo's Caretaker.
2013-03-16 08:04:20 +00:00
swordshine
d48f0a9184
- Added Scythe Specter
2013-03-16 06:41:02 +00:00
myk
f12fcc775e
merge latest trunk
2013-03-16 01:16:40 +00:00
Maxmtg
9af799a88e
Changed some public final static arrays into guava's ImmutableList
...
in Card class changed members to be just List<T> instances (instead of ArrayList)
2013-03-15 21:51:52 +00:00
Maxmtg
5f0e660d18
removed unneeded final modifiers from methods (class is final anyway)
2013-03-15 21:31:52 +00:00
Maxmtg
5b4c6e8490
moved some duplicate methods to base class
2013-03-15 21:28:18 +00:00
Maxmtg
9c3497c7f4
removed duplicate preferences validation from QuestPreferencesHandler & CSubmenuQuestPrefs
2013-03-15 21:21:34 +00:00
Maxmtg
10fdf5b82a
eliminated duplicate code of requirementsCheck() in Trigger and ReplacementEffect
...
some references changed to basic class
2013-03-15 21:06:17 +00:00
myk
9fc27acfb2
make case insensitive comparisons when importing data, but always write to normalized-case filenames
...
consolidate code in the gui downloader
turn autoscrolling back on when the import starts if the user had scrolled somewhere other than the bottom while analyzing
2013-03-15 19:56:23 +00:00
myk
78d63a12cc
merge latest trunk
2013-03-15 17:19:13 +00:00
Sloth
c783b32230
- Fixed possible NPE in checkETBEffects caused by getPossibleETBCounters.
2013-03-15 12:22:58 +00:00
myk
b65a38ea96
put the migration help text in a scroll panel so it can fit on smaller screens
2013-03-15 08:44:50 +00:00
myk
887be24684
don't give plane/phenomenon card pic filenames '.full' infixes
2013-03-15 07:24:57 +00:00
myk
de4766f16d
merge latest trunk
2013-03-15 03:15:24 +00:00
myk
173b0c9490
get gauntlets working, including fixing all the malformed data in the contest files
2013-03-15 03:13:33 +00:00
Sol
1728cf4440
- Phased out cards will cause spells targeting them to fizzle again
2013-03-15 00:12:11 +00:00
myk
2e5e4d1dfb
add more information to the operation log and track how many files were overwritten
2013-03-15 00:05:35 +00:00
Sloth
fe73d7433f
- The AI can now use Daybreak Coronet.
2013-03-14 21:43:08 +00:00
Sloth
592a18cf32
- Fixed AI crashing on Verdant Haven.
2013-03-14 19:11:45 +00:00
myk
4ff21e0aaa
merge latest trunk
2013-03-14 18:57:29 +00:00
myk
db7eac9d82
- don't move by default when import dialog is not in migration mode
...
- warn the user and allow them to correct the situation if they attempt an incomplete migration
2013-03-14 17:57:17 +00:00
Sloth
5e687f98b9
- Fixed AI using Man-o'-War.
2013-03-14 08:24:50 +00:00
myk
0d3f49aa94
don't autoscroll in import dialog if user has manually scrolled somewhere other than the bottom
2013-03-14 01:02:39 +00:00
myk
7ce8d21a51
merge latest trunk
2013-03-14 00:22:43 +00:00