Commit graph

10835 commits

Author SHA1 Message Date
PurpleCrowbar
d3d99d609b Add MOM token images (excluding Incubator tokens) 2023-04-18 15:38:36 +01:00
PurpleCrowbar
85c98bc239 Add 30A token images 2023-04-18 15:02:13 +01:00
theelk801
33ec1b7e58 [MOM] Implement Axgard Artisan 2023-04-17 20:23:12 -04:00
theelk801
fbf874fdc5 [MOM] Implement Drana and Linvala 2023-04-17 19:53:32 -04:00
theelk801
8c2ee477fa [MOM] Implement Ghalta and Mavren 2023-04-17 19:23:55 -04:00
theelk801
d94e699d0e [MOM] Implement Inga and Esika 2023-04-17 19:13:25 -04:00
theelk801
a7a45763b3 [MOM] Implement Complete the Circuit 2023-04-17 18:26:27 -04:00
theelk801
7160a907c9 [MOM] Implement Invasion of New Phyrexia / Teferi Akosa of Zhalfir 2023-04-17 18:09:27 -04:00
theelk801
302e445b90 [MOC] Implement Conclave Sledge-Captain 2023-04-17 17:49:37 -04:00
PurpleCrowbar
25636565a9 [MOC] Implement Wildfire Awakener 2023-04-17 19:43:00 +01:00
amoscatelli
6059422afc
[J22] Implement Alandra, Sky Dreamer (#10219)
* Alandra Sky Dreamer
DrawSecondCardTriggeredAbility refactored into DrawCardTriggeredAbility
DynamicValue support for DrawCardTriggeredAbility
DynamicValue support for BoostAllOfChosenSubtypeEffect

* cardNumber as int
static use of cardwatcher

* removing spaces

* FaerieMastermind and ZimoneAndDina using the new generic DrawCardTriggeredAbility

* AlandraSkyDreamer and DrawCardTriggeredAbility test

* renaming DrawCardTriggeredAbility to DrawNthCardTriggeredAbility

* merging the boost effects into a single ability

* merging two effects to the same ability

* text added to effects

---------

Co-authored-by: drago <drago@192.168.1.72>
2023-04-17 09:12:18 -04:00
theelk801
c270d282d0 a few small updates to battle rules 2023-04-16 22:22:51 -04:00
theelk801
9e1aa964ae [MOM] Implement Blightreaper Thallid / Blightsower Thallid 2023-04-16 20:18:24 -04:00
theelk801
ebea097e1c [MOC] Implement Filigree Vector 2023-04-16 19:04:54 -04:00
theelk801
89ce5bbc3d [MOC] Implement Gimbal, Gremlin Prodigy 2023-04-16 09:44:08 -04:00
theelk801
1cfe05f38e [MOC] Implement Teferi's Talent 2023-04-16 09:30:44 -04:00
theelk801
56d37b3496 [MOM] various text fixes 2023-04-15 21:11:25 -04:00
theelk801
453d734e30 [MOM] Implement Invasion of Segovia / Caetus, Sea Tyrant of Segovia 2023-04-15 17:52:42 -04:00
theelk801
e7f6173cc2 [MOM] Implement Invasion of Kylem / Valor's Reach Tag Team 2023-04-15 17:37:14 -04:00
Merlingilb
0623f52f68
MOM: Added card "Omnath, Locus of All" and its abilities and effects (#10029)
* MOM: Added card "Omnath, Locus of All" and its abilities and effects

* fixed rule text

* added art variant

* test

---------

Co-authored-by: Daniel Eberhard <daniel.h.e@gmx.de>
Co-authored-by: Evan Kranzler <theelk801@gmail.com>
2023-04-15 13:16:51 -04:00
Oleg Agafonov
79b8093047 * Jaheira's Respite - fixed that it allows to choose any cards amount (#10206), added card hint;
* Arachnogenesis, Blessed Reversal - added card hint;
2023-04-15 15:38:44 +04:00
Oleg Agafonov
29afbe042c GUI: fixed that some split cards show a fuse rule (#10217) 2023-04-15 14:32:36 +04:00
Oleg Agafonov
d6506657d6 Fixed NPE 2023-04-15 14:13:51 +04:00
theelk801
c025349791 [MOM] Implement Vorinclex 2023-04-14 21:09:22 -04:00
theelk801
25e8cf7cef [MOM] Implement Sheoldred 2023-04-14 20:54:59 -04:00
theelk801
dd91a58c85 [MOM] Implement Elesh Norn 2023-04-14 20:12:25 -04:00
Oleg Agafonov
bc5c381fef GUI: fixed card's defense stat drawing in deck editor 2023-04-14 18:28:25 +04:00
Oleg Agafonov
3226b85589 GUI: fixed error on second side switch 2023-04-14 18:13:36 +04:00
Merlingilb
f63efe14b5
MOM: Added card "Jin-Gitaxias" and its abilities and effects (#10036)
* MOM: Added card "Jin-Gitaxias" and its abilities and effects

* rule text improvement

* remove unused imports

---------

Co-authored-by: Daniel Eberhard <daniel.h.e@gmx.de>
Co-authored-by: Evan Kranzler <theelk801@gmail.com>
2023-04-14 09:50:09 -04:00
theelk801
b120ce0fa9 [MOM] Implement Scrappy Bruiser 2023-04-14 08:51:08 -04:00
theelk801
8d7b73151c [MOM] various text fixes 2023-04-13 22:44:42 -04:00
theelk801
1021443b2a [NCC] fix Gavel of the Righteous alternate equip 2023-04-13 20:03:29 -04:00
Evan Kranzler
947351932b
Ready for Review: Implementing Battles (#10156)
* add types and subtypes

* add startingDefense attribute

* [MOM] Implement Invasion of Ravnica / Guildpact Paragon

* fix two small errors

* refactor various instances of "any target"

* fully implement defense counters

* battles can now be attacked

* [MOM] Implement Invasion of Dominaria / Serra Faithkeeper

* [MOM] Implement Invasion of Innistrad / Deluge of the Dead

* [MOM] Implement Invasion of Kaladesh / Aetherwing, Golden-Scale Flagship

* [MOM] Implement Invasion of Kamigawa / Rooftop Saboteurs

* [MOM] Implement Invasion of Karsus / Refraction Elemental

* [MOM] Implement Invasion of Tolvada / The Broken Sky

* simplify battle info ability

* fix verify failure

* some more fixes for attacking battles

* [MOM] Implement Invasion of Kaldheim / Pyre of the World Tree

* [MOM] Implement Invasion of Lorwyn / Winnowing Forces

* [MOM] Implement Invasion of Moag / Bloomwielder Dryads

* [MOM] Implement Invasion of Shandalar / Leyline Surge

* [MOM] Implement Invasion of Belenon / Belenon War Anthem

* [MOM] Implement Invasion of Pyrulea / Gargantuan Slabhorn

* [MOM] Implement Invasion of Vryn / Overloaded Mage-Ring

* [MOM] Implement Marshal of Zhalfir

* [MOM] Implement Sunfall

* implement protectors for sieges

* partially implement siege defeated trigger

* fix verify failure

* some updates to blocking

* [MOM] Implement Invasion of Mercadia / Kyren Flamewright

* [MOM] Implement Invasion of Theros / Ephara, Ever-Sheltering

* [MOM] Implement Invasion of Ulgrotha / Grandmother Ravi Sengir

* [MOM] Implement Invasion of Xerex / Vertex Paladin

* add initial battle test

* fix verify failure

* [MOM] Implement Invasion of Amonkhet / Lazotep Convert

* [MOM] update spoiler

* update how protectors are chosen

* update text

* battles can't block

* add control change test

* rename battle test for duel

* add multiplayer test

* [MOM] Implement Invasion of Alara / Awaken the Maelstrom

* [MOM] Implement Invasion of Eldraine

* [MOM] Implement Invasion of Ergamon / Truga Cliffhanger

* [MOM] Implement Invasion of Ixalan / Belligerent Regisaur

* battles now cast transformed (this is super hacky but we need to refactor TDFCs anyway)

* add TODO

* add ignore for randomly failing test

* a few small fixes

* add defense to MtgJsonCard (unused like loyalty)

* implement ProtectorIdPredicate

* small fixes
2023-04-13 20:03:16 -04:00
theelk801
edf1cff8a8 [MOM] Implement Rampaging Raptor 2023-04-13 09:15:59 -04:00
Oleg Agafonov
01caeed298 Merge fix 2023-04-13 17:06:22 +04:00
Oleg Agafonov
d17df585c5 Tokens reworked:
- removed outdated code;
 - updated logic to choose a set code for a tokens in different use cases (related to #10150);
 - added many tests for client and server token's data (related to #10139);
 - prepare for tokens database (related #6955);
2023-04-13 16:18:53 +04:00
Oleg Agafonov
ff15edbce8 Game: added new set Thirtieth Anniversary Edition (30A) 2023-04-13 14:38:03 +04:00
Oleg Agafonov
47ee0f7f5a Voice Of Resurgence - fixed token 2023-04-12 09:48:28 +04:00
theelk801
312cff0c0f [MOM] various text fixes 2023-04-11 09:32:31 -04:00
Sean Walsh
7db278bdf1
Implement Brazen Cannonade, and new UntilEndOfNextCombatStep duration (#10047) 2023-04-10 20:36:21 -04:00
theelk801
f1fdfc2c70 [MOM] Implement Polukranos Reborn / Polukranos, Engine of Ruin 2023-04-10 20:21:57 -04:00
theelk801
c1073ee801 [MOM] Implement Baral and Kari Zev 2023-04-10 09:13:43 -04:00
theelk801
ff41b7631d fix test failure 2023-04-09 15:44:30 -04:00
theelk801
7a3841c45c [MOM] Implement Ancient Imperiosaur 2023-04-09 13:23:05 -04:00
theelk801
2c0486673f [MOM] Implement Zephyr Singer 2023-04-09 13:19:13 -04:00
theelk801
9237b26b74 [MOC] Implement Chivalric Alliance 2023-04-09 09:10:32 -04:00
theelk801
eb27c30409 [MOC] Implement Blight Titan 2023-04-09 09:09:01 -04:00
Oleg Agafonov
f7b32cadd7 Improved watchers to support SortedSet fields correctly (related to #10092, #10192) 2023-04-09 08:06:58 +04:00
theelk801
402cea2697 [MOC] Implement Herald of Hoofbeats 2023-04-08 21:43:20 -04:00
Evan Kranzler
b3245e0238
Revert "[J22] Implement Alandra, Sky Dreamer and refactor of DrawSecondCardTriggeredAbility (#10092)" (#10193)
This reverts commit 0ebaeb20c7.
2023-04-08 21:42:50 -04:00
theelk801
82cbe87b95 [SLD] Implement Xenk, Paladin Unbroken 2023-04-08 19:40:07 -04:00
Oleg Agafonov
914cfc1d3a Refactor: fixed getRules usage, clean SplitCard code 2023-04-08 19:27:47 +04:00
Oleg Agafonov
8f748b0f2c Tests: added verify checks for wrong set's settings like parent set and block name (temporary disabled) 2023-04-07 17:27:46 +04:00
theelk801
ae0773de4e [MOM] Implement Etched Host Doombringer 2023-04-06 20:37:24 -04:00
theelk801
53e9e1d800 [MOM] Implement Ephara's Dispersal 2023-04-06 20:12:32 -04:00
theelk801
a2036e0c33 [MOM] Implement Compleated Huntmaster 2023-04-06 19:55:53 -04:00
theelk801
9059ed31eb [MOM] Implement Dreg Recycler 2023-04-06 09:07:17 -04:00
theelk801
e984d2a901 [MOM] Implement Overgrown Pest 2023-04-05 09:57:39 -04:00
theelk801
f409a72221 [MOM] Implement Enduring Bondwarden 2023-04-05 09:30:17 -04:00
Oleg Agafonov
64434fbcbc [MOM] fixed Artistic Refusal (wrong modes), added additional checks for modes 2023-04-05 12:13:36 +04:00
Oleg Agafonov
dddb7363b2 Refactor: fixed miss token constructors 2023-04-05 11:13:55 +04:00
theelk801
287bcde15c add verify test for backup ability 2023-04-04 22:19:11 -04:00
theelk801
b4e2059a61 [MOM] Implement Ozolith, the Shattered Spine 2023-04-04 19:31:17 -04:00
Oleg Agafonov
a6337fd28a Cheats: improved cheat and test commands to use same set_code-card_name notation, added additional tests (related to #10139, cheat command example: battlefield:Human:XLN-Island:1) 2023-04-04 22:05:22 +04:00
theelk801
96cf6b2927 [MOM] Implement Elvish Vatkeeper 2023-04-04 08:16:37 -04:00
theelk801
c087e77776 [MOM] Implement Xerex Strobe-Knight 2023-04-03 20:11:16 -04:00
theelk801
4b71941d21 [MOM] Implement Joyful Stormsculptor 2023-04-03 19:58:20 -04:00
theelk801
df5f124966 [MOM] Implement Merciless Repurposing 2023-04-02 16:00:58 -04:00
theelk801
ea1625aabd [MOM] Implement Seedpod Caretaker 2023-04-02 15:11:44 -04:00
theelk801
94d1178a5a [MOM] Implement Deeproot Wayfinder 2023-04-01 19:56:01 -04:00
theelk801
1727ec1fb5 add battle card type to main branch 2023-04-01 19:36:23 -04:00
theelk801
4706b695e7 [MOM] Implement Wrenn and Realmbreaker 2023-04-01 19:19:53 -04:00
amoscatelli
0ebaeb20c7
[J22] Implement Alandra, Sky Dreamer and refactor of DrawSecondCardTriggeredAbility (#10092)
DrawSecondCardTriggeredAbility refactored into DrawCardTriggeredAbility
DynamicValue support for DrawCardTriggeredAbility
DynamicValue support for BoostAllOfChosenSubtypeEffect

Co-authored-by: drago <drago@192.168.1.72>
2023-04-01 23:45:18 +04:00
Oleg Agafonov
e1c7139425 Tests: added additional watcher test for #10092 2023-04-01 23:42:23 +04:00
Oleg Agafonov
407369ea83 Merge fix 2023-04-01 19:07:15 +04:00
Oleg Agafonov
1bc4b9d675 Fixed NPE in ManaPaid events usage 2023-04-01 18:58:00 +04:00
Oleg Agafonov
ad3b76dae6 Fixed game error for few cards like Agent's Toolkit (fix NotSerializableException, #9580); 2023-04-01 18:52:31 +04:00
Oleg Agafonov
4bf3e43da6 * GUI: face down cards improved:
* now it show face up cards in game logs on game end;
 * now it show face up cards in battlefield on game end (#4635);
 * fixed that real card face was visible in network data;
2023-04-01 18:40:06 +04:00
Oleg Agafonov
d393ac9c60 Fixed NPE in some cards with exile zone (example: Draugr Necromancer) 2023-03-31 23:38:09 +04:00
theelk801
f339ec0904 [MOM] Implement Boon-Bringer Valkyrie 2023-03-30 19:40:36 -04:00
Oleg Agafonov
a648268c4c * Howlpack Avenger - fixed game error on usage (#9781) 2023-03-26 22:45:23 +04:00
Oleg Agafonov
b632d89caa Refactor: fixed wrong usage of getSourceObjectIfItStillExists (fixed error "cannot be cast to Permanent"); 2023-03-26 13:10:00 +04:00
Oleg Agafonov
bfba179bdf * Body Count - fixed game error on usage (miss watcher) 2023-03-25 16:16:11 +04:00
Oleg Agafonov
a15a0daa04 Fixed potential NPE errors in getPhase usage (fixed Berserker's Frenzy, etc) 2023-03-25 16:01:27 +04:00
Oleg Agafonov
cfd7464b49 Refactor: added edit protection for some unmodifiable lists 2023-03-25 15:22:13 +04:00
Oleg Agafonov
a7ab25a5b5 * Your opponents can't cast - fixed game error on some usage (NPE fix) 2023-03-25 15:14:02 +04:00
Oleg Agafonov
22552ede47 * Goad all ability: fixed game error in some use cases (NPE fix) 2023-03-25 14:54:40 +04:00
Oleg Agafonov
fe073bba0b Game: fixed NPE on draft auto-pickup on timeout 2023-03-25 14:00:07 +04:00
Oleg Agafonov
66d0ef4b35 Refactor cards and token images code (#10139):
- removed outdated token store format (example: BIRD.W.BIRD.CREATURE.1.1.full.jpg)
 - removed duplicated cache images code;
 - removed duplicated set code fields;
 - removed outdated auto-generated thumb files (also all *.thumb.zip files will be deleted on startup);
2023-03-24 06:44:11 +04:00
Oleg Agafonov
d019acbd55 Tests: improved addCard command, now it can add card from specific set (use 40K:Plains as card name param, #10139) 2023-03-23 23:17:34 +04:00
PurpleCrowbar
92706d23cb Fix VOW zombie token image not showing 2023-03-23 14:45:26 +00:00
PurpleCrowbar
7b69628da2 Fix decayed zombie token, as described in #10139 2023-03-22 20:42:12 +00:00
Oleg Agafonov
e8734702a6 Improved verify tests:
- added check for wrong symbols in card number;
 - added check for miss cards in the set (run manually test_checkWrongCardsDataInSets);
 - improved performance;
2023-03-21 16:12:12 +04:00
Oleg Agafonov
a7480aeab1 * Game: fixed random sort order of choices in choose dialogs 2023-03-21 03:11:55 +04:00
Oleg Agafonov
6b05562336 * Choose an ability - fixed not working cards like Argivian Avenger, Atraxas Skitterfang, Steel Seraph (#10115) 2023-03-21 01:59:12 +04:00
PurpleCrowbar
2c15ac39fc Fix zombie tokens from MIC not displaying with images 2023-03-19 19:22:06 +00:00
Oleg Agafonov
e48f024909 * Game: fixed wrong booster's cards ratio in sets with various arts (#7333) 2023-03-19 19:55:21 +04:00
PurpleCrowbar
bd2678242d Improve grammar and written clarity on Commander zone replacement effect. Still works with Oathbreaker 2023-03-15 03:49:26 +00:00
PurpleCrowbar
03b82ff7ee Fix multiple cards not saying which revealed cards were chosen to put into hand. Closes #9949 2023-03-12 22:01:11 +00:00
Oleg Agafonov
4e9ffdfaf9 * GUI: double faced cards improves:
* fixed images download for alternative prints (#9826, #9701);
 * fixed wrong pair of main and second side arts for alternative prints;
2023-03-11 17:35:18 +04:00