Commit Graph

1377 Commits

Author SHA1 Message Date
Paul Hammerton
19fc5698bb Merge pull request #4297 from Northmoc/YLCI-3xBoon
YLCI: Merfolk Tunnel-Guide and support (X-time boons)
2023-12-11 14:28:35 +00:00
Hans Mackowiak
430dade5b8 Protection rework for Plural removal (#4284)
* Protection rework for Plural removal

* deprecated getSingularType

* Update AbilityUtils.java

getPlural only for Descriptive

* ~ update view

* Update CardChangedWords.java

* Update AbilityUtils.java

fix lowercase color word replacement

* Update Card.java

add changedCardKeywordsByWord to getChangedCardKeywordsList

* Update CardDetailUtil.java

~ update view

* Before resolving apply text changes

---------

Co-authored-by: TRT <>
2023-12-10 17:04:43 +03:00
tool4ever
e8c17640a9 Fix NPE (#4322)
* Fix NPE

* Fix cards like Klinspire District that use two X SVar

* Clean up

---------

Co-authored-by: tool4EvEr <tool4EvEr@192.168.0.60>
2023-12-08 18:33:41 -05:00
Northmoc
20a4f093e9 tidy up chancellor_of_the_annex 2023-12-05 10:13:01 -05:00
Northmoc
7ee51d38d7 Boon refactor 2023-12-05 09:15:48 -05:00
Northmoc
0c94e6de80 merfolk_tunnel_guide.txt initial 2023-12-05 08:27:58 -05:00
Paul Hammerton
054e0b984e Migrate released card scripts from upcoming 2023-12-03 11:02:50 +00:00
Northmoc
1a57062b94 LCI - Craft implementation 2023-11-29 19:52:09 -05:00
tool4ever
ebaca0c564 Update command_the_dreadhorde.txt 2023-11-27 21:55:16 +00:00
Northmoc
da0db2282c WHO: the_five_doctors.txt and support (ChangeZoneEffect refactors) (#4228)
* WHO: the_five_doctors.txt and support (ChangeZoneEffect refactors)

* translations
2023-11-27 23:18:01 +03:00
tool4ever
c6912b2633 Fix scripts affecting battles (#4229)
* Fix scripts affecting battles

* Optimize AI payment order so rarer shard sources are used first

---------

Co-authored-by: tool4EvEr <tool4EvEr@192.168.0.60>
2023-11-27 21:57:48 +03:00
Northmoc
fab405881d typos 2023-11-23 22:13:49 -05:00
tool4ever
2436d6e443 Update cabal_therapist.txt 2023-11-22 22:46:17 +01:00
tool4ever
9da07ed582 Update undo logic (#4186)
* Update undo logic

* Fix NPE
2023-11-22 17:59:54 +01:00
Northmoc
76b0ac2ba7 Merge pull request #4192 from Northmoc/spacing
spacing
2023-11-21 13:17:24 -05:00
Northmoc
708eca9f75 spacing 2023-11-21 13:15:45 -05:00
tool4ever
18996275b9 Update consecrate_consume.txt 2023-11-18 12:22:45 +01:00
tool4ever
feb4c0e6f0 CopySpellAbility: Improve targeting sub detection (#4166)
* Improve targeting sub detection

* Add ordering
2023-11-14 21:18:20 +00:00
tool4ever
4c0599bb52 Fix scripts (#4143)
Co-authored-by: tool4EvEr <tool4EvEr@192.168.0.60>
2023-11-09 20:14:07 +03:00
Agetian
8e0bc63a8b AI framework to improve sacrificing endangered cards + several AI hints (Stoneforge Mystic, Atog, others) and improvements. (#4014)
* - Implement a fallback mechanism in case getting a card by name and edition fails for whatever reason.

* - Patch up pulling a card without filters in All Card Variants mode.

* - Sacrifice creatures when they're endangered (currently works for
AF LifeGain, LifeLose, and any AFs that do not have phase-based AI restrictions or other factors that will prevent instant speed activation)

* - Tweaks to the requirements for the AI.
- Some AI enablement.

* - Account for non-creature endangered objects

* - Flag Wall of Limbs as RemAIDeck for now.

* - Support for AF PutCounter.

* - Clean up.

* - Logic fix for AF PutCounter.

* - Clean up.

* - Logic tweak/fix for AF Pump.

* - Another slight tweak.

* - Some AI hint fixes/additions.

* - Some AI hint fixes/additions.

* - Improve timing for AF LifeGain/LifeLose.

* - AI profile option for default SacCost AI preference.

* - Default Sacrifice AI preference master toggle.

* - Stoneforge Mystic AI hint.

* - For now, keep the default pref SacCost toggle to the Experimental AI and at minimum values (too extreme for general use).

* - AI hint: Cryptbreaker

* - Don't auto-sac creatures that evaluate above a given threshold, sac smaller CMC first

* - Lower the priority of cards that have a self-sacrifice activated ability

* - Revert the evaluation modification until a better solution is found.

* - AI hint for Hallowed Moonlight.

* - AI hint for Winds of Abandon (AI casts the non-overloaded version in Main 1, so cast the other one in Main 1 as well to be able to prioritize/choose)

* - AI logic for The One Ring.

* - Some logic tweaks/fixes.

* - Winds of Abandon: use the AI logic hint like other similar non-permanent spells.

* - Fix logic for default sacrifice priorities.
- Mark P9 Mox, Black Lotus, and Lotus Petal cards as bad for AI sacrifice.

* - More logic fixes.

* - One more logic fix.

* - Revert the AIDontSacrifice hint for now.

* - Revert Tinker as well

* - Limit LifeLoseAi sac logic to threatened cards.

* - Logic tweak.

* - Logic tweak.

* - Simplify check (part already checked above).

* - Some more minor cleanup.

* - AI shouldn't sacrifice things mid-combat in presence of Trample or Banding because of altered combat rules (likely to backfire/result in a misplay)
- Minor cleanup.

* - A [hacky] way to make the AI understand Anticognition and Bring the Ending.

* - Fix imports.

* - Avoid a crash by ensuring that the AI parameter indeed points to an AI player (and not e.g. predicting/simulating human decisions at the moment)

* - Do not try to sacrifice a card in an attempt to regenerate it

* - Clean up for AiController mustRespond

* - Suppress recursive checkSacrificeCost when called from the predictive code.
- Trample only matters for the attacking side when checking for threatened card SacCost requirements

* - Naming convention.

* - NPE guard.

* - Recommended tweaks and fixes.

* - Don't override X payment for a triggered ability (e.g. Spiteful Banditry)

* - A better attempt at handling X inside trigger code.

* - Process AI logic for EffectAi from triggered abilities.

* - Improve Black Lotus AI by handling it as if it were a Mana Ritual card when processing ManaEffectAi.

* - AI property guarded check + meaningful default for potential non-AI calls
2023-11-05 22:21:11 +03:00
Northmoc
653355d6a6 tweaks 2023-11-03 11:25:46 -04:00
Northmoc
25da9bf61e LCI: Kellan (DigEffect) and some dinos (and a cave) (#4051)
* kellan_daring_traveler_journey_on.txt + DigEffect tweak

* LCI common dinos

* pit_of_offerings.txt + some tweaks

* TypeLists.txt +Caves

* improvements
2023-10-31 22:09:40 +03:00
tool4ever
39d0f7553c Clean up (#4049)
* Clean up

* Update eaten_by_spiders.txt

---------

Co-authored-by: tool4EvEr <tool4EvEr@192.168.0.60>
2023-10-31 13:03:26 -04:00
edg444
a6212d55ee Landfall updates (#4047)
* Update stone_seeder_hierophant.txt

Added landfall.

* Update vinelasher_kudzu.txt

Added landfall.

* Update primeval_bounty.txt

Added landfall.

* Update courser_of_kruphix.txt

Added landfall.

* Update tireless_tracker.txt

Added landfall.

* Update architect_of_the_untamed.txt

Added landfall.

* Update tatyova_benthic_druid.txt

Added landfall.

* Update evolution_sage.txt

Added landfall.

* Update omnath_locus_of_the_roil.txt

Added landfall.

* Update aesi_tyrant_of_gyre_strait.txt

Added landfall.

* Update trench_behemoth.txt

Added landfall.

* Update toggo_goblin_weaponsmith.txt

Added landfall.

* Update maja_bretagard_protector.txt

Added landfall.

* Update druid_class.txt

Added landfall.

* Update a-druid_class.txt

Added landfall.

* Update roaring_earth.txt

Added landfall.

* Update greensleeves_maro_sorcerer.txt

Added landfall.
2023-10-31 09:01:45 -04:00
Northmoc
11c8da29c0 WHO: become_the_pilot.txt (and some tidying) (#4029)
* WHO: become_the_pilot.txt (and some tidying)

* rampaging_ceratops.txt

* tromokratis.txt try again
2023-10-30 16:08:04 +03:00
tool4ever
39f64dc936 Clean scripts (#4024)
Co-authored-by: tool4EvEr <tool4EvEr@192.168.0.60>
2023-10-30 06:31:37 +03:00
Northmoc
67c82b676a add (Transforms from X.) to Card Detail 2023-10-29 11:00:09 -04:00
Northmoc
45fb4003bf add loop functionality to CloneEffect / refactor some cards! (#3966) 2023-10-28 11:43:20 +00:00
tool4ever
c54133f1ad Fix Cyber Conversion turning face-down card face-up again (#3986)
* Fix Cyber Conversion turning face-down card face-up again

* Tweak AI

---------

Co-authored-by: tool4EvEr <tool4EvEr@192.168.0.60>
Co-authored-by: TRT <>
2023-10-28 13:08:40 +03:00
tool4ever
336b81ead0 Ransack ordering fix (#3998)
* Ransack ordering fix

* Fix script

---------

Co-authored-by: TRT <>
2023-10-27 22:15:46 +03:00
kevlahnota
36fe377977 Merge pull request #3977 from tool4ever/fullControl
Full Control
2023-10-26 17:22:03 +08:00
kevlahnota
624d0f26d8 Merge pull request #3944 from Northmoc/bamboozle
bamboozling_beeble.txt and centaur_of_attention.txt and Support
2023-10-26 16:55:47 +08:00
tool4EvEr
ebbbbc847b Full Control 2023-10-25 21:58:39 +02:00
tool4EvEr
7c45cb7653 Update scripts 2023-10-22 23:13:19 +02:00
Northmoc
50d41552ea centaur_of_attention.txt and support 2023-10-21 22:30:52 -04:00
kevlahnota
e7e0afb65e Update cards CantAttack 2023-10-19 17:04:40 +08:00
tool4EvEr
9fcdd34527 Fix Curses 2023-10-14 23:04:52 +02:00
tool4EvEr
59cfae7eaa Refactor scripts 2023-10-14 11:47:07 +02:00
Northmoc
25e89b04a3 day_of_the_moon.txt and support/refactor in NameCard (#3890)
* day_of_the_moon.txt and support/refactor
2023-10-14 09:46:22 +00:00
tool4ever
2a2e4d7819 Support for Display of Power (#3876)
* Support for Display of Power

* Clean up

---------

Co-authored-by: tool4EvEr <tool4EvEr@192.168.0.60>
2023-10-10 05:53:12 +03:00
tool4ever
021bd2c16b LKI: fix wrong state on stack (#3843)
* fix wrong state on stack

* fix typo
2023-10-02 11:14:48 +02:00
Hans Mackowiak
7e111c44ea ~ fix compleated_huntmaster.txt 2023-09-23 11:23:35 +02:00
tool4ever
461cc96800 Fix scripts (#3785)
* Fix scripts

* Fix adventure color when different to main part

---------

Co-authored-by: tool4EvEr <tool4EvEr@192.168.0.60>
2023-09-17 22:01:25 +03:00
tool4ever
e233129975 Support for Throne of Eldraine (#3757)
* Fix scripts

* Fix Reflect

* Refactor mana restrictions from SA

* Update scripts

* AltCost fix

* Fix Muraganda Petroglyphs affecting Security Rhox

---------

Co-authored-by: tool4EvEr <tool4EvEr@192.168.0.60>
2023-09-11 06:04:13 +03:00
tool4EvEr
266cea43cd Fix scripts 2023-09-08 22:28:26 +02:00
Hans Mackowiak
282d9860c7 Mana convert refactor (#3718)
* ~ cleanup applyManaColorConversion with only one Parameter

* remove ManaConvert Keyword and Vizier of the Menagerie

* remove other ManaConvert Keyword

* ~ fix scripts

* ManaConvention on GainedActivatedAbility

* ~ fix scripts

* rework Celestial Dawn and nonWhite restriction

* * update AI to apply matrix instead of hardcoded ignoreType and ignoreColor

* store Mana Matrix in PaymentDecision instead of CostPartMana

* ~ move Mana Matrix to more methods

* ManaConversionMatrix: add for Unless and Optional Cost

* Clean up AI

* Remove some calls that should be unneeded but make debugging annoying

* After paying with mana ability the old matrix should apply again

* Move matrix restore because AI needs it too

* Only human needs extra matrix on effect payments

* fix checks

* Update ComputerUtilMana.java

more !effect checks

* Story by CardPlayOption

* Fix North Star

* Remove obsolete code

* ~ ignoreType > ignoreColor

---------

Co-authored-by: tool4EvEr <tool4EvEr@192.168.0.60>
2023-09-08 18:09:03 +03:00
paulsnoops
14b5da90d8 UB/SLX rebranded script merging 2023-09-02 14:19:26 +01:00
Hans Mackowiak
d430e1919a TriggerTaps: adds Cause for Tapping by ReplacementEffect (#3665)
* TriggerTaps: adds Cause for Tapping by ReplacementEffect

* TriggerTaps handle who taps it differently

* Cost: add payer to doPayment

* TapEffect: add Tapper

* Tag scripts

---------

Co-authored-by: tool4EvEr <tool4EvEr@192.168.0.60>
2023-08-28 17:44:53 +03:00
Anthony Calosa
e2f6e85dd3 update scripts 2023-08-19 11:58:56 +08:00
tool4ever
78ed8480cb Update scripts (#3644)
* Improve performance

* Fix KW

---------

Co-authored-by: TRT <>
2023-08-16 18:48:36 +03:00