tool4ever
24e32e7af6
Clean up ( #2185 )
2022-12-28 21:45:53 +00:00
asvitkine
88308ecd5c
Support export/import states with arbitrary players. ( #2168 )
...
* Support export/import states with arbitrary players.
Previously, the dump/setup game state dev options were only able to handle a 2-player human vs. AI game. This PR expands the functionality to support any number of players and ignores the type of player (naming them p0,p1,...,pN). The previous names of ai and human are supported for backwards compatibility.
2022-12-28 14:56:16 +00:00
Anthony Calosa
e20d40a435
Merge pull request #2137 from JohnWilliams77/patch-66
...
SLX Variants
2022-12-28 22:38:25 +08:00
Anthony Calosa
def1c53bda
Merge pull request #2161 from HassanSky81/master
...
Correct the update of POIChanges for bought cards from shops
2022-12-28 22:36:22 +08:00
asvitkine
b0d5d952e8
Add "ask simulated ai" dev option. ( #2180 )
...
* Add "ask simulated ai" dev option.
Also moves the setup/dump game state options at the end of the list, as they're different from the other ones and shouldn't just be in the middle.
Also makes the code a bit more concise for the different mouse listeners.
* Fix comment location.
2022-12-28 10:02:47 +00:00
tool4ever
b51c6a3f1b
Clean up ( #2182 )
2022-12-28 07:15:17 +00:00
HassanSky81
7a3c19992a
Update PointOfInterestChanges.java
2022-12-27 22:34:31 +02:00
Mike S
a886305410
ONE: Kaito, Dancing Shadow + Token script ( #2163 )
...
* ONE: Kaito, Dancing Shadow + Token script
ONE: Added script for Kaito, Dancing Shadow, plus his token script.
- Kaito, Dancing Shadow
- 2/2 colorless Drone artifact creature token with deathtouch and "When this creature leaves the battlefield, each opponent loses 2 life and you gain 2 life."
* Update c_2_2_a_drone_deathtouch_leavedrain.txt
* Engine change to DamageDoneOnce
Engine change to accommodate proposed change to Kaito, Dancing Shadow's script
* Update TriggerDamageDoneOnce.java
* Update kaito_dancing_shadow.txt
* Update kaito_dancing_shadow.txt
* Update TriggerDamageDoneOnce.java
fix indention
* Update kaito_dancing_shadow.txt
Co-authored-by: Hans Mackowiak <hanmac@gmx.de >
2022-12-27 08:50:38 -05:00
Anthony Calosa
a00dc8fc4c
Update wicked_guardian.txt
...
- closes #2172
2022-12-27 10:55:59 +08:00
Anthony Calosa
dc348969bc
Merge pull request #2171 from DorkmasterFlek/card-set-filter-crash
...
Fix crash when filtering card sets in workshop
2022-12-27 09:31:56 +08:00
DorkmasterFlek
0645b23405
Fix crash when filtering card sets in workshop
...
Null pointer exception caused a crash when trying to filter by set in the debug workshop. Null value was in the limitedSets parameter being passed in.
2022-12-26 15:44:42 -05:00
Northmoc
ef44210a56
ONE – 21 Dec (leaked card scripts) ( #2151 )
...
* bonepicker_skirge.txt
* sinew_dancer.txt
* quicksilver_fisher.txt
* sawblade_scamp.txt
* furnace_punisher.txt
2022-12-26 19:14:15 +00:00
Northmoc
59d71045e0
tighten up Adversary cycle from MID ( #2162 )
2022-12-26 18:40:45 +00:00
Northmoc
abe5828195
YBRO: By Elspeth's Command and Yotian Courier + support ( #2114 )
...
* by_elspeths_command.txt with support v1
* yotian_courier.txt
2022-12-26 13:25:15 -05:00
Anthony Calosa
f61fec3d02
Update livio changezoneall
2022-12-27 00:54:36 +08:00
tool4ever
037f1d0b7b
Some fixes ( #2170 )
2022-12-26 09:42:03 +00:00
Anthony Calosa
a5decc0b78
Merge pull request #2157 from asvitkine/sim_imprv
...
Simulated AI: Fix land pruning logic and skip invalid targets.
2022-12-26 11:43:34 +08:00
Paul Hammerton
247ec986a7
Merge pull request #2166 from paulsnoops/sld_update
...
SLD Update
2022-12-25 18:47:20 +00:00
paulsnoops
01780ce433
SLD Update
2022-12-25 18:42:58 +00:00
Paul Hammerton
a14be95989
Merge pull request #2160 from JohnWilliams77/patch-68
...
Update Secret Lair Drop Series.txt
2022-12-25 18:25:46 +00:00
JohnWilliams77
9097acdca5
Update Secret Lair Drop Series.txt
2022-12-25 15:21:04 +00:00
JohnWilliams77
c22eb54dff
Update Secret Lair Drop Series.txt
2022-12-25 09:48:12 +00:00
asvitkine
00c6771608
Fix ArrayIndexOutOfBounds exception printed to stderr. ( #2141 )
2022-12-25 09:11:52 +00:00
JohnWilliams77
34085f22f0
Update Secret Lair Drop Series.txt
2022-12-25 09:11:06 +00:00
George
85fa4cd884
Merge remote-tracking branch 'origin/master'
2022-12-24 13:14:04 +02:00
George
cd2582408b
Correct the update of POIChanges for bought cards from shops
2022-12-24 13:09:39 +02:00
JohnWilliams77
d77b575ecd
Update Secret Lair Drop Series.txt
2022-12-24 09:03:47 +00:00
asvitkine
6e8a21a58a
Simulated AI: Copy changed SVars when copying state. ( #2159 )
2022-12-24 08:51:54 +00:00
asvitkine
4c568f941f
Clean up unused vars.
2022-12-23 20:33:01 -07:00
asvitkine
e788d3683a
Improve comment.
2022-12-23 20:31:41 -07:00
asvitkine
eb0f426adc
Use ComputerUtilAbility.isFullyTargetable() and add more tests.
2022-12-23 20:28:05 -07:00
asvitkine
74a37c95c4
Remove unused imports.
2022-12-23 20:00:56 -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
7da3605849
.
2022-12-22 22:04:39 -07:00
asvitkine
4a74c936c2
Return null modes when all invalid.
2022-12-22 22:04:30 -07:00
asvitkine
24c56f4731
Use empty iterator if all modes filtered out.
2022-12-22 21:58:40 -07: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
Anthony Calosa
f59128a6eb
Merge pull request #2156 from tool4ever/fixes22
...
Card fixes
2022-12-23 08:46:59 +08:00
Anthony Calosa
3dd574cc03
Merge pull request #2153 from Northmoc/comp
...
Compleated update/fix
2022-12-23 08:46:26 +08:00
tool4EvEr
91e1979637
Card fixes
2022-12-22 23:05:20 +01:00
tool4ever
40524426e2
Workshop: support DFC ( #2150 )
...
Co-authored-by: tool4EvEr <tool4EvEr@192.168 .0.59>
2022-12-22 12:18:21 +03:00
Northmoc
53595926d1
Some card script tweaks ( #2152 )
...
* little card script tweaks
* few more tweaks
* slithermuse.txt fix
2022-12-22 12:16:43 +03:00
Northmoc
773894b575
Compleated update/fix
2022-12-21 11:29:02 -05:00
Paul Hammerton
deb4764ed7
Merge pull request #2149 from JohnWilliams77/patch-67
...
Update Secret Lair Drop Series.txt
2022-12-20 16:16:41 +00:00
JohnWilliams77
ac665a858b
Update Secret Lair Drop Series.txt
2022-12-20 15:21:21 +00:00
Anthony Calosa
e0aa1996ce
Add files via upload
...
fix typo
2022-12-20 23:02:43 +08: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