Myrd
2853af3a10
Support saving/restoring game state that has creature tokens.
2015-01-03 19:15:44 +00:00
Myrd
c2904fa2aa
More visitors for keywords and merge duplicate keyword amount methods.
2014-12-31 03:57:16 +00:00
swordshine
ff26173d64
- FRF: Added Kolaghan, the Storm's Fury (Keyword: Dash)
2014-12-30 10:54:52 +00:00
Myrd
bf34aec4fc
Get rid of global static Card cache and hang it off the Game instead.
...
This paves the way for having multiple simulataneous game objects (e.g. for simulation).
2014-12-28 16:31:23 +00:00
Myrd
0d53b46c91
Support saving/restoring empty zones.
2014-12-18 16:40:38 +00:00
Myrd
af3c5459c3
Move GameState class to AI project, where it can be used both by the human AI as it is now, and (in the future) by the AI, to help with simulating / restoring game state.
2014-12-18 16:11:10 +00:00
Myrd
6be85a1741
Fix shard sort order when deciding if a mana cost is payable.
...
Prior to this change, the logic would conclude that a {1}{W} cost is not payable with an untapped Scoured Barrens (w/b) and Jungle Hollow (b/g) on the field.
The code is unfortunately too tangled (has too many dependencies) to write a unit test for this. Ideally, we should refactor so it wouldn't depend on the player, etc and just take parameters that can be fed test data.
2014-12-16 20:26:41 +00:00
Myrd
8c25bfd8b7
Refactor duplicated logic into a function.
2014-12-16 20:04:57 +00:00
elcnesh
6de61cb9a6
Code cleanup: make a lot of methods static and remove some unnecessary interface implements and casts.
2014-12-10 18:40:19 +00:00
elcnesh
ea23bb33b2
Codechanges and lots of fixes related to playing other player's cards from exile.
...
- Cards now keep track of who's allowed to cast them, fixing possible issues in multiplayer.
- Face-down cards can now be properly looked at when allowed to by a static ability.
- Improve support for casting a face-down exiled card in general.
- Add Shared Fate (including AI support).
2014-12-03 08:49:49 +00:00
drdev
5eeb302ce8
Add activate callbacks for zoom view
2014-11-30 07:05:40 +00:00
Sloth
f57df312c0
- Improved AI handling Mishra's Factory.
2014-11-29 12:03:55 +00:00
drdev
4c6bd6a715
Prevent race condition when selecting multiple abilities using Shift+click
2014-11-27 02:05:26 +00:00
Sloth
548574484d
- Added AI support for Flash Foliage.
2014-11-25 13:25:55 +00:00
Sloth
5629895c22
- Improved LifeGainAi.
2014-11-24 23:13:22 +00:00
Sloth
bd40daa905
- Added AI support for Grim Monolith.
2014-11-24 13:56:06 +00:00
Sloth
bff7f28000
- Added Myriad Landscape.
...
- Fixed chooseSomeType AI function for land types.
2014-11-23 22:33:28 +00:00
Sloth
ede4c1bc7c
- Cleanup and little improvements in EffectAi.
2014-11-19 22:49:22 +00:00
Sloth
350c5ffc72
- Improved Curse Pump AI.
2014-11-09 16:07:15 +00:00
Sloth
356c8bd2d4
- More AI improvements for Ajani Vengeant and Koth of the Hammer.
2014-11-09 13:58:29 +00:00
Sloth
05b3fa2644
- Added activateForCost part to PumpAI.
2014-11-08 22:30:03 +00:00
Sloth
9831eeba45
- Improved AI using The Chain Veil.
2014-11-08 21:49:19 +00:00
Sloth
7bbc917998
- Improved AI using Koth of the Hammer.
2014-11-08 21:46:30 +00:00
Sloth
14196fedc1
- AI will now play Moxen in Main1.
2014-11-08 21:43:06 +00:00
Sloth
d572f506de
-Improved AI using Sarkhan, the Dragonspeaker.
2014-11-08 21:35:31 +00:00
Sloth
b46c4292b6
- Little improvements in AttachAi.
2014-11-05 23:12:53 +00:00
Sloth
230ea2c61d
- Cleanup.
2014-11-05 12:08:04 +00:00
Sloth
fe770a48ba
- Added a new AI SVar: AmbushAI. Creatures with it will be played when the opponent is attacking.
2014-11-01 20:37:38 +00:00
elcnesh
57a09f275f
Refactor attack declarations.
...
The game now correctly calculates whether an attack declaration is legal, based upon the restrictions and requirements present on the possible attacking creatures. AI support is not yet fully implemented, but the AI can always default to a legal attack declaration.
2014-10-30 15:44:13 +00:00
Sloth
5f499f6af9
- AI will no longer play Ball Lightning and friends when his combat phase will be skipped.
2014-10-28 21:36:23 +00:00
Sloth
65c2fd5298
- Added a new AI SVar: NoZeroToughnessAI. Creatures with it will be played even when their toughness is zero.
2014-10-28 21:24:44 +00:00
Sloth
d52f8a6de7
- Expanded the canGainKeyword AI function to take targeted abilities into account.
2014-10-28 13:23:27 +00:00
Sloth
be7511c6b7
- Improved AI using Dauthi Mindripper and Mindstab Thrull.
2014-10-28 09:33:22 +00:00
Sloth
c639d71dcc
- Added "AITgts$ BetterThanSource" to some more cards.
2014-10-27 21:01:41 +00:00
Sloth
57a9fc2710
- Added AI support for Blind Zealot and Necrite.
2014-10-27 20:15:44 +00:00
Sloth
0cc2ece573
- The AI will now be aware of opponents Royal Assassin and similar cards.
2014-10-26 19:51:55 +00:00
Sloth
baf0af3a24
- Added the new AI function "hasAFogEffect".
2014-10-26 15:24:42 +00:00
Sloth
1c9c52839c
- Small fix for Orcish Captain.
2014-10-26 10:58:31 +00:00
Sloth
242b510f26
- Improved CountersPutAi.
2014-10-26 08:39:17 +00:00
Sloth
02a5997810
- Improved stack description of FlipCoinEffect.
...
- Added AI support for Orcish Captain.
2014-10-25 21:35:46 +00:00
Sloth
264458521a
- Added AI support for Armor Thrull.
2014-10-25 21:16:44 +00:00
Sloth
00a756833d
- Cleanup.
2014-10-24 14:52:59 +00:00
drdev
8e1b0bc901
Remove unused import
2014-10-24 00:33:19 +00:00
Sloth
842040c10d
- Fixed a bug in CharmAI.
2014-10-23 21:43:15 +00:00
Sloth
0105f69a69
- Added AI support for Wash Out.
2014-10-23 12:19:00 +00:00
Sloth
4d35555769
- Extended pumpAgainstRemoval for non-targeted abilities.
2014-10-23 11:31:06 +00:00
Sloth
7d8a0829ba
- Fixed AI moving counters from Spike Soldier onto itself.
2014-10-20 18:41:38 +00:00
Sloth
fc5bec6b9c
- Updated AI of some more cards with ChooseColor effects.
2014-10-20 14:19:48 +00:00
Sloth
77ebe105f9
- Added AI support for Oona, Queen of the Fae.
2014-10-20 12:39:52 +00:00
Sloth
80730f1924
- Added AI support for Quirion Elves.
2014-10-20 11:04:22 +00:00