Commit Graph

6795 Commits

Author SHA1 Message Date
Sol
b9dca5e4ea Convert Kinsbaile Borderguard to script 2013-04-21 04:02:22 +00:00
Sol
2dfb0b58de - Allow Count$Compare to calculateAmount of SVars
- Convert Apocalypse Hydra to script
2013-04-21 01:59:11 +00:00
Sloth
acfd320657 - Updated the quest deck Riddler 4 and improved AI handling of Guilty Conscience. 2013-04-20 12:27:11 +00:00
Maxmtg
280a9a7d4c getAttackCost & getBlockCost - straight methods 2013-04-20 12:19:23 +00:00
Maxmtg
18e03e569b cleanup unused imports 2013-04-20 11:38:35 +00:00
Maxmtg
348a8d9d72 VField: store labels for mana in an ArrayList
CField: new ZoneAction is performed not on click, but in ctor.
class ZoneAction moved to separate file
2013-04-20 11:37:23 +00:00
Maxmtg
75384b78e3 CField: click with meta key down is handled by the very input class. (a parameter added to selectCard)
VCombat: !parentCell.getSelected() won't NPE any longer (unless if parentCell is null for that thread), moved most thread-unsafe actions from update() to ctor and populate
PhaseHandler: bCombat is AtomicBoolean to be retrieved correctly from any thread.
2013-04-20 07:41:20 +00:00
Sloth
609164d7c5 - Fixed getShortColorsString dealing with more than one entry. 2013-04-20 06:41:04 +00:00
Sol
9611a40e1d - Fixed issue with AI retargeting for Optional triggers
- SpellAbilities will now (again) stay on the stack until they are finished resolving, allowing ChangeTarget spells to redirect Counterspells to themselves
2013-04-20 01:56:12 +00:00
Maxmtg
ad3d707e69 mana paid to avoid negative effect moved from ManaCostBeingPaid to AI. Normal players don't need these fields 2013-04-19 06:42:37 +00:00
Maxmtg
010a3ae727 fix for concurrent modification problems http://www.slightlymagic.net/forum/viewtopic.php?p=115820#p115820
note: copy to new arraylist does not help against comodification problem. The only known to me solution is use classes from java.util.concurrent
Playarea redraw timeout increased to 50ms
2013-04-19 06:41:27 +00:00
Sol
ff5c92cf20 - Fixing bad copy/paste in xCount 2013-04-19 03:42:56 +00:00
Sloth
880919b698 - More castPermanentInMain1 changes. 2013-04-18 20:43:31 +00:00
Sloth
177b20f1f5 - Fixed a possible ConcurrentModificationException. 2013-04-18 20:41:14 +00:00
Sloth
1b093eced3 - Improved castPermanentInMain1 function. 2013-04-18 07:27:15 +00:00
Sol
8c637ed500 - Added Corrosion 2013-04-18 02:23:00 +00:00
Sol
01f88df772 - Fixing some overzealous changes in Card overlays that could place the Blocking icon underneath the Sickness icon 2013-04-17 22:49:13 +00:00
Sloth
5a7874f758 - Fixed addChangedCardKeywords overwriting entries with same timestamp. 2013-04-17 15:55:01 +00:00
Maxmtg
dbcb86c62d Chat and 'player has joined' announcements work now. 2013-04-17 13:21:45 +00:00
swordshine
2ccb64efa3 - Added Whipgrass Entangler (the last one for Legions set) 2013-04-17 13:09:41 +00:00
Maxmtg
a4743c1035 lobbyPlayers have strict types, this is used to provide separate code paths to deliver messages to GUI player and remote one.
lobbyPlayer has a factory method to build concrete player.
2013-04-17 12:44:28 +00:00
Maxmtg
f1b1100c89 minor improvements to chat window 2013-04-17 11:58:31 +00:00
Maxmtg
4c4430e793 Chat window - messages now appear in the list above (but it's still disconnected from network part)
Dealt with Command class - now it's method is called run and the interface extends Runnable.
All UI-related calls may be switched
2013-04-17 11:48:06 +00:00
swordshine
ce8ac3fcdd - DGM: Notion Thief 2013-04-17 11:08:30 +00:00
Maxmtg
85a42f0670 cards with Suspend X didn't ask for X to pay 2013-04-17 10:53:05 +00:00
Maxmtg
63321510eb Added a kinda console to display messages coming from network 2013-04-17 10:34:18 +00:00
Maxmtg
12090a6bd7 xCount refactored 2013-04-17 07:57:59 +00:00
Maxmtg
1d582a48b1 worldheart_phoenix - do not create custom requirements please, use built-in value calculation 2013-04-17 05:44:34 +00:00
swordshine
6e8a4f70bc - Added Worldheart Phoenix (CFX set is 100%) 2013-04-17 04:54:17 +00:00
swordshine
db2327557f - Vanguard: Added Ink-Eyes, Servant of Oni Avatar and Maralen of the Mornsong Avatar 2013-04-17 04:48:36 +00:00
Maxmtg
a77dd8c547 cost adjustments moved closer to payment (by human)
X/MK have to be announced to have their costs reduced.
2013-04-16 20:37:51 +00:00
Maxmtg
4d7b221eb5 Rumbling Aftershocks implemented 2013-04-16 19:42:41 +00:00
Maxmtg
44554441ea OptionalCosts (Buyback, Kicker, AltCost) moved to EnumSet (there was a string list)
intrinsic abilities renamed to unparsed ones,
getMultiKickerMagnitude is getKickerMagnitude, it returns 1 for simple Kickers now
Kicker syntax changed,
AltCost avaiable to check on triggers
2013-04-16 17:53:51 +00:00
Maxmtg
6f9be4ff8f Mana cost additions were incorrect - X was discarded! 2013-04-16 17:25:12 +00:00
Maxmtg
4a6834a9cb optional cost minor refactor 2013-04-16 07:46:32 +00:00
Sloth
6baf8cf43b - Cleanup. 2013-04-16 07:20:34 +00:00
Sloth
66846b4d0b - Fixed a possible NPE created by changeHiddenOriginResolveAI. 2013-04-16 07:13:12 +00:00
swordshine
87238a1d4d - DGM: Added Goblin Test Pilot 2013-04-16 04:46:41 +00:00
Sol
81b3cbb5dd - Apparently the conversion to predicate presets in new quest creation failed to adhere to monocolored requirements, leading to too many multicolored cards in a new quest 2013-04-16 01:06:02 +00:00
Maxmtg
d3571f81af CostExile: inputs converted to common routines, they execute doPayment from the right thread, do not lock UI
GameNew: rem imports
2013-04-15 20:40:23 +00:00
Maxmtg
2b5baa2075 remove debug output from sideboarding 2013-04-15 18:22:39 +00:00
Maxmtg
d8f2f74fba simplify VMatchUI.populate 2013-04-15 15:03:54 +00:00
Maxmtg
99fd571e00 sending CField updates to a propper thread.
minor optimizations for the rest
2013-04-15 11:04:05 +00:00
Maxmtg
d054621e45 removed extra parameters from spell and payMana constructors
pre-reqs to make payCost in spellAility not null and final
2013-04-15 10:16:16 +00:00
Sloth
90ff68282b - Added safety check in choosePermanentsToSacrifice. 2013-04-15 08:43:13 +00:00
Maxmtg
46ffa1c4f0 moved console update to EDT thread, this should solve NPE from http://www.slightlymagic.net/forum/viewtopic.php?p=115484#p115484 2013-04-15 08:37:40 +00:00
Maxmtg
4143c472ff removed manaCost from SpellAbility, use payCost instead.
removed Card arguement from Cost ctor
2013-04-15 08:31:37 +00:00
Maxmtg
1a721fc2b0 Cost.combine(c1,c2) was modifying its argument c2. That would lead to bugs in propaganda effects. The method was replaced with Cost.add(c1) that adds c1 to this (and the current cost is obvously changed) 2013-04-15 07:16:10 +00:00
Sol
d110c283ab - Blockers with Trample should not open the AssignDamage dialog when there is only one creature it's blocking 2013-04-15 03:18:56 +00:00
Sloth
56c2bff69f - Fixed possible NPE's caused by Haunt. 2013-04-14 21:47:26 +00:00