Commit Graph

1491 Commits

Author SHA1 Message Date
Hans Mackowiak
e8a6121d24 Saga and Read ahead refactor for WHO (#4436)
* Saga and Read ahead refactor for WHO

* ~ fix copy sagaRep

* fix etb counter with Barbara Wright

* ~ fix
2023-12-29 20:42:30 +03:00
Hans Mackowiak
b4cba93e19 fix missing files 2023-12-29 09:22:53 -05:00
Hans Mackowiak
38ef2b997d Revert "Revert "CardDb: add normalized Names (#4376)""
This reverts commit b396f41188.
2023-12-29 09:22:53 -05:00
tool4ever
a24af8d50e Fix Stonebinder's Familiar not triggering from Nivmagus Elemental (#4424)
* Fix Stonebinder's Familiar not triggering from Nivmagus Elemental

* Fix so it only triggers for cards

* Surveil triggers on empty library

* Fix missing trigger

* Fix trigger

* fix script

* Fix corner case freeze by trigger for loser (Kharn the Betrayer)

* Fix loser making trigger decision e.g. Shakedown Heavy

* Obeka fix when resolving after AP lost

* fix script

---------

Co-authored-by: tool4EvEr <tool4EvEr@192.168.0.60>
2023-12-26 06:55:53 +03:00
Hans Mackowiak
e6a9ea20c7 Updates "Can't be countered" into Replacement Effects (#4429)
* isCounterableBy cleanup

* ~ move to Card

* update the rest

* ~ fix unused import

* ~ fix Counter better check for ValidSA instead of ValidCard

* ~remove last piece of text
2023-12-26 06:55:35 +03:00
Northmoc
7f5e75bdb0 PIP: Radiation mechanic implementation (#4204)
* PIP: Radiation mechanic implementation

* remove OVERRIDE

* remove unused property
2023-12-26 06:55:14 +03:00
Northmoc
3bf1e39f05 Remaining perpetual rework (#4394) 2023-12-20 18:32:09 +01:00
tool4ever
046f55cb78 ChangesZoneAll: add LKI support (#4385)
* Fix Skeleton Crew triggering from own ETB

* Fix bad logic

* Add LKI support

* Prowl fix when card gets cast from another zone again

* Clean up

* Clean triggers

* Support LKI for leaves graveyard

* Update effects

* Fix logic

* Fix Living Breakthrough for X spells

* Extract lastState fallback logic
2023-12-20 16:20:40 +01:00
Chris H
b396f41188 Revert "CardDb: add normalized Names (#4376)"
This reverts commit ce9ca390f8.
2023-12-19 14:20:50 -05:00
Hans Mackowiak
ce9ca390f8 CardDb: add normalized Names (#4376) 2023-12-19 18:39:18 +01:00
Klisz
14fb0f2e42 Update chaotic_aether.txt
Fixes issue where Chaotic Aether's effect was removed at end of turn even if no-one had planeswalked away from a plane by then
2023-12-19 06:22:12 -07:00
Northmoc
de851fc749 YWOE high_fae_prankster.txt and support (#3921)
* high_fae_prankster.txt and support

* Perpetual rework

* fix imports

* fix imports

* 12/9 cards and tweaks

* fix absorb_energy

* tidy

* 12/10 updates

* 12/12 tweaks and fixes

* 12/13 tweaks

* last tweaks for this PR

* revert unneeded

* revert unneeded for real

* tidy executePerpetual

* cleanup imports

* tweaks 12/15

* fix imports

* LosePerpetualEffect

* cleanup import
2023-12-16 22:25:41 +03:00
Klisz
023e41c8a0 WHO the_doctors_childhood_barn.txt (#4377)
* Create the_doctors_childhood_barn.txt

* Update the_doctors_childhood_barn.txt

* Update the_doctors_childhood_barn.txt

* Update the_doctors_childhood_barn.txt

* PlaneswalkedTo and ForgetOnPhasedIn

---------

Co-authored-by: tool4ever <therealtoolkit@hotmail.com>
2023-12-14 13:59:44 -05:00
Klisz
8d921f88c7 Improved AI for Sixth Sense effects (#4371)
* Improved AI for Sixth Sense effects

Improves targeting AI for Combat Research, Catlike Curiosity
2023-12-14 17:13:37 +01:00
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