Commit Graph

4208 Commits

Author SHA1 Message Date
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
GitHub Actions
0b6e5f9983 [maven-release-plugin] prepare for next development iteration 2023-07-26 22:00:13 -04:00
GitHub Actions
294b8c445b [maven-release-plugin] prepare release forge-1.6.57 2023-07-26 22:00:13 -04:00
tool4ever
3b832e02fc Clean up (#3536) 2023-07-26 19:21:04 +02:00
Chris H
abb2ff3cdf Ring tempts you (#3453)
* Ring tempts you WIP

* add ring triggers

* Update RingTemptsYouEffect.java

* Add files via upload

* Update TriggerRingbearerChosen.java

* Update token-images.txt

* Update TrackableProperty.java

* Update CardView.java

* Update CardRenderer.java

* Update RingTemptsYouEffect.java

fix crash

* Update Card.java

* Update CardView.java

* Update TrackableProperty.java

* Update StaticAbilityContinuous.java

* Update StaticEffect.java

* Update RingTemptsYouEffect.java

* update sprite_manaicons.png

* Update FSkinProp.java

* Update FSkinImage.java

* Update CardFaceSymbols.java

* Update CardRenderer.java

* update trigger

* update desktop symbol, add aragorn company leader

* update cleanup, add bilbo, add birthday escape

* update cleanup

* add 3 cards

* add five cards

* add two cards

* update aragorn,update bombadil, add two cards

* add ten cards

* Update horses_of_the_bruinen.txt

* add dunedain rangers + cleanup

* Update gollums_bite.txt

* update cleanup

* add six cards

* delete unnecessary file

* Update rangers_firebrand.txt

* add two cards, add RingTemptedYou playerproperty

* update frodo, add three cards

* update sauron, samwise, add two cards

* Update sauron_the_dark_lord.txt

* update validplayer

* add six cards

* update smeagol

* update sauron ransom two piles

* add four cards

* add three cards

* update card scripts

* Update war_of_the_last_alliance.txt

* update scripts, update ringbearer

* update CardDetailUtil

* remove unused param

* Update affected

* remove unnecesary variables

* update

* update scripts

* update RingTemptsYouEffect

* fix cantblockby RingTemptsYouEffect.java

* The Ring: use numTemptYou for RingLevel

* Update dunedain_rangers.txt

* Update jaces_defeat.txt

* update lord of the nazgul

* fix theRing CardView

* update ringEffect, update translation

* update translation

* update gamestate

* replace switch with if else

* fix effect

* update gamestate, translation

* update restartgameeffect, remove unneeded clearRingBearer

---------

Co-authored-by: Anthony Calosa <anthonycalosa@gmail.com>
Co-authored-by: tool4ever <therealtoolkit@hotmail.com>
Co-authored-by: Hans Mackowiak <hanmac@gmx.de>
2023-07-26 20:07:41 +03:00
tool4ever
8f1d8ce265 Remove special case of StackInstances sharing the same SpellAbility object (#3490)
* Each activated ability needs its own instance

* Don't need LKI since each SA is unique

* Clean default param

* Fix Dawnglow Infusion

* Fix ability counting

* Avoid color words

* Fix AI

* Be a bit smarter with copying

---------

Co-authored-by: tool4EvEr <tool4EvEr@192.168.0.59>
2023-07-24 10:19:15 +03:00
Hans Mackowiak
c96af2b590 Card: Wither damage as property, use Static for Everlasting Torment (#3502)
* Card: Wither damage as property, use Static for Everlasting Torment

* Update Card.java
2023-07-21 09:57:25 +03:00
tool4ever
5b65fc8232 Goldberry support (#3354)
* Goldberry support

* Logic fix

* Create goldberry_river_daughter.txt

* Clean up

* Clean up

* Fix any+any counter

* Support Chandra, Legacy of Fire

---------

Co-authored-by: tool4EvEr <tool4EvEr@192.168.0.59>
Co-authored-by: Simisays <67333662+Simisays@users.noreply.github.com>
2023-07-20 06:11:27 +03:00
Anthony Calosa
638c8f2965 Merge pull request #3467 from tool4ever/dcfix
Fix Doubling Cube producing C out of nothing if floating colors have gap
2023-07-12 19:18:07 +08:00
tool4EvEr
40c93acbaa Fix Doubling Cube producing C out of nothing if floating colors have gap 2023-07-12 12:05:22 +02:00
tool4ever
7075a3e720 Banding fix (#3464)
Co-authored-by: tool4EvEr <tool4EvEr@192.168.0.59>
2023-07-12 06:28:25 +03:00