netrunner icon indicating copy to clipboard operation
netrunner copied to clipboard

Only one boomerang shuffles after successful run

Open Kubik161 opened this issue 6 years ago • 1 comments

I have used two boomerangs during run, run was successful, only one got shuffled.

Expected behavior is both being shuffled back.

I assume, that our current implementation:

   ... after boomerang is used...

(register-events
    ;; Boomerang is trashed at this point
    (find-card "Boomerang" (:discard (:runner @state)))

    ... etc ...

is selecting same card from discard every time. We should probably somehow track every copy of boomerang separately?

Kubik161 avatar May 16 '20 09:05 Kubik161

Thanks for the report, and good point. The issue is that trashed cards have a new cid, so finding them becomes hard. I’ll have to think on this.

NoahTheDuke avatar May 16 '20 10:05 NoahTheDuke