Skip to content

Commit

Permalink
docs: added additional todos for manifest abilities
Browse files Browse the repository at this point in the history
  • Loading branch information
JayDi85 committed Mar 2, 2024
1 parent 11ddfa0 commit 810f2c9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion Mage.Sets/src/mage/cards/g/GhastlyConscription.java
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ public GhastlyConscriptionEffect copy() {

@Override
public boolean apply(Game game, Ability source) {
// TODO: migrate to shared manifested code
Player controller = game.getPlayer(source.getControllerId());
Player targetPlayer = game.getPlayer(getTargetPointer().getFirst(game, source));
if (controller != null && targetPlayer != null) {
Expand All @@ -85,7 +86,8 @@ public boolean apply(Game game, Ability source) {
manaCosts = new ManaCostsImpl<>("{0}");
}
}
MageObjectReference objectReference = new MageObjectReference(card.getId(), card.getZoneChangeCounter(game) + 1, game);
Card battlefieldCard = BecomesFaceDownCreatureEffect.findDefaultCardSideForFaceDown(game, card);
MageObjectReference objectReference = new MageObjectReference(battlefieldCard.getId(), battlefieldCard.getZoneChangeCounter(game) + 1, game);
game.addEffect(new BecomesFaceDownCreatureEffect(manaCosts, objectReference, Duration.Custom, FaceDownType.MANIFESTED), newSource);
}
Set<Card> toBattlefield = new LinkedHashSet();
Expand Down
4 changes: 3 additions & 1 deletion Mage.Sets/src/mage/cards/j/JeskaiInfiltrator.java
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ public JeskaiInfiltratorEffect copy() {

@Override
public boolean apply(Game game, Ability source) {
// TODO: migrade to shared manifest code
Player controller = game.getPlayer(source.getControllerId());
if (controller != null) {
Set<Card> cardsToManifest = new HashSet<>();
Expand All @@ -105,7 +106,8 @@ public boolean apply(Game game, Ability source) {
manaCosts = new ManaCostsImpl<>("{0}");
}
}
MageObjectReference objectReference = new MageObjectReference(card.getId(), card.getZoneChangeCounter(game) + 1, game);
Card battlefieldCard = BecomesFaceDownCreatureEffect.findDefaultCardSideForFaceDown(game, card);
MageObjectReference objectReference = new MageObjectReference(battlefieldCard.getId(), battlefieldCard.getZoneChangeCounter(game) + 1, game);
game.addEffect(new BecomesFaceDownCreatureEffect(manaCosts, objectReference, Duration.Custom, FaceDownType.MANIFESTED), newSource);
});
controller.moveCards(exileZone.getCards(game), Zone.BATTLEFIELD, source, game, false, true, false, null);
Expand Down

0 comments on commit 810f2c9

Please sign in to comment.