Maxmtg
e561713058
Api-based SpellEffects and Ai classes are all stateless (except the one for tokens) - this allows me to pre-create their instances in ApiType enum members and use same instance multiple times.
2013-06-01 13:11:58 +00:00
Maxmtg
38d1744f16
changed parameters consumed by HumanPlay.payCostDuringAbilityResolve - it does not really need a surrogate ability.
...
AiController.confirmAction - spread choices made for specific apis among their matching XxxxxAi classes - to avoid a huge switch and keep all related code in a single place.
2013-06-01 12:55:08 +00:00
Sloth
ace9303c3f
- Make more use of ActivateForSacCost AI function.
2013-06-01 12:03:50 +00:00
Hellfish
be10997f8e
*Fixed early morning code
2013-06-01 11:55:01 +00:00
Hellfish
b2f356b133
*Made ReplaceMoved work with zone lists for origin and destination.
2013-06-01 10:31:17 +00:00
moomarc
e5774dbaa9
- fixed offerings for AI
2013-06-01 09:11:52 +00:00
moomarc
824818e6ae
- removed unused methods
2013-06-01 08:29:51 +00:00
moomarc
1ac1e83f4c
- moved handleConvokedCards and handleOfferings out of main inputs (no longer changes game state from EDT thread)
2013-06-01 07:55:34 +00:00
Sloth
0bfbf986c7
- AI will now use Transform abilities.
2013-06-01 07:35:02 +00:00
Sloth
e80f5aacb6
- Improved knownOriginCanPlayAI.
2013-06-01 07:19:23 +00:00
swordshine
735bcaef21
- Added Furnace Layer, Mirrored Depths and Kharasha Foothills(PC2 set is over 90% implemented)
2013-06-01 00:43:15 +00:00
Maxmtg
ef6d584f0a
removed an unneeded parameter
2013-05-31 23:31:37 +00:00
Maxmtg
e612c7f01a
GameAction.moveTo(final Zone zoneTo, Card c, Integer position) now demands to be run from non-edt
...
GuiDisplayUtil - warped tutor functions in game.getAction.invoke() to run in aux game thread.
"Manual Breakpoint" - removed because EDT won't give accurate information on player zones.
2013-05-31 23:13:38 +00:00
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