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
Blacksmith
0d375ecd93
[maven-release-plugin] prepare for next development iteration
2018-04-21 01:18:35 +00:00
Blacksmith
970f684345
[maven-release-plugin] prepare release forge-1.6.9
2018-04-21 01:18:32 +00: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
Meerkov
1cfb937490
Updates the project for Java 8.
...
Maps.newHashMap() was replaced with null in numerous locations. A null check is performed in the locations that read this value. This prevents unnecessary allocation of memory and fixes compiler errors.
"final" keyword added to RepeatEachEffect, which used local variables in non-local scope.
2018-04-16 18:26:15 -07:00
Agetian
ae05e58a13
- Somewhat more explicit method name.
2018-04-16 22:18:33 +03:00
Agetian
2c9b23fc6d
- Better ranking system for damaging planeswalkers directly (accounts for loyalty and closeness to ultimate for now).
2018-04-16 21:31:49 +03:00
Agetian
1fb559aedb
- Experimental: DigAi prefers to give lands to the opponent instead of functional cards e.g. for Karn, Scion of Urza.
2018-04-16 07:36:44 +03:00
Agetian
ffaf0eb8d5
- A better implementation of reckless attack prevention in AiAttackController.
2018-04-16 07:30:40 +03:00
swordshine
3344453253
Merge branch 'ai-careful-attack-effect' into 'master'
...
Cautiously configured AI should not chump attack recklessly with creatures that have AttackEffect/CombatEffect trying purely to trigger their effect.
See merge request core-developers/forge!411
2018-04-16 00:51:55 +00:00
swordshine
b60d0e057d
Merge branch 'ai-haste-detection' into 'master'
...
Improve the AI Haste detection from Command zone and opponent's Battlefield
See merge request core-developers/forge!410
2018-04-16 00:51:09 +00:00
Agetian
1bb5f10fad
- Better place for the defPower count.
2018-04-15 21:32:33 +03:00
Agetian
c0d65afde4
- Fixing an inadvertent comment change.
2018-04-15 21:12:58 +03:00
Agetian
e37ac89b88
- A somewhat better logic correction for attacking into dangerous blocks.
2018-04-15 21:11:05 +03:00
Agetian
cbd1ecec12
- AI should not attack recklessly with Kari Zev, Skyship Raider into certain death trying only to trigger its attack effect.
...
- AI SVar "DontChumpAttackForEffect" can probably be added to other cards with weak or temporary attack effects that are not worth wasting a card for.
2018-04-15 20:05:05 +03:00
Agetian
536dfb5f2d
- Attempting to improve Haste detection for the AI such that the AI properly casts creatures in main 1 when there's an Avatar or Emblem or something else giving Haste from the command zone, or if the opponent has something on the battlefield that gives Haste to AI's creatures as well (e.g. Mass Hysteria).
2018-04-15 18:29:48 +03:00