Commit graph

45730 commits

Author SHA1 Message Date
jimga150
c73cfebcd9
Fix EntersBattlefieldOneOrMoreTriggeredAbility (#12592)
* Apply fix for ZONE_CHANGE_GROUP events making tokens controlled by different players

* Add test

* Remove unused import

* Fix implementation

* Rewrite to use ZONE_CHANGE_BATCH

* Fix OPPONENT case

* Add default case

* refactor to avoid using stream as local variable and use ZoneChangeEvents in filters

* Fix typo
2024-07-30 00:39:01 -04:00
jimga150
32042687fb
[BLB] Implement Eluge the Shoreless Sea; expand SpellsCostReductionControllerEffect (#12607)
* Implement Eluge, the Shoreless Sea (missing mana cost reduction clause)

* implement ability to convert colored to generic costs in SpellsCostReductionControllerEffect

* fix text generation on SpellsCostReductionControllerEffect

* remove unnecessary setText() calls on SpellsCostReductionControllerEffect

* make logfile from master run

* Fix plurality detection

* Eliminate unnecessary setText() calls in other cards

* Delete logfile

* remove redundant type cast

* Add parameter documentation
2024-07-30 00:38:21 -04:00
PurpleCrowbar
5043430481 Fixes to Wick and Communal Brewing 2024-07-30 03:18:36 +01:00
PurpleCrowbar
4f90270fa1 Add BLB token images 2024-07-29 22:07:02 +01:00
PurpleCrowbar
831313bcb9
[BLB] Implement Vren, the Relentless (#12615) 2024-07-29 21:45:54 +01:00
PurpleCrowbar
da368e9abf [BLC] Implement Communal Brewing 2024-07-29 02:52:25 +01:00
PurpleCrowbar
3ec3b773e3 Fix Ancient Excavation 2024-07-29 00:10:03 +01:00
PurpleCrowbar
683008ef21 Fix verify 2024-07-28 17:56:54 +01:00
PurpleCrowbar
21f5f93dd6 [BLB] Implement Wick, the Whorled Mind 2024-07-28 17:25:51 +01:00
PurpleCrowbar
9db54d7892 [BLB] Implement Ral, Crackling Wit 2024-07-28 15:20:23 +01:00
Oleg Agafonov
1d701df0e8 GUI: added gui scale support for skip and phase button on game panel (part of #969, #6887):
- reworked skip and phase buttons to use layouts instead IDE designer;
- added GUI scale support skip and phase buttons (depend on dialogs font size from preferences settings);
2024-07-28 18:01:15 +04:00
Oleg Agafonov
8186b35dfb GUI: improved gui scale support (part of #969, #6887):
- added GUI scale support for dialog titles;
- added GUI scale support for hints tool;
- fixed broken font in chat and game logs on settings change;
- fixed wrong size of pick choice dialog in some use cases;
2024-07-28 11:47:12 +04:00
Oleg Agafonov
1578ab7946 test: fixed verify test 2024-07-27 23:43:57 +04:00
PurpleCrowbar
43d7da9581 Fix players who have lost being valid attack targets 2024-07-27 19:45:22 +01:00
saltstonestorm
fff7496322
game: updated cards ban list for duel commander (#12611) 2024-07-27 22:44:33 +04:00
Oleg Agafonov
f9b59ca411 GUI, deck editor: added gui scale support for sort/order labels, fixed wrong label hints (part of #969, #6887) 2024-07-27 22:39:29 +04:00
Oleg Agafonov
53a072b759 GUI, preferences: removed 4 useless size settings, fixed wrong fonts in few places like miss image path (part of #969, #6887) 2024-07-27 21:35:33 +04:00
Oleg Agafonov
ba929d5692 GUI: improved GUI scale support (fixed font sizes in card icons popup, ability picker dialog, part of #969) 2024-07-27 17:05:54 +04:00
Oleg Agafonov
393dbc4047 Can't be activated effects - fixed that some restricted effects show abilities as playable (example: Sharkey, Tyrant of the Shire and Karakas, fixed #10642) 2024-07-27 15:38:13 +04:00
Oleg Agafonov
21ad11dbdc GUI: added GUI scale support for ability choice dialog (related to #12155, #969) 2024-07-27 11:58:35 +04:00
Oleg Agafonov
2bf6e3e3a2 GUI: added mana and other symbols support in choose spell dialog (closes #12155) 2024-07-27 10:17:22 +04:00
Oleg Agafonov
521a0f6e32 GUI: introduced default card hints:
* refactor: added helper emblems instead rad counter's inherent emblems (use initGameDefaultHelperEmblems to define new card hints or other fake objects);
* refactor: added card hints support for emblems, planes and other command objects;
* GUI: added storm counter as default card hint (use hints tool to see it, closes #12360);
2024-07-27 09:40:41 +04:00
Oleg Agafonov
83823acec7 GUI, performance: fixed memory/resources leaks on some components rendering 2024-07-26 03:27:10 +04:00
Oleg Agafonov
1f3fad6594 GUI, preferences: reworked size settings:
- added size settings for player's panel size (closes #12455, closes #12451, closes #5605);
- size settings can be edit by slider or by text edit;
- size settings for fonts has preview button with real text sample;
- improved some tabs and hints for better UX;
- improved GUI rendering performance;
2024-07-26 03:27:10 +04:00
Oleg Agafonov
921e656e3c images: fixed miss images of War Room and Revenge in Star Wars (closes #10411) 2024-07-25 14:36:44 +04:00
Oleg Agafonov
1403b3aa37 images: fixed Star Wars images download, added Star Wars tokens (closes #12602) 2024-07-25 14:27:01 +04:00
xenohedron
5cc4901580 fix #12575
add test for AddManaInAnyCombinationEffect

cleanup Grand Warlord Radha, add test

simplify some abilities to common class

remove unused constructors
2024-07-25 01:35:51 -04:00
ssk97
be3065789d
[BLB] Consumed by Greed, Thought Shucker, Mabel's Mettle, Heaped Harvest (#12600)
* Consumed by Greed

* Fix Gift text

* Thought Shucker

* Mabel's Mettle

* Heaped Harvest
2024-07-24 20:25:44 -04:00
xenohedron
669b9636cb fix verify 2024-07-24 20:25:14 -04:00
theelk801
199f8c28cd [BLB] Implement Gossip's Talent 2024-07-24 10:37:54 -04:00
theelk801
b5b991774f a few requested changes 2024-07-24 10:15:21 -04:00
theelk801
4de960abc1 [BLB] Implement Glarb, Calamity's Augur 2024-07-23 17:55:41 -04:00
theelk801
f548043f0b [BLB] Implement Keen-Eyed Curator 2024-07-23 17:51:46 -04:00
theelk801
b6bf126dd2 [BLB] Implement Builder's Talent 2024-07-23 17:38:27 -04:00
theelk801
5768c9d43d [BLB] Implement Cruelclaws Heist 2024-07-23 17:22:10 -04:00
theelk801
d4d98e3a23 [BLB] Implement Three Tree Scribe 2024-07-23 16:53:38 -04:00
theelk801
a221392ff3 [BLB] Implement Dour Port-Mage 2024-07-23 16:47:05 -04:00
theelk801
56756e4c8d [BLB] Implement Skyshipper Duo 2024-07-23 16:38:15 -04:00
theelk801
f838057008 [BLB] Implement Waterspout Warden 2024-07-23 16:31:39 -04:00
theelk801
716d03e155 [BLB] Implement Otterball Antics 2024-07-23 15:41:15 -04:00
theelk801
a44154669f [BLB] Implement Wildfire Howl 2024-07-23 15:30:28 -04:00
theelk801
e970a62278 [BLB] Implement Sazacap's Brew 2024-07-23 15:24:03 -04:00
theelk801
12aa81cbf4 [BLB] Implement Mind Spiral 2024-07-23 15:21:23 -04:00
theelk801
8ed32d03f0 [BLB] Implement Dewdrop Cure 2024-07-23 15:13:06 -04:00
ssk97
3933364e6e
[ACR] Implement 4x Equipment-related cards (#12593)
* Assassin Gauntlet

* Fix many minor mistakes in ACR cards

* Battlefield Improvisation

* Phantom Blade

* Misthios's Fury

* Fix unset target tag, missing damage amount text

* Remove now-unneeded setText calls for DamageTargetControllerEffect
2024-07-23 02:20:18 -04:00
xenohedron
88443f5fb4 minor fixes on some [BLB] cards 2024-07-23 02:19:27 -04:00
xenohedron
d9287adea3 minor simplification to ConditionalTargetAdjuster
protect internal Targets list
2024-07-23 02:16:26 -04:00
ssk97
e8808c3ae3
Remove duplicate code for X costs (#12551)
* Replace "([a-zA-Z]+).getManaCostsToPay().getX()" with CardUtil.getSourceCostsTag(game, $1, "X", 0)
Fix Disrupting Shoal

* Change final card .getX() calls

* Condense all ManacostVariableValue enum values into "instance"

* Further removal of getX, Display X symbol for non-mana X cards

* Fix test

* Fully remove ManaCosts.getX

* Replace all different X dynamic values with GetXValue

* Remove individual cards checking getAmount for X values (leaving cost reduction that does not use X)

* Add null check for game object inside getSourceCostsTagsMap

* fix build errors

* fix Vicious Betrayal

* text fix
2024-07-23 01:57:47 -04:00
Cameron Merkel
1cb902fc43
[BLB] Implement Fecund Greenshell (#12589)
* [BLB] Implement Fecund Greenshell

* Add missing card-window text, missing paren in similar effects
2024-07-23 01:57:10 -04:00
ssk97
a6e66d6209
Conditional target adjuster (#12585)
* Add ReplacingTargetAdjuster

* Use new target adjuster

* Change name to ConditionalTargetAdjuster, don't use blueprint

* Take a Targets list

* Add keepOldTargets option

* Add missed DamagedPlayerControlsTargetAdjuster to Sigil of Sleep

* Cards using updated ConditionalTargetAdjuster

* BLB gift cards currently implemented

* fix wrong default for keepOldTargets

* Fix Urborg Repossession missing 1st target tag
2024-07-23 00:14:28 -04:00