(Player p, SpellAbility sa, Map<AbilityKey, Object> params)
| 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). |
no test coverage detected