mirror of
https://github.com/magefree/mage.git
synced 2026-01-25 04:39:18 -08:00
fix Jeskai Infiltrator
This commit is contained in:
parent
9c7abca22d
commit
a979bbfdae
1 changed files with 3 additions and 3 deletions
|
|
@ -95,8 +95,8 @@ class JeskaiInfiltratorEffect extends OneShotEffect {
|
||||||
|
|
||||||
Ability newSource = source.copy();
|
Ability newSource = source.copy();
|
||||||
newSource.setWorksFaceDown(true);
|
newSource.setWorksFaceDown(true);
|
||||||
while (!exileZone.isEmpty()) {
|
//the Set will mimic the Shuffling
|
||||||
Card card = exileZone.getRandom(game);
|
exileZone.getCards(game).forEach(card -> {
|
||||||
ManaCosts manaCosts = null;
|
ManaCosts manaCosts = null;
|
||||||
if (card.isCreature()) {
|
if (card.isCreature()) {
|
||||||
manaCosts = card.getSpellAbility().getManaCosts();
|
manaCosts = card.getSpellAbility().getManaCosts();
|
||||||
|
|
@ -106,7 +106,7 @@ class JeskaiInfiltratorEffect extends OneShotEffect {
|
||||||
}
|
}
|
||||||
MageObjectReference objectReference = new MageObjectReference(card.getId(), card.getZoneChangeCounter(game) + 1, game);
|
MageObjectReference objectReference = new MageObjectReference(card.getId(), card.getZoneChangeCounter(game) + 1, game);
|
||||||
game.addEffect(new BecomesFaceDownCreatureEffect(manaCosts, objectReference, Duration.Custom, FaceDownType.MANIFESTED), newSource);
|
game.addEffect(new BecomesFaceDownCreatureEffect(manaCosts, objectReference, Duration.Custom, FaceDownType.MANIFESTED), newSource);
|
||||||
}
|
});
|
||||||
controller.moveCards(exileZone.getCards(game), Zone.BATTLEFIELD, source, game, false, true, false, null);
|
controller.moveCards(exileZone.getCards(game), Zone.BATTLEFIELD, source, game, false, true, false, null);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue