Agetian
9aec30e0dc
- FogAi update from Seravy (updated for style consistency).
2018-04-30 09:36:31 +03:00
Agetian
5049b7885a
- FogAi update from Seravy (updated for style consistency).
2018-04-30 09:32:24 +03:00
Agetian
9a206ff338
- Some style and logic fixes.
2018-04-30 08:49:20 +03:00
Agetian
4f487f3009
Merge branch 'FlickeringWard' of git.cardforge.org:Seravy/forge into seravy-ai-fixes
2018-04-30 08:36:46 +03:00
Michael Kamensky
d7a55e4c7d
Merge branch 'ProtectionSelf' into 'master'
...
AI will use non-targeted Protection abilities.
See merge request core-developers/forge!245
2018-04-30 05:32:22 +00:00
Meerkov
e421a32475
Style fixes for discussion.
...
(cherry picked from commit 3ae95447a2a91a36bd1772649592ef72ffb344f8)
2018-04-30 02:07:25 +00:00
Sol
ab2d284dee
Merge branch 'temp_dev5' into 'master'
...
Remove unusual "reproducable" attack declaration from AI
See merge request core-developers/forge!498
2018-04-30 00:16:30 +00:00
Chris H
758dbb689a
When playing non-team matches, display Player name as winner in Game Recap screen
2018-04-28 23:22:23 -04:00
Meerkov
c6cab341ed
Organize some imports.
...
(cherry picked from commit 70cf1ad3d0a6449d67b8ed84c9ebf0da4fd13547)
2018-04-28 17:01:54 +00:00
Meerkov
bd097888a3
Allows running tests using a seeded RNG.
...
Running the same game twice now works! There may be issues I haven't found with certain AI behaviors around mechanics I didn't use in my tests.
(cherry picked from commit 194b47c1ad61c8f1efb6bce8af2bb10d1fa8f6c3)
2018-04-28 17:00:54 +00:00
Meerkov
eae90194cb
AiAttackController no longer has reproducable attack thoughts.
...
I don't see why we would want this to be seeded with the same number. I think it's incorrect thinking so I'm removing it.
(cherry picked from commit 2881effd577abe9500b8fa3a5699067b0c3541f3)
2018-04-28 16:55:05 +00:00
Meerkov
0a717bb9be
Fix more RNG.
...
(cherry picked from commit 61dd5661a728e08ae14911a3518cd1e10d574037)
2018-04-28 16:54:53 +00:00
Agetian
881572cba5
- AI: Only consider the "prevent all combat damage" pump KW useful when inside combat and blocking/blocked (e.g. Blinding Powder).
2018-04-28 15:57:47 +03:00
Michael Kamensky
a4fa7cb5ee
Merge branch 'assorted-fixes' into 'master'
...
Fixed Exalted and possibly other triggers with overwriting ability crashing the AI
See merge request core-developers/forge!481
2018-04-26 04:35:25 +00:00
Agetian
6ea52c93fe
- Fixed Exalted and possibly other triggers with overwriting ability crashing the trigger checking code in getPossibleNonCombatDamage.
2018-04-26 07:34:14 +03:00
austinio7116
acef14aadc
Merge branch 'fix_outcome_memory_leak' into 'master'
...
Memory leak within a match
See merge request core-developers/forge!458
2018-04-25 22:35:02 +00:00
Agetian
4ae6d9030a
- Fixed the AI not targeting creatures with DealDamage anymore (e.g. Walking Ballista).
2018-04-24 12:01:13 +03:00
Agetian
c97353cb3d
- Filter out permanent cards in the AI's hand when looking for possible non-combat damage in combat (the logic is too indirect and will result in the AI making mistakes anyway, e.g. due to inability to pay for both the permanent and the ability and guarantee a win).
2018-04-24 11:53:57 +03:00
Agetian
71b2f2fa26
- NPE prevention.
2018-04-24 10:11:43 +03:00
Agetian
3c8915b002
- AI should not count permanent cards in hand which it can't cast at the moment as possible sources of noncombat damage when predicting an assault attack.
...
- Some AI prediction for LoseLife triggers when predicting noncombat damage
2018-04-24 10:07:59 +03:00
Chris H
ade17c5eaf
Fix Memory leak within a match
2018-04-22 15:18:22 -04:00
Agetian
28998e97ab
- MoJhoSto: some more profile-based configurability for AI strategy.
2018-04-21 23:15:26 +03:00
Agetian
2f8fd5c359
- Revert a change in GameSimulator to make it work and prevent tests from failing (may require further attention later).
2018-04-20 23:02:38 +03:00
Hanmac
04254fcb00
GameSimulator: use canPlay & resolve for PlayLandAbility
2018-04-20 13:06:13 +02:00
Agetian
c470e0cdcb
- MoJhoSto: added an option to control the number of lands at which the AI begins to consider activating Jhoira.
2018-04-20 09:18:03 +03:00
Agetian
226b0bee68
- MoJhoSto: don't activate Jhoira too early since there are generally few good potential targets.
2018-04-20 08:16:07 +03:00
Agetian
d073fb9417
- Some improvements to the Jhoira AI algorithm in MoJhoSto: don't rely on an AI logic (since it's mode-specific).
...
- Fixed a crash related to the AI playing MoJhoSto.
2018-04-20 07:35:14 +03:00
Agetian
d623119eac
- MoJhoSto: somewhat more varied AI strategy when deciding between Momir and Jhoira. Also, don't spam Jhoira instant copying ability all the time.
2018-04-20 07:35:14 +03:00
Michael Kamensky
5844de9b3c
Merge branch 'assorted-fixes' into 'master'
...
Fixed the AI hanging the game in AF ChooseSource in corner cases
See merge request core-developers/forge!440
2018-04-20 04:33:41 +00:00
Agetian
a1a7390d80
- Fixed the AI hanging the game when trying to choose a source in absence of a creature in combat on the opponent's battlefield.
2018-04-20 07:13:25 +03:00
swordshine
b5a3ac6163
Merge branch 'ai-torgaar' into 'master'
...
Basic AI for Torgaar (currently won't sac anything as a part of cost payment)
See merge request core-developers/forge!425
2018-04-19 07:06:56 +00:00
Michael Kamensky
3bb69e356c
Merge branch 'healinggrace' into 'master'
...
ReplaceDamage: new Effect for reducing Damage inside ReplacementEffect
Closes #268
See merge request core-developers/forge!427
2018-04-18 18:20:17 +00:00
Michael Kamensky
e5d436c295
Merge branch 'master' into 'master'
...
Memory Leaks, Unused code, compiler warnings, etc.
See merge request core-developers/forge!423
2018-04-18 15:40:37 +00:00
Hanmac
211157c0d0
ReplaceDamage: new Effect for reducing Damage inside ReplacementEffect
2018-04-18 17:24:59 +02:00
Agetian
dcacdf65ce
- Reduced the life threshold for healing self with Torgaar.
2018-04-18 17:14:55 +03:00
Agetian
4b61620538
- Somewhat better LifeSetAi logic for Torgaar which accounts for possible different starting life.
2018-04-18 17:11:02 +03:00
Agetian
8b0a5e886e
- Basic AI for Torgaar (currently won't sac anything as a part of cost payment)
...
- Fixed references in the script for Torgaar.
2018-04-18 17:11:02 +03:00
Michael Kamensky
1045204fb7
Merge branch 'ai-give-lands-to-opp' into 'master'
...
DigAi prefers to choose lands for opp's Karn, Scion of Urza +1 and other similar abilities.
Closes #508
See merge request core-developers/forge!413
2018-04-18 14:09:15 +00:00
Agetian
7e1226bc3d
- Refactored chooseSingleCard in DigAi.
2018-04-18 17:08:12 +03:00
Meerkov
db3e4d9e83
Fixes ~50 compiler warnings for unused libraries.
2018-04-17 16:06:00 -07:00
Meerkov
338ba5afdc
Fixes some compile errors in Eclipse due to empty folders.
2018-04-17 15:50:53 -07:00
Michael Kamensky
f51b80739a
Merge branch 'master' into 'master'
...
Re-merge request for RNG Changes etc
See merge request core-developers/forge!422
2018-04-17 15:35:05 +00:00
Michael Kamensky
d1eea7e7ba
Merge branch 'mayPlayLand' into 'master'
...
May play land
See merge request core-developers/forge!415
2018-04-17 14:54:04 +00:00
Hans Mackowiak
da50071765
AnimateAllAi: fixed doTriggerAi for mandatory
2018-04-17 11:28:08 +00:00
Michael Kamensky
1a5710c564
Merge branch 'ai-better-pw-damage' into 'master'
...
Better ranking system for damaging planeswalkers directly
See merge request core-developers/forge!414
2018-04-17 07:01:47 +00:00
Agetian
9650014506
- Pay costs for ultimate SA shouldn't be null, but better safe than sorry.
2018-04-17 09:59:22 +03:00
Hanmac
eda7fee2c6
AiController: fixed MayPlay for Land
2018-04-17 08:07:11 +02:00
Hanmac
79c9c914e2
LandAbility: do extra ability class, so it can use mayPlay
2018-04-17 08:07:11 +02:00
Meerkov
857f45f9ec
Updates AI code to use MyRandom directly.
...
This removes java.util.Random from lots of AI code, futher making it unlikely that developers will accidentally use "new Random()" instead of MyRandom class. This will make running AI experiments easier, because there will be exactly one class that controls the randomness.
2018-04-16 21:31:52 -07:00
Agetian
ae05e58a13
- Somewhat more explicit method name.
2018-04-16 22:18:33 +03:00