Commit Graph

4208 Commits

Author SHA1 Message Date
Jetz72
8f77b1e3ce GamePieceType and isCollectible (#5889)
* GamePieceType and isCollectible.
Can no longer ante conjured cards.
Helper set of ZoneTypes that are part of the command zone.

* Faster GamePieceType evaluation

---------

Co-authored-by: Jetz <Jetz722@gmail.com>
2024-08-12 09:35:16 +02:00
tool4ever
e93b130a36 Merge pull request #5865 from tool4ever/uphill
Fix Uphill Battle
2024-08-11 20:26:46 +02:00
Jetz
f7d0929ea0 Cleanup - More Lambdas to method references 2024-08-10 12:54:16 -04:00
Jetz
bdc890c32c Cleanup - Collections.sort -> list.sort 2024-08-10 12:43:38 -04:00
Jetz
0ee46ff6ef Cleanup - .equals("") -> .isEmpty() 2024-08-10 12:28:18 -04:00
Jetz
158ff30ff8 Cleanup - Missing break from loop with no further consequences 2024-08-10 10:19:01 -04:00
Hans Mackowiak
0b1acbd71d Update AiController.java (#5863)
* Update AiController.java

Add RepParams for AddCounter

* Update check with new required params

---------

Co-authored-by: TRT <>
2024-08-07 07:17:46 +02:00
TRT
0a773c30bc Fix Uphill Battle 2024-08-06 21:11:22 +02:00
Hans Mackowiak
140791ead7 Apply ReplaceAddCounter with ReplaceMoved for ETB Counter (#5791)
* Apply ReplaceAddCounter with ReplaceMoved for ETB Counter

* ~ fix EffectOnly for ETB Counters
2024-08-05 22:40:47 +02:00
Renato Filipe Vidal Santos
b15d71748e ETB update: Java code: AiController.java 2024-08-04 20:52:10 +02:00
tool4ever
51c78e952a Chief Engineer can't convoke for snow or colorless shards (#5760)
Co-authored-by: tool4EvEr <tool4EvEr@192.168.0.60>
2024-08-02 10:07:59 +02:00
Jetz72
d62dfe1c8c Miscallaneous Cleanup Part 2 - Lambdas and Method References (#5737)
* Cleanup - Unnecessary Boxing

* Cleanup - Unnecessary Unboxing

* Cleanup - For-Each Loops

* Cleanup - `indexOf != -1` -> `contains`

* Cleanup - Merge identical catch blocks

* Cleanup - Try-with-resources

* Cleanup - System.lineSeparator

* Cleanup - Reference types to primitives
Some loops over Integers were switched to IntStreams to hopefully cut down on overall boxing.

* Cleanup - Manually filling and copying arrays

* Remove unused imports

* Switch a lambda to a method reference

* Cleanup - CardPredicate Aggregates to method references

* Cleanup - Other static functions to method references

* Cleanup - Ambiguous class reference
Unclear when or how this happened...

* Cleanup - Anonymous -> Method reference

* Cleanup - Anonymous -> Lambda

* Cleanup - Comparator helper methods

* Cleanup - final method in final class

* Cleanup - private final methods

* Remove unused imports

* Convert a couple more lambdas to comparators.

* Simplify creature type list comparison.

---------

Co-authored-by: Jetz <Jetz722@gmail.com>
Co-authored-by: tool4ever <therealtoolkit@hotmail.com>
2024-08-02 08:23:58 +03:00
Agetian
042887e4e1 - Move over MadSarkhanDragon logic, tweak DamageEachAi logic for Sarkhan as well 2024-08-01 11:53:54 +02:00
tool4ever
31275df288 Fix casting Chaotic Strike when no attacker gets declared (#5745) 2024-07-31 20:12:04 +00:00
Hans Mackowiak
7fb96c5f18 Pawprint (#5693)
* Pawprint
---------

Co-authored-by: Agetian <stavdev@mail.ru>
2024-07-29 16:32:46 +02:00
Jetz72
3968c7e197 Miscallaneous Cleanup (#5703)
* Cleanup - Unnecessary Boxing

* Cleanup - Unnecessary Unboxing

* Cleanup - For-Each Loops

* Cleanup - `indexOf != -1` -> `contains`

* Cleanup - Merge identical catch blocks

* Cleanup - Try-with-resources

* Cleanup - System.lineSeparator

* Cleanup - Reference types to primitives
Some loops over Integers were switched to IntStreams to hopefully cut down on overall boxing.

* Cleanup - Manually filling and copying arrays

* Remove unused imports

* Switch a lambda to a method reference

---------

Co-authored-by: Jetz <Jetz722@gmail.com>
2024-07-29 17:23:43 +03:00
Chris H
b143aaf141 Initial Gift development (#5691)
* Initial Gift development

* Update blooming_blast.txt

* Add Kitnap

* Add gift trigger

* Display fixes

---------

Co-authored-by: tool4ever <therealtoolkit@hotmail.com>
Co-authored-by: tool4EvEr <tool4EvEr@192.168.0.60>
2024-07-27 14:45:36 +03:00
tool4ever
76efa1be0d Improve anchor word handling (#5673)
* Support for Nowhere to Run
2024-07-22 20:07:36 +00:00
Hans Mackowiak
95ae25e972 Add Forage Cost (#5633)
* Add Forage Cost

* ~ fix PaymentDecision for now

* TriggerForage: add Forage trigger

* CostForage: Add First Part of Human Sacrifice Food Logic

* Human ready, first Forage card

* AiCostDecision: Basic AI for Forage
2024-07-20 17:25:03 +03:00
Agetian
d929dcaa28 - Add basic AI for The Capitoline Triad. (#5623) 2024-07-17 15:54:19 +03:00
Renato Filipe Vidal Santos
bb9c6dfd76 July 2024 cleanup: code (#5536)
* Update ChooseGenericEffectAi.java

* Update CardTranslation.java

* Update AltWinAchievements.java

* Update altwin-achievements.txt

* Update EffectEffect.java
2024-07-07 13:37:01 +03:00
tool4ever
897741ba0a Fix LKI entering battlefield (#5543)
Co-authored-by: tool4EvEr <tool4EvEr@192.168.0.60>
2024-07-07 13:36:29 +03:00
Chris H
81fa38cc27 If Commander going to hand, don't replace to command zone (#5504) 2024-07-03 16:46:07 +03:00
Chris H
b03b3517ea Backup Plan with hot swappable Input 2024-07-01 23:01:04 -04:00
GitHub Actions
64b4b58399 [maven-release-plugin] prepare for next development iteration 2024-06-28 13:06:40 -04:00
GitHub Actions
463e4b1267 [maven-release-plugin] prepare release forge-1.6.63 2024-06-28 13:06:40 -04:00
Hans Mackowiak
d5ab4be451 Invasion Plans using Timestamp instead (#5458)
* Invasion Plans using ReplacementEffect instead

* StaticAbilityContinuous: use DeclaresAttackers and DeclaresBlockers with ts

* update scripts

* Update master_warcraft.txt

* Player: update DeclaresAttacker and DeclaresBlocker with getDefinedPlayers

---------

Co-authored-by: tool4ever <therealtoolkit@hotmail.com>
2024-06-24 14:48:20 +03:00
Agetian
e4f67afb82 - Fixed AI ignoring Mogg Bombers damage trigger. (#5456) 2024-06-23 10:20:52 +03:00
TRT
2fb300eeb6 Fix Wonderscape Sage 2024-06-05 11:37:30 +02:00
Chris H
66bd484f27 Add Animus of Predation 2024-06-04 12:46:26 -04:00
tool4ever
5e981fbee8 StaticAbilityAlternativeCost: next round of work (#5298) 2024-06-03 12:49:24 +00:00
tool4ever
2ddcaab59d Some fixes (#5320)
Co-authored-by: tool4EvEr <tool4EvEr@192.168.0.60>
2024-05-30 08:32:08 +03:00
Northmoc
54e369917a YOTJ Heist (#5304) 2024-05-29 17:18:32 +03:00
tool4ever
2d79cd761b Update ChooseGenericEffectAi.java 2024-05-21 14:22:32 +02:00
Agetian
a06b29ccd6 Comment tweak (#5270)
* - Basic AI logic for Tireless Provisioner.

* - Comment tweak
2024-05-21 14:34:43 +03:00
Agetian
f10330c5b7 - Basic AI logic for Tireless Provisioner. (#5269) 2024-05-21 14:32:23 +03:00
tool4ever
2194c1af84 Clean params (#5260) 2024-05-19 09:26:19 +00:00
Hans Mackowiak
c71c2c25e1 TokenAi: do not create Token that can't block in Response 2024-05-18 05:59:52 +02:00
Hans Mackowiak
3309a48710 AI: Basic Logic for Destroy RE 2024-05-16 20:19:07 +02:00
tool4ever
87988eede7 Effect cleanup and fixes (#5247)
* Fix script ordering

* Remove obsolete code

* Fix Zethi copies not entering the stack sequentially
2024-05-16 15:34:42 +02:00
Paul Hammerton
c5b275c906 Merge pull request #5233 from tool4ever/fix13
Refactor Maestros Ascendancy
2024-05-14 09:23:42 +01:00
Chris H
e317ffbe4c Fix plague of vermin crash 2024-05-13 23:21:25 -04:00
tool4EvEr
1ff32b17e2 AI hints 2024-05-13 20:27:04 +02:00
tool4ever
f60718b7b5 Some fixes (#5219)
Co-authored-by: tool4EvEr <tool4EvEr@192.168.0.60>
2024-05-08 22:06:04 +03:00
tool4ever
96c517c49f Fix AI failing to pay Spree-like charm because it didn't see final cost (#5208)
Co-authored-by: tool4EvEr <tool4EvEr@192.168.0.60>
2024-05-06 20:31:45 +03:00
tool4ever
021cf3efc4 Clean up some obsolete payment checks (#5190) 2024-05-04 19:42:07 +00:00
GitHub Actions
8a8c77c4ae [maven-release-plugin] prepare for next development iteration 2024-04-25 19:29:38 -04:00
GitHub Actions
a4591fe3ac [maven-release-plugin] prepare release forge-1.6.62 2024-04-25 19:29:38 -04:00
Agetian
958a850add - Basic AI support. 2024-04-25 07:40:44 -04:00
Agetian
a9c97aac2c AI Sideboarding Mode toggle as a Preferences option (#5136)
* - Initial commit for the AI sideboarding mode toggle.

* - Tweak the parameter value to correspond to the enum.

* - Consistency.
2024-04-25 14:19:47 +03:00