Commit Graph

6482 Commits

Author SHA1 Message Date
Maxmtg
f412e5ccf3 got sick and tired of 7-parameter function choosePermanentsToSacrifice - made 2 overloads with 4 params.
When min = 0 cancel button is enabled
2013-05-31 22:29:46 +00:00
Sol
262fbf5728 - Exalted will now display both the triggering host and the attacker on the stack. 2013-05-31 21:56:27 +00:00
moomarc
ebce943f38 - Implemented <SubType> Offering ability from BOK.
- Added Patron of the Akki, Patron of the Kitsune, Patron of the Moon and Patron of the Orochi
2013-05-31 17:20:41 +00:00
Agetian
913ba50b58 Fixed a bug that caused the spell event sounds not to be played. 2013-05-31 16:29:05 +00:00
Sloth
42ba9a3f6d - Reduced the TAKE_BEST_THRESHOLD in BoosterDraftAI. 2013-05-31 13:21:57 +00:00
Sloth
80f98a4697 - Fixed AI evaluating basic lands as the highest possible picks in draft mode. 2013-05-31 13:14:46 +00:00
Sol
bdefbe8a84 - Thanks for pointing out that Reveal was in GameAction Max. 2013-05-31 13:00:35 +00:00
Sloth
cc5249c6fb - AI will now aggressively sacrifice stolen creatures to gain life. 2013-05-31 11:44:27 +00:00
Maxmtg
0d4c4cd9f4 chooseCardsToRevealFromHand - moved function to player controller
RevealEffectBase disbanded
2013-05-31 07:40:11 +00:00
Sol
e7ae35a147 - Extracted reveal to players function into Game.
- Cascade will no longer call GuiChoose for AI vs AI matches
2013-05-31 02:25:35 +00:00
Maxmtg
49c4db353d a small cleanup 2013-05-30 20:01:40 +00:00
Maxmtg
55d1aae94d AI vs AI playback now catches spell-cast event 2013-05-30 14:08:35 +00:00
Maxmtg
406a87a347 AS vs AI playback control bugfix (end paused game) 2013-05-30 13:53:45 +00:00
Maxmtg
92ed246e83 AI vs AI playback controls - almost working 2013-05-30 13:49:15 +00:00
Maxmtg
e3f34ff833 shows decks from shop on double click 2013-05-30 12:32:11 +00:00
Maxmtg
e210260aa0 bugfix for concede on play/draw 2013-05-30 12:28:00 +00:00
Maxmtg
4052f179d4 A slow-down to AI vs AI games (not finished yet),
Closing the window during AI vs AI match leads to a draw
2013-05-30 12:24:34 +00:00
Sloth
545d64d23c - Improved ControlGainAI. 2013-05-30 10:16:32 +00:00
Sloth
b1ccea8702 - Improved lifeInDanger AI function. 2013-05-30 10:15:36 +00:00
Sloth
cc0e999f8e - Fixed DamagePreventAI not filtering targetables. 2013-05-30 09:12:04 +00:00
Hellfish
42754554ae *PlaneswalkedFrom triggers were getting a list of cards planeswalked from that would change by the time they evaluated it. Fixes Orzhova. 2013-05-30 06:17:24 +00:00
Maxmtg
2b53b2ae20 more events instead of direct calls are used for both log and sound system 2013-05-29 22:18:07 +00:00
Maxmtg
77a319deac Log uses GameEvent to recieve 'damaged' information
DeckChooser allows decks from quest shop
2013-05-29 21:53:47 +00:00
Maxmtg
b798eef761 rename GameEventType to GameLogEntryType to avoid mixing up things. 2013-05-29 20:05:34 +00:00
Maxmtg
7804f5f79d Log uses visitor pattern instead of instance of checks 2013-05-29 20:02:56 +00:00
Maxmtg
9c5b5c6d73 just removed the extra parameter transferred through the dispatch from all the visitors (they may just hold the extra data in their own fields) 2013-05-29 19:44:20 +00:00
Maxmtg
ac4537fbb2 sorry, I meant PhaseLabels are awful. They have setEnabled, isEnabled and getEnabled - first one overrides a method 2013-05-29 19:26:15 +00:00
Maxmtg
8fd79a3577 PhaseHandler has very poor design 2013-05-29 19:24:41 +00:00
Maxmtg
5c6fb2d279 concede on mulligan handled 2013-05-29 19:16:19 +00:00
Maxmtg
724e4e87ac a couple of checks to concede correctly during 'play or draw' and mulligan prompts 2013-05-29 19:02:04 +00:00
Maxmtg
1cc1518ae2 compile err 2013-05-29 18:55:26 +00:00
Maxmtg
0a33b93903 Added syncPoint between a moment when Game thread adds input to stack and EDT->showMessage, to ensure Game thread's changes happen-before whatever EDT will read
input/InputAttack.java is initialized with combat instead of game (cosmtic change though)
CMatchUI stopAtPhase will use an existing method to get the needed checkBox
2013-05-29 18:41:04 +00:00
Maxmtg
f939aa13a5 inlined visuallyActivatePhase 2013-05-29 17:23:57 +00:00
Maxmtg
6be13bcf30 another check for gameover
moved isUiSet... to derived class of PlayerController
2013-05-29 15:03:11 +00:00
Maxmtg
066d45fbc3 Lang lib tries to determine correct article for nouns 2013-05-29 14:44:25 +00:00
Maxmtg
d733ddc7c7 removed code for 'NextUpkeep' because no cards left that use it 2013-05-29 14:31:38 +00:00
Maxmtg
3e7d885b3c fixed imports and typo 2013-05-29 13:42:59 +00:00
Maxmtg
8ac2367468 move inputs to forge.gui.input
DrawEffect.java - removed isHuman, fixed description using Lang library
2013-05-29 13:40:42 +00:00
Maxmtg
40a8f66b52 Mass renamed classes: GameState -> Game, MatchController (aka MatchState) -> Match 2013-05-29 12:54:24 +00:00
Maxmtg
85fe60c458 match cleanup 2013-05-29 12:51:18 +00:00
Maxmtg
4cbe3237af Applied visitor to FControl loop.
put 'give priority' on top of game loop, so that we never give anyone priority if game is over
2013-05-29 12:36:23 +00:00
Maxmtg
7612d5b6e6 cleanup sound 2013-05-29 12:09:12 +00:00
Maxmtg
557a50be37 Sound - uses visitor pattern now 2013-05-29 12:01:49 +00:00
Maxmtg
81c98d6000 Encapsulated game.getEvents into game - now fireEvent and subscribe methods are visible 2013-05-29 11:23:43 +00:00
Maxmtg
f82e39df9c missing file 2013-05-29 11:12:54 +00:00
Maxmtg
4f2da5e24b Applied visitor patter to GameEvents - this is aimed to remove switches on (instanceof event) in event consumers (log, fcontrol, sound) 2013-05-29 10:56:15 +00:00
Sloth
470986db37 - Added Forcefield. 2013-05-29 10:53:21 +00:00
Maxmtg
949764938a All game.event.* named in a single fashion, more changes to come 2013-05-29 10:43:09 +00:00
Sloth
8ccb4f8f6a - Fixed a possible NPE caused by BecomesBlockedEffect. 2013-05-29 10:34:41 +00:00
Maxmtg
b3482d901d CombatUtil.showCombat no longer needs parameter, its body is invoked only from EDT.
InputBlock.java accepts now Combat as 2nd paramter
Main phases were given better UI names
2013-05-29 10:33:58 +00:00