Commit Graph

6224 Commits

Author SHA1 Message Date
Maxmtg
4e70925eac Deck generation based on color profile, strictly follows profile
cmc curve uses relative weights
2013-04-23 22:20:55 +00:00
Hellfish
deeba62794 *Fix potential NPE in Commander deck conformance check. 2013-04-23 18:43:19 +00:00
Maxmtg
f5ac535af3 updates to VStack are never empty 2013-04-23 18:38:23 +00:00
Hellfish
45a9f0985a *Added a map of color -> basic land type to Constant, since it might be of use elsewhere.
*Added Commander deck conformance check for basic land types.
2013-04-23 18:00:44 +00:00
Maxmtg
3e76abbaf5 Improve texts for combat in both log and window 2013-04-23 15:47:24 +00:00
Maxmtg
5fff16db45 Combat panel updates as you click on cards to attack
Log panel is also updated correctly
2013-04-23 14:21:39 +00:00
Maxmtg
3b4f1dbb05 removed FModel.getGame method.
please retrieve the GameState instance from nearby players
2013-04-23 13:18:58 +00:00
Sol
e79e1d74da - Fixing Evoke not displaying Cost in the CardDetailPanel 2013-04-23 03:00:27 +00:00
Maxmtg
beeaf3cc50 removed the 'currentdefender' field from Combat, each user has to track himself the defenders
canAttack and addAttacker methods now require a defender.
2013-04-22 19:59:18 +00:00
Maxmtg
7984cd3578 fix to http://www.slightlymagic.net/forum/viewtopic.php?p=116116#p116116
(treating null as refuse to pay)
2013-04-22 17:15:07 +00:00
Maxmtg
5a1876ea7c minor: player can be attacked only if it is in the defenders list 2013-04-22 15:39:56 +00:00
Maxmtg
a0968bc747 redraw batllefield right after a right click when a creture was removed from battle 2013-04-22 08:39:08 +00:00
Maxmtg
a1440ed244 InputAttack appears a single time, players may click on entities they want to attack. 2013-04-22 08:31:33 +00:00
Maxmtg
bc5f5aac51 removed Action interface
CommandList replaced with a plain list (though should better have used a stack, since the commandlist was adding items at index 0)
Phase - removed duplicate wrapper UntilYourNextTurn to same data as until(player)
removed imports, 
ColorChanger - used List instead of ArrayList
2013-04-22 07:02:46 +00:00
swordshine
cc4833c014 - Added Needlebite Trap 2013-04-22 01:35:58 +00:00
Sloth
d42dffda19 - Fixed incorrect P/T storing of LKI copies (counters where counted twice). 2013-04-21 21:24:27 +00:00
Sloth
d5f9616ac5 - Cleanup of P/T calculation. 2013-04-21 21:14:55 +00:00
Sloth
0345b1a846 - Fixed ChooseGenericEffect ignoring Defined parameter when a target is present. 2013-04-21 20:54:56 +00:00
Sloth
4fddfa7135 - fixed a possible NPE in ChangeZoneAi. 2013-04-21 18:33:12 +00:00
Sol
b04959fa89 - Compare Targets of SubAbilities to the StackInstance SubAbilities for full Targeting confirmation (Bugfix Jitte multi-activation) 2013-04-21 17:32:33 +00:00
Maxmtg
6cf5f19ec5 VHomeUI: start/stop button appear only when server port is set up in config
Server: a dedicated packet for greeting
ClientStates may throw exceptions when malformed packets come.
If clientStates chain leaves a packet unhandled, then it will be handled in NetClient
2013-04-21 14:53:32 +00:00
Sloth
55674b2f85 - Cleanup for targeting overlay not selected. 2013-04-21 14:42:39 +00:00
Maxmtg
197c64777b Trying to sacrifice Engineered Explosives with one counter on it I had a crash 2013-04-21 14:38:05 +00:00
Sol
04cb2e91b6 - Convert Stangg to Script 2013-04-21 14:03:15 +00:00
Maxmtg
96e339bc4a remove unused classes or imports 2013-04-21 12:08:32 +00:00
Maxmtg
b5d094e430 Network protocol rewrite:
* packets don't depend on serialization any longer (and they shouldn't since they are simple DTOs)
* support for multiple serialization types - add custom protocols when needed
* web client serialization protocol uses gSon
2013-04-21 11:23:17 +00:00
Maxmtg
072c541401 Allow any letter in EQ? expression. It was limited to X previously 2013-04-21 11:17:34 +00:00
Sloth
889305842b - Improved Cipher AI. 2013-04-21 09:04:21 +00:00
Maxmtg
406109086d this is to fix bug for human paying non-announced X costs 2013-04-21 05:12:31 +00:00
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