mirror of
https://github.com/magefree/mage.git
synced 2026-01-10 21:02:08 -08:00
* Spellskite - Fixed a bug that wrong log message was written if target was chnaged from a player to spellskite.
This commit is contained in:
parent
334f919ef9
commit
63c6aa226a
2 changed files with 48 additions and 16 deletions
|
|
@ -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);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue