{"action":"created","issue":{"url":"https://api.github.com/repos/jleclanche/fireplace/issues/397","repository_url":"https://api.github.com/repos/jleclanche/fireplace","labels_url":"https://api.github.com/repos/jleclanche/fireplace/issues/397/labels{/name}","comments_url":"https://api.github.com/repos/jleclanche/fireplace/issues/397/comments","events_url":"https://api.github.com/repos/jleclanche/fireplace/issues/397/events","html_url":"https://github.com/jleclanche/fireplace/pull/397","id":159532339,"number":397,"title":"Fix source of PLAY action blocks","user":{"login":"djkaty","id":4500319,"avatar_url":"https://avatars.githubusercontent.com/u/4500319?v=3","gravatar_id":"","url":"https://api.github.com/users/djkaty","html_url":"https://github.com/djkaty","followers_url":"https://api.github.com/users/djkaty/followers","following_url":"https://api.github.com/users/djkaty/following{/other_user}","gists_url":"https://api.github.com/users/djkaty/gists{/gist_id}","starred_url":"https://api.github.com/users/djkaty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djkaty/subscriptions","organizations_url":"https://api.github.com/users/djkaty/orgs","repos_url":"https://api.github.com/users/djkaty/repos","events_url":"https://api.github.com/users/djkaty/events{/privacy}","received_events_url":"https://api.github.com/users/djkaty/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-06-09T23:41:59Z","updated_at":"2016-06-11T13:37:23Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/jleclanche/fireplace/pulls/397","html_url":"https://github.com/jleclanche/fireplace/pull/397","diff_url":"https://github.com/jleclanche/fireplace/pull/397.diff","patch_url":"https://github.com/jleclanche/fireplace/pull/397.patch"},"body":""},"comment":{"url":"https://api.github.com/repos/jleclanche/fireplace/issues/comments/225362244","html_url":"https://github.com/jleclanche/fireplace/pull/397#issuecomment-225362244","issue_url":"https://api.github.com/repos/jleclanche/fireplace/issues/397","id":225362244,"user":{"login":"djkaty","id":4500319,"avatar_url":"https://avatars.githubusercontent.com/u/4500319?v=3","gravatar_id":"","url":"https://api.github.com/users/djkaty","html_url":"https://github.com/djkaty","followers_url":"https://api.github.com/users/djkaty/followers","following_url":"https://api.github.com/users/djkaty/following{/other_user}","gists_url":"https://api.github.com/users/djkaty/gists{/gist_id}","starred_url":"https://api.github.com/users/djkaty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djkaty/subscriptions","organizations_url":"https://api.github.com/users/djkaty/orgs","repos_url":"https://api.github.com/users/djkaty/repos","events_url":"https://api.github.com/users/djkaty/events{/privacy}","received_events_url":"https://api.github.com/users/djkaty/received_events","type":"User","site_admin":false},"created_at":"2016-06-11T13:37:23Z","updated_at":"2016-06-11T13:37:23Z","body":"So basically the existing code creates blocks like this when a card is played:\r\n\r\n                [Start ] PLAY: Index = 0, Source = 2, Target = 0\r\n...\r\n                [Start ] POWER: Index = -1, Source = 81, Target = 0\r\n...\r\n                [End   ]\r\n...\r\n                [End   ]\r\n\r\nThe source in the PLAY block is the player and the source in the POWER block is the card being played. In the real Hearthstone, when a card is played, the PLAY block uses the card entity ID as the source, not the player. Without this, many strange effects occur and stuff doesn't work properly. The code essentially changes these scenarios so that in the example blocks above ,the PLAY source would be 85 (the card entity ID) rather than the player.\r\n"}}
{"actor":{"display_login":"djkaty"}}