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
Jetz
e879abca85
Merge remote-tracking branch 'origin/master' into code-cleanup
2024-11-13 09:17:45 -05:00
Jetz
c9ba926f45
Guava migration - Replace .negate() with Predicate.not(...) in compound predicates.
2024-11-08 19:21:25 -05:00
Jetz
d6c8e9a692
Merge remote-tracking branch 'origin/master' into code-cleanup
...
# Conflicts:
# forge-ai/src/main/java/forge/ai/ability/ChooseCardAi.java
# forge-ai/src/main/java/forge/ai/ability/ScryAi.java
# forge-core/src/main/java/forge/card/DeckHints.java
# forge-core/src/main/java/forge/util/TextUtil.java
# forge-gui-mobile/src/forge/itemmanager/ItemManager.java
# forge-gui/src/main/java/forge/download/AutoUpdater.java
# forge-gui/src/main/java/forge/player/HumanCostDecision.java
2024-11-08 18:37:02 -05: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
Jetz
c5be6f1b17
Merge branch 'master' into code-cleanup
...
# Conflicts:
# forge-game/src/main/java/forge/game/GameEntityCounterTable.java
# forge-game/src/main/java/forge/game/ability/effects/PumpEffect.java
# forge-game/src/main/java/forge/game/staticability/StaticAbilityContinuous.java
2024-10-20 09:33:41 -04:00
tool4EvEr
cf7aa54769
Support Captain America
2024-10-20 10:45:16 +02:00
Jetz
6b93e628ac
Merge branch 'master' into code-cleanup
...
# Conflicts:
# forge-ai/src/main/java/forge/ai/ComputerUtil.java
# forge-core/src/main/java/forge/card/DeckHints.java
# forge-game/src/main/java/forge/game/ability/AbilityFactory.java
# forge-game/src/main/java/forge/game/cost/CostUntapType.java
# forge-gui/src/main/java/forge/player/HumanCostDecision.java
2024-10-14 22:36:07 -04:00
Jetz
31547c6bbb
Merge branch 'master' into code-cleanup
...
# Conflicts:
# forge-game/src/main/java/forge/game/phase/PhaseHandler.java
2024-10-14 22:20:44 -04: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
Jetz
b35981218a
Merge branch 'master' into code-cleanup
...
# Conflicts:
# forge-game/src/main/java/forge/game/ability/effects/ManifestBaseEffect.java
2024-09-26 10:21:19 -04:00
Jetz
871947a540
Guava migration - Optimize imports
2024-09-26 09:59:26 -04:00
Jetz
6a04fcd500
Guava migration - Remove migration scaffold
2024-09-26 09:36:50 -04:00
Jetz
0278f5817b
Guava migration - Create IterableUtil to house iterable helper methods dependent on Java predicates
2024-09-25 09:26:41 -04:00
Jetz
f636910ebb
Guava migration - Rename StreamUtils -> StreamUtil for consistency
2024-09-25 09:01:46 -04:00