From f627d19137c9c1d310f15572b07d8b9a7e38d4ab Mon Sep 17 00:00:00 2001 From: drmDev Date: Fri, 22 Jul 2016 22:37:29 -0400 Subject: [PATCH] Naya Soulbeast bug confirmed for issue #2102 --- .../abilities/enters/NayaSoulbeastTest.java | 47 +++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 Mage.Tests/src/test/java/org/mage/test/cards/abilities/enters/NayaSoulbeastTest.java diff --git a/Mage.Tests/src/test/java/org/mage/test/cards/abilities/enters/NayaSoulbeastTest.java b/Mage.Tests/src/test/java/org/mage/test/cards/abilities/enters/NayaSoulbeastTest.java new file mode 100644 index 00000000000..cc5217b5bb2 --- /dev/null +++ b/Mage.Tests/src/test/java/org/mage/test/cards/abilities/enters/NayaSoulbeastTest.java @@ -0,0 +1,47 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package org.mage.test.cards.abilities.enters; + +import mage.constants.PhaseStep; +import mage.constants.Zone; +import mage.counters.CounterType; +import org.junit.Test; +import org.mage.test.serverside.base.CardTestPlayerBase; + +/** + * + * @author escplan9 (Derek Monturo - dmontur1 at gmail dot com) + */ +public class NayaSoulbeastTest extends CardTestPlayerBase { + + /* + Reported bug: I am finding an issue with Naya Soulbeast, it enters the battlefield and the effect that makes the players reveal + the top of their library work, my issue is that it doesn't gain the +1/+1 counters even if there are non-land cards revealed, + and since it is a 0/0 it is destroyed as it enters battlefield unless you have a permanent grants creatures you control +1/+1 + and even in that situation, it doesn't gain the +1/+1 counters. + */ + @Test + public void testNayaEntersWithTwoCounters() { + + // Naya Soulbeast - {6}{G}{G} + // Creature Beast - 0/0 - Trample + // When you cast Naya Soulbeast, each player reveals the top card of his or her library. + // Naya Soulbeast enters the battlefield with X +1/+1 counters on it, where X is the total converted mana cost of all cards revealed this way. + addCard(Zone.HAND, playerA, "Naya Soulbeast", 1); + addCard(Zone.BATTLEFIELD, playerA, "Forest", 8); + + removeAllCardsFromLibrary(playerB); + addCard(Zone.LIBRARY, playerB, "Bronze Sable", 1); // {2} 2/1 + + castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Naya Soulbeast"); + setStopAt(1, PhaseStep.BEGIN_COMBAT); + execute(); + + assertPermanentCount(playerA, "Naya Soulbeast", 1); + assertCounterCount("Naya Soulbeast", CounterType.P1P1, 2); + assertPowerToughness(playerA, "Naya Soulbeast", 2, 2); + } +}