MCPcopy Create free account
hub / github.com/Card-Forge/forge / manifest

Method manifest

forge-game/src/main/java/forge/game/card/Card.java:770–792  ·  view source on GitHub ↗
(Player p, SpellAbility sa, Map<AbilityKey, Object> params)

Source from the content-addressed store, hash-verified

768 }
769
770 public Card manifest(Player p, SpellAbility sa, Map<AbilityKey, Object> params) {
771 // Turn Face Down (even if it's DFC).
772 // Sometimes cards are manifested while already being face down
773 if (!turnFaceDown(true) && !isFaceDown()) {
774 return null;
775 }
776
777 // Just in case you aren't the controller, now you are!
778 setController(p, game.getNextTimestamp());
779
780 // Mark this card as "manifested"
781 setManifested(sa);
782
783 // Move to p's battlefield
784 Card c = game.getAction().moveToPlay(this, p, sa, params);
785 if (c.isInPlay()) {
786 c.setManifested(sa);
787 c.turnFaceDown(true);
788 c.updateStateForView();
789 }
790
791 return c;
792 }
793
794 public Card cloak(Player p, SpellAbility sa, Map<AbilityKey, Object> params) {
795 // Turn Face Down (even if it's DFC).

Callers 1

internalEffectMethod · 0.80

Calls 9

turnFaceDownMethod · 0.95
isFaceDownMethod · 0.95
setControllerMethod · 0.95
setManifestedMethod · 0.95
isInPlayMethod · 0.95
updateStateForViewMethod · 0.95
getNextTimestampMethod · 0.80
moveToPlayMethod · 0.80
getActionMethod · 0.45

Tested by

no test coverage detected