Commit Graph

39874 Commits

Author SHA1 Message Date
Agetian
0bd8e3a9a2 - Added a previously unoverridden method to WrappedAbility which is needed for checking AttachedTo on triggers properly (fixes Street Sweeper). 2018-12-17 16:17:13 +03:00
Michael Kamensky
14f458b327 Merge branch 'master' into 'master'
Fixed Bogardan Phoenix.

Closes #785

See merge request core-developers/forge!1228
2018-12-17 06:30:52 +00:00
Agetian
4efc697c4f - Removed an unnecessary reference. 2018-12-17 08:38:26 +03:00
Agetian
c1c7147f00 - More meaningful names in Bogardan Phoenix script. 2018-12-17 08:04:55 +03:00
Agetian
7875707f3c - Fixed Bogardan Phoenix. 2018-12-16 23:47:17 +03:00
Michael Kamensky
fa5f0fbd95 Merge branch 'ai-optional-costs' into 'master'
AI optional cost choice update

Closes #783

See merge request core-developers/forge!1227
2018-12-16 20:16:35 +00:00
Agetian
69446cd5a2 - Fixed Bone Dragon. 2018-12-16 22:54:03 +03:00
Agetian
6bc46c2e56 - Fix imports. 2018-12-16 15:06:26 +03:00
Agetian
767e13c547 - NPE guard. 2018-12-16 09:50:18 +03:00
Agetian
81c76952ea - Code cleanup. 2018-12-16 09:43:52 +03:00
Agetian
14799ccd62 - Complete the basic implementation of AI optional cost choice, remove getOptionalCosts. 2018-12-16 09:11:54 +03:00
Agetian
7a53a0fb36 - Improve implementation for Entwine AI.
- Fixed an issue which made the SpellAbilityAi#isSorcerySpeed not to work correctly when checking from subabilities.
2018-12-15 22:08:16 +03:00
Agetian
0628ebcb54 - First steps in figuring out the infrastructure for AI chooseOptionalCosts and implementing Entwine. 2018-12-15 20:43:57 +03:00
Michael Kamensky
78247abd33 Merge branch 'master' into 'master'
Tweaked AI logic for Llanowar Scout.

See merge request core-developers/forge!1226
2018-12-15 17:27:44 +00:00
Agetian
fc966a6ad4 - Tweaked AI logic for Llanowar Scout. 2018-12-15 20:27:07 +03:00
Michael Kamensky
5e0fcad125 Merge branch 'ai-blaze-low-xdmg' into 'master'
Assorted AI improvements

See merge request core-developers/forge!1225
2018-12-15 15:14:35 +00:00
Agetian
498f7325c9 - Fix the AI logic for Expansion // Explosion (casting for 0, underdrawing). 2018-12-15 11:58:43 +03:00
Agetian
f2e9d5913e - Default settings for holding back X damage spells. 2018-12-15 10:01:29 +03:00
Agetian
c6515bdf4a - Some tweaks to damage chaining.
- Improved Narset Transcendent AI logic for -2.
2018-12-15 09:58:02 +03:00
Agetian
f9cd173405 - Prevent the AI from relying on the ability to play a spell with an optional cost when deciding to do an assault attack with possible non-combat damage (prevents certain silly suicidal chump-attacks) 2018-12-15 09:10:55 +03:00
Agetian
134b4a7d77 - Added basic AI support for Jump-start (the old-fashioned way for now). 2018-12-15 08:52:59 +03:00
Agetian
08ead5b5e2 - Tweaked Risk Factor to be AI-playable. 2018-12-15 08:09:01 +03:00
Agetian
5ff5ce0556 - PumpAI should account for spending a card cast from hand when counting P/T (fixes Inner Calm, Outer Strength AI assumptions). 2018-12-14 13:51:55 +03:00
Agetian
091fe36b2b - Basic logic to try not to be very wasteful with X-based direct damage spells (and the AI properties for it). Currently in Experimental profile. 2018-12-14 13:51:23 +03:00
Michael Kamensky
97d536807c Merge branch 'master' into 'master'
A sturdier logic for Doublecast-like card AI.

See merge request core-developers/forge!1224
2018-12-14 05:59:11 +00:00
Agetian
5b7f184053 - A sturdier logic for Doublecast-like card AI. 2018-12-14 08:55:50 +03:00
Michael Kamensky
fb6e4be3e2 Merge branch 'master' into 'master'
Code simplification/cleanup.

