Commit Graph

5702 Commits

Author SHA1 Message Date
moomarc
9da6f43379 - Made a few more cards multiplayer-ready
- Improved OpponentTurn restrictions and conditions for multiplayer
2013-03-28 13:59:56 +00:00
Maxmtg
4febcc2554 Correct detection of player when playing InputPayManaExecuteCommands (used by all that propagandas)
Pay X mana (when spell is about to hit stack) is made by payManaX - it might have problems paying costs like 2XX
2013-03-28 08:59:06 +00:00
Maxmtg
98a539f23a Costs no longer keep AI's choice in the CostPart class,
CardList has filter method to apply 2 filters sequentially
Untap: old inputs replaced with synchronized ones.
InputProxy - using an AtomicReference to hold current input, just in case.
2013-03-28 08:14:13 +00:00
swordshine
564c97571b - Added Grifter's Blade 2013-03-28 05:33:54 +00:00
swordshine
d048f06c7c -- Added Konda's Banner and O-Naginata 2013-03-28 04:47:58 +00:00
swordshine
04e461f275 - Added a plane: Sea of Sand 2013-03-28 00:28:33 +00:00
Maxmtg
c29b4d02d7 cleanup in CostPayment 2013-03-27 20:49:43 +00:00
Maxmtg
0d143f055b payment code slightly unified.
added immediate return if player can't pay
2013-03-27 20:21:57 +00:00
Maxmtg
ddb952ea30 in payCostDuringAbilityResolve used CostPartWithList overloads to execute the action needed to pay.
addListToHash - removed second parameter, since it can be obtained from the same instance.
2013-03-27 19:38:24 +00:00
Maxmtg
0821dd0323 rem import 2013-03-27 17:41:38 +00:00
Maxmtg
406e53d8ae Button flickering eliminated, LockUI showMessage put on delay 2013-03-27 10:10:31 +00:00
Maxmtg
9b737b6ca7 from trunk 2013-03-27 09:03:56 +00:00
Sol
09a61dec53 - Underworld Dreeams will now effect the Player that drew the cards, not just the first Opponent 2013-03-27 02:40:18 +00:00
Sol
9e0406bf86 - Fix Mulligan Message for Turn Position 2013-03-27 02:39:21 +00:00
Maxmtg
b74196b769 Added a filter to minimize number of repaints of PlayArea when a number of similiar actions is performed, ex: Gavony Township, Storm Herd 2013-03-26 23:14:15 +00:00
Maxmtg
21868b6889 VAssignDamage call moved into EDT, so that condition checks inside CardPanels allow then to load pictures 2013-03-26 22:30:07 +00:00
Maxmtg
1b6317c841 battlefield will be updated after any mana ability was played 2013-03-26 20:19:12 +00:00
Maxmtg
74aeac8b09 lock ui does not show its message, input is visually smoother 2013-03-26 19:12:40 +00:00
Maxmtg
ee23393f6f rem imports in CostDiscard
discard will show input for own cards
fixed crash when playing spell from flashbackAction
2013-03-26 18:48:09 +00:00
moomarc
908c87f0f9 - Fixed Knowledge Exploitation
- Added Oath of Lieges
2013-03-26 18:17:26 +00:00
Maxmtg
3256a4814f Discard cost payment moved outside of EDT, to run game action in a right thread 2013-03-26 18:00:48 +00:00
swordshine
3264995f5c - Added 8 planes 2013-03-26 12:02:45 +00:00
Maxmtg
99628896ea ManaPay no longer hangs when mana is paid from pool, method to resolve mana abilities removed from GameActionPlay 2013-03-26 11:53:38 +00:00
Maxmtg
138f8f07f1 changes from trunk commited 2013-03-26 08:42:13 +00:00
Maxmtg
5d3af30b87 Fixed double extraction of InputPayManaBase inputs, that lead to stack incosistency 2013-03-26 08:34:06 +00:00
myk
659ac783fe add cards won via ante to deck in constructed matches 2013-03-26 05:01:42 +00:00
Maxmtg
9fc0c5c508 widely changed costs, not tested 2013-03-25 23:44:11 +00:00
Maxmtg
18e59f30a5 remove some duplicated in GameActionUtil 2013-03-25 20:43:42 +00:00
Maxmtg
1ea083cba0 bugfix for previous commit, that also included simplification of handleUnlessCost 2013-03-25 19:49:36 +00:00
Maxmtg
19a1a7b173 GameAction.payCostDuringAbilityResolve now returns a boolean indicating whether the cost was paid,
all the paid/unpaid commands eliminated, since the code may be executed right after payCostDuringAbilityResolve under if's branches
2013-03-25 19:47:10 +00:00
Maxmtg
a82abd077c moved add to game log out of 3 branches of if-else 2013-03-25 19:26:35 +00:00
Maxmtg
50bd7d43c9 InputPayManaExecuteCommands takes ManaCost instead of String as a measure of mana to pay.
ManaCost got a static factory method to get colorless mana costs.
Methods in GameActionPlay to carry extra mana paid from previous multikicker payment removed. Extra mana goes to pool and can be used from there.
2013-03-25 19:15:04 +00:00
Maxmtg
948ea6803c Special input for discard cost during resolve also removed 2013-03-25 10:15:23 +00:00
Maxmtg
70ee826a52 ci changes from trunk 2013-03-25 09:42:54 +00:00
Maxmtg
59e6d17461 InputPayReturnCost.java removed for there's already input to select cards, and the very discard can be done from outside of input. 2013-03-25 09:37:32 +00:00
Maxmtg
ddc2315699 InputSelectCards made synchronous, select cards to sacrifice uses that input instead on GuiChoose...
Added check to MagicStack add to prevent spells being added by EDT.
2013-03-25 09:13:42 +00:00
Sol
a8dad64b91 - Move Planeswalker abilities from a file by itself into CardFactory 2013-03-25 04:13:58 +00:00
Sol
e4dc940fcc - Two Planar abilities will now be assigned during card building, instead of being scripted. (This should simplify future Plane scripts) 2013-03-25 04:07:08 +00:00
Sol
11ec1a8b1f - Cleanup for Target.java and adding a few more restrictions to the copy constructor 2013-03-24 23:31:06 +00:00
Sol
9c81ed1207 - Added dividedAsYouChoose to Target's copy constructor 2013-03-24 22:40:54 +00:00
Sol
1f2ba326d3 - Don't use RegenerateAi abilities if it has a Target object and nothing is actually targeted 2013-03-24 18:51:36 +00:00
myk
b2d6f96e9b fix a number of issues in ImageCache
- correctly load no_card.jpg when Forge is not run from a bundle
- use skinned "unknown" icon when icon not found instead of default card picture
- don't redo image resize when an image is resized to a size that is already in the cache, just under a different key
2013-03-24 13:31:14 +00:00
Maxmtg
7de818de6f commiting trunk changes 2013-03-24 08:49:30 +00:00
Maxmtg
49496a3ca1 Multikicker bugfix 2013-03-24 08:47:06 +00:00
Sol
4c2176b9b3 - Planeswalkers Loyalty will now be shown in the P/T label in CardDetailPanel. If a Planeswalker also has P/T both will be shown. 2013-03-24 03:34:30 +00:00
Maxmtg
d43ab023f5 Correct handling of unless costs 2013-03-23 19:26:17 +00:00
Maxmtg
57c7a1af87 Made a base class for synchronized inputs, so their clients don't have to import any java.util.concurrent classes
Threw away GameInputUpdatesThread.java - it's no longer needed.
2013-03-23 18:03:41 +00:00
Maxmtg
c859abcb93 Extract base class Input.java 2013-03-23 14:41:49 +00:00
Maxmtg
8b69575a84 removed isClassUpdated old methods (I already forgot what they were used for)
made showMessage method to remove dependency on CMatchUI in inherited inputs.
made stop() protected, removed stopSetNext
2013-03-23 14:16:10 +00:00
Maxmtg
3215a5c32c Inputs base class renamed 2013-03-23 14:00:53 +00:00