netrunner icon indicating copy to clipboard operation
netrunner copied to clipboard

Black File + Dr Lovegood

Open Rotage opened this issue 7 years ago • 2 comments

Hi

The Black File - https://netrunnerdb.com/en/card/10099 Dr. Lovegood - https://netrunnerdb.com/en/card/09042

At present if Black File is blanked by Dr Lovegood while Black File has 0 counters and the corp then scores 7 points on their turn it results in a corp victory

It would appear that Dr Lovegood is blanking Blackfile for the runner turn and the corp turn when it should only be blank for the runner turn

Rotage avatar Mar 05 '19 20:03 Rotage

I think the issue is that Black File only sets the :cannot-win-on-points flag when installed, meaning it's not set when re-enabled. As enable-card doesn't trigger the enabled card's play effect, (https://github.com/mtgred/netrunner/blob/master/src/clj/game/core/cards.clj#L311) Black File won't ever re-set the flag.

To confirm, install Black File and Lovegood, pass turn back and forth, have Lovegood blank Black File, pass turn back and forth, then pass turn without having Lovegood blank Black File. I think the Corp will be able to win on points.

If this is the case, this can be fixed by giving The Black File a :reactivate effect which sets the :cannot-win-on-points flag, as Lovegood triggers this effect when re-enabling the card (https://github.com/mtgred/netrunner/blob/master/src/clj/game/cards/resources.clj#L746) . See DJ Fenris for an example of how this is used.

If you fix this bug, please also have a look at Lewi Guilherme, (#3345) which I think has the same bug, and fix him too.

presheaf avatar Mar 13 '19 11:03 presheaf

This issue should be closed, Black File with Dr. Lovegood works correctly.

Kubik161 avatar Jan 16 '20 19:01 Kubik161