Commit graph

41897 commits

Author SHA1 Message Date
Susucre
0aff0cc8ed
[LTR] Implement Glorfindel, Dauntless Rescuer (#10614) 2023-07-13 20:13:09 -04:00
Susucre
5ded3c0822
[LTR] Implement Fires of Mount Doom (#10601) 2023-07-13 20:12:58 -04:00
xenohedron
fe4a50e860 adjust default 3 swiss rounds even in 10 player pods 2023-07-13 01:03:49 -04:00
xenohedron
eeffafcc62 Generalize UntapEnchantedEffect to UntapAttachedEffect 2023-07-13 00:28:03 -04:00
xenohedron
9c7d53fd2b fix filter on Tromp the Domains 2023-07-12 22:33:02 -04:00
Susucre
9cc0d0fc86
[LTR] Implement Sting, the Glinting Dagger (#10612) 2023-07-12 19:40:43 -04:00
Susucre
6a9340f1aa
Introduce Duration.UntilYourNextUpkeepStep (#10600)
* add new Duration

* refactor cards with new Duration.

* fix both Durations and add unit tests.

* fix text
2023-07-12 19:40:27 -04:00
Susucre
14235b6320
Rework Ring-bearer implementation. Add GUI + gamelogs. (#10596)
* Fix Ring-bearer choosing & add some GUI + logs

* use a ring svg in a separate gold panel

* use a fontawesome svg

* add a couple null checks, group icon with commander

* rework rinbearer logic according to review

* fix typo in game log

* small fixes
2023-07-12 19:40:09 -04:00
Bobby McCann
4065e2e935
[LTR] Implement Bill Ferny, Bree Swindler (#10575) 2023-07-12 19:39:52 -04:00
Bobby McCann
09530f1cdb
[LTR] Implement Glamdring (#10574) 2023-07-12 19:39:31 -04:00
PurpleCrowbar
cbd5651f80 Fix Family's Favor 2023-07-12 03:04:04 +01:00
xenohedron
1e1423a101 add test; closes #9646 2023-07-10 07:17:03 -04:00
xenohedron
3f346d791c fix file location in source tree 2023-07-10 06:32:04 -04:00
xenohedron
26ddf9d0b1 Fix #9841 (Duel for Dominance) 2023-07-10 00:29:33 -04:00
xenohedron
53797ea276 Fix #10254 (Alora, Merry Thief) 2023-07-10 00:06:23 -04:00
xenohedron
820c5ffe17 Fix #10604 (Blot Out) 2023-07-09 23:32:40 -04:00
xenohedron
6c9079012c
Cleanup: source deals damage to {this}; mill cards (#10603)
* New common class for "Whenever a source deals damage to {this}, " which resolves #9340 
* Merge `PutLibraryIntoGraveTargetEffect` with functionally identical `MillCardsTargetEffect`
* Text fix on `RevealDragonFromHandCost` noticed in #10593
* Text fix following up on #10594
2023-07-09 22:05:28 -04:00
Bobby McCann
73104f6705
[LTR] Implement Radagast the Brown; also resolves #9419 (#10568)
* Fix #9419 bug with EntersBattlefieldThisOrAnotherTriggeredAbility
* Add test for Radagast as well as Risen Reef and Caldaia Guardian
* Minor associated cleanup for EntersBattlefieldAllTriggeredAbility
* New PermanentEnteringBattlefieldManaValue
2023-07-09 22:04:45 -04:00
Susucre
39904d0ca3
[LTR] Implement Boromir, Warden of the Tower (#10594)
* [LTR] Implement Boromir, Warden of the Tower

* group trigger from Boromir and Lavinia

* fix trigger text
2023-07-09 16:42:29 -04:00
Susucre
f8b1ada369
Fix RevealTargetFromHandCost when no target in hand (#10593)
* [CSP] Fix the RevealTargetFromHandCost not allowing payment when no valid card to reveal

* cleanup text of cost

* fix martyr of bones text

* fix test using a Martyr of Sands
2023-07-09 16:42:16 -04:00
Susucre
87ed833291
[LTC] Implement Sail into the West (#10588) 2023-07-09 16:42:02 -04:00
xenohedron
d1d6890c2a fix Change the Equation 2023-07-09 16:41:31 -04:00
xenohedron
b86014a29c
Text fixes [CSP] (#10599)
* fix text: ExileFromHandCost

* fix text: CumulativeUpkeepAbility

* text fixes: individual CSP cards

* text fix followups
2023-07-09 02:14:42 -04:00
Susucre
79d97d2012
[LTR] Implement Phial of Galadriel (#10589) 2023-07-09 02:14:28 -04:00
Susucre
24cba3cb68
[LTR] Implement Sauron's Ransom (#10587) 2023-07-09 02:14:13 -04:00
Oleg Agafonov
03f8d72031 merge fix 2023-07-09 03:43:19 +04:00
Oleg Agafonov
0520d0b262 game: fixed miss clear code for permanent's additional info, fixed random sorting; 2023-07-09 02:35:26 +04:00
Oleg Agafonov
4ae5ca8421 docs: card hints usage improved 2023-07-09 02:21:56 +04:00
Susucre
a7d49e1f45
[LTR] Implement Faramir, Prince of Ithilien (#10595) 2023-07-08 13:09:10 -04:00
Susucre
5006ecc820
fix Perilous Research (#10592) 2023-07-08 13:08:57 -04:00
Susucre
2b2d3b979e
add unit tests for Shelob, Child of Ungoliant (#10586) 2023-07-08 13:08:41 -04:00
xenohedron
0fa971514a
code style: eliminate unnecessary static imports (#10585)
* SacrificeTargetCost(StaticFilters)

* remove import static mage.constants.Outcome

* remove import static mage.constants.Duration

* remove other import static

* a few more sacrifice filters

* simpler constructors

* remove import static mage.filter

* remove a few more import static
2023-07-08 13:08:28 -04:00
xenohedron
f6fdcb9d59 more filter cleanup 2023-07-08 00:18:11 -04:00
xenohedron
45b54e8cc4 code style: private static final 2023-07-07 23:34:16 -04:00
xenohedron
ef3be3987b minor adjustment to Phyrexian Altar 2023-07-07 23:33:25 -04:00
Susucre
eaa0de0877
fix Druid of the Emerald Grove (#10583)
10-19 locked the game in a choose action with no choice.
20 was broken due to a wrong boolean logic.
2023-07-07 23:10:52 -04:00
Susucre
4a3070e6db
[ONE] Fix Elesh Norn, Mother of Machines preventing triggers from non-permanents. (#10582) 2023-07-07 23:10:34 -04:00
xenohedron
86acc55243 fix Bloodfeather Phoenix 2023-07-07 23:10:11 -04:00
xenohedron
08c32682ac fix Nahiri's Resolve 2023-07-07 22:48:40 -04:00
xenohedron
03c45500b7 more static filter cleanup 2023-07-07 22:45:07 -04:00
xenohedron
7e2f16120f fix Undercity Upheaval 2023-07-07 22:30:45 -04:00
xenohedron
3a20385d1d fix Feast of the Victorious Dead 2023-07-07 22:27:49 -04:00
ssk97
a3ee34d796
Enable ignored tests that work (#10579)
* Enable ignored tests that work

* Remove Ignore import, fix tests without @Test attribute
2023-07-07 01:26:41 -04:00
ssk97
e1edec542c
Lazotep Convert fix (#10578)
* Fix Lazotep Convert card (add color, need to actually apply the applier)

* Don't copy Transformed status, add test
2023-07-07 01:26:27 -04:00
xenohedron
063429b70a
New StaticFilters.FILTER_ANOTHER_CREATURE_YOU_CONTROL (#10577) 2023-07-07 01:26:11 -04:00
xenohedron
e50f8b05c1
[LTR] [LTC] Text fixes (#10569) 2023-07-06 00:24:12 -04:00
xenohedron
1ccaf06366
Refactor flicker effects to single common class (#10564)
* New common class for flicker target effects

* Update cards to ExileThenReturnTargetEffect

* process game state before returning exiled card
2023-07-05 19:23:08 -04:00
rullinoiz
55f877c71e
Implement Relic of Sauron (#10567) 2023-07-05 19:22:39 -04:00
Bobby McCann
c8564efbb7
[LTR] Implement Witch-king of Angmar (#10563)
* Add card

* Add TapSourceEffect

* De-duplicate watcher logic

* Abstract and fix(?) logic

* Fix sacrifice targets

* Controller instead of Owner

* Add tests, fix, and refactor

* Throw if controller not supported

* Fix test (not supposed to start tapped)
2023-07-05 19:22:21 -04:00
Susucre
008662be5e
[LTR] Implement Shelob, Child of Ungoliant (#10558)
* [LTR] Implement Shelob, Child of Ungoliant

This is almost working.

I could not figure out why, but tokens made with the trigger still have subtypes, even though it has only artifact as its type.

* fix subtype of the token copy not being cleaned.

fixed Myrkul, Lord of Bones that had the same issue.
removed game argument from CreateTokenCopyTargetEffect's PermanentModifier. It was only used by Myrkul, and with no effect.
2023-07-05 19:21:52 -04:00