Commit Graph

932 Commits

Author SHA1 Message Date
tool4ever
69cda588eb Update hancock_ghoulish_mayor.txt 2024-03-24 15:04:43 +00:00
tool4ever
5e2a69f2cb Refactor scripts! (#4874) 2024-03-23 16:48:44 +00:00
tool4ever
5415c6190d Script fixes (#4838) 2024-03-19 21:18:16 +00:00
tool4ever
f372ef87fe Improve simultaneous handling with ChangeZoneAll (#4820)
Co-authored-by: TRT <>
2024-03-15 11:31:04 +03:00
Simisays
9d3c20094e PIP 8 cards (#4795) 2024-03-10 14:21:12 +00:00
Chris H
54b7c803ac Migrate upcoming for MKM release 2024-03-04 15:09:44 -05:00
Renato Filipe Vidal Santos
dbcf474030 Sundry script cleaning (#4734) 2024-02-26 09:03:29 +01:00
Renato Filipe Vidal Santos
6961de8e6b Various card scripts (CLU, PIP), minor fixes (#4713) 2024-02-22 21:06:50 +00:00
tool4ever
88d4e60a54 Script updates (#4710) 2024-02-19 07:30:16 +01:00
Renato Filipe Vidal Santos
8dffcdca52 Adding Resonance Technician, minor fixes (#4709) 2024-02-18 10:02:16 +00:00
Renato Filipe Vidal Santos
5b2ad01e84 Various card scripts and minor fixes (#4686) 2024-02-17 13:41:28 +00:00
tool4ever
f494ba91ee Fix scripts (#4699) 2024-02-16 15:59:23 +01:00
Hans Mackowiak
fbb6b4cbcf Update hard_evidence.txt
update Description
2024-02-07 15:06:30 +01:00
tool4ever
7689f7e653 Fix scripts (#4631) 2024-02-04 14:58:43 +00:00
tool4ever
5b4f089061 Draw: use Cause if able (#4614)
* Draw: use Cause if able

* Avoid Thousand Moons Smithy warning
2024-02-01 20:27:59 +00:00
Hans Mackowiak
b274ead986 ~ format line endings in cardsfolder 2024-01-21 20:25:23 +01:00
tool4ever
96b3d07051 Support duplicate objects per effect (#4518)
* Fix Serrated Biskelion

* Fix Angel of Destiny

* Fix Diviner Spirit
2024-01-17 11:02:04 +01:00
Northmoc
b8cf172255 WHO: Two Streams Facility (#4495)
* WHO: Two Streams Facility

* add TempRemember to ChooseGenericEffect

* remove RepeatEach from more GenericChoice cards

* tidy Archangel of Strife
2024-01-16 17:01:18 +01:00
Klisz
f2b1da8329 Update huatli_poet_of_unity_roar_of_the_fifth_people.txt (#4514) 2024-01-13 22:13:25 +00:00
Paul Hammerton
6144d87827 Alchemy Rebalancing for January 12, 2024 (#4513) 2024-01-13 17:13:04 +00:00
Northmoc
acb5151a82 Wave 3 of perpetual rework + Pump double P or T rework (#4423) 2024-01-09 09:31:02 +01:00
Simisays
dccfee646f WHO 5 cards with Villainous Choice (#4450)
* update

* cleanup

* improvements

* update

* update

* Update genesis_of_the_daleks.txt

* Update midnight_crusader_shuttle.txt
2024-01-08 09:13:36 +03:00
tool4ever
1e135e8d3b Support for Midnight Crusader Shuttle (#4478) 2024-01-04 16:47:58 +01:00
tool4ever
2933922572 Update huatli_poet_of_unity_roar_of_the_fifth_people.txt 2024-01-04 07:49:28 +01:00
Hans Mackowiak
c5ecda3774 Overload keyword (#4415)
* Keyword: Overload

* update more cards

* finish Overload

* ~ fix desc

* remove CounterEffect AllValid

* Fix Overload Copy

* StackDescription!

---------

Co-authored-by: Northmoc <tnorthmoc@gmail.com>
2023-12-29 20:43:06 +03:00
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
38ef2b997d Revert "Revert "CardDb: add normalized Names (#4376)""
This reverts commit b396f41188.
2023-12-29 09:22:53 -05: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
3bf1e39f05 Remaining perpetual rework (#4394) 2023-12-20 18:32:09 +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
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
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
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
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
tool4ever
9da07ed582 Update undo logic (#4186)
* Update undo logic

* Fix NPE
2023-11-22 17:59:54 +01:00
Northmoc
708eca9f75 spacing 2023-11-21 13:15:45 -05: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
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
7c45cb7653 Update scripts 2023-10-22 23:13:19 +02:00
tool4ever
437d64dc08 Support for Zygon Infiltrator (#3937)
* Support for Zygon Infiltrator

* 614.13a

* Fix filename

* Clean up

* Account for Chains of Mephistopheles

---------

Co-authored-by: tool4EvEr <tool4EvEr@192.168.0.60>
2023-10-21 21:55:39 +03:00
kevlahnota
e7e0afb65e Update cards CantAttack 2023-10-19 17:04:40 +08:00
tool4EvEr
73c32df030 Clean up 2023-10-14 22:19:18 +02:00
tool4ever
868190af25 Some fixes (#3817)
* Fix how trigger evaluates the event

* Support XMaxLimit

* Clean up

---------

Co-authored-by: tool4EvEr <tool4EvEr@192.168.0.60>
2023-09-26 23:24:26 +03:00
tool4ever
7dfd44eaef Update Gods (#3793)
* Update Gods

* Fix script

---------

Co-authored-by: tool4EvEr <tool4EvEr@192.168.0.60>
2023-09-19 16:30:12 +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
paulsnoops
14b5da90d8 UB/SLX rebranded script merging 2023-09-02 14:19:26 +01:00
tool4EvEr
45a59fe77a Treat rebranded versions extra 2023-09-01 21:28:30 +02:00
paulsnoops
dd4c47c9ce Migrate card scripts from upcoming 2023-08-06 09:24:14 +01:00