mirror of
https://github.com/magefree/mage.git
synced 2026-01-10 21:02:08 -08:00
[TMP] Add Flailing Drake
Includes test.
This commit is contained in:
parent
be41a64975
commit
c48d381b24
2 changed files with 130 additions and 0 deletions
|
|
@ -0,0 +1,58 @@
|
|||
package org.mage.test.cards.single;
|
||||
|
||||
import mage.constants.PhaseStep;
|
||||
import mage.constants.Zone;
|
||||
import org.junit.Test;
|
||||
import org.mage.test.serverside.base.CardTestPlayerBase;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author anonymous
|
||||
*
|
||||
* Whenever Flailing Drake blocks or becomes blocked by a creature, that creature gets +1/+1 until end of turn.
|
||||
*/
|
||||
public class FlailingDrakeTest extends CardTestPlayerBase {
|
||||
|
||||
@Test
|
||||
public void testIncreaseBlocker() {
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Forest", 3);
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Island", 1);
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Flailing Drake", 1);
|
||||
|
||||
addCard(Zone.BATTLEFIELD, playerB, "Forest", 3);
|
||||
addCard(Zone.BATTLEFIELD, playerB, "Island", 3);
|
||||
addCard(Zone.BATTLEFIELD, playerB, "Snapping Drake", 1);
|
||||
|
||||
attack(3, playerA, "Flailing Drake");
|
||||
block(3, playerB, "Snapping Drake", "Flailing Drake");
|
||||
|
||||
setStopAt(3, PhaseStep.POSTCOMBAT_MAIN);
|
||||
execute();
|
||||
|
||||
assertGraveyardCount(playerA, "Flailing Drake", 1);
|
||||
//Snapping Drake 4/3
|
||||
assertPowerToughness(playerB, "Snapping Drake", 4, 3);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testIncreaseBlocked() {
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Forest", 3);
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Island", 1);
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Flailing Drake", 1);
|
||||
|
||||
addCard(Zone.BATTLEFIELD, playerB, "Forest", 3);
|
||||
addCard(Zone.BATTLEFIELD, playerB, "Island", 3);
|
||||
addCard(Zone.BATTLEFIELD, playerB, "Snapping Drake", 1);
|
||||
|
||||
attack(4, playerB, "Snapping Drake");
|
||||
block(4, playerA, "Flailing Drake", "Snapping Drake");
|
||||
|
||||
setStopAt(4, PhaseStep.POSTCOMBAT_MAIN);
|
||||
execute();
|
||||
|
||||
assertGraveyardCount(playerA, "Flailing Drake", 1);
|
||||
//Snapping Drake 4/3
|
||||
assertPowerToughness(playerB, "Snapping Drake", 4, 3);
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue