Commit graph

38871 commits

Author SHA1 Message Date
Alex Vasile
e679574a15
Fixes for Mana.enough and Mana.needed. For #8153 (#8663)
Fixes to Mana.enough:

mana of any color (ManaType.Any) was being used to pay for colourless mana.
Fixes for Mana.needed:

mana of any color (ManaType.Any) was being used to pay for colourless mana.
calculation for generic mana remaining was using min(0, available) instead of max(0, available) meaning that leftover mana of other types was never used to pay for any leftover generic costs.
Other:

Added tests for both .needed and .enough.
Moved tests some tests from ManaUtilTest to ManaTest
Simplified Mana.subtractCosts by calling Mana.substract first to make use of common functionality.
Added more documentation
Added tests for both .needed
Added more tests for .enough to cover the changes with colourless mana.
2022-06-01 08:13:37 -06:00
Evan Kranzler
16914632c4 [CLB] Implemented Journey to the Lost City 2022-06-01 09:54:31 -04:00
Evan Kranzler
2bf4139a31 [CLB] Implemented Black Market Connections 2022-06-01 09:32:11 -04:00
Evan Kranzler
963d2cb417 [CLB] Implemented Burakos Party Leader 2022-06-01 09:23:33 -04:00
Evan Kranzler
cdcfef378a [CLB] Implemented Stick Together 2022-06-01 09:15:59 -04:00
Evan Kranzler
732130ea85 [CLB] Implemented Seasoned Dungeoneer 2022-06-01 09:00:07 -04:00
Evan Kranzler
ee9f9c1d77 [CLB] Implemented Solemn Doomguide 2022-06-01 08:45:18 -04:00
Evan Kranzler
686600a4fe [CLB] Implemented Folk Hero 2022-06-01 08:36:23 -04:00
Evan Kranzler
d4bb6d2092 [CLB] updated spoiler 2022-06-01 08:27:35 -04:00
Evan Kranzler
40f2a1031a [CLB] Implemented Spectacular Showdown 2022-05-31 21:41:34 -04:00
Evan Kranzler
265b341868 [CLB] Implemented Bane's Contingency 2022-05-31 21:29:06 -04:00
Evan Kranzler
2f9644b7ee [CLB] Implemented Acolyte of Bahamut 2022-05-31 21:21:05 -04:00
Evan Kranzler
cc669765e8 [CLB] Implemented Artificer Class 2022-05-31 21:15:24 -04:00
Evan Kranzler
2f640f2b05 [CLB] Implemented Guildsworn Prowler 2022-05-31 19:33:05 -04:00
Evan Kranzler
8303ac65af [CLB] Implemented Uchuulon 2022-05-31 19:26:01 -04:00
Evan Kranzler
0c407d30e5 [CLB] Implemented Ghastly Death Tyrant 2022-05-31 18:56:05 -04:00
Evan Kranzler
f650067be8 [CLB] Implemented Scouting Hawk 2022-05-31 18:49:43 -04:00
Evan Kranzler
8c890a9ea8 [CLB] Implemented Astral Dragon 2022-05-31 18:45:08 -04:00
Evan Kranzler
32227e27ff [CLB] Implemented Druidic Ritual 2022-05-31 18:39:37 -04:00
Evan Kranzler
d037cf5b32 [CLB] Implemented Coronation of Chaos 2022-05-31 18:34:05 -04:00
Evan Kranzler
4c86405120 [CLB] Implemented Swashbuckler Extraordinaire 2022-05-31 18:31:05 -04:00
Evan Kranzler
4324c75e29 [VOC] fixed Umbris, Fear Manifest NPE error (fixes #9044) 2022-05-31 18:23:14 -04:00
Evan Kranzler
19a9c0df43 [CLB] Implemented Mocking Doppelganger 2022-05-31 18:19:27 -04:00
Evan Kranzler
80c9c33b78 fixed issues with cards that goad multiple creatures at once (fixes #9007, fixes #8958) 2022-05-31 18:11:15 -04:00
Evan Kranzler
e22648a385 [CLB] Implemented Zellix, Sanity Flayer 2022-05-31 18:06:29 -04:00
Oleg Agafonov
da6e5260ec
Merge pull request #9045 from PurpleCrowbar/imagefixes
Specific token image bug fixes
2022-05-31 23:55:07 +04:00
PurpleCrowbar
9a02f6cb90 Fixed C20 Locust God insects' images not displaying 2022-05-31 20:28:48 +01:00
PurpleCrowbar
6c02923c15 Fixed M20 emblem images not showing in game 2022-05-31 20:22:49 +01:00
Evan Kranzler
f07e72f838 [CLB] Implemented Flaming Fist Officer 2022-05-31 09:31:02 -04:00
Evan Kranzler
2adf5ca7b6 [CLB] Implemented Earth Tremor 2022-05-31 09:24:48 -04:00
Evan Kranzler
eee9fb9f25 [CLB] Implemented Contraband Livestock 2022-05-31 09:19:33 -04:00
Evan Kranzler
c3adff6bc9 [CLB] Implemented Blood Money 2022-05-31 09:03:36 -04:00
Evan Kranzler
8c4145e7f9 [CLB] Implemented Bonecaller Cleric 2022-05-31 08:56:56 -04:00
Evan Kranzler
b48a023a94 [CLB] Implemented Bothersome Quasit 2022-05-31 08:48:49 -04:00
Evan Kranzler
baf3ad18b5 [CLB] Implemented Clan Crafter 2022-05-31 07:44:03 -04:00
Evan Kranzler
027bd439b4 [CLB] fixed Moonshae Pixie text generation 2022-05-31 07:34:32 -04:00
Evan Kranzler
852c4b1382 [CLB] updated spoiler and reprints 2022-05-31 07:34:13 -04:00
Evan Kranzler
ecbfc4edc4 removed locked in parameter from BoostAllEffect 2022-05-30 22:20:50 -04:00
Evan Kranzler
07f49bb863 [CLB] Implemented Cloudkill 2022-05-30 22:15:59 -04:00
Evan Kranzler
0ef537c28b [CLB] Implemented Cut a Deal 2022-05-30 21:58:44 -04:00
Evan Kranzler
74c175765e [CLB] Implemented Cloakwood Swarmkeeper 2022-05-30 21:51:21 -04:00
Evan Kranzler
e197b60519 [CLB] Implemented Myrkul's Edict 2022-05-30 15:22:38 -04:00
Evan Kranzler
aaee4b3be4 [CLB] Implemented Warehouse Thief 2022-05-30 14:21:47 -04:00
Evan Kranzler
92ddceef8f [CLB] Implemented Moonshae Pixie 2022-05-30 14:14:19 -04:00
Evan Kranzler
8d3c45007c fixed verify failures 2022-05-30 12:00:27 -04:00
Evan Kranzler
01eb0cdfae [CLB] Implemented Vicious Battlerager 2022-05-30 11:47:31 -04:00
Evan Kranzler
72f957583c [CLB] Implemented Sword Coast Serpent 2022-05-30 11:42:12 -04:00
Evan Kranzler
e7c2b14e62 [CLB] Implemented Saddle of the Cavalier 2022-05-30 11:34:47 -04:00
Evan Kranzler
3e451b895f [CLB] Implemented Juvenile Mist Dragon 2022-05-30 11:28:01 -04:00
Evan Kranzler
2eb03e6382 [CLB] Implemented Colossal Badger 2022-05-30 11:20:46 -04:00