Commit Graph

4168 Commits

Author SHA1 Message Date
Hans Mackowiak
9079e1319b MKC: add Mentor Trigger (#4659)
* Trigger: add Mentor Trigger

* ~ fixes

* ~ remove empty if
2024-02-13 13:05:55 +03:00
tool4ever
2706fa7f3c Clean up undo logic some more (#4672) 2024-02-12 15:16:55 +00:00
Hans Mackowiak
9257846c39 Simplyfy Cloak and Manifest Effects (#4652) 2024-02-10 07:34:56 +03:00
tool4ever
f45d17e368 PlayEffect: support AltCosts (#4649) 2024-02-09 14:10:41 +01:00
friarsol
8c2c45dfe9 Always use the original SA params when building a token script 2024-02-05 22:08:27 -05:00
friarsol
a4cec7ab4d Amass Tokens not using the appropriate names for images 2024-02-05 22:08:27 -05:00
Hans Mackowiak
afee45ca5a CloakAi: simple code 2024-01-29 22:42:31 -05:00
Hans Mackowiak
ff3ea852b7 CardFactoryUtil: Disguise Keyword 2024-01-29 22:42:31 -05:00
tool4ever
ad2039d5a1 Fix crash (#4610)
* Fix crash

* Move check earlier so Full Control doesn't ask for non-matches

* Restore fix

* Clean up duration checks
2024-01-29 12:50:43 +01:00
friarsol
e9ecfe814a Fix Essence Vortex (unless costs not referencing targets properly) 2024-01-27 08:27:48 -05:00
tool4ever
d93d9b9e4a Merseine fixes (#4579)
* Merseine fixes

* Clean up

* Fix NPE with Dire Blunderbuss
2024-01-23 17:06:15 +01:00
friarsol
5fe761f167 Add Crimestopper Sprite (although the optional cost doesn't work yet) 2024-01-23 09:29:09 -05:00
friarsol
06b32949fb Initial checkin for Collect Evidence 2024-01-23 09:29:09 -05:00
Hans Mackowiak
b77030282c Card: add Suspected Flag (#4575) 2024-01-22 19:40:34 +03:00
Northmoc
804977e1b5 MKM: a_killer_among_us.txt + support (#4574) 2024-01-22 06:30:24 +03:00
tool4ever
742252191a Kylox, Visionary Inventor + Alchemy cleanup (#4562)
* Remove fake trigger

* Remove redundancy

* Adapt script from OtDxRaichunite
2024-01-21 09:41:51 +00:00
tool4ever
5d8029f116 Make Flash interact with Dryad Arbor (#4555) 2024-01-19 13:48:24 +00:00
friarsol
d7142d2133 Initial checkin for Solved/Cases 2024-01-19 08:43:13 -05: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
tool4ever
1b7a818324 Fix ProtectEffect (#4527) 2024-01-16 21:37:12 +00:00
tool4ever
fc23a8d9e3 Improve TriggerHandler accuracy (#4484)
* Fix NPE

* Improve TriggerHandler accuracy
2024-01-08 20:13:35 +01:00
tool4ever
1a3a5cbf8c Fix Fatal Lore (#4488)
Co-authored-by: tool4EvEr <tool4EvEr@192.168.0.59>
2024-01-08 09:12:49 +03:00
tool4ever
1e135e8d3b Support for Midnight Crusader Shuttle (#4478) 2024-01-04 16:47:58 +01:00
Hans Mackowiak
f7d70f1a69 Riot: refactor into UnlessCost like Fabricate (#4448) 2023-12-31 10:12:28 +00:00
Klisz
c02f7c698d Planechase inherent effects (#4408)
* Planechase effects draft

Draft to close #4262, by moving the planeswalking ability and the static chaos trigger to an effect carried with the player in a planechase game. Currently this effect is visible in the command zone much like the monarch or initiative (but with no image), which is something that needs fixing; I'd have it be a DetachedCardEffect but there's no linked card for it like there are for commander and companion effects (the active plane [or the face-up plane with the earliest timestamp, I suppose] would be a logical choice for the getCardForUi, but that would require updating it as the plane changes, and in any case because there's a separate effect for each player, the fact that the owner of a DetachedCardEffect is set as the owner of the linked card also adds some wrinkles. In any case, I've set the effects to be created in startGame after initPlane is run, rather than in initVariantZones as is the case for the commander and companion DetachedCardEffects, in anticipation of hopefully in the future making the effect be linked to an active plane).

* Update Player.java

* Move planar dice special action to effect

* Update ComputerUtilAbility.java

* Move die roll chaos to PlanarDice.java
2023-12-31 09:11:30 +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
8295312ad2 WHO: add can't tap check (#4441)
* WHO: add can't tap check

* ~ update PlayEffect IllusionaryMask

* Patch more places

---------

Co-authored-by: tool4EvEr <tool4EvEr@192.168.0.60>
2023-12-29 20:42:13 +03:00
Hans Mackowiak
38ef2b997d Revert "Revert "CardDb: add normalized Names (#4376)""
This reverts commit b396f41188.
2023-12-29 09:22:53 -05:00
Chris H
40219a67cf Villanous choice initial implementation (#4395)
* Villanous choice initial implementation

---------

Co-authored-by: tool4EvEr <tool4EvEr@192.168.0.60>
2023-12-29 09:19:15 -05:00
Agetian
be2f9aa187 Prevent AI from sacrificing powerful creatures via an obtained Sakura-Tribe Elder ability (#4433)
* - Add puzzle PS_LCI3.

* - Set a sacrifice threshold for Sakura-Tribe Elder ability.
2023-12-28 07:02:41 +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
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
tool4ever
90c3a13e3d Fix facedown permanent with adventure (#4355)
* Restore adventure text when card not in play

* Remove obsolete code

* Fix crash with Cybership

* Fix NPE
2023-12-15 09:58:30 +01: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
GitHub Actions
8c82589436 [maven-release-plugin] prepare for next development iteration 2023-12-04 20:40:21 -05:00
GitHub Actions
7e0088328b [maven-release-plugin] prepare release forge-1.6.59 2023-12-04 20:40:21 -05:00
Paul Hammerton
3ef29b4951 Merge pull request #4277 from Northmoc/WHO-trap
WHO: the_toymakers_trap.txt + support
2023-12-04 14:33:10 +00:00
Agetian
c652f9c584 Basic Discover AI based on modified PlayAi logic (#4271)
* - Basic Discover AI.

* - Remove some unused code.

* - Remove some more unused code.

* - Fix imports

* - Return false for LandAbility to avoid a potential CTD

* - Minor comment tweak.
2023-12-04 13:49:01 +03:00
Northmoc
33d0fea610 WHO: the_toymakers_trap.txt + support 2023-12-03 16:02:44 -05:00
Paul Hammerton
0e22a03fd4 Merge pull request #4140 from Northmoc/LCI-craft
LCI - Craft implementation
2023-12-03 09:29:40 +00:00
tool4EvEr
4efbadd854 Fix NPE 2023-12-02 19:48:49 +01:00
tool4EvEr
861e51622c Try improve AI 2023-12-02 10:49:22 +01:00
Klisz
d0792e23ef Update LifeSetAi.java (#4259) 2023-12-02 07:56:22 +00:00
Northmoc
26e16cd258 ChangeZoneAi 2023-12-01 10:58:54 -05:00
Northmoc
fa3d1366fa tweaks for AI improvement 2023-11-30 11:10:56 -05:00