From 1d7ef1ed03d005379eeed9359b5ec5a629e4b6cc Mon Sep 17 00:00:00 2001 From: Susucre <34709007+Susucre@users.noreply.github.com> Date: Sun, 1 Jun 2025 23:06:15 +0200 Subject: [PATCH] add test for Betor, Ancestor's Voice Attempting to replicate #13716 bug without result. Assuming there was a counter replacement effect in place missing in the bug report. --- .../single/tdc/BetorAncestorsVoiceTest.java | 45 +++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 Mage.Tests/src/test/java/org/mage/test/cards/single/tdc/BetorAncestorsVoiceTest.java diff --git a/Mage.Tests/src/test/java/org/mage/test/cards/single/tdc/BetorAncestorsVoiceTest.java b/Mage.Tests/src/test/java/org/mage/test/cards/single/tdc/BetorAncestorsVoiceTest.java new file mode 100644 index 00000000000..ce8df2192bb --- /dev/null +++ b/Mage.Tests/src/test/java/org/mage/test/cards/single/tdc/BetorAncestorsVoiceTest.java @@ -0,0 +1,45 @@ +package org.mage.test.cards.single.tdc; + +import mage.constants.PhaseStep; +import mage.constants.Zone; +import mage.counters.CounterType; +import org.junit.Test; +import org.mage.test.player.TestPlayer; +import org.mage.test.serverside.base.CardTestPlayerBase; + +/** + * @author Susucr + */ +public class BetorAncestorsVoiceTest extends CardTestPlayerBase { + + /** + * {@link mage.cards.b.BetorAncestorsVoice Betor, Ancestor's Voice} {2}{W}{B}{G} + * Legendary Creature — Spirit Dragon + * Flying, lifelink + * At the beginning of your end step, put a number of +1/+1 counters on up to one other target creature you control equal to the amount of life you gained this turn. Return up to one target creature card with mana value less than or equal to the amount of life you lost this turn from your graveyard to the battlefield. + * 3/5 + */ + private static final String betor = "Betor, Ancestor's Voice"; + + // Bug Report: If you got Betor and Rhox Faithmender on the field, and attack with both. + // The gui shows you got the 8 life you are supposed to get, but in the end of turn trigger, + // there will be only 4 counters put on a creature. + @Test + public void test_RhowFaithmender() { + addCard(Zone.BATTLEFIELD, playerA, betor, 1); + addCard(Zone.BATTLEFIELD, playerA, "Rhox Faithmender", 1); + + attack(1, playerA, betor, playerB); + attack(1, playerA, "Rhox Faithmender", playerB); + + addTarget(playerA, "Rhox Faithmender"); // Betor trigger's first target + addTarget(playerA, TestPlayer.TARGET_SKIP); // second target + + setStrictChooseMode(true); + setStopAt(2, PhaseStep.PRECOMBAT_MAIN); + execute(); + + assertLife(playerA, 20 + 8); + assertCounterCount(playerA, "Rhox Faithmender", CounterType.P1P1, 8); + } +}