* Fixed a bug were copied abilites (e.g. by Progenitor Mimic) did not use the correct controller after the control of the copying permanent changed (e.g. by Capitivating Vampire).

This commit is contained in:
LevelX2 2016-03-10 00:54:54 +01:00
parent 3184252d54
commit 4b0d027847
3 changed files with 9 additions and 2 deletions

View file

@ -162,6 +162,7 @@ public class ProgenitorMimicTest extends CardTestPlayerBase {
addCard(Zone.HAND, playerB, "Progenitor Mimic", 1);
addCard(Zone.BATTLEFIELD, playerB, "Island", 3);
addCard(Zone.BATTLEFIELD, playerB, "Forest", 3);
addCard(Zone.BATTLEFIELD, playerB, "Bloodrage Vampire", 1); // 3/1
castSpell(2, PhaseStep.PRECOMBAT_MAIN, playerB, "Progenitor Mimic");
setChoice(playerB, "Captivating Vampire");
@ -177,6 +178,9 @@ public class ProgenitorMimicTest extends CardTestPlayerBase {
execute();
assertPermanentCount(playerA, "Captivating Vampire", 2);
assertPowerToughness(playerB, "Bloodrage Vampire", 3, 1); // +0 because all Captivating Vampire are controlled by playerB
assertPowerToughness(playerA, "Captivating Vampire", 3, 3, Filter.ComparisonScope.All); // +1 from the other Captivating Vampire
assertPowerToughness(playerA, "Child of Night", 4, 3, Filter.ComparisonScope.All); // +2 from the two Captivating Vampire