Commit Graph

4225 Commits

Author SHA1 Message Date
Anthony Calosa
0854fbb947 update FCollection
Replace copyonwritearray to a custom implementation for concurrent modification exception. A little bit slower but supports iterator operations.
Added FCollectionTest
2024-11-19 22:32:37 +08:00
Anthony Calosa
5dc84a68c4 remove threadsafeIterable
The original purpose which is to create a copy of linkedlist to iterate to avoid concurrent modification, but we use copyonwritearray design and it is already thread safe and iteration while modification is handled internally.
2024-11-17 08:00:29 +08:00
kevlahnota
f6d2d420bb use anymatch 2024-11-17 07:14:33 +08:00
kevlahnota
6c847e00a2 refactor AiCardMemory 2024-11-17 06:49:50 +08:00
Anthony Calosa
548f97ae36 dumb check for AI 2024-11-15 21:56:15 +08:00
Anthony Calosa
7c35968dfd try to fix ConcurrentModificationException on FCollection -> addAll
cause: tapped.addAll(tappedForMana) on AiCardMemory
2024-11-15 21:19:15 +08:00
kevlahnota
d9c4c818b5 Merge branch 'master' into AI_ATTACK_TIMEOUT 2024-11-15 16:53:04 +08:00
tool4ever
bd18600385 Fix DontPayTapCostWithManaSources (#6578)
* Fix DontPayTapCostWithManaSources

* Foundations Update Bulletin (engine)

---------

Co-authored-by: tool4EvEr <tool4EvEr@192.168.0.60>
2024-11-15 09:01:08 +03:00
kevlahnota
a094149ce0 remove redundant check for can cast timing 2024-11-15 12:40:14 +08:00
kevlahnota
a988261377 check for stack only 2024-11-15 11:19:52 +08:00
Anthony Calosa
66c08ab58b try to fix unsupportedoperation 2024-11-15 06:54:22 +08:00
Anthony Calosa
8dbb648638 add user setting for AI Timeout 2024-11-14 22:06:23 +08:00
Anthony Calosa
e2c37d11e7 AI Attack Timeout 2024-11-14 19:11:25 +08:00
Agetian
98611a24b7 AI for Evolved Sleeper (#6547) 2024-11-08 15:10:14 +00:00
tool4ever
3e49ec6c88 Fix unattach logic (#6522) 2024-11-03 09:14:17 +00:00
Agetian
343f09157d - Improve AI for Scry when X payment is necessary. (#6506) 2024-11-02 17:52:57 +03:00
tool4ever
6ae0862b0d Goodbye mandatory suspend casting (#6483)
* Fix Divine Resilience
2024-10-31 20:20:08 +00:00
tool4ever
de4b35cc1d King of the Oathbreakers should trigger for Changeling (Discord post) (#6453)
* Fix NPE with Street Spasm
2024-10-29 12:02:32 +00:00
Anthony Calosa
cd82a74eb0 Merge branch 'master' into master2 2024-10-25 12:31:41 +08:00
Anthony Calosa
8c085bbd33 add mobile updater, update gdx natives 2024-10-25 11:41:06 +08:00
Agetian
a6ccbe0f1d - Add GameState support for unlocked doors. (#6426)
- Add puzzle PS_DSK3.
2024-10-24 20:01:43 +03:00
Agetian
d92cacae7f Various improvements to AI-related logic (Canopy lands, Ugin's Labyrinth, Zuran Orb, Pyrite Spellbomb, Eladamri) (#6418)
* - Improve AI for Canopy lands.
- Improve AI for Ugin's Labyrinth.

* - Pyrite Spellbomb: also don't sac immediately.

* - Improve AI for Eladamri, Korvecdal

* - Improve AI decision for Zuran Orb.

* - Cleaner implementation for Eladamri AI
- More generic implementation for SacToDraw AI that doesn't need a logic parameter

* - Fix imports

* - Cleaner implementation for Eladamri AI

* - Suggested code tweak
2024-10-24 12:31:23 +03:00
Agetian
84965594d0 Further improvement to PeekAndRevealAi (fix AI paying 0 for X) (#6410)
* - Add puzzle PS_DSK2.

* - Fix PeekAndRevealAi not paying the X mana cost.

* - Further improvement to PeekAndRevelAi.
2024-10-22 14:07:13 +03:00
Agetian
41c64b282a Fix AI paying 0 for PeekAndRevealAi (#6396)
* - Add puzzle PS_DSK2.

* - Fix PeekAndRevealAi not paying the X mana cost.
2024-10-21 12:33:47 +03:00
Anthony Calosa
7bebf8732c Merge branch 'master' into master2 2024-10-20 21:56:30 +08:00
tool4EvEr
cf7aa54769 Support Captain America 2024-10-20 10:45:16 +02:00
GitHub Actions
d366bf8ffc [maven-release-plugin] prepare for next development iteration 2024-10-14 21:53:45 -04:00
GitHub Actions
fa538bd5c9 [maven-release-plugin] prepare release forge-1.6.65 2024-10-14 21:53:45 -04:00
Anthony Calosa
4af8061824 Merge branch 'master' into master2 2024-10-14 20:46:23 +08:00
tool4ever
b6f118f89b Fear of Sleep Paralysis and support (#6287) 2024-10-14 10:55:00 +00:00
tool4ever
8f33da5b9c AI aura targeting fix (#6320) 2024-10-14 10:23:18 +00:00
Anthony Calosa
00e81d20dd Merge branch 'master' into master2 2024-10-14 06:06:40 +08:00
tool4EvEr
036e6ec1bf Ghostly Dancers and support 2024-10-13 11:03:02 -04:00
Anthony Calosa
708fed3350 update and unified version code property 2024-10-09 12:32:09 +08:00
Hans Mackowiak
80b30d9a6a Room: First Spell Part (#6044)
* Room: First Spell 

----

Co-authored-by: tool4ever <therealtoolkit@hotmail.com>
Co-authored-by: tool4EvEr <tool4EvEr@192.168.0.59>
Co-authored-by: TRT <>
Co-authored-by: Anthony Calosa <anthonycalosa@gmail.com>
2024-10-06 20:11:28 +02:00
tool4ever
0829d02237 Display additional cost text during payment (#6233) 2024-10-06 14:08:11 +00:00
kevlahnota
5affe7dd23 fix AI crash when minimum cards to discard exceeds than the valid cards
reported here: https://discord.com/channels/267367946135928833/1291545865814675578/1291545865814675578
2024-10-04 15:45:11 +08:00
Jetz72
84e6a61052 Fix ChangeZoneEffect ordering to library; Aetherspouts prompt (#5798)
* Fix ChangeZone ordering to library
Fix cards not showing up for Aetherspouts.
2024-10-02 15:39:51 +00:00
tool4ever
a949a988a5 Fix GameStates starting with frozen stack if RE executes (#6213)
* Fix GameStates starting with frozen stack if RE executes

* Fix NPE when facedown
2024-09-29 20:18:35 +00:00
Agetian
35cd7d0f4e - Add puzzle PS_BLB4, fix GameState support for class level. (#6195) 2024-09-25 08:02:22 +00:00
tool4ever
b396e780cf Fix scripts (#6169) 2024-09-18 10:08:58 +03:00
Hans Mackowiak
7b9e2a6735 ManifestDread as separate Effect (#6151) 2024-09-16 12:36:31 +02:00
tool4ever
bd1f48d530 Fix MDFC NPE (#6121)
Co-authored-by: TRT <>
2024-09-11 10:11:42 +03:00
Hans Mackowiak
4862071db7 Keyword: link StaticAbility into it (#6079)
* Keyword: link StaticAbility into it

* fix getKeywordMagnitude to check for StaticAbility
2024-09-07 17:19:57 +03:00
Agetian
1a1833c588 - Add puzzle PS_BLB3, add support for class level to GameState. (#6039) 2024-09-02 19:59:07 +03:00
tool4ever
229b1562be Some cleaning brought with smaller fixes (#6029)
* Fix Teferi's Imp
2024-09-02 10:47:50 +02:00
Hans Mackowiak
40bc5aa021 GameLoss: use CantHappen for cantLose (#6024)
* GameLoss: use CantHappen for cantLose
2024-09-02 10:35:45 +02:00
tool4ever
080d347199 Fix Conspiracy removing types without choice for new one (#6017)
* Skip incomplete overwrite

* Fix NPE for Unhaunting
2024-08-30 17:13:49 +00:00
tool4ever
7421871a36 Merge pull request #5933 from Jetz72/youreInCommand
You're In Command + Support
2024-08-29 18:28:29 +02:00
tool4ever
756ba28a14 Some fixes (#6004)
* Fix NPE
2024-08-28 15:54:28 +00:00