mirror of
https://github.com/correl/mage.git
synced 2025-01-11 11:05:23 +00:00
* Kiss, Dissident Mage - Fixed that it did not exile from graveyard casted split cards.
This commit is contained in:
parent
c73a3c5885
commit
b6b2103b6c
2 changed files with 30 additions and 1 deletions
|
@ -172,7 +172,7 @@ class KessDissidentMageWatcher extends Watcher {
|
|||
&& (spell.isInstant()
|
||||
|| spell.isSorcery())) {
|
||||
allowingObjects.add(event.getAdditionalReference());
|
||||
castSpells.put(new MageObjectReference(spell.getSourceId(), game),
|
||||
castSpells.put(new MageObjectReference(spell.getMainCard().getId(), game),
|
||||
event.getAdditionalReference().getSourceId());
|
||||
}
|
||||
}
|
||||
|
|
|
@ -144,4 +144,33 @@ public class PlayFromNonHandZoneTest extends CardTestPlayerBase {
|
|||
|
||||
}
|
||||
|
||||
/**
|
||||
* Kess, Dissident Mage and Fire/Ice - When you cast fire/ice from your
|
||||
* graverayr with kess it doesn't exile it self
|
||||
*/
|
||||
@Test
|
||||
public void testKessWithSpliCard() {
|
||||
// Flying
|
||||
// During each of your turns, you may cast an instant or sorcery card from your graveyard. If a card cast this way would be put into your graveyard this turn, exile it instead.
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Kess, Dissident Mage", 1);
|
||||
|
||||
// Fire {1}{R}
|
||||
// Fire deals 2 damage divided as you choose among one or two target creatures and/or players.
|
||||
// Ice {1}{U}
|
||||
// Tap target permanent.
|
||||
// Draw a card.
|
||||
addCard(Zone.GRAVEYARD, playerA, "Fire // Ice");
|
||||
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Mountain", 2);
|
||||
|
||||
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Fire", playerB);
|
||||
|
||||
setStopAt(1, PhaseStep.BEGIN_COMBAT);
|
||||
execute();
|
||||
|
||||
assertLife(playerB, 18);
|
||||
assertExileCount(playerA, "Fire // Ice", 1);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue