Agetian
12b53adab2
- Formatting ChooseColorAi.
2017-01-29 06:10:18 +00:00
Agetian
8aaeef6954
- AI should activate Astral Cornucopia in its main 2 phase since that's where it can make the most difference for it.
2017-01-29 06:08:31 +00:00
Agetian
029259bfa8
- Simpler test in ScryAi.
2017-01-29 05:15:23 +00:00
Agetian
88a8cee0a4
- AI should not hold back using +1 Scry abilities of Planeswalkers when casting a PW in Main 2 (Saheeli Rai and Jace, Unraveler of Secrets).
2017-01-29 04:56:27 +00:00
excessum
c45124741f
- EOT "free" pings should check for reusable resources
2017-01-29 00:51:40 +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
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
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
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
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
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
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
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
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
Agetian
7416cc8fff
- Improvements to Phyrexian Dreadnought AI handling.
2017-01-25 11:46:34 +00:00
Agetian
4c931da9c5
- Restoring Phyrexian Dreadnought to AI playable state (might need generalization to its own AI logic though, currently done via a creature-specific "hack").
2017-01-25 11:19:10 +00:00
Agetian
aba978da58
- Do not tap just animated manlands to animate another manland.
2017-01-24 19:25:34 +00:00
Agetian
0ba88f3ce5
- Improved SacAndUpgrade AI, now it works with Eldritch Evolution and requires fewer parameters in scripts.
2017-01-24 17:42:03 +00:00
Agetian
8fe64ed124
- Simplified checkApiLogic in ChangeZoneAi by refactoring SameName logic into a separate method doSameNameLogic.
2017-01-24 12:28:00 +00:00
Agetian
5a88d2b943
- Moved SacAndUpgrade AI logic from SpecialCardAi to ChangeZoneAi (not card-specific, can be generalized further).
...
- We may want to eventually do something about ChangeZoneAi since it has become very "fat" and has a ton of convoluted routines for a dozen different effects.
2017-01-24 12:23:40 +00:00
Agetian
5e0c6bbaee
- Moved ManaRitual AI logic to ManaEffectAi (no longer card-specific).
2017-01-24 11:16:25 +00:00
Agetian
b12a14b26a
- Formatting fix.
2017-01-24 11:09:54 +00:00
Agetian
b2d8cc4a87
- Some additional limitations in ManaRitual AI.
2017-01-24 11:05:13 +00:00