See merge request core-developers/forge!1223
2018-12-13 19:10:59 +00:00
Agetian
ad5ece5242 - Code simplification/cleanup. 2018-12-13 22:09:46 +03:00
Michael Kamensky
a9e3a2d927 Merge branch 'fix-damagereceivedcond' into 'master'
Fixed an issue which caused DamageReceivedCondition not to work and always return 0.

See merge request core-developers/forge!1219
2018-12-13 19:04:02 +00:00
Michael Kamensky
f6bd4ca951 Merge branch 'master' into 'master'
Minor code cleanup.

See merge request core-developers/forge!1222
2018-12-13 19:03:25 +00:00
Agetian
7fd2a5fa04 - Code cleanup. 2018-12-13 22:02:17 +03:00
Michael Kamensky
92fc1b1061 Merge branch 'master' into 'master'
A more reliable check for Valid Targeting in damage chaining.

See merge request core-developers/forge!1221
2018-12-13 18:58:44 +00:00
Agetian
36154db24d - A more reliable check for Valid Targeting in damage chaining. 2018-12-13 21:57:01 +03:00
Michael Kamensky
cdd9c882fb Merge branch 'master' into 'master'
Improve AI damage chaining for spells with restricted targeting

See merge request core-developers/forge!1220
2018-12-13 17:08:49 +00:00
Agetian
3896a79cfa - Improve damage chaining so that the AI doesn't try to chain a spell with restricted targeting to a general use spell (e.g. a spell that targets only attacking creatures to a Lightning Strike outside of combat). 2018-12-13 20:08:01 +03:00
Michael Kamensky
8419eeea8f Merge branch 'quest-challenges-fix' into 'master'
Fixed an issue with loading quest challenges from the wrong folder.

Closes #781

See merge request core-developers/forge!1217
2018-12-13 12:56:45 +00:00
Agetian
ee960c9c08 - Fixed an issue which caused DamageReceivedCondition not to work and always return 0 (looks like it needs an internal LKI check). 2018-12-13 15:55:42 +03:00
Agetian
ec77e89516 - Fixed an issue with loading quest challenges from the wrong folder. 2018-12-13 13:25:10 +03:00
Michael Kamensky
8f10ff8016 Merge branch 'master' into 'master'
Restore the "move equipment" functionality for the AI

See merge request core-developers/forge!1216
2018-12-12 18:57:00 +00:00
Agetian
f09ec13428 - Restore the "move equipment" functionality for the AI 2018-12-12 21:54:14 +03:00
Michael Kamensky
32386f67fa Merge branch 'ai-damage-chaining' into 'master'
Basic AI damage chaining

See merge request core-developers/forge!1211
2018-12-12 18:31:00 +00:00
Michael Kamensky
c89996ad94 Merge branch 'clone-effect-flip' into 'master'
Prevent a NPE on cloning a flipped card.

Closes #779

See merge request core-developers/forge!1215
2018-12-12 18:30:43 +00:00
Agetian
f45bccf71d - chainDmg not null is already ensured on top 2018-12-12 20:40:26 +03:00
Agetian
adec6c720f - Removed a superfluous isAI check, handled inside getDamagingSAToChain (one more). 2018-12-12 20:39:49 +03:00
Agetian
9bcdfad726 - Removed a superfluous isAI check, handled inside getDamagingSAToChain. 2018-12-12 20:37:25 +03:00
Agetian
5db2dd74b8 - Prevent a NPE on cloning a flipped card, ensure that the original image is loaded after cloning if the card is not flipped. 2018-12-12 20:19:15 +03:00
Agetian
b718365a39 - getDamagingSAToChain should only work for actual AI players, not when simulating human decisions. 2018-12-12 19:42:28 +03:00
Agetian
7a7b461e0d - Set the damage chaining defaults for the AI profiles. 2018-12-12 14:41:39 +03:00
Agetian
7b6ad78ba2 - Don't use damage chaining for simulated AI. 2018-12-12 12:43:21 +03:00
Agetian
709e04d9ad - Don't try to chain a pump spell to a damage spell targeting a player. 2018-12-12 10:08:00 +03:00