Agetian
6d8eb230aa
- Fixing PlayerControllerForTests
2017-01-28 15:38:37 +00:00
Hanmac
a6aa647ef0
PlayerController: remove old chooseCounterType in use of new one
2017-01-28 15:23:43 +00:00
Agetian
322467e3fe
- Better (less breakalicious) fix for Charm AI, and also setting sub zone in other places to make sure nothing is missed.
2017-01-28 15:17:50 +00:00
Agetian
6a52c59247
- Attempting to fix the AI never playing Charm AI with one choice (e.g. Vitality Charm, Subtle Strike) because the Charm subability restriction zone is for some reason set to Battlefield, which makes no sense (where and why is it set like that in the first place?)
2017-01-28 15:05:09 +00:00
Hanmac
25acf8309e
cards: fixed DeckHints
2017-01-28 14:54:20 +00:00
Hanmac
26f9d6303e
cards: update vampire hexmage to updated effect
2017-01-28 14:44:58 +00:00
Hanmac
5378dd98f7
RepeatEachAi: remove RemoveAllCounters
2017-01-28 14:44:16 +00:00
Hanmac
4b06eaf490
CountersRemove Effect and AI: update to new scripting
...
make the AI use of RemoveCounter abilities
2017-01-28 14:43:06 +00:00
Hanmac
02ac27ba64
cards: update some cards which does remove -1/-1 counter
2017-01-28 14:41:12 +00:00
Agetian
2b2d10c072
- Trying to fix beneficial CounterPutAi logic.
2017-01-28 14:21:47 +00:00
Agetian
10101b5f01
- Deduce the number of {X} shards in cost to properly adjust PayX for basic spell costs (e.g. Hangarback Walker, Walking Ballista) in CountersPutAi.
...
- The game did not used to require this, why does it need it now? Maybe there's a better solution that needs to be applied elsewhere?
2017-01-28 14:13:11 +00:00
Agetian
ae4e7c252a
- More precise ChangeTargetsEffect replacement deduction for the purpose of DividedAsYouChoose
2017-01-28 14:11:22 +00:00
Hanmac
7bc472b4c3
CardPredicates: add hasLessCounter for x > 0 && x <= n
2017-01-28 14:08:39 +00:00
Agetian
0ffe38632a
- Some cleanup and clarifications.
2017-01-28 11:23:47 +00:00
Agetian
465831930d
- Reverting 33452, looks like it's impossible to retarget from the same SA to Spellskite twice (since the number of targets shouldn't change).
2017-01-28 11:02:40 +00:00
excessum
f27ffb7eca
- Implemented AI for Triskelion
2017-01-28 09:47:17 +00:00
excessum
226fc544de
- Fixed bug in predictThreatenedObjects() with null as second argument
2017-01-28 09:06:41 +00:00
Agetian
5f4b6f73f9
- Imports cleanup.
2017-01-28 08:57:19 +00:00
Agetian
677fadaa3a
- More advanced Spellskite AI logic allowing the AI to retarget spells with multiple targets.
...
- Improved retargeting spells with DividedOnAllocation (may still be imprecise in certain corner cases and for certain AF ChangeTargets variants, consider improving).
2017-01-28 08:56:21 +00:00
Agetian
fb600be5db
- Removing Spellskite-related known issue entry from CHANGES.txt (confirmed as working).
2017-01-28 06:58:19 +00:00
Agetian
ebbdddd49a
- Fixed Slow Motion.
2017-01-28 04:18:03 +00:00
Agetian
6c947401c3
- Fixing logic for LevelUp CountersPutAi.
2017-01-27 19:37:17 +00:00
Agetian
edb30ef749
- DestroyAllAi minor logic correction.
2017-01-27 17:48:39 +00:00
Agetian
f305ec2d87
- Added AI logic for Berserk.
...
- Some minor cleanup.
2017-01-27 15:38:40 +00:00
Agetian
f54198d97e
- Fixed the AI crashing the game when trying to play Profaner of the Dead (which can happen, for instance, when exiling one from opponent's library and playing it without paying mana cost).
2017-01-27 14:29:27 +00:00
Agetian
6cc58919f3
- Imports cleanup.
2017-01-27 11:21:48 +00:00
Agetian
5382f4e1b0
- More precise mana cost analysis for the purpose of Mana Ritual and Nykthos AI (should lead to fewer wasted activations).
2017-01-27 11:21:09 +00:00
Agetian
dc01a30136
- More advanced Life Drain AI, now works with Soul Burn too, and also works correctly when the AI has other mana sources that do not provide black mana on the battlefield.
2017-01-27 05:58:44 +00:00
Agetian
cdbb6b9e6f
- Some more tweaks to Life Drain AI.
2017-01-27 04:38:56 +00:00
nefigah
f9f7bd1366
Fix a small typo, and test commit privileges
2017-01-26 20:30:21 +00:00
Agetian
8683a85393
- A little improvement for Drain Life AI.
2017-01-26 19:57:25 +00:00
Agetian
334e315e3a
- Cleanup.
2017-01-26 19:44:26 +00:00
Agetian
32ff2b77e7
- Drain Life AI will target opponent if it can do lethal.
2017-01-26 19:39:58 +00:00
Agetian
3227c9556f
- Better Drain Life AI that can target both creatures and opponents.
2017-01-26 19:37:44 +00:00
Agetian
ce4b1062a7
- Imports cleanup.
2017-01-26 19:21:34 +00:00
Agetian
5247793a68
- Basic AI for Drain Life (will only go for opponent's face for 3+ damage for now, to be improved later). Soul Burn currently doesn't work with this logic due to complex xColorManaPaid which I'm not sure how to set properly for the AI.
2017-01-26 19:20:37 +00:00
Agetian
51e0c469be
- Fixed Midnight Entourage.
2017-01-26 18:48:56 +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
2db703109d
- Do not waste all mana on animating a single manland when interrupting a sac effect.
2017-01-26 17:43:14 +00:00
Agetian
7226ab7b3d
- Attempting to fix PlayEffect nagging the player to pick a card to play even if he refuses an optional effect once (e.g. AER Expertises).
...
- Maybe there's a better way to write the condition, please take a look when possible (note that Chandra, Pyromaster is a good test for something that needs to work well with the change in mind).
2017-01-26 14:43:11 +00:00
Agetian
b190a58775
- Renamed the AI recursion prevention parameter to make more sense.
2017-01-26 12:17:11 +00:00
Agetian
d109a95541
- Fixed the AI crashing on trying to evaluate human-activated manlands for isAnimatedThisTurn
2017-01-26 11:54:14 +00:00
Agetian
15e0722948
- Minor tweak to DestroyAllAi.
2017-01-26 11:47:42 +00:00
Agetian
a729d44970
- Tweaked DestroyAllAi to properly evaluate situation for mass land removal (e.g. Armageddon).
...
- Refactored DestroyAllAi a little bit to ensure that the deprecated getOpponent() method only occurs once in each call, ready to be removed as soon as we figure out how this logic should work with multiple opponents in multiplayer.
2017-01-26 11:46:33 +00:00
Agetian
63134e06c1
- Combine CostPayLife costs (e.g. prevents Cumulative Upkeep partial payment shenanigans)
2017-01-26 07:12:53 +00:00
Agetian
b9df573ca5
- Attempting to fix desktop Forge defocusing problem [code contribution by nefigah].
2017-01-26 06:59:52 +00:00
Agetian
67d91f02e4
- Imports cleanup.
2017-01-26 06:45:38 +00:00
Agetian
b8db2630ff
- Removed a part of AiCardMemory that did not work out as an idea.
2017-01-26 06:45:09 +00:00
Agetian
501ad43f96
- Compare by name.
2017-01-26 06:43:33 +00:00
Agetian
94f53e05e6
- Explicitly marked cards that use a re-entry mechanism for testing playability via canPlaySa such that they don't recursively call each other and thus risk getting into an infinite loop (fixes potential check combinations of e.g. various mana rituals + Yawgmoth's Will in AI's hand and other things like that, which would otherwise cause a stack overflow).
...
- Some simplification in the AICardMemory interface, allowing to use static methods to simplify calls.
2017-01-26 06:40:46 +00:00