Rev 4410: Initial code for AF_ChangeZone
When you get a chance Sol can you explain what this will mean. Will we convert the Bounce, Retrieve and Fetch AFs to this new AF when it is finished?
High Quality Resources for Collectible Card Games and Home of the CCGHQ Team
https://www.slightlymagic.net/forum/
https://www.slightlymagic.net/forum/viewtopic.php?f=52&t=3723
A:AB$Bounce| Cost$ U U U T | ValidTgts$ Permanent | TgtPrompt$ Select target permanent | Destination$ Hand | SpellDescription$ Return target permanent to its owner's hand.
converts to
A:AB$ChangeZone | Cost$ U U U T | ValidTgts$ Permanent | TgtPrompt$ Select target permanent | Origin$ Battlefield | Destination$ Hand | SpellDescription$ Return target permanent to its owner's hand.
Is there any sample cards that use it? It should work out of the box I think though?zerker2000 wrote:Any chance you could get Origin$ Exile while you're at it?
private static void changeZoneResolve(AbilityFactory af, SpellAbility sa){
HashMap<String,String> params = af.getMapParams();
String origin = params.get("Origin");
if (origin.equals("Library") || origin.equals("Hand") || origin.equals("Sideboard")){
changeHiddenOriginResolve(af, sa);
}
else if (origin.equals("Graveyard") || origin.equals("Exile") || origin.equals("Battlefield")){
changeKnownOriginResolve(af, sa);
}
}
`Chris H. wrote:The Retrieve cards should also be easy, they will need Origin$ Graveyard. I will try to get to them this weekend.
`Chris H. wrote:The only ones left are the Fetch cards.
I'd say add it, since I don't think we have many "exile face-down" cards at the moment.friarsol wrote:Yea there's plenty of cards that do it as a trigger, but that isn't ready in AFs yet. Never even heard of Pull From Eternity.
I just tested it and it works, although it currently doesn't look for the "Face Up" part, since I don't think we really track that in zones other than the Battlefield. Since it doesn't have that Face Up restriction, I'm not going to submit the card at this time.
We probably should start tracking that at some point. And we also should probably add Face-Up and Face-Down to hasProperty() since there is a fair amount of caring for those properties in Morph related cards.