{"action":"created","issue":{"url":"https://api.github.com/repos/mtgred/netrunner/issues/479","labels_url":"https://api.github.com/repos/mtgred/netrunner/issues/479/labels{/name}","comments_url":"https://api.github.com/repos/mtgred/netrunner/issues/479/comments","events_url":"https://api.github.com/repos/mtgred/netrunner/issues/479/events","html_url":"https://github.com/mtgred/netrunner/issues/479","id":98418050,"number":479,"title":"Parasite events hooked up twice on install","user":{"login":"nealterrell","id":10083341,"avatar_url":"https://avatars.githubusercontent.com/u/10083341?v=3","gravatar_id":"","url":"https://api.github.com/users/nealterrell","html_url":"https://github.com/nealterrell","followers_url":"https://api.github.com/users/nealterrell/followers","following_url":"https://api.github.com/users/nealterrell/following{/other_user}","gists_url":"https://api.github.com/users/nealterrell/gists{/gist_id}","starred_url":"https://api.github.com/users/nealterrell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nealterrell/subscriptions","organizations_url":"https://api.github.com/users/nealterrell/orgs","repos_url":"https://api.github.com/users/nealterrell/repos","events_url":"https://api.github.com/users/nealterrell/events{/privacy}","received_events_url":"https://api.github.com/users/nealterrell/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mtgred/netrunner/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-07-31T15:52:30Z","updated_at":"2015-08-02T20:41:25Z","closed_at":null,"body":"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:\r\n\r\n1. Parasite is clicked, which calls `runner-install` which sees that Parasite has a `:hosting` key and recursively resolves `runner-install` with a `:host-card`.\r\n2. `runner-install` calls `host`, which calls `register-events` in order to handle the situation of hosting a card that was already installed.\r\n3. We return to `runner-install` which immediately calls `card-init`; this registers events again.\r\n4. Parasite now receives 2 `:runner-turn-begins` events and gains 2 tokens per turn; and 2 `:pre-ice-strength` events, granting -2 strength per token. OP."},"comment":{"url":"https://api.github.com/repos/mtgred/netrunner/issues/comments/127069048","html_url":"https://github.com/mtgred/netrunner/issues/479#issuecomment-127069048","issue_url":"https://api.github.com/repos/mtgred/netrunner/issues/479","id":127069048,"user":{"login":"mtgred","id":284114,"avatar_url":"https://avatars.githubusercontent.com/u/284114?v=3","gravatar_id":"","url":"https://api.github.com/users/mtgred","html_url":"https://github.com/mtgred","followers_url":"https://api.github.com/users/mtgred/followers","following_url":"https://api.github.com/users/mtgred/following{/other_user}","gists_url":"https://api.github.com/users/mtgred/gists{/gist_id}","starred_url":"https://api.github.com/users/mtgred/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mtgred/subscriptions","organizations_url":"https://api.github.com/users/mtgred/orgs","repos_url":"https://api.github.com/users/mtgred/repos","events_url":"https://api.github.com/users/mtgred/events{/privacy}","received_events_url":"https://api.github.com/users/mtgred/received_events","type":"User","site_admin":false},"created_at":"2015-08-02T20:41:25Z","updated_at":"2015-08-02T20:41:25Z","body":"The fix has been deployed on Friday. Should work fine now."}}