mirror of
https://github.com/magefree/mage.git
synced 2026-01-10 21:02:08 -08:00
* Fixed a problem with Dash not giving Haste to the creature beginning with the second use of Dash (fixes #4985).
This commit is contained in:
parent
4e862019f6
commit
b6f7efe5e9
3 changed files with 28 additions and 4 deletions
|
|
@ -27,6 +27,7 @@
|
|||
*/
|
||||
package org.mage.test.cards.abilities.keywords;
|
||||
|
||||
import mage.abilities.keyword.HasteAbility;
|
||||
import mage.constants.PhaseStep;
|
||||
import mage.constants.Zone;
|
||||
import org.junit.Test;
|
||||
|
|
@ -120,4 +121,26 @@ public class DashTest extends CardTestPlayerBase {
|
|||
assertGraveyardCount(playerB, "Geist of the Moors", 1);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Test that the creature got Dash again if cast again
|
||||
*/
|
||||
@Test
|
||||
public void testDashedCreatureDiesInCombatAndIsLaterRecast() {
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Mountain", 2);
|
||||
addCard(Zone.HAND, playerA, "Screamreach Brawler"); // 2/3
|
||||
|
||||
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Screamreach Brawler");
|
||||
setChoice(playerA, "Yes");
|
||||
attack(1, playerA, "Screamreach Brawler");
|
||||
|
||||
castSpell(3, PhaseStep.PRECOMBAT_MAIN, playerA, "Screamreach Brawler");
|
||||
setStopAt(3, PhaseStep.BEGIN_COMBAT);
|
||||
execute();
|
||||
|
||||
assertLife(playerB, 18);
|
||||
assertPermanentCount(playerA, "Screamreach Brawler", 1);
|
||||
assertHandCount(playerA, "Screamreach Brawler", 0);
|
||||
assertAbility(playerA, "Screamreach Brawler", HasteAbility.getInstance(), true);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue