Commit Graph

2469 Commits

Author SHA1 Message Date
Hans Mackowiak
b6f023c57c - DiscardAi: find the first opponent that can discard to the effect, don't try to cast on players who have Tamiyo, Collector of Tales-like effect. 2019-04-16 05:05:13 +00:00
Hans Mackowiak
2617795e37 War: Proliferate: rework effect now put each counter type on it 2019-04-10 10:23:00 +00:00
Hanmac
94b2dfc282 Amass: better AI logic for token create 2019-04-10 08:13:22 +02:00
Agetian
d5c8aa765f - A little bit more AmassAi logic: check if the token will survive, also check if the counters will actually be placed on the Army. 2019-04-10 08:13:22 +02:00
Agetian
9d75d13be1 - AmassAi: check if a counter will be placed on the creature if the AI controls an Army. 2019-04-10 08:13:22 +02:00
Agetian
7025098797 - Use the newer checkApiLogic call for AmassAi, also override doTriggerAINoCost (basic for now, will always return true until checkApiLogic is improved). 2019-04-10 08:13:22 +02:00
Agetian
9157fa728b - Amass AI: basic implementation, currently just accepts and selects the best Army creature in play if available. To be improved. 2019-04-10 08:13:22 +02:00
Blacksmith
405cbd5ab3 [maven-release-plugin] prepare for next development iteration 2019-04-07 19:48:55 +00:00
Blacksmith
5b39be5fe9 [maven-release-plugin] prepare release forge-1.6.23 2019-04-07 19:48:50 +00:00
Agetian
7890420fb0 - Added puzzle PS_RNA8. 2019-03-23 12:51:38 +03:00
Michael Kamensky
4f11fdc54f Merge branch 'limit-tap-own-turn-ai' into 'master'
Be more conservative when AI uses Tap Effects

See merge request core-developers/forge!1460
2019-03-16 05:30:28 +00:00
Chris H
6e9c35a978 Be more conservative when AI uses Tap Effects 2019-03-15 23:29:30 -04:00
Agetian
bc75331809 - sa.isMandatory(): always false for subabilities, no reason to check. 2019-03-14 18:32:25 +03:00
Agetian
1ebde0d976 - Fix LifeLoseAI not targeting for subabilities like Revenge. 2019-03-14 16:56:23 +03:00
Blacksmith
c3346c737e [maven-release-plugin] prepare for next development iteration 2019-03-10 13:57:44 +00:00
Blacksmith
db3c4d2d2f [maven-release-plugin] prepare release forge-1.6.22 2019-03-10 13:57:39 +00:00
Michael Kamensky
a820ba35f7 Fix the AI not considering Adapt P/T bonus correctly on attack 2019-03-08 09:52:13 +00:00
Agetian
063ebf2f70 - Added puzzle PS_RNA5. 2019-03-04 15:04:21 +03:00
Chris H
7a96ff2d4b Verify AI divided damage always fills out divided hash with proper values 2019-02-28 22:16:44 -05:00
Hanmac
0c2cfdce34 TokenInfo: fix if script is null 2019-02-23 13:47:40 +01:00
Chris H
ffda74101f Actually fix the crash in TokenAI.spawnToken for Attacking tokens 2019-02-22 21:50:35 -05:00
Michael Kamensky
98282acc60 Merge branch 'forums-bug-fix-attach-ai' into 'master'
Fix the thing Sol told me to

See merge request core-developers/forge!1412
2019-02-22 13:06:33 +00:00
KrazyTheFox
63ec3aae87 Fix the thing Sol told me to 2019-02-21 23:48:38 -05:00
Chris H
46670d50f3 Make sure Token AI loads TokenScript params before doing things with hte token
(cherry picked from commit 7d6a26184b4f852442730237826c94a16d739e5b)
2019-02-22 04:19:55 +00:00
Krazy
893cc3b08f Merge branch 'eclipse-cleanup' into 'master'
Eclipse cleanup

Closes #844

