asvitkine
6e8a21a58a
Simulated AI: Copy changed SVars when copying state. ( #2159 )
2022-12-24 08:51:54 +00:00
asvitkine
eb0f426adc
Use ComputerUtilAbility.isFullyTargetable() and add more tests.
2022-12-23 20:28:05 -07:00
Anthony Calosa
7c722c0838
Merge pull request #2158 from tool4ever/wedding
...
Wedding Ring cleanup
2022-12-23 21:10:06 +08:00
TRT
d24abce1aa
Wedding Ring cleanup
2022-12-23 12:54:33 +01:00
asvitkine
e797c358bf
Add a comment.
2022-12-22 21:44:27 -07:00
asvitkine
56b22ee73a
Simulated AI: Fix land pruning logic and skip invalid targets.
...
This change improves Simulated AI logic by eliminating many unnecessary simulations, particularly due to:
- Invalid targets involving counterspells countering themselves (including modal spells).
- Pruning identical land drop decisions.
Tests are added to cover these cases.
Some core logic is changed, in particular, SpellAbility.canTarget() was not rejecting self-targeting for counterspells. This was likely being done at a higher level somewhere (e.g. in UI code for choosing targets for the human player or AI-specific code for non-simulated AI).
Additionally, a convenience SpellAbility.hasLegalTargets() method is added, from the logic that was previously in AIController.java, so that it can be re-used by the simulation AI code.
A few small style clean ups are included in the code being changed.
2022-12-22 21:40:52 -07:00
Northmoc
773894b575
Compleated update/fix
2022-12-21 11:29:02 -05:00
TRT
2786c0efa5
Fix NPE
2022-12-20 10:53:58 +01:00
Paul Hammerton
c5c35ce3d7
Merge pull request #2145 from Northmoc/one_19
...
ONE - 19 Dec (some leaked cards)
2022-12-20 08:57:33 +00:00
tool4ever
e76f348c56
Improve reuse of LKI for ChangeZone performance ( #2143 )
...
Co-authored-by: tool4EvEr <tool4EvEr@192.168 .0.59>
2022-12-19 17:42:10 +01:00
Northmoc
2196d42812
CounterEnumType.OIL
2022-12-19 10:54:53 -05:00
tool4EvEr
046f123994
Clean up
2022-12-19 15:15:52 +01:00
Anthony Calosa
e35662cc51
Merge pull request #1960 from Northmoc/j22_agrus
...
J22: Agrus Kos, Eternal Soldier and support
2022-12-18 07:25:33 +08:00
Anthony Calosa
3a7b389b1f
Merge pull request #2109 from Northmoc/issue2105
...
add and support "ReplaceGraveyardValid" for scholar_of_the_lost_trove
2022-12-18 07:10:57 +08:00
Anthony Calosa
61a6eced45
Merge pull request #2129 from Northmoc/desert
...
YBRO: Great Desert Hellion and support
2022-12-18 07:09:38 +08:00
Northmoc
5377085a29
YBRO: Great Desert Hellion and support
2022-12-17 10:47:16 -05:00
Northmoc
29d3d396b0
add and support "ReplaceGraveyardValid" for scholar_of_the_lost_trove.txt
2022-12-16 08:30:30 -05:00
tool4ever
f761f2a167
Add missing Smelting Vat support ( #2117 )
...
* Add missing Smelting Vat support
* Fix check
Co-authored-by: TRT <>
2022-12-16 08:14:55 -05:00
squee1968
a2f6936a32
J22: Ogre Battlecaster ( #2021 )
...
* Mizzix and Ogre
* Delete mizzix_replica_rider.txt
* Update ogre_battlecaster.txt
* Add support
* Update ogre_battlecaster.txt
* Create ogre_battlecaster.txt
* Update ogre_battlecaster.txt
* Update ogre_battlecaster.txt
* Clean up
Co-authored-by: TRT <>
2022-12-16 14:54:39 +03:00
Northmoc
d649492a8d
YBRO: Assemble the Team and support ( #2112 )
...
* assemble_the_team.txt
* AbilityUtils.getDefinedCards support "TopThirdOfLibrary"
2022-12-16 13:43:33 +03:00
tool4ever
9804d0bb55
Restore fixes somehow dropped by 017a4c ( #2108 )
2022-12-15 16:03:54 +01:00
tool4ever
18c5c92c1c
Merge branch 'master' into boostertutor
2022-12-15 15:45:49 +01:00
Northmoc
e4ee9eee7b
TriggerBecomesTarget.setTriggeringObjects add StackInstance
2022-12-15 09:28:02 -05:00
Northmoc
d85ade2008
SpellAbility.isValid add "Ability"
2022-12-15 09:28:01 -05:00
Anthony Calosa
72564e16dd
Merge pull request #2100 from tool4ever/somefixes
...
Improve damage check logic for losing + performance
2022-12-15 07:38:42 +08:00
TRT
35810fcb66
Fix counting
2022-12-14 22:41:09 +01:00
TRT
8d2e56e4dc
Improve damage check logic for losing + performance
2022-12-14 17:01:09 +01:00
Paul Hammerton
42a441d63a
Merge pull request #2064 from asvitkine/more_copy
...
GameCopier: Handle copying of more game and player properties.
2022-12-13 09:19:37 +00:00
tool4ever
c303222f6f
Fix ante cards ( #2089 )
2022-12-12 21:23:32 +00:00
tool4ever
9d761ca7cf
Clean up ( #2088 )
2022-12-12 20:11:08 +00:00
tool4EvEr
28903fe4e4
Booster Tutor and support
2022-12-11 22:34:09 +01:00
tool4EvEr
8fb9c6ed71
Hushbringer improvements
2022-12-11 22:11:24 +01:00
tool4EvEr
1f6c4a430d
Clean up
2022-12-11 20:14:22 +01:00
Anthony Calosa
d6b4e0d377
fix NPE getting paperCard from imagekey
2022-12-11 14:34:49 +08:00
asvitkine
8bd9759494
GameCopier: Handle copying of more game and player properties.
2022-12-09 23:27:49 -05:00
Anthony Calosa
5eb387dd4b
Merge pull request #2059 from tool4ever/proFix
...
Prototype rollback fix
2022-12-10 10:57:36 +08:00
Anthony Calosa
1242ef82ae
Merge pull request #2063 from kevlahnota/newmaster2
...
Add reveal button to mobile-gui
2022-12-10 10:55:32 +08:00
Anthony Calosa
ccc985654c
Add reveal button to mobile-gui
...
- currently it gets all cards that was revealed by via reveal(...)
- update menutab to show scroll indicator as default
2022-12-10 09:20:41 +08:00
Paul Hammerton
95167ed675
Merge pull request #2029 from Simisays/ABRO
...
YBRO Argothian Uprooting & Foundry Groundbreaker
2022-12-09 11:07:10 +00:00
TRT
02e2ddce3b
Prototype rollback fix
2022-12-09 11:39:26 +01:00
Anthony Calosa
d15a505081
Merge pull request #2051 from kevlahnota/newmaster2
...
Cleanup effect card name
2022-12-09 08:24:31 +08:00
Anthony Calosa
7f30fcf98c
Merge pull request #2056 from tool4ever/satfix
...
Card fix + cleanup
2022-12-09 08:23:07 +08:00
Anthony Calosa
17d92585b4
replace escape with space
...
- should fix effect display on card detail
2022-12-09 08:13:48 +08:00
Anthony Calosa
73d566dd8b
translate Boon/Emblem effect name
2022-12-09 08:06:19 +08:00
Anthony Calosa
fcddec28d0
update translation
2022-12-09 07:18:36 +08:00
tool4EvEr
7452b24073
Card fix + cleanup
2022-12-08 20:13:24 +01:00
Anthony Calosa
267ef48a0c
Cleanup effect card name
...
- add simple pixelate shader
2022-12-08 18:15:32 +08:00
Anthony Calosa
6720562c37
unused import
2022-12-08 05:51:43 +08:00
TabletopGeneral
668296ed56
Add card previews when drafting from a spellbook
2022-12-07 15:17:15 -05:00
Anthony Calosa
1da4cc5726
Merge pull request #2036 from tool4ever/dierollfix
...
Die roll fix
2022-12-07 07:29:49 +08:00