* Spellskite - Fixed a bug that wrong log message was written if target was chnaged from a player to spellskite.

This commit is contained in:
LevelX2 2015-10-01 22:01:49 +02:00
parent 334f919ef9
commit 63c6aa226a
2 changed files with 48 additions and 16 deletions

View file

@ -197,4 +197,32 @@ public class SpellskiteTest extends CardTestPlayerBase {
assertLife(playerB, 20);
}
/**
* My opponent cast Lightning Bolt, targeting me. I redirected it to my
* Spellskite. The log window said Spellskite was an invalid target (though
* it should be valid). Spellskite still appeared to be targeted and took
* the damage, so just a log issue I guess.
*/
@Test
public void testRedirectBolt() {
addCard(Zone.BATTLEFIELD, playerA, "Mountain", 4);
addCard(Zone.HAND, playerA, "Lightning Bolt");
addCard(Zone.BATTLEFIELD, playerB, "Spellskite", 1);
addCard(Zone.BATTLEFIELD, playerB, "Island", 1);
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Lightning Bolt", playerB);
activateAbility(1, PhaseStep.PRECOMBAT_MAIN, playerB, "{UP}: Change a target of target spell or ability to {this}.", "Lightning Bolt");
setStopAt(1, PhaseStep.BEGIN_COMBAT);
execute();
assertGraveyardCount(playerA, "Lightning Bolt", 1);
assertLife(playerA, 20);
assertLife(playerB, 20);
}
}