mirror of
https://github.com/magefree/mage.git
synced 2026-01-09 20:32:06 -08:00
Fix Skyfire Phoenix's triggered ability.
This commit is contained in:
parent
b708494647
commit
9a80b07d2a
3 changed files with 104 additions and 1 deletions
|
|
@ -0,0 +1,32 @@
|
|||
package org.mage.test.commander.duel;
|
||||
|
||||
import mage.constants.PhaseStep;
|
||||
import mage.constants.Zone;
|
||||
import mage.game.Game;
|
||||
import mage.game.GameException;
|
||||
import org.junit.Test;
|
||||
import org.mage.test.serverside.base.CardTestCommanderDuelBase;
|
||||
|
||||
import java.io.FileNotFoundException;
|
||||
|
||||
public class TestPartnerCommanders extends CardTestCommanderDuelBase {
|
||||
|
||||
|
||||
@Override
|
||||
protected Game createNewGameAndPlayers() throws GameException, FileNotFoundException {
|
||||
setDecknamePlayerA("CommanderDuel_Partners.dck"); // Commander = Ishai, Ojutai Dragonspeaker and Thrasios, Triton Hero
|
||||
return super.createNewGameAndPlayers();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testSkyfirePhoenix() {
|
||||
addCard(Zone.GRAVEYARD, playerA, "Skyfire Phoenix");
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Tropical Island", 4);
|
||||
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Thrasios, Triton Hero");
|
||||
setStopAt(1, PhaseStep.END_TURN);
|
||||
execute();
|
||||
|
||||
assertPermanentCount(playerA, "Thrasios, Triton Hero", 1);
|
||||
assertPermanentCount(playerA, "Skyfire Phoenix", 1);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue