Parasite events hooked up twice on install
Parasite and any other card that installs directly from hand onto a target (Personal Touch, or using Off-Campus Apartment to host/install from hand) are receiving events twice, causing lots of goofiness. This is from today's changes to registering events in host. Flow of logic:
- Parasite is clicked, which calls
runner-installwhich sees that Parasite has a:hostingkey and recursively resolvesrunner-installwith a:host-card. runner-installcallshost, which callsregister-eventsin order to handle the situation of hosting a card that was already installed.- We return to
runner-installwhich immediately callscard-init; this registers events again. - Parasite now receives 2
:runner-turn-beginsevents and gains 2 tokens per turn; and 2:pre-ice-strengthevents, granting -2 strength per token. OP.
Paging @mtgred !
So this appears to be fixed by 1d3c86fdaf9da4cacfd2d4ce84a1f48141afffba . It seems to be working fine on my dev machine after syncing with upstream. @mtgred, does this sound like something you just fixed?
I guess this also fixed the issue that hosted, but uninstalled cards react to events? Like Logos on The Supplier or Grimoire/Parasite hidden on Street Peddler
The fix has been deployed on Friday. Should work fine now.