mirror of
https://github.com/magefree/mage.git
synced 2025-12-21 19:11:59 -08:00
[OTJ] Implement Obeka, Splitter of Seconds
This commit is contained in:
parent
0c6422668e
commit
86ca3673ff
3 changed files with 123 additions and 0 deletions
|
|
@ -0,0 +1,38 @@
|
|||
package org.mage.test.cards.single.otj;
|
||||
|
||||
import mage.constants.PhaseStep;
|
||||
import mage.constants.Zone;
|
||||
import org.junit.Test;
|
||||
import org.mage.test.serverside.base.CardTestPlayerBase;
|
||||
|
||||
/**
|
||||
* @author Susucr
|
||||
*/
|
||||
public class ObekaSplitterOfSecondsTest extends CardTestPlayerBase {
|
||||
|
||||
/**
|
||||
* {@link mage.cards.o.ObekaSplitterOfSeconds Obeka, Splitter of Seconds} {1}{U}{B}{R}
|
||||
* Legendary Creature — Ogre Warlock
|
||||
* Menace
|
||||
* Whenever Obeka, Splitter of Seconds deals combat damage to a player, you get that many additional upkeep steps after this phase.
|
||||
* 2/5
|
||||
*/
|
||||
private static final String obeka = "Obeka, Splitter of Seconds";
|
||||
|
||||
@Test
|
||||
public void test_ExtraUpkeep() {
|
||||
setStrictChooseMode(true);
|
||||
|
||||
addCard(Zone.BATTLEFIELD, playerA, obeka);
|
||||
// At the beginning of your upkeep, you gain 1 life.
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Fountain of Renewal");
|
||||
|
||||
attack(1, playerA, obeka, playerB);
|
||||
setStopAt(1, PhaseStep.POSTCOMBAT_MAIN);
|
||||
execute();
|
||||
|
||||
assertLife(playerA, 20 + 1 + 2); // 1 regular upkeep + 2 obeka ones
|
||||
assertTapped(obeka, true); // checks that no extra untap happened
|
||||
assertHandCount(playerA, 0); // checks that no draw step happened
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue