mirror of
https://github.com/magefree/mage.git
synced 2025-12-23 03:51:58 -08:00
Fix Goldberry, River-Daughter
If the Goldberry and the target permanent had different counts of counters, they would not be filtered out from her first ability's effect. Fix this by using the Keys (counter name strings) rather than the Values (Counters).
This commit is contained in:
parent
8cef411c70
commit
bbe452352f
2 changed files with 7 additions and 6 deletions
|
|
@ -54,6 +54,7 @@ public class GoldberryRiverDaughterTest extends CardTestPlayerBase {
|
|||
@Test
|
||||
// Author: alexander-novo
|
||||
// Unhappy path - Try to remove some counters from something when some of those counters are already on Goldberry
|
||||
// (but now with different counts, to cover that edge case.)
|
||||
public void testCounterAlreadyOnGoldberry() {
|
||||
CounterType counter = CounterType.ACORN;
|
||||
String island = "Island";
|
||||
|
|
@ -61,7 +62,7 @@ public class GoldberryRiverDaughterTest extends CardTestPlayerBase {
|
|||
addCard(Zone.BATTLEFIELD, playerA, goldberry, 1);
|
||||
addCard(Zone.BATTLEFIELD, playerA, island, 1);
|
||||
|
||||
addCounters(1, PhaseStep.PRECOMBAT_MAIN, playerA, island, counter, 1);
|
||||
addCounters(1, PhaseStep.PRECOMBAT_MAIN, playerA, island, counter, 2);
|
||||
addCounters(1, PhaseStep.PRECOMBAT_MAIN, playerA, goldberry, counter, 1);
|
||||
|
||||
activateAbility(1, PhaseStep.PRECOMBAT_MAIN, playerA, ability1, island);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue