netrunner icon indicating copy to clipboard operation
netrunner copied to clipboard

resolve-ability called twice when rezzing cards

Open nealterrell opened this issue 11 years ago • 2 comments

Resolve-ability is being called twice when rezzing corp cards, which is why we are seeing #261, #254, and #252. On core.clj line 958, rez calls card-init, which calls resolve-ability on the rezzed card's card-def. rez then itself calls resolve-ability on the card-def, triggering the "on-rez" effect of the card a second time. For most cards this is no big deal, but it is an issue for Elizabeth Mills, illicit ice, and any ice that prompt on rez (Draco, TMI, Chimera).

I don't know if this is intentional and/or needed for some card interaction, so I have not submitted a fix for it.

nealterrell avatar Jun 23 '15 04:06 nealterrell

Thanks for the analysis. The resolve-ability call in the rez function was introduced in this merge 2fe828e

I removed the call to resolve-ability as I think it's safe to remove it. Can you have a look at the rest of your commit to double check?

mtgred avatar Jun 23 '15 10:06 mtgred

Huh, looks like I'm guilty. I don't see a reason for it there, but I will think about it and let you know if I find otherwise.

nealterrell avatar Jun 23 '15 14:06 nealterrell