mirror of
https://github.com/correl/mage.git
synced 2024-11-25 11:09:53 +00:00
[CMR] fixed Eligeth, Crossroads Augur - wrong event type for replacement effect (#7234);
This commit is contained in:
parent
a50f3c5416
commit
a1ed8e01b3
2 changed files with 38 additions and 1 deletions
|
@ -66,7 +66,7 @@ class EligethCrossroadsAugurReplacementEffect extends ReplacementEffectImpl {
|
|||
|
||||
@Override
|
||||
public boolean checksEventType(GameEvent event, Game game) {
|
||||
return event.getType() == GameEvent.EventType.SURVEIL;
|
||||
return event.getType() == GameEvent.EventType.SCRY;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -0,0 +1,37 @@
|
|||
package org.mage.test.cards.single.cmr;
|
||||
|
||||
import mage.constants.PhaseStep;
|
||||
import mage.constants.Zone;
|
||||
import org.junit.Test;
|
||||
import org.mage.test.serverside.base.CardTestPlayerBase;
|
||||
|
||||
/**
|
||||
* @author JayDi85
|
||||
*/
|
||||
|
||||
public class EligethCrossroadsAugurTest extends CardTestPlayerBase {
|
||||
|
||||
@Test
|
||||
public void test_Playable() {
|
||||
removeAllCardsFromLibrary(playerA);
|
||||
addCard(Zone.LIBRARY, playerA, "Balduvian Bears", 2);
|
||||
|
||||
// If you would scry a number of cards, draw that many cards instead.
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Eligeth, Crossroads Augur", 1);
|
||||
//
|
||||
// When Faerie Seer enters the battlefield, scry 2.
|
||||
addCard(Zone.HAND, playerA, "Faerie Seer", 1); // {U}
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Island", 1);
|
||||
|
||||
// scry multiple cards and draws instead
|
||||
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Faerie Seer");
|
||||
|
||||
setStrictChooseMode(true);
|
||||
setStopAt(1, PhaseStep.END_TURN);
|
||||
execute();
|
||||
assertAllCommandsUsed();
|
||||
|
||||
assertPermanentCount(playerA, "Faerie Seer", 1);
|
||||
assertHandCount(playerA, "Balduvian Bears", 2);
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue