Commit Graph

2301 Commits

Author SHA1 Message Date
Agetian
373cd9bd24 - Further updated mana ritual cards to properly account for Battery effect. 2018-12-04 12:21:04 +03:00
Agetian
82ff6c020a - Attempting to offer a reasonable implementation for Dream Halls AI, based on Seravy's original idea from a while ago. 2018-12-04 12:01:21 +03:00
Agetian
de3d60e9c5 - Allow AI priority modification (may be useful for more cards, will update later). 2018-12-04 12:01:02 +03:00
Seravy
0921fa3e67 Proper check of available mana sources 2018-12-04 12:01:02 +03:00
Seravy
7aa9f7d324 Missing ! 2018-12-04 12:01:02 +03:00
Seravy
d4da736813 Also allow playing by discard if don't have the correct color of mana in play 2018-12-04 12:01:02 +03:00
Seravy
e3e29d2c81 This makes the AI willing to actually discard for getting spells cast it cannot afford otherwise. 2018-12-04 12:01:02 +03:00
Seravy
d5d70cd17d When a card that allows "free cast" is in play, do not prefer to discard "unplayable" cards based on CMS, instead discard worst as normal.
...but AI still isn't very eager to actually play them for some reason.
2018-12-04 12:01:02 +03:00
Agetian
b591380241 - Restored AI playability for the old mana batteries. 2018-12-04 10:09:44 +03:00
Agetian
02d1b28124 - More thorough check for X in SA cost parts. 2018-12-04 08:12:06 +03:00
Agetian
f0f9e26ed1 - Check the amount of X on the SA, not necessarily on the card itself. 2018-12-04 07:28:42 +03:00
Agetian
fdcccf4669 - Comment tweak. 2018-12-04 07:19:39 +03:00
Agetian
486265cbeb - Fixed a bug which caused the AI not to play X-dependent targeting spells like Repeal anymore. 2018-12-04 07:17:18 +03:00
Agetian
d971a21552 - Predict combat damage reduction from static effects like Loyal Unicorn. 2018-12-03 21:16:52 +03:00
Agetian
8a38e62aa6 - Removed a test line. 2018-12-03 20:23:48 +03:00
Agetian
b2cc17738a - Made Quillmane Baku AI-playable. 2018-12-03 20:22:41 +03:00
Agetian
72e50fdf2b - Minor logic improvement for AILogic LivingDeath.
- Renamed Classic Dominaria to Classic_Dominaria for naming consistency.
- Minor tweak to plane and set definitions.
- Updated CHANGES.txt.
2018-12-03 08:01:00 +03:00
Agetian
a7989737d9 - Added 6 events to Time Vault.
- Fixed some minor AI issues.
2018-12-02 22:34:15 +03:00
Agetian
0a1f2f6670 - Improve AI for Brothers Yamazaki. 2018-12-02 07:57:22 +03:00
Agetian
43074a5de1 - Added a Minamo Academy event.
- Improved the way the AI uses Sokenzan.
2018-12-02 07:57:22 +03:00
Agetian
9502042d8c - Improve the AI use of Sokenzan, tweak the deck a little. 2018-12-02 07:57:22 +03:00
Michael Kamensky
cdb3c18834 Merge branch 'master' into 'master'
Fixed the AI trying to cast Animate Dead/Dance of the Dead on cards which will have Protection from Color

See merge request core-developers/forge!1162
2018-12-01 18:29:06 +00:00
Agetian
67cac41d3e - Fixed the AI trying to cast Animate Dead/Dance of the Dead on cards which will have Protection from Black once they hit the battlefield. 2018-12-01 21:19:44 +03:00
Agetian
c064ec3860 - Improved UntapAllAi a little, modified AmbushAI flag for Angel of the Dire Hour. 2018-11-30 22:57:29 +03:00
Agetian
5c047b3849 - Some updates to Flash and PermanentCreatureAi logic. 2018-11-30 22:12:44 +03:00
Agetian
f4475bff37 - Improved Flash AI logic. 2018-11-30 10:49:01 +03:00
Agetian
ad990ae68b - Reverted ChangeZoneAi, part 2. 2018-11-30 09:49:17 +03:00
Agetian
ea8fb9870a - Reverted ChangeZoneAi. 2018-11-30 09:48:40 +03:00
Agetian
36d2b4573a Revert "- Attempting to avoid an AI logic spec (needs testing)."
This reverts commit 7703178
2018-11-30 09:41:45 +03:00
Agetian
770317805c - Attempting to avoid an AI logic spec (needs testing). 2018-11-30 09:21:44 +03:00
Agetian
6da3fd898f - Attempting to implement a more concise and correct code for Sisters of Stone Death which would also work for the AI. 2018-11-30 09:10:55 +03:00
Agetian
e9bcd254c3 - NPE guard. 2018-11-29 16:17:33 +03:00
Agetian
9b99314e51 - Somewhat better logic for Provoke. 2018-11-29 15:22:44 +03:00
Agetian
31d887301b - Improved the AI logic for MustBlock a little.
- Enabled several cards for the AI.
- Implemented Sisters of Stone Death's 3rd ability similar to Tomb of the Dusk Rose which the AI can properly work with (seems functionally identical).
- Fixed the AI logic spec for Tomb of the Dusk Rose.
2018-11-29 15:02:19 +03:00
Agetian
daad7c254a - Improved CopySpellAbilityAI on spells affecting multiple cards (e.g. mass removal). 2018-11-29 11:11:39 +03:00
Agetian
309f10a1cf - Better name for the AI logic. 2018-11-29 10:41:41 +03:00
Agetian
290cdc09d3 - Improved DamageDealAi when counting damage by cards in hand. 2018-11-29 09:21:28 +03:00
Agetian
a981129825 - Updated CopySpellAbilityAi to account for some more cases the AI shouldn't copy a spell. 2018-11-29 08:08:28 +03:00
Agetian
a030a61e52 - Some CopySpellAbilityAi improvements. 2018-11-28 21:21:07 +03:00
Agetian
a3f1eb940f - Fixed more cards cloning creatures and added additional logic for the AI. 2018-11-28 20:51:32 +03:00
Agetian
88aedb8cba - Fixed Cryptoplasm, added some simple AI logic to it. 2018-11-28 20:20:31 +03:00
Agetian
1ad132e0a3 - More work on AI logic, fixed Tawnos, Urza's Apprentice. 2018-11-27 12:57:02 +03:00
Agetian
90cb927f6c - Simpler fix for mandatory activations. 2018-11-27 12:52:07 +03:00
Agetian
67e6e90f36 - Observe mandatory activations when checking via chkAIDrawback. 2018-11-27 12:50:56 +03:00
Agetian
c9c5a443ef - More work on AI logic. 2018-11-27 12:45:09 +03:00
Agetian
8b90c787aa - Marking the relevant cards as AI-playable. 2018-11-27 12:45:09 +03:00
Agetian
2c106e9f04 - Move the chance-based logic out of AiController, implement several AI logic flags for cards. 2018-11-27 12:45:09 +03:00
Agetian
ed556ba2a7 - Implemented logic for CopySpellAbilityAi. 2018-11-27 12:45:09 +03:00
Agetian
c4cf123626 - Fixed AnimateAi logic for cards like Genju of the Falls. Added an AI logic param to Azami, Lady of Scrolls. 2018-11-26 20:22:31 +03:00
Agetian
0555cf6536 - Better AI logic for Sensei's Divining Top. 2018-11-26 19:31:20 +03:00