See merge request core-developers/forge!1399
2019-02-22 02:09:05 +00:00
Blacksmith
4ed17e1e16 [maven-release-plugin] prepare for next development iteration 2019-02-17 19:51:17 +00:00
Blacksmith
a70136c98c [maven-release-plugin] prepare release forge-1.6.21 2019-02-17 19:51:13 +00:00
Tim Scott
7f16a3dce2 Remove Eclipse-specific files and directories. Maven-based build configurations can be easily imported by (at least) Eclipse 2018-12. Hint: File > Import > Maven > Existing Maven Projects > Navigate to root forge folder.
Tweak base pom.xml to allow for error-free Eclipse compilation.
2019-02-14 21:26:23 -06:00
Evan Murawski
6f85b09ee4 Fix for CMC of split cards on the stack 2019-02-12 03:59:07 +00:00
Agetian
0a543ba35e - Don't try the Adapt logic if the card can't receive +1/+1 counters. 2019-02-08 20:17:36 +03:00
Agetian
1df44f8166 - Implement a simple combat Adapt logic. 2019-02-08 18:05:54 +03:00
Blacksmith
17dedb4bf4 [maven-release-plugin] prepare for next development iteration 2019-02-02 02:00:32 +00:00
Blacksmith
eb3fb9e1ce [maven-release-plugin] prepare release forge-1.6.20 2019-02-02 02:00:28 +00:00
Agetian
b29f390b62 - Fix the AI activating player setup for additional costs.
- Fix Thrilling Encore.
2019-01-31 16:39:49 +03:00
Agetian
3956a5b558 - Check for alternative additional costs in the AI routines (fixes AI not paying those costs for Final Payment and other cards). 2019-01-31 08:45:53 +03:00
Peter F. Patel-Schneider
f0c45cf814 Add visual chooser for two lists and use it for and/or dig 2019-01-20 21:23:16 -05:00
Peter F. Patel-Schneider
aff8d5ce01 Use chooseEntitiesForEffect for dig (except and/or dig) 2019-01-20 21:23:16 -05:00
Hanmac
20eba0fbd7 GameAction: add PlayerController:confirmMulliganScry 2019-01-13 22:01:22 +01:00
Peter F. Patel-Schneider
087495f5a0 Force AI to accept mulligan scry (otherwise there is a crash) 2019-01-13 10:24:40 -05:00
Hans Mackowiak
2640a509f9 Sunburst: rewrite using ETB counter 2019-01-13 14:10:44 +00:00
Michael Kamensky
7d0dbff8bc Merge branch 'master' into 'master'
Select cards from any Zone that can be shown and do arrangeForScry by popping up library and moving cards (in desktop GUI); Pass min/max card selections through to GUI

See merge request core-developers/forge!1260
2019-01-11 17:08:50 +00:00
Peter F. Patel-Schneider
69502dd97b Pass min/max through choice code so that user can't choose too many cards 2019-01-06 12:07:19 -05:00
Hanmac
4168ef0b0d Morph and Manifest are not to facedown anymore 2018-12-29 15:45:20 +01:00
Agetian
d4476cbd2b - Eliminated a redundant call to canPlay (already tested above). 2018-12-27 13:17:49 +03:00
Agetian
23d67ab0cf - Fixed the AI misplaying with Chamber Sentry. 2018-12-27 08:21:28 +03:00
Hans Mackowiak
af38b9b0e4 Update Trigger ChangesZoneAll
CardZoneTable: for Origin + Destination => CardCollection Tables

GameAction: Refactor

HumanPlay: use executePayment List if able
2018-12-25 18:13:44 +01:00
Agetian
660887794b - AI: Always prefer cheaper Spectacle costs (maybe a better way is possible?)
- AI: Prefer cheaper alternative mana costs in general (e.g. Omniscience).
2018-12-23 18:47:38 +01:00
Hanmac
de2c0aa073 Graft: moved AIGraftPreference 2018-12-23 18:47:38 +01:00
Hanmac
59e3995bae more AI for Counter Remove 2018-12-23 18:47:37 +01:00
Agetian
0123ba7819 - CountersRemoveAi: try to target Adapt creatures when removing +1/+1 counters mandatorily. 2018-12-23 18:47:37 +01:00