Page 1 of 1
Imprint

Posted:
14 May 2011, 23:10
by slapshot5
Hi all,
I've been looking at Imprint cards, especially Mimic Vat and Prototype Portal now that AF_Copy basically works. All of the Imprint stuff just looks like triggers and abilities for stuff that we have in AFs already. I'm wondering if the best way to handle Imprint is like this:
1. add an "Imprint$ True" check at the AbilityFactory.java level
2. If this is set, take the "Defined" or TargetCards from the given AF and set an ArrayList<Card> in the af.getHostCard() object
3. Make Imprinted accessible like:
*SVar:X:Imprinted$CardManaCost
*Defined$ Imprinted
That should handle most of the cards with Imprint I think.
If anyone's thought about this or has questions/comments/concerns, please post.
Thanks,
slapshot5
Re: Imprint

Posted:
14 May 2011, 23:25
by friarsol
Seems reasonable.
For Mimic Vat we would need a way to "unimprint" cards for those imprint abilities that aren't of the common variety.
Re: Imprint

Posted:
14 May 2011, 23:47
by slapshot5
Looks like I'm just going to parallel the Remember stuff. Save off in MagicStack.resolveStack() and check for Unimprint$ True right before saving any new stuff.
Re: Imprint

Posted:
14 May 2011, 23:49
by friarsol
Is there any way we can reuse the Remember stuff?
Re: Imprint

Posted:
15 May 2011, 00:03
by slapshot5
I thought about that. But I don't want to get into a situation like Attached for Equipment and Auras, and not being able to tell which is which from scripting.
I can use the same function calls from MagicStack.resolveStack(), but I would use a separate data structure and it would be distinguishable in script as layed out in my original post.
I also think it should very specifically state "Imprint" in the AF params to be clear exactly what is happening.
Re: Imprint

Posted:
15 May 2011, 01:17
by slapshot5
*sigh*
In general, this was a good idea, but it's a bit more complicated since "exile from hand" (i.e. ChangeZone hidden origin) don't use Target.
So, what I'll do for now is add manual calls to remember imprinted in those specific AFs.
Imprint cards are going to need careful testing, but I think we all already knew that.
-slapshot5
Re: Imprint

Posted:
15 May 2011, 08:50
by Hellfish
Heh, I was hoping to improve and expand Remembered to do exactly this. I understand your arguments,though, and the cards appear to work.

EDIT:Looking closer, a ruling on Prototype Portal states that the copy ability can't be activated if no card was imprinted. This is not currently the case. However, you'd think Soul Foundry would have the same ruling, but it does not.

Re: Imprint

Posted:
15 May 2011, 13:07
by slapshot5
Hellfish wrote:EDIT:Looking closer, a ruling on Prototype Portal states that the copy ability can't be activated if no card was imprinted. This is not currently the case. However, you'd think Soul Foundry would have the same ruling, but it does not.

Yeah, I read that when I was coding it. It's easy enough to add a SA_Restriction, but then I also saw Soul Foundry... I probably just need to go ahead and make the Restriction...
-slapshot5