Commit Graph

2254 Commits

Author SHA1 Message Date
Agetian
a7e53348e9 - When zooming in on an Aftermath split card in desktop Forge, rotate it the other way compared to a standard split to correctly visualize the graveyard half (right split). 2017-04-22 13:46:36 +00:00
Hanmac
58d013e5be GameEntity#AddCounter now has a Source parameter
update all Effects using them
2017-04-20 12:34:31 +00:00
Sol
2f9319c420 Initial pass of Exert (lots of things to be improved, but should be good enough to start scripting) 2017-04-16 20:00:42 +00:00
Sol
836ebdc5e6 Initial checkin for Puzzle Mode 2017-04-08 15:17:07 +00:00
Agetian
4d7976d5d5 - Fixed tests with the updated spell descriptions in mind. 2017-03-14 14:57:38 +00:00
Agetian
a846aac041 - Reverted an inadvertent commit to SDisplayUtil. 2017-03-07 15:40:09 +00:00
Agetian
d5c1582029 - Added a way to show the current storm count in the prompt pane (in desktop Forge) or prompt panel (in mobile Forge), it is optional and disabled by default (probably only useful for decks that rely on Storm and might clutter the prompt panel a bit in mobile Forge and thus make the text smaller). Can be enabled in Forge preferences via the "Show Storm Count in Prompt Pane/Panel" option. 2017-03-07 15:37:45 +00:00
Myrd
8311daada4 [Simulated AI] Don't de-dupe creatures involved in combat when evaluating potential targets.
Makes an exception if two identical creatures are attacking the same entity and haven't been blocked yet.
2017-02-27 00:05:31 +00:00
Myrd
0527f4cb44 [Simulated AI] Smart decisions about whether to play spells before or after blocks.
For example, using a doom blade before blocks to attack for lethal is preferred vs using a pump spell after blocks to pump an unblocked creature for lethal damage. Adds relevant tests.
2017-02-26 21:22:10 +00:00
Myrd
ab8fd9e314 [Simulated AI] Fix simulation of playing spells exiled with Abbot of Keral Keep. 2017-02-20 18:46:28 +00:00
Myrd
e1d8231ce7 Fix test broken by oracle wording update. 2017-02-20 18:44:52 +00:00
Myrd
e6c8c15cab [Simulated AI] Fix propagation of remembered card states across game copies.
This makes simulations involving e.g. Abbot of Keral Keep not forget that they can play the card that was exiled.
2017-02-20 18:24:27 +00:00
pfps
588597b1ee move swing call into GUI thread 2017-02-09 15:36:06 +00:00
pfps
0a98b03180 move some focus stuff into GUI thread to try to fix crash 2017-02-08 23:36:47 +00:00
pfps
87aaf7d997 make targetting area in VDock be non-focusable 2017-02-08 23:30:42 +00:00
Agetian
156b11fda6 - Reverted 33597 (breaks a lot). 2017-02-08 16:45:52 +00:00
Agetian
6fbc395f79 - Call setFocusable and setEnabled in CMatchUI in the event dispatch thread to try and prevent a crash in this area resulting from threading issues. 2017-02-08 16:06:46 +00:00
pfps
30ed1f6677 make sure that P/T line has room in card detail pane 2017-02-08 14:23:11 +00:00
Agetian
4be29c4df0 - Code formatting. 2017-02-08 06:28:57 +00:00
pfps
9da848ed4b better layout for card type and p/t in card detail pane 2017-02-05 14:22:00 +00:00
pfps
443ac7853c Floating card areas don't get focus 2017-02-05 13:44:51 +00:00
pfps
d63b3b7846 change back to prompt buttons grabbing focus from other windows on prompt update 2017-02-05 12:40:34 +00:00
Agetian
4f324f6598 - Make sure the targeting overlay menu is initialized correctly. 2017-02-05 10:16:47 +00:00
pfps
3e46f4cd64 make focus-setting runnables run synchronously 2017-02-04 17:10:04 +00:00
pfps
d0abf9f75c Allow card type line in CardDetailPane to wrap 2017-02-04 14:13:07 +00:00
nefigah
a845bd13dc Broaden keyboard handler attachment; this hopefully fixes cases where keyboard interaction stops working entirely 2017-02-04 05:21:42 +00:00
nefigah
13941c9264 Add initial implementation of an action-sequencing system (macros) 2017-02-02 17:04:34 +00:00
Agetian
79da71ced1 - Somewhat better option name for auto-yield granularity. 2017-02-01 18:09:40 +00:00
Agetian
10f76eae82 - Implemented a toggleable option to auto-yield either per ability or per card ("Auto-Yield Mode" under Gameplay).
- Restored the historical Forge default of auto-yielding per ability.
2017-02-01 17:32:02 +00:00
Agetian
10736e1e24 - Imports cleanup. 2017-02-01 15:33:55 +00:00
Agetian
5d63419109 - Prevent a crash if a match window is switched to something else while targeting overlay is displayed. 2017-02-01 15:22:40 +00:00
Hanmac
e630fafb22 CountersPutOrRemoveEffect: refactor to use better methods
CountersPutOrRemoveAI: use better logic to check when its good to remove a counter and when not
PlayerController: add chooseBinary with Params, use it for AddOrRemove. no need for chooseAndRemoveOrPutCounter
2017-01-29 14:44:43 +00:00
Agetian
6d8eb230aa - Fixing PlayerControllerForTests 2017-01-28 15:38:37 +00:00
Agetian
267285afe1 - Forge defocusing solution: part 2 [code contribution by nefigah]. Fixes defocusing on window pop-ups such as Goblin Guide. 2017-01-26 18:43:32 +00:00
Agetian
b9df573ca5 - Attempting to fix desktop Forge defocusing problem [code contribution by nefigah]. 2017-01-26 06:59:52 +00:00
Agetian
510a2df095 - Making throttle-based targeting overlay optimization optional for users running older hardware at slower CPU clock speeds. 2017-01-25 16:47:35 +00:00
Agetian
a37cbc2d14 - Some cleanup in targeting overlay code. 2017-01-25 14:38:54 +00:00
Agetian
b45ae80f6e - Attempting to remedy high CPU use when dragging around card panels. 2017-01-25 14:00:20 +00:00
pfps
5924706b1a Move several confirm popups to prompt pane - required modifying prompt pane to have a cardview instead of a spellabilityview 2017-01-21 16:28:11 +00:00
Agetian
32327187fa - Trying a smaller value for Targeting Overlay update rate once more, some additional testing needed. 2017-01-21 08:52:40 +00:00
Agetian
9914c53016 - Setting Max Consecutive Updates to 3 in desktop Targeting Overlay, should get rid of the cases of "missing targeting arrows". 2017-01-21 06:01:07 +00:00
pfps
ab867a40ee Better prompt messages for confirming optional triggers 2017-01-20 20:19:31 +00:00
Agetian
55e34867ff - Changed the desktop Forge Targeting Overlay from timer-based approach to a blocking mechanism which appears to work much better across systems (Linux, Mac, Windows) without causing visual artifacts and without causing the CPU overload (code submission by nefigah). 2017-01-20 17:06:15 +00:00
pfps
00ecfe7e49 Make mouseover on prompt pane show cardview of the controlling card if there is one 2017-01-20 00:48:01 +00:00
pfps
43b99d130a Drag the current spellability closer to the GUI so that it can be (eventually) displayed 2017-01-18 16:37:41 +00:00
Agetian
c31d1bae80 - Added an option to preselect the last known order of simultaneous abilities to simplify confirming the previous order (which is by far the most common thing you'd want).
- Fixed an issue where the wrapped abilities triggered by different objects counted as different abilities for the purpose of remembering simultaneous ability order.
- Updated CHANGES.txt.
2017-01-18 12:23:13 +00:00
Agetian
24b1679c3d - Show [P/T] overlay for vehicles in desktop Forge. 2017-01-17 07:42:11 +00:00
Agetian
084b4ef8d2 - Less demanding layouting notification for the targeting overlay when removing a card panel 2017-01-15 14:17:29 +00:00
Agetian
126eb33e45 - Reverting previous commit, didn't work very well in practice. 2017-01-15 10:28:23 +00:00
Agetian
d4f28dfcda - Less aggressive match UI repaint on removeCardPanel (since it's done for the sake of targeting overlay, only call repaint for the selected card panel). 2017-01-15 10:21:32 +00:00