Commit Graph

7475 Commits

Author SHA1 Message Date
tool4EvEr
c23bf249f5 Trigger fix 2023-01-06 22:57:52 +01:00
tool4EvEr
794fc11ab1 Rework UntilHostLeavesPlay timing 2023-01-06 22:17:38 +01:00
add-le
6103fe3e89 label used in LandAbility 2023-01-06 19:53:41 +01:00
TRT
b1df2d1008 Fix DiscardedThisTurn 2023-01-05 16:10:50 +01:00
Anthony Calosa
40dbdec31c Merge pull request #2199 from tool4ever/canthappen
ReplacementLayer.CantHappen
2023-01-05 16:53:00 +08:00
tool4EvEr
8986a025e7 Also remove controller 2023-01-04 22:25:04 +01:00
tool4EvEr
e8704e3c5e Fix auras losing all previous traits when they can't ETB 2023-01-04 22:16:02 +01:00
tool4EvEr
a51582237a Stonehewer Giant fix when it can't ETB 2023-01-04 20:49:06 +01:00
tool4EvEr
58a917e667 Store timestamp to be safe 2023-01-04 20:33:35 +01:00
TRT
414fb3fcef Improve cleanup when card can't ETB 2023-01-04 16:15:16 +01:00
TRT
0250c9ca0b Fix missing LKI for Startled Awake 2023-01-04 16:14:34 +01:00
TRT
c7feb44214 Fix "can't happen" applied with other replacements 2023-01-04 16:13:26 +01:00
tool4ever
359a97462e Few fixes (#2198)
Co-authored-by: tool4EvEr <tool4EvEr@192.168.0.59>
2023-01-04 08:04:17 +03:00
tool4EvEr
e63ba22630 Fix NumLoyaltyAct counting limit and additional wrong together 2022-12-31 10:48:06 +01:00
Northmoc
f67f5636e0 ONE: Green Sun's Twilight and support (#2175) 2022-12-30 17:48:09 +00:00
Anthony Calosa
4f365848e1 update 2022-12-29 10:11:48 +08:00
Anthony Calosa
fb4239196f Merge branch 'master' into newmaster2 2022-12-29 09:44:26 +08:00
Anthony Calosa
21f9223981 fix Adventure cards in exile lose "may be cast" when rewinding casting
- closes #2176
2022-12-29 09:34:05 +08:00
tool4ever
24e32e7af6 Clean up (#2185) 2022-12-28 21:45:53 +00:00
tool4ever
b51c6a3f1b Clean up (#2182) 2022-12-28 07:15:17 +00: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
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
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
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