Commit Graph

2301 Commits

Author SHA1 Message Date
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
Agetian
6a288419bc - Attempting to improve the AI timing for Indestructible pump abilities. 2018-04-15 16:29:11 +03:00
Agetian
e28b683b89 - Correct some code style issues. 2018-04-13 21:43:31 +03:00
Agetian
82bd0325cf - Only process actual planeswalkers when choosing PW to damage. 2018-04-13 21:41:10 +03:00
Agetian
a88c8fba76 Merge remote-tracking branch 'origin/ai-dealdamage-to-planeswalker' into ai-dealdamage-to-planeswalker
# Conflicts:
#	forge-ai/src/main/java/forge/ai/ability/DamageDealAi.java
2018-04-13 21:31:00 +03:00
Agetian
9a02c5394d - Only process planeswalkers in dealDamageChooseTgtPW. 2018-04-13 21:25:29 +03:00
Agetian
ec09738321 - Added a TODO entry. 2018-04-13 21:24:33 +03:00
Agetian
2258506383 - Do not consider "indirect Planeswalker burn" when deliberately evaluating a planeswalker vs. a player target (the clause must be removed and set as default later when the planeswalker redirection rule is fully removed). 2018-04-13 21:24:33 +03:00
Agetian
f2af85597e - Fixed a typo in the PLANESWALKERS card predicate preset. 2018-04-13 21:24:33 +03:00
Agetian
e4e08609d9 - Only process planeswalkers in dealDamageChooseTgtPW. 2018-04-13 21:24:33 +03:00
Agetian
98e16b2e28 - DealDamageAi for triggered direct damage to planeswalkers. 2018-04-13 21:24:33 +03:00
Agetian
5af6197c9d - Initial implementation: for the AI, consider dealing damage to planeswalkers directly when applicable. 2018-04-13 21:24:33 +03:00
Agetian
b54403163d - Don't hold land drops till main 2 if playing with the Momir avatar (Momir Basic, MoJhoSto, etc.), otherwise it messes with the AI strategy for activating the avatar. 2018-04-12 08:41:56 +03:00
Agetian
a3dc449cc9 - Added a TODO entry. 2018-04-12 07:09:40 +03:00
Agetian
c20093280c - Do not consider "indirect Planeswalker burn" when deliberately evaluating a planeswalker vs. a player target (the clause must be removed and set as default later when the planeswalker redirection rule is fully removed). 2018-04-12 07:09:40 +03:00
Agetian
115720cc53 - Fixed a typo in the PLANESWALKERS card predicate preset. 2018-04-12 07:09:40 +03:00
Agetian
cd1c0cc526 - Only process planeswalkers in dealDamageChooseTgtPW. 2018-04-12 07:09:40 +03:00
Agetian
8c53689e17 - DealDamageAi for triggered direct damage to planeswalkers. 2018-04-12 07:09:40 +03:00
Agetian
d3fe888238 - Initial implementation: for the AI, consider dealing damage to planeswalkers directly when applicable. 2018-04-12 07:09:40 +03:00
swordshine
5a9dc2e09a - fixed issure 431 2018-04-11 16:44:33 +08:00
Hanmac
0bc12e744e CopyPerm: rewoke and update with Populate 2018-04-09 07:50:44 +02:00
Sol
c980d1c9d4 Merge branch 'sysout-cleanup' into 'master'
Sysout cleanup

See merge request core-developers/forge!286
2018-03-26 01:18:19 +00:00
Luke Way
b917d242ea Removed import 2018-03-25 09:04:39 -04:00
Luke Way
393eb54794 Removed debug statement entirely 2018-03-25 09:03:38 -04:00
Agetian
e23f807e63 - Clean up some code ugliness and fix a meaningless "unknown key: turn" error message in GameState. 2018-03-17 17:15:25 +03:00
Jamin W. Collins
a564f49381 allow human players to make mass select, sometimes
Signed-off-by: Jamin W. Collins <jamin.collins@gmail.com>
2018-03-14 20:32:25 -06:00
Hanmac
e9c02edfae DamageMap: use DamageMap for RepeatEach cards and similar 2018-03-14 07:15:02 +01:00
swordshine
6b9cd02de8 Merge branch 'AIHermitDruid' into 'master'
Improves AI logic for Hermit Druid

See merge request core-developers/forge!240
2018-03-13 04:09:27 +00:00
swordshine
7d4f334ec7 Merge branch 'fabricate-index-out-of-bounds' into 'master'
Fabricate: if the only option is to create servo tokens, just do that

See merge request core-developers/forge!285
2018-03-13 00:53:59 +00:00
Luke Way
ab39d632fd Convert sysout to game log 2018-03-12 13:10:03 -04:00
Luke Way
2c5a845d1a Fabricate: if the only option is to create servo tokens, just do that. Avoids IndexOutOfBoundsException. 2018-03-12 12:56:17 -04:00
Luke Way
86e81d3584 Make AI check energy when testing if it can pay for a mana ability 2018-03-12 12:52:47 -04:00
swordshine
795c071e64 - DOM: Added Evra, Halcyon Witness 2018-03-10 18:05:40 +08:00
Agetian
5bb9ac6fcd - More cleanup. 2018-02-20 08:02:31 +03:00
Agetian
fcc02ed600 Merge branch 'master' of git.cardforge.org:core-developers/forge into agetian-master 2018-02-20 07:55:13 +03:00
Agetian
83242e1fa9 - More cleanup. 2018-02-19 20:56:05 +03:00
Agetian
35fa4e7d8f - More cleanup. 2018-02-19 20:50:45 +03:00
Agetian
5022e96a48 - More cleanup. 2018-02-19 20:50:09 +03:00
Agetian
1779c8f84e - More cleanup and Price of Progress logic fix. 2018-02-19 20:15:12 +03:00
Seravy
b54e8461b8 Update AiController.java 2018-02-19 17:10:13 +00:00
Seravy
b3c8901aa1 Update AiController.java 2018-02-19 17:08:09 +00:00