Commit Graph

2301 Commits

Author SHA1 Message Date
Agetian
4cbb50483a - Renamed a method. 2018-12-12 09:04:46 +03:00
Agetian
1b6b7f8af4 - Move chainDmg closer to where it's used, avoid calling it when not planning to cast the spell for other reasons. 2018-12-12 09:03:41 +03:00
Agetian
3b5015e9b6 - Moved the chain SA prediction routine to DamageDealAi, where it belongs more. 2018-12-12 08:57:23 +03:00
Agetian
789f9eecb4 - Maximize the chance to chain spells to kill threats when in danger (unless the option is disabled). 2018-12-12 08:54:31 +03:00
Agetian
95db50f07b - Renamed a few things for clarity. 2018-12-12 08:47:36 +03:00
Agetian
602226f416 - Removed a commented out line (mana is reserved elsewhere). 2018-12-12 08:14:41 +03:00
Agetian
0c5e5288b8 - Tweaking a method name. 2018-12-12 08:14:41 +03:00
Agetian
96f941aeae - Added an experimental AI property controlling damage chaining. 2018-12-12 08:14:41 +03:00
Agetian
c79ed8b609 - Basic implementation for chaining two damage spells, supports damage+damage or damage+debuff. 2018-12-12 08:14:41 +03:00
Agetian
d362f275e5 - More logic for Vaevictis, moved the relevant logic to SacrificeAi for clarity, only called from Pump now. 2018-12-11 08:35:01 +03:00
Agetian
9fec411bd5 - More logic for Vaevictis. 2018-12-10 20:24:53 +03:00
Agetian
ec1566f169 - Somewhat more detailed logic for allied sac on Vaevictis. 2018-12-10 20:02:38 +03:00
Agetian
dcd2fade4a - Fixed Vaevictis Asmadi, the Dire AI targeting logic. 2018-12-10 19:24:53 +03:00
Agetian
0be13468bc - Determine X Cost only if canPlay returns true. 2018-12-10 18:31:56 +03:00
Agetian
381a94a5e4 - Fixed the AI trying to pay for abilities it doesn't control, causing weird side effects and slowdowns. 2018-12-10 18:27:37 +03:00
Agetian
38831e11bf - Don't evaluate non-combat Haste more than once. 2018-12-10 07:48:01 +03:00
Agetian
027b912199 - Refactored AI Haste chance calculation to make more sense. 2018-12-10 07:47:14 +03:00
Agetian
56cdf52f0b - AI Haste: grant to cards with affordable activated abilities with a tap cost. 2018-12-10 07:11:14 +03:00
Agetian
5f71ee4694 - Fixed UntapAllAi not checking for the tapped state. 2018-12-09 16:57:10 +03:00
Agetian
c0806714fc - Fixed a logic error in AnimateAi which made the AI animate things like Plains via Genju of the Fields when the Plains was tapped, part 3. 2018-12-09 14:51:38 +03:00
Agetian
156683cddb - Fixed a logic error in AnimateAi which made the AI animate things like Plains via Genju of the Fields when the Plains was tapped, part 2. 2018-12-09 14:49:53 +03:00
Agetian
031d0b4d3c - Fixed a logic error in AnimateAi which made the AI animate things like Plains via Genju of the Fields when the Plains was tapped. 2018-12-09 14:48:08 +03:00
Agetian
abe1ab26e3 - Preparing Forge for Android publish v1.6.19.001 [incremental]. 2018-12-09 09:56:16 +03:00
Agetian
4696316706 - Factor in the original chance boost for granting haste to creatures. 2018-12-08 20:29:09 +03:00
Agetian
879caa8933 - AI shouldn't grant Haste to creatures which won't attack this turn anyway. 2018-12-08 20:25:03 +03:00
Agetian
7c584d5df7 - Fix Liliana, Untouched by Death Mill ability for the AI. 2018-12-08 10:45:13 +03:00
Michael Kamensky
aaf771e991 Merge branch 'ai-tapcost' into 'master'
Experimental: Fixed the AI cheating by tapping a mana source artifact both for mana and for the tap cost when paying for Zahid

See merge request core-developers/forge!1187
2018-12-08 05:32:47 +00:00
Agetian
2f35377b8a - Better name for the payment preference spec. 2018-12-08 08:25:07 +03:00
Agetian
171c8e8d7f - Fixed the AI cheating by tapping a mana source artifact both for mana and for the tap cost when paying the alternate cost for Zahid, Djinn of the Lamp.
- Will likely need a more generic solution which would work for other potential similar costs, including the ones which may come from other cards.
2018-12-07 10:04:06 +03:00
Agetian
9cbada32aa - 2018-12-06 10:23:12 +03:00
Agetian
879084bec2 - Replace sa.getHostCard() with source 2018-12-06 08:39:45 +03:00
Agetian
281b56fba3 - AI shouldn't move the counters if it can trade with the opposing creature, otherwise it'll lose material. 2018-12-06 08:37:10 +03:00
Agetian
7f7a033f12 - Support detecting blocking threatened creatures in AILogic$ MoveCounter. 2018-12-06 08:03:00 +03:00
Agetian
e8ebfebaca - Unbreak the MoveCounter logic. 2018-12-06 07:44:01 +03:00
Agetian
05672bb174 - Better name for the MoveCounter logic for Spikes. 2018-12-06 07:17:31 +03:00
Agetian
27527e09f7 - Don't move counters away from spikes with extra counter effects too zealously. 2018-12-05 22:33:12 +03:00
Agetian
41f505e636 - Don't move counters to a threatened creature. 2018-12-05 22:12:28 +03:00
Agetian
3719812889 - Refactor the method for the logic. 2018-12-05 21:57:17 +03:00
Agetian
498237a65e - Comment fix 2018-12-05 21:55:27 +03:00
Agetian
8e7a9d46cd - Account for tapped diff in evaluation. 2018-12-05 21:53:49 +03:00
Agetian
f588038ac9 - Predict lethal combat. 2018-12-05 21:39:43 +03:00
Agetian
17a922ae5a - Basic logic for fake counter move on Spikes from Tempest. 2018-12-05 21:30:21 +03:00
Agetian
d4ee65f937 - Fixed the AI trying to gang-block and kill an attacker which can't be killed because combat damage to it would be prevented.
- Added a couple AI hints to Ajani's Welcome.
2018-12-05 16:44:20 +03:00
Hans Mackowiak
732a81ac88 AttachAI Reanimate Logic 2018-12-04 20:28:23 +00:00
Agetian
1d7188b8f5 - Minor logic tweak (Buyback) + AI property
- hasXInAnyCostPart doesn't need a SA parameter now that it's in Cost.
- Fixed a minor mistype on mobile Forge.
2018-12-04 16:17:03 +03:00
Agetian
a2ca811136 - Minor logic tweak (Buyback)
- hasXInAnyCostPart doesn't need a SA parameter now that it's in Cost.
- Fixed a minor mistype on mobile Forge.
2018-12-04 16:11:08 +03:00
Agetian
4d1b7a9aec - Logic improvement (Buyback) 2018-12-04 14:51:30 +03:00
Agetian
ae5090a69a - More careful use of Buyback spells without Buyback. 2018-12-04 14:33:46 +03:00
Agetian
684af6ba0b Merge branch 'Buyback' of git.cardforge.org:Seravy/forge into ai-buyback 2018-12-04 14:20:30 +03:00
Agetian
4b060e59bf - Expanded ManaRitualBattery for basic storage land support. 2018-12-04 12:30:32 +03:00