Commit graph

43375 commits

Author SHA1 Message Date
PurpleCrowbar
5fd8255a8a Fix Teyo wall token color and add its image 2023-08-31 23:37:58 +01:00
PurpleCrowbar
43a2bf0d9a Add WOC token images 2023-08-31 23:37:58 +01:00
PurpleCrowbar
fb7e5a7688 Add WOE token images 2023-08-31 23:37:58 +01:00
theelk801
e70fedeaef [WOC] Implement Court of Vantress 2023-08-31 17:57:41 -04:00
arcox
2f0c1d84c5
Lint: fix 'declarations should use interfaces instead of classes' bugs (#11082) 2023-08-31 21:42:45 +04:00
Oleg Agafonov
e3229d7eab refactor: use same code style in library's methods 2023-08-31 19:38:37 +04:00
Oleg Agafonov
c5deb3d3ba [NEO] Planar Incision - fixed game error on usage (NPE error) 2023-08-31 19:15:01 +04:00
theelk801
1197925486 [WOE] add all printings 2023-08-31 09:50:02 -04:00
xenohedron
d6c690601d
Merge pull request #11031 from xenohedron/cleanup-7a-7b
More SetBasePowerToughnessSourceEffect cleanup
2023-08-31 00:29:59 -04:00
Oleg Agafonov
593451376b merge fix 2023-08-31 08:16:38 +04:00
xenohedron
d0d708ba52 Add tests 2023-08-30 23:40:56 -04:00
Oleg Agafonov
060b8f9dc9 backup ability: fixed wrong duration and discard in Streetwise Negotiator, added related tests and runtime/verify checks (related to #11068) 2023-08-31 07:29:05 +04:00
Vivian Greenslade
9085820605
[WOC] Implement Faerie Bladecrafter (#11075) 2023-08-30 23:25:39 -04:00
xenohedron
1903f90b3a better text generation, a couple more individual fixes 2023-08-30 23:25:10 -04:00
Oleg Agafonov
6768184e18 typo fixed (related to #11068), added backup ability docs 2023-08-31 06:06:47 +04:00
xenohedron
22961162ad text fixes related to recent updates 2023-08-30 20:54:27 -04:00
Vivian Greenslade
a65c2204ce
Rework CombatDamageByToughness effects (#11068)
* split effect into three classes for convenience

* added static filter

* refactored cards using effect

* fixed issues as per PR comments

* changed predicate and fixed text

* added unit test, fixed text issues with Baldin

* set static text

* changed outcome

* added stop to test

* fixs issues as per PR comments
2023-08-30 20:16:14 -04:00
xenohedron
3f25b93e91 [WOE] enable booster generation 2023-08-30 20:15:41 -04:00
Vivian Greenslade
c45bc1e884
[WOC] Implement Malleable Impostor (#11074) 2023-08-30 19:48:40 -04:00
Vivian Greenslade
a7a4299c7f
[WOC] Implement Knickknack Ouphe (#11070) 2023-08-30 19:48:33 -04:00
Susucre
3d91971e68
clean all copy constructors in cards starting U-V (#11066) 2023-08-30 19:48:21 -04:00
Susucre
236860795a
clean all copy constructors in cards starting W-X-Y-Z (#11067) 2023-08-30 19:48:13 -04:00
Susucre
96a2c277b2
clean some of the most frequent copy constructor / copy method (#11053) 2023-08-30 19:48:03 -04:00
Vivian Greenslade
5ddb69e1ba
Rework DealCombatDamageControlled to allow a creature filter (#11037)
* Added filter to ability

* wip

* updated logic for trigger to use new event

* updated classes using trigger to account for constructor changes

* condensed constructors, added total damage dealt as value, added exception for SetTargetPointer

* fixed set value

* fixed optional flag on cards

* fixed filter
2023-08-30 19:47:52 -04:00
Susucre
5b01cf51bd
Fix Lord Skitter- filter missing SubType.RAT (#11071) 2023-08-30 19:17:30 -04:00
Vivian Greenslade
aafc4cb76b
[WOC] Implement Brenard, Ginger Sculptor (#11062)
* [WOC] Implement Brenard, Ginger Sculptor

* updated with new FoodAbility
2023-08-30 19:17:15 -04:00
Susucre
9abe115c68
more cleanup of copy method/constructor (#11056) 2023-08-30 19:17:05 -04:00
Susucre
fab00d2f27
[WOE] Implement Curse of the Werefox (#11009)
* [WOE] Implement Curse of the Werefox

* apply review

* Fix aura (and equipment?) tokens not checking for protection on target

* fix targetting of reflexive trigger, by creating a custom fight effect.

* fix reflexive ability target.
2023-08-30 19:16:22 -04:00
Susucre
2d9599fbbd
[WOE] Implement Faerie Slumber Party (#10949) 2023-08-30 19:16:08 -04:00
Susucre
2a5dd4103c
[WOE] Implement Ashiok, Wicked Manipulator (#10909)
* [WOE] Implement Ashiok, Wicket Manipulator

* Add Ashiok's abilities

* basic pay life replacement tests

* many tests later

* add warning on token expecting watcher

* apply review

* rework text generation
2023-08-30 19:15:56 -04:00
Susucre
fe165f1fd0
Fix Adventures exiling themselves before applying their effects (#10793)
* Rework adventures to exiles themself after applying other effects

* fix duelist

* finalize all adventures

* apply review

* add card name to error

* fix remaining adventures

* finalize the last adventures.
2023-08-30 19:15:47 -04:00
xenohedron
a427406d5f fix Sutured Ghoul 2023-08-29 23:33:59 -04:00
theelk801
3ed0dd4f84 [WOC] Implement Giant Inheritance 2023-08-29 21:52:58 -04:00
Vivian Greenslade
2cd8bc6f6c
Create common implementation for predefined tokens (#11065)
* adds token abilities

* updated cards to use new abilities
2023-08-29 20:28:21 -04:00
Susucre
d67539746e
fix Gandalf, Wayward Voyager (#11063) 2023-08-29 20:26:35 -04:00
Vivian Greenslade
f7b355dcc7
[WOE] Implement Territorial Witchstalker (#11013) 2023-08-29 20:26:19 -04:00
theelk801
bbff8de53d fix verify failures 2023-08-29 10:30:18 -04:00
theelk801
0eb63eca39 [MAT] add all variants 2023-08-29 09:57:36 -04:00
theelk801
eca1c92186 [SLD] update set 2023-08-29 09:55:54 -04:00
theelk801
2fcdd29be7 [SLD] Implement Arden Angel 2023-08-29 09:52:58 -04:00
Susucre
3e251e0ea5
[WOE] Implement Extraordinary Journey (#10948) 2023-08-29 09:41:29 -04:00
Susucre
2e90d321ca
[WOE] Implement Yenna, Redtooth Regent (#10931) 2023-08-29 09:39:36 -04:00
Susucre
fa778d352d
[WOE] Implement Elusive Otter (#11061) 2023-08-29 09:35:34 -04:00
xenohedron
8c0f2b9bf8
Followup cleanup to manaCosts access in AbilityImpl (#11060)
(a relic of the rejected proposal to lazily instantiate manaCosts was left in #9625 and is removed here, allowing the fields to be made final)
2023-08-28 22:42:34 -04:00
bobwoco
a7b06483ab
dev: added back concurrent and add dep comments, related to #11028 (#11059)
Co-authored-by: Ethan Ward <ethanandrewward@gmail.com>
2023-08-29 04:06:43 +04:00
Susucre
566f4dc7f7
[WOM] Implement (not yet official) Mosswood Dreadknight (#10792) 2023-08-28 18:27:28 -04:00
Oleg Agafonov
557e0a06e1 tests: fixed string compare in verify test 2023-08-28 12:55:56 +04:00
Susucre
7d34484362
verify test: fix false positives from mana ability adjustments (#11047) 2023-08-27 17:58:51 -04:00
Alex Vasile
a2162ec3e7
Refactor: private fields and performance tweaks (#9625)
1a. Make `costs`, `manaCosts`, and `manaCostsToPay` private in `AbilityImpl` with access through getters/setters 
1b. fix cost adjuster for imprinted cards affected by the above

2a. Lazy instantiation for rarely used `data` field in `TargetPointerImpl`

3a. Pre-allocate certain array sizes in `Modes` and `CostsImpl`

4a. Make `manaTemplate` private in `BasicManaEffect`, copy when passing outside the class 
4b. Don't copy `manaTemplate` in copy constructor since it doesn't change 
4c. Add comments explaining copy usage for `manaTemplate` 
4d. Remove redundant variable assignment and make fields final 

---------

Co-authored-by: xenohedron <xenohedron@users.noreply.github.com>
2023-08-27 17:58:19 -04:00
xenohedron
53be4f384e Remove fake "marker" abilities
Only three cards used these, but it should be handled by a hint instead and be more broadly applicable
2023-08-27 15:20:48 -04:00