Commit graph

11288 commits

Author SHA1 Message Date
Susucre
a9870b6ff8
text fixes [WOE] etc. (#11035)
* Fix Callous Sell Sword text

* simple text fixes

* fix some target texts
2023-08-26 19:34:49 -04:00
Susucre
c4e48a6f95
[WOE] Implement The End (without breaking morph tests this time) (#11041)
* [WOE] Implement The End

* add cost reduction

* apply review

* fix tests looking for morphs
2023-08-26 19:34:21 -04:00
Susucre
e39e5ee1b0
[WOC] Implement Alela, Cunning Conqueror (#10870)
Add new batch event `DAMAGED_PLAYER_BATCH_ONE_PLAYER`
2023-08-26 19:33:52 -04:00
Susucre
aa71f0ba8a
Refactor DoIfCostPaid; Inform player on cost not paid. (#10942) 2023-08-26 17:29:30 -04:00
xenohedron
4d03deda12
Revert "[WOE] Implement The End (#10921)" (#11040)
This reverts commit fe93d68b1c.
2023-08-26 17:28:09 -04:00
xenohedron
66cc15ed4b
Cleanup copy methods (#11038)
* remove System.out.println
* Card copy() covariant return
* Effect copy() covariant return
* Cost copy() covariant return
* Ability copy() covariant return
* ContinuousEffect copy() covariant return
2023-08-26 16:47:54 -04:00
Susucre
0b5099746f
Add artifact type to token created by Canoptek Scarab Swarm (#11020)
* Add a new token type for Canoptek Scarab Swarm

* clean the tokens

* touch tokens-database
2023-08-26 16:46:45 -04:00
Susucre
fe93d68b1c
[WOE] Implement The End (#10921) 2023-08-26 16:45:51 -04:00
Susucre
13fa154a3d
[WOE] Implement Stockpiling Celebrant (#11012)
* [WOE] Implement Stockpiling Celebrant

* apply review -- fix the targetting
2023-08-26 10:25:44 -04:00
xenohedron
978ec8f140 StaticFilters.FILTER_ANOTHER_TARGET_CREATURE_YOU_CONTROL 2023-08-26 00:02:40 -04:00
xenohedron
6388a81f69 StaticFilters.FILTER_CONTROLLED_PERMANENT_AN_ENCHANTMENT 2023-08-26 00:02:40 -04:00
xenohedron
ed4a1bf33f [WOE] text fixes 2023-08-26 00:02:40 -04:00
Vivian Greenslade
6532ca9f66
[WOC] Implement Timber Paladin (#11025)
* updated condition to allow different comparisons and to allow filtering for auras

* implemented Timber Paladin

* fixed text
2023-08-25 21:11:28 -04:00
Susucre
7a93681112
fix Tree of Redemption (#11024) 2023-08-25 21:11:08 -04:00
Susucre
eec5bceb71
fix game log message for Banding (#11021) 2023-08-25 21:10:51 -04:00
Oleg Agafonov
93cb4404e3 game: fixed game error in some multi blocker damage use cases (NPE error); 2023-08-25 19:32:28 +04:00
Oleg Agafonov
640e5394c9 game: fixed game error with battle protector choosing on no opponents; 2023-08-25 19:17:13 +04:00
Oleg Agafonov
f6e625de72 game: fixed miss cards from zone moves in some rare use cases (choose cards order while leave/disconnect) 2023-08-25 18:23:39 +04:00
Oleg Agafonov
aeea3857f4 [DMU] fixed game error on Karn, Living Legacy emblem usage (miss emblem in token database); 2023-08-25 18:09:26 +04:00
Susucre
8e36a178a5
[WOE] Implement Pollen-Shield Hare (#10932)
* [WOE] Implement Pollen-Shield Hare

* apply review

---------

Co-authored-by: Evan Kranzler <theelk801@gmail.com>
2023-08-24 21:20:13 -04:00
Susucre
493cb811d5
[WOE] Implement Gruff Triplets (#10791)
* [WOE] Implement (Leaked) Gruff Triplets

* fix name predicate

* remove unecessary file with wrong predicate

---------

Co-authored-by: Evan Kranzler <theelk801@gmail.com>
2023-08-24 18:26:11 -04:00
Susucre
5998f43f4d
[WOE] Implement Rowdy Research ; Implement Witchstalker Frenzy (#10985)
* add new DynamicValue

* [WOE] Implement Rowdy Research

* [WOE] Implement Witchstalker Frenzy
2023-08-24 08:33:10 -04:00
Susucre
5cedc3258a
Cleanup now that server is no longer sending MageObject in ClientMessage (#10986) 2023-08-24 14:22:03 +04:00
Susucre
5062c84098
Refactor: removed server side objects from a client side game's data (#10788)
* Clean original values transmitted with CardView.originalObject
* Move RateCard to mage.Common, support cardView as argument.
* Clean PermanentView constructor for TestCardRenderDialog
2023-08-24 12:04:07 +04:00
xenohedron
6624e141c6 cleanup GainAbilityTargetEffect
remove unused parameters

strip reminder text
2023-08-24 00:51:47 -04:00
Susucre
27bba74c9f
[WOE] Implement Imodane, the Pyrohammer (#10922)
* [WOE] Implement Imodane, the Pyrohammer

* unit test Imodane

* apply review

---------

Co-authored-by: xenohedron <xenohedron@users.noreply.github.com>
2023-08-23 20:39:45 -04:00
Susucre
c047829614
[WOE] Implement Devouring Sugarmaw (#10969)
* [WOE] Implement Devouring Sugarmaw

* fix adventure cost

---------

Co-authored-by: xenohedron <xenohedron@users.noreply.github.com>
2023-08-23 20:38:26 -04:00
ssk97
a756529e05
Fix casting commander transformed (#10790)
Remove CastCommanderAbility and instead apply the modification directly
2023-08-24 03:30:09 +04:00
Susucre
f27e0740d2
[WOE] Implement Archon of the Wild Rose (#10947)
* adding Errata's PR predicate

* [WOE] Implement Archon of the Wild Rose

---------

Co-authored-by: Evan Kranzler <theelk801@gmail.com>
2023-08-23 09:30:25 -04:00
Susucre
65dba6c92d
[WOE] Implement Cheeky House-Mouse (#10945) 2023-08-22 23:14:04 -04:00
Susucre
4d3daaa5fa
[WOE] Implement Rotisserie Elemental (#10944) 2023-08-22 20:19:25 -04:00
Alexander Dahmen
6836db0196
[CLB] Implement Kagha Shadow Archdruid (#10919)
Signed-off-by: Alexander Dahmen <dahmena_hws@gmx.de>
2023-08-22 19:25:05 -04:00
Vivian Greenslade
491f47ddc6
[WOE] Implement Eriette of the Charmed Apple (#10904)
* WIP

* implemented can't attack effect

* moved logic for "permanents enchanted by Auras" to predicate

* added value hint for ability

* fixed static properties

* changed predicate logic

* fixed issues as per PR comments

* updated predicate name, changed count from static variable

* made DynamicValue static
2023-08-22 19:24:52 -04:00
Susucre
d789aea306
[WOE] Implement Welcome to Sweettooth (#10937) 2023-08-22 09:46:28 -04:00
Susucre
44fcf3553d
Rework Manaforge Cinder to have a Mana Ability (#10929) 2023-08-21 22:40:58 -04:00
Susucre
7180fd06ff
[WOE] Implement Hylda of the Icy Crown (#10901)
* tap trigger from Icewrought Sentry branch

* [WOE] Implement Hylda of the Icy Crown

---------

Co-authored-by: Evan Kranzler <theelk801@gmail.com>
2023-08-21 09:24:44 -04:00
Susucre
ecbc1dfa81
[WOE] Implement Icewrought Sentry (#10879)
* [WOE] Implement Icewrought Sentry

* add tests for the new trigger

---------

Co-authored-by: Evan Kranzler <theelk801@gmail.com>
2023-08-21 09:22:29 -04:00
xenohedron
4af977289e
refactor effects "you may cast... from... graveyard... exile it instead" (#10926)
* cleanup exiling cast spells

* common class MayCastTargetThenExileEffect

* fix zcc check

* add test suite
2023-08-21 00:26:09 -04:00
xenohedron
e02df1353a
cleanup discard effects (#10924)
* change text generation to use target

* remove a constructor

* condense another constructor

* condense numberCardsToDiscard constructors

* fully remove TargetController

* chaining for optional parameter

* new LookTargetHandChooseDiscardEffect
2023-08-20 13:30:44 -04:00
Susucre
343549c4d7
Fix PermanentMeld missing copy constructor ; add more Meld tests. (#10908)
* Add some unit tests on Meld mana value.

* Fix PermanentMeld missing copy constructor. add more Meld tests.

* clean text
2023-08-20 13:30:10 -04:00
xenohedron
035913988a
refactor: standardize to CantAttackYouAllEffect (#10923)
* adjust CantAttackYouAllEffect text, check permanent is planeswalker

* switch 3 cards to main class, remove redundant class
2023-08-20 13:28:37 -04:00
jbureau88
77d0d3c07e
Implement [BOT] Optimus Prime; adjust Bolster effect (#10129)
* Added implementation for Optimus Prime

* Added setCardName text and switch case for activateAlternateOrAdditionalCosts as disturb instead of default

* Fixed doubling effect bug

* Add only regular card number

* Added back alternate card for Optimus Prime and fixed Autobot Leader colors

* Convert before return from graveyard

* Convert before return from graveyard

* Fix images

* Resolve conflict with master

* don't manually set trigger phrase

* add additional effect capability to BolsterEffect, adjust text, flatten logic

* adjust Optimus Prime, Hero

* reimplement Optimus Prime, Autobot Leader

* add test

---------

Co-authored-by: xenohedron <xenohedron@users.noreply.github.com>
2023-08-20 13:28:17 -04:00
xenohedron
0b0ff83c1f improve comments in TokenImpl messy aura target-searching code 2023-08-18 22:15:46 -04:00
Susucre
43de68afe3
[WOE] Implement Stroke of midnight (refactor together similar effects) (#10834)
* [WOE] Implement Stroke of Midnight

* refactor similar effects together.

* add tests (and fix a bug)

---------

Co-authored-by: Evan Kranzler <theelk801@gmail.com>
2023-08-18 18:27:36 -04:00
theelk801
7e5583d3ae [WOE] Implement Into the Fae Court 2023-08-18 15:36:53 -04:00
theelk801
8753c94488 [WOC] Implement Gylwain, Casting Director 2023-08-18 15:26:38 -04:00
Susucre
ea513386fb
[WOE] Implement Johann, Apprentice Sorcerer (#10877) 2023-08-18 15:17:59 -04:00
Susucre
54ec026369
[WOE] Implement Rowan, Scion of War (#10853)
Co-authored-by: Evan Kranzler <theelk801@gmail.com>
2023-08-18 15:16:50 -04:00
Susucre
8ad37e19b8
[WOE] Implement Decadent Dragon (#10852)
Grouped together a few Gonti-like look effect.

Co-authored-by: Evan Kranzler <theelk801@gmail.com>
2023-08-18 15:13:13 -04:00
Susucre
4cfc6ebc37
[WOE] Implement Beseech the Mirror (#10842)
Co-authored-by: Evan Kranzler <theelk801@gmail.com>
2023-08-18 15:06:37 -04:00