Commit Graph

4168 Commits

Author SHA1 Message Date
Agetian
dd2f93f4d5 - Patch up "stunned" in CreatureEvaluator (#3914) 2023-10-16 18:45:49 +02:00
Agetian
29b1d1ee1b Improve AI logic for City of Brass. (#3902)
* - Improve AI logic for City of Brass.

* - Better implementation that avoids a specialized hint and checks the trigger.
2023-10-15 08:57:57 +03:00
tool4EvEr
73c32df030 Clean up 2023-10-14 22:19:18 +02:00
Northmoc
25e89b04a3 day_of_the_moon.txt and support/refactor in NameCard (#3890)
* day_of_the_moon.txt and support/refactor
2023-10-14 09:46:22 +00:00
Agetian
0fe758450c - Improve canPlayAI implementation. 2023-10-12 07:31:03 -04:00
Agetian
51db2ae822 - Simplify canPlayAI implementation. 2023-10-12 07:31:03 -04:00
Agetian
2cb6a23e87 - Use isNegativeCounter. 2023-10-12 07:31:03 -04:00
Agetian
a5e20fb3a0 - Add simple AI framework for AF TimeTravel.
- Add Wibbly-Wobbly, Timey-Wimey.
2023-10-12 07:31:03 -04:00
tool4EvEr
6460dd44f7 Revert "Modify main game loop for use with basic AI unit tests (#3669)"
This reverts commit 1e116be3b0.
2023-10-07 15:17:57 +02:00
tool4EvEr
9e64f374bf Clean up 2023-10-05 19:10:58 +02:00
asvitkine
685cd2583f Fix SimAI not respecting Pithing Needle effects.
Before this change, Sim AI would just choose effects that should be blocked by Pithing Needle (and similar cards). Adds a test.
2023-10-04 15:15:10 -04:00
Anthony Calosa
c3e632852f add AILogic for Tough Cookie 2023-09-30 20:56:25 +08:00
Agetian
df56c818b3 - Improve AI support for Ent's Fury. (#3825) 2023-09-28 16:38:05 +03:00
tool4ever
868190af25 Some fixes (#3817)
* Fix how trigger evaluates the event

* Support XMaxLimit

* Clean up

---------

Co-authored-by: tool4EvEr <tool4EvEr@192.168.0.60>
2023-09-26 23:24:26 +03:00
marthinwurer
1e116be3b0 Modify main game loop for use with basic AI unit tests (#3669)
* Added game fuzzing test

* modified doc wording

* instrumentation for land order fixes

* progress

* new tests

* even more progress

* split out main game loop stuff

* some cleanup

* setting up the tapland tests

* some cleanup

* fixed ensure lands are playable

* Moved packages

* progress

* cleanup

* cleanup fuzz test

* cleanup imports

* fixed phase priority

* made max loop count constant

* made simulation test extend ai test

* more cleanup

* Update SimulationTest.java

remove unused imports

---------

Co-authored-by: Hans Mackowiak <hanmac@gmx.de>
2023-09-21 12:22:34 -04:00
GitHub Actions
72ddfd0be6 [maven-release-plugin] prepare for next development iteration 2023-09-20 22:00:51 -04:00
GitHub Actions
c629080a8d [maven-release-plugin] prepare release forge-1.6.58 2023-09-20 22:00:51 -04:00
tool4EvEr
f33bf7989d clean up 2023-09-19 17:17:56 +02:00
TRT
1ee4bd5926 Cascade fix 2023-09-11 08:38:03 +02:00
tool4ever
e233129975 Support for Throne of Eldraine (#3757)
* Fix scripts

* Fix Reflect

* Refactor mana restrictions from SA

* Update scripts

* AltCost fix

* Fix Muraganda Petroglyphs affecting Security Rhox

---------

Co-authored-by: tool4EvEr <tool4EvEr@192.168.0.60>
2023-09-11 06:04:13 +03:00
Hans Mackowiak
282d9860c7 Mana convert refactor (#3718)
* ~ cleanup applyManaColorConversion with only one Parameter

* remove ManaConvert Keyword and Vizier of the Menagerie

* remove other ManaConvert Keyword

* ~ fix scripts

* ManaConvention on GainedActivatedAbility

* ~ fix scripts

* rework Celestial Dawn and nonWhite restriction

* * update AI to apply matrix instead of hardcoded ignoreType and ignoreColor

* store Mana Matrix in PaymentDecision instead of CostPartMana

* ~ move Mana Matrix to more methods

* ManaConversionMatrix: add for Unless and Optional Cost

* Clean up AI

* Remove some calls that should be unneeded but make debugging annoying

* After paying with mana ability the old matrix should apply again

* Move matrix restore because AI needs it too

* Only human needs extra matrix on effect payments

* fix checks

* Update ComputerUtilMana.java

more !effect checks

* Story by CardPlayOption

* Fix North Star

* Remove obsolete code

* ~ ignoreType > ignoreColor

---------

Co-authored-by: tool4EvEr <tool4EvEr@192.168.0.60>
2023-09-08 18:09:03 +03:00
kevlahnota
a0af43c4b0 Merge pull request #3738 from tool4ever/lastchapter
Fix LastChapter logic
2023-09-06 14:28:08 +08:00
tool4EvEr
96654b6f64 targeting fix 2023-09-06 08:05:52 +02:00
Agetian
2fc004530d AI improvement for Grist, the Hunger Tide + puzzle PS_LTR3. (#3737)
* - AI improvement for Grist, the Hunger Tide.

* - Added puzzle PS_LTR3.
2023-09-05 22:42:51 +03:00
tool4EvEr
303ed50322 prune hidden information 2023-09-03 08:29:45 +02:00
tool4EvEr
cab8c54963 Clean up 2023-09-03 08:28:26 +02:00
tool4EvEr
08c258de51 Clean up 2023-09-01 12:17:50 +02:00
Hans Mackowiak
d430e1919a TriggerTaps: adds Cause for Tapping by ReplacementEffect (#3665)
* TriggerTaps: adds Cause for Tapping by ReplacementEffect

* TriggerTaps handle who taps it differently

* Cost: add payer to doPayment

* TapEffect: add Tapper

* Tag scripts

---------

Co-authored-by: tool4EvEr <tool4EvEr@192.168.0.60>
2023-08-28 17:44:53 +03:00
Hans Mackowiak
f2601a3e25 Role: add StateBasedAction (#3695)
* Role: add StateBasedAction

* Role: still unattach first

* ~ update scripts

* Basic role AI

---------

Co-authored-by: TRT <>
2023-08-28 15:13:37 +03:00
tool4ever
9544d2073e Flash fix (#3704)
Co-authored-by: tool4EvEr <tool4EvEr@192.168.0.60>
2023-08-27 15:05:50 +03:00
tool4ever
2025487c34 Fix getTotalPreventionShieldAmount (#3654)
* Fix scripts

* Fix damage prevention display

* Optimize attachment tracking for netplay

* Phasing fix

* Fix NPE

* Tweak logic order

* Clean up

* Fix scripts

* Clean up

* Fix FailedToTarget

---------

Co-authored-by: TRT <>
2023-08-23 11:34:50 +03:00
friarsol
0c1dd04bc1 Fix unreusable resources being reduced in preference 2023-08-20 18:39:05 -04:00
friarsol
49df5a9993 - AI: Reduce priority of mana sources that make you sacrifice other things 2023-08-20 18:39:05 -04:00
tool4ever
78ed8480cb Update scripts (#3644)
* Improve performance

* Fix KW

---------

Co-authored-by: TRT <>
2023-08-16 18:48:36 +03:00
TRT
0f002e6526 Fix AI never casting paired commanders 2023-08-14 21:43:47 -04:00
kevlahnota
69adfc6e46 Update AiController.java
prevent crash
- closes #3626
2023-08-14 18:37:41 +08:00
friarsol
2ef2526d56 Removing invalid toxic check 2023-08-12 14:58:13 -04:00
friarsol
6a99aee1b1 Add more AI for TurboFog cards 2023-08-12 14:58:13 -04:00
friarsol
efc3c2c159 Add ai usage for Maze of Ith 2023-08-12 14:58:13 -04:00
tool4ever
a2f7f512ee Logic for Tyvar the Bellicose (#3620)
* Fix Rocco

* Tyvar logic

---------

Co-authored-by: TRT <>
2023-08-11 22:14:16 +03:00
kevlahnota
b172fad272 Merge pull request #3606 from Northmoc/placer
improve Placer logic for some PutCounterAll cards
2023-08-06 18:09:19 +08:00
Northmoc
f534653469 Endless Whispers and similar (#3599)
* endless_whispers.txt no Effect

* massacre_girl.txt trig desc

* quenchable_fire.txt

* sabertooth_cobra.txt

* quenchable_fire.txt and support

* allow human to interact with abilities it can activate on effects it doesn't own

* fixup other cards

* rollback unneeded

* cleanup unused import

* Update sabertooth_cobra.txt

* Fix AI ignoring some possibilities

---------

Co-authored-by: tool4ever <therealtoolkit@hotmail.com>
Co-authored-by: TRT <>
2023-08-06 07:28:50 +03:00
Northmoc
27e9fd58bf noble_heritage.txt little AI 2023-08-05 18:17:55 -04:00
Northmoc
83bd1d3312 improve Placer logic for some PutCounterAll cards 2023-08-05 18:16:12 -04:00
tool4EvEr
5db7702d8e DigUntil is sequential 2023-07-29 21:18:52 +02:00
Hans Mackowiak
c15542f949 Regenerate rework (#3385)
* CardFactoryUtil: remove false keyword

* CardFactoryUtil: remove wrong regenerate Keyword

* CantRegenerate as Static

* ~small fixes

* RegenerationAbility as SubAbility to the Regeneration Effect

* Card: use shieldCount instead of Collection

* remove deprecated trigger

* fix AiLogic vs AILogic

* EffectAi: start of logic for CantRegenerate

* EffectAi: try to do StackPeek for CantRegenerate

* ~ use wither damage

* AI prediction against Damage

* CantRegenerate: begin logic against Combat Damage

* AnimateAi: start logic for Bone Shaman

* fix Runesword
2023-07-29 10:58:14 +03:00
tool4EvEr
a2c1853536 Clean up even more 2023-07-28 21:38:16 +02:00
tool4EvEr
70de03381c Clean up 2023-07-28 19:56:08 +02:00
tool4ever
5174c42d98 Remove some obsolete code (#3540) 2023-07-28 10:17:40 +00:00
Northmoc
276fc693a8 MAT: tyvar_the_bellicose.txt + support (#3040) 2023-07-27 07:43:15 +00:00