netrunner icon indicating copy to clipboard operation
netrunner copied to clipboard

Uniqueness not checked when installing Runner cards from hand

Open nealterrell opened this issue 10 years ago • 7 comments

This used to work, but is now broken. I believe it's because in-play? just flat out does not work. It uses (:side card) thinking that will return :runner or :corp, when it really returns "Runner" or "Corp".

nealterrell avatar Jan 04 '16 06:01 nealterrell

Problem lies in the all-installed function. Changing the (= side :runner) to (= (side-str side) "Runner") solves the problem.

Saintis avatar Jan 05 '16 01:01 Saintis

Don't change that all-installed... there are cards without unit tests that use the function. in-play? needs to call all-installed appropriately.

nealterrell avatar Jan 05 '16 05:01 nealterrell

side-str should allow for both "Runner" and :runner to be passed in correctly. To get in-play? to call all-installed 'correctly' you would need a side-keyword function then, since the side is taken directly from the card...

Saintis avatar Jan 05 '16 21:01 Saintis

Is this resolved or still hanging out there?

JoelCFC25 avatar Feb 26 '16 14:02 JoelCFC25

Still exists. On Feb 26, 2016 6:43 AM, "Joel Koepp" [email protected] wrote:

Is this resolved or still hanging out there?

— Reply to this email directly or view it on GitHub https://github.com/mtgred/netrunner/issues/1071#issuecomment-189308799.

nealterrell avatar Feb 26 '16 16:02 nealterrell

I'm not sure--it could be an artifact of my yet-to-be-merged changes, but at this moment in dev after installing a Kati Jones I'm not able to install a second copy.

JoelCFC25 avatar Mar 11 '16 21:03 JoelCFC25

This is definitely resolved now for installs straight from hand. I'll have a solution for the cards that host and install with a full unit test of everything soon.

JoelCFC25 avatar Mar 18 '16 12:03 JoelCFC25