{"action":"created","comment":{"url":"https://api.github.com/repos/Baystation12/Baystation12/pulls/comments/57988250","id":57988250,"diff_hunk":"@@ -28,15 +28,30 @@\n \t\t\t\tif(Sp_HOLDVAR)\r\n \t\t\t\t\tstatpanel(S.panel,\"[S.holder_var_type] [S.holder_var_amount]\",S.connected_button)\r\n \r\n-/hook/clone/proc/restore_spells(var/mob/H)\r\n+\r\n+proc/restore_spells(var/mob/H)\r\n+\tfor(var/spell/spell_to_remove in H.mind.learned_spells) //remove all the spells from other people.\r\n+\t\tif(istype(spell_to_remove.holder,/mob))\r\n+\t\t\tvar/mob/M = spell_to_remove.holder\r\n+\t\t\tM.remove_spell(spell_to_remove)\r\n \tif(H.mind && H.mind.learned_spells)\r\n \t\tfor(var/spell/spell_to_add in H.mind.learned_spells)\r\n \t\t\tH.add_spell(spell_to_add)\r\n+/*\r\n+/hook/clone/proc/restore_spells(var/mob/H)\r\n+\trestore_spells(H)\r\n+*/\r\n \r\n /mob/proc/add_spell(var/spell/spell_to_add, var/spell_base = \"wiz_spell_ready\", var/master_type = /obj/screen/movable/spell_master)\r\n \tif(!spell_masters)\r\n \t\tspell_masters = list()\r\n \r\n+\tif(!spell_list.len)\r","path":"code/modules/spells/spells.dm","position":23,"original_position":23,"commit_id":"d3f9151ea2572f81b4c65fd401d67cec726542af","original_commit_id":"d3f9151ea2572f81b4c65fd401d67cec726542af","user":{"login":"mwerezak","id":242428,"avatar_url":"https://avatars.githubusercontent.com/u/242428?v=3","gravatar_id":"","url":"https://api.github.com/users/mwerezak","html_url":"https://github.com/mwerezak","followers_url":"https://api.github.com/users/mwerezak/followers","following_url":"https://api.github.com/users/mwerezak/following{/other_user}","gists_url":"https://api.github.com/users/mwerezak/gists{/gist_id}","starred_url":"https://api.github.com/users/mwerezak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mwerezak/subscriptions","organizations_url":"https://api.github.com/users/mwerezak/orgs","repos_url":"https://api.github.com/users/mwerezak/repos","events_url":"https://api.github.com/users/mwerezak/events{/privacy}","received_events_url":"https://api.github.com/users/mwerezak/received_events","type":"User","site_admin":false},"body":"This looks like inverted logic. Add the verb if the list is empty?","created_at":"2016-03-31T00:59:25Z","updated_at":"2016-03-31T00:59:25Z","html_url":"https://github.com/Baystation12/Baystation12/pull/12523#discussion_r57988250","pull_request_url":"https://api.github.com/repos/Baystation12/Baystation12/pulls/12523","_links":{"self":{"href":"https://api.github.com/repos/Baystation12/Baystation12/pulls/comments/57988250"},"html":{"href":"https://github.com/Baystation12/Baystation12/pull/12523#discussion_r57988250"},"pull_request":{"href":"https://api.github.com/repos/Baystation12/Baystation12/pulls/12523"}}},"pull_request":{"url":"https://api.github.com/repos/Baystation12/Baystation12/pulls/12523","id":64711606,"html_url":"https://github.com/Baystation12/Baystation12/pull/12523","diff_url":"https://github.com/Baystation12/Baystation12/pull/12523.diff","patch_url":"https://github.com/Baystation12/Baystation12/pull/12523.patch","issue_url":"https://api.github.com/repos/Baystation12/Baystation12/issues/12523","number":12523,"state":"open","locked":false,"title":"Tweaks to cast verb. Fixes mind-spell list. Fixes spellbook exploit. Tweaks/balances.","user":{"login":"Kearel","id":6868489,"avatar_url":"https://avatars.githubusercontent.com/u/6868489?v=3","gravatar_id":"","url":"https://api.github.com/users/Kearel","html_url":"https://github.com/Kearel","followers_url":"https://api.github.com/users/Kearel/followers","following_url":"https://api.github.com/users/Kearel/following{/other_user}","gists_url":"https://api.github.com/users/Kearel/gists{/gist_id}","starred_url":"https://api.github.com/users/Kearel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kearel/subscriptions","organizations_url":"https://api.github.com/users/Kearel/orgs","repos_url":"https://api.github.com/users/Kearel/repos","events_url":"https://api.github.com/users/Kearel/events{/privacy}","received_events_url":"https://api.github.com/users/Kearel/received_events","type":"User","site_admin":false},"body":"Cast verb will only appear when you have spells, limiting the confusion that people have to having the verb.\r\n\r\nMind's spell list was broken, making cloning only let you have the very first spell you buy. Modified it so that it works, and it automatically transfers mind spells on mind transfer. Meaning borging/debraining wizards not mean the end to their wizardy ways. (Debraining is still a rather effective method as you can't cast anything as a brain)\r\n\r\nThere was a miscellaneous spellbook exploit that involved purchasing a specific spell and doing something else very specific with the spellbook meant that you could theoretically have infinite spell slots. Attempted to make it so this is no longer theoretically possible.\r\n\r\nA few tweaks and balances to spells I've seen in action. Namely the Mark of the Wizard is now a cleanable object, and it now has a lower cooldown. Corrupt Form now has a tad more duration.","created_at":"2016-03-30T23:05:08Z","updated_at":"2016-03-31T00:59:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"12e3e72394b76e0e79b55a86c6a4f6c25f05d509","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Baystation12/Baystation12/pulls/12523/commits","review_comments_url":"https://api.github.com/repos/Baystation12/Baystation12/pulls/12523/comments","review_comment_url":"https://api.github.com/repos/Baystation12/Baystation12/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Baystation12/Baystation12/issues/12523/comments","statuses_url":"https://api.github.com/repos/Baystation12/Baystation12/statuses/d3f9151ea2572f81b4c65fd401d67cec726542af","head":{"label":"Kearel:nocastingformuggles","ref":"nocastingformuggles","sha":"d3f9151ea2572f81b4c65fd401d67cec726542af","user":{"login":"Kearel","id":6868489,"avatar_url":"https://avatars.githubusercontent.com/u/6868489?v=3","gravatar_id":"","url":"https://api.github.com/users/Kearel","html_url":"https://github.com/Kearel","followers_url":"https://api.github.com/users/Kearel/followers","following_url":"https://api.github.com/users/Kearel/following{/other_user}","gists_url":"https://api.github.com/users/Kearel/gists{/gist_id}","starred_url":"https://api.github.com/users/Kearel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kearel/subscriptions","organizations_url":"https://api.github.com/users/Kearel/orgs","repos_url":"https://api.github.com/users/Kearel/repos","events_url":"https://api.github.com/users/Kearel/events{/privacy}","received_events_url":"https://api.github.com/users/Kearel/received_events","type":"User","site_admin":false},"repo":{"id":38450232,"name":"Baystation12","full_name":"Kearel/Baystation12","owner":{"login":"Kearel","id":6868489,"avatar_url":"https://avatars.githubusercontent.com/u/6868489?v=3","gravatar_id":"","url":"https://api.github.com/users/Kearel","html_url":"https://github.com/Kearel","followers_url":"https://api.github.com/users/Kearel/followers","following_url":"https://api.github.com/users/Kearel/following{/other_user}","gists_url":"https://api.github.com/users/Kearel/gists{/gist_id}","starred_url":"https://api.github.com/users/Kearel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kearel/subscriptions","organizations_url":"https://api.github.com/users/Kearel/orgs","repos_url":"https://api.github.com/users/Kearel/repos","events_url":"https://api.github.com/users/Kearel/events{/privacy}","received_events_url":"https://api.github.com/users/Kearel/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Kearel/Baystation12","description":"The code for Baystation12's branch of SS13","fork":true,"url":"https://api.github.com/repos/Kearel/Baystation12","forks_url":"https://api.github.com/repos/Kearel/Baystation12/forks","keys_url":"https://api.github.com/repos/Kearel/Baystation12/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Kearel/Baystation12/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Kearel/Baystation12/teams","hooks_url":"https://api.github.com/repos/Kearel/Baystation12/hooks","issue_events_url":"https://api.github.com/repos/Kearel/Baystation12/issues/events{/number}","events_url":"https://api.github.com/repos/Kearel/Baystation12/events","assignees_url":"https://api.github.com/repos/Kearel/Baystation12/assignees{/user}","branches_url":"https://api.github.com/repos/Kearel/Baystation12/branches{/branch}","tags_url":"https://api.github.com/repos/Kearel/Baystation12/tags","blobs_url":"https://api.github.com/repos/Kearel/Baystation12/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Kearel/Baystation12/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Kearel/Baystation12/git/refs{/sha}","trees_url":"https://api.github.com/repos/Kearel/Baystation12/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Kearel/Baystation12/statuses/{sha}","languages_url":"https://api.github.com/repos/Kearel/Baystation12/languages","stargazers_url":"https://api.github.com/repos/Kearel/Baystation12/stargazers","contributors_url":"https://api.github.com/repos/Kearel/Baystation12/contributors","subscribers_url":"https://api.github.com/repos/Kearel/Baystation12/subscribers","subscription_url":"https://api.github.com/repos/Kearel/Baystation12/subscription","commits_url":"https://api.github.com/repos/Kearel/Baystation12/commits{/sha}","git_commits_url":"https://api.github.com/repos/Kearel/Baystation12/git/commits{/sha}","comments_url":"https://api.github.com/repos/Kearel/Baystation12/comments{/number}","issue_comment_url":"https://api.github.com/repos/Kearel/Baystation12/issues/comments{/number}","contents_url":"https://api.github.com/repos/Kearel/Baystation12/contents/{+path}","compare_url":"https://api.github.com/repos/Kearel/Baystation12/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Kearel/Baystation12/merges","archive_url":"https://api.github.com/repos/Kearel/Baystation12/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Kearel/Baystation12/downloads","issues_url":"https://api.github.com/repos/Kearel/Baystation12/issues{/number}","pulls_url":"https://api.github.com/repos/Kearel/Baystation12/pulls{/number}","milestones_url":"https://api.github.com/repos/Kearel/Baystation12/milestones{/number}","notifications_url":"https://api.github.com/repos/Kearel/Baystation12/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Kearel/Baystation12/labels{/name}","releases_url":"https://api.github.com/repos/Kearel/Baystation12/releases{/id}","deployments_url":"https://api.github.com/repos/Kearel/Baystation12/deployments","created_at":"2015-07-02T18:39:26Z","updated_at":"2015-07-02T18:39:35Z","pushed_at":"2016-03-30T23:01:41Z","git_url":"git://github.com/Kearel/Baystation12.git","ssh_url":"git@github.com:Kearel/Baystation12.git","clone_url":"https://github.com/Kearel/Baystation12.git","svn_url":"https://github.com/Kearel/Baystation12","homepage":"http://baystation12.net/","size":567277,"stargazers_count":0,"watchers_count":0,"language":"DM","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Baystation12:dev","ref":"dev","sha":"c6862efff9f8be8299c9b5eb75fb8384955d774a","user":{"login":"Baystation12","id":1174322,"avatar_url":"https://avatars.githubusercontent.com/u/1174322?v=3","gravatar_id":"","url":"https://api.github.com/users/Baystation12","html_url":"https://github.com/Baystation12","followers_url":"https://api.github.com/users/Baystation12/followers","following_url":"https://api.github.com/users/Baystation12/following{/other_user}","gists_url":"https://api.github.com/users/Baystation12/gists{/gist_id}","starred_url":"https://api.github.com/users/Baystation12/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Baystation12/subscriptions","organizations_url":"https://api.github.com/users/Baystation12/orgs","repos_url":"https://api.github.com/users/Baystation12/repos","events_url":"https://api.github.com/users/Baystation12/events{/privacy}","received_events_url":"https://api.github.com/users/Baystation12/received_events","type":"Organization","site_admin":false},"repo":{"id":2715933,"name":"Baystation12","full_name":"Baystation12/Baystation12","owner":{"login":"Baystation12","id":1174322,"avatar_url":"https://avatars.githubusercontent.com/u/1174322?v=3","gravatar_id":"","url":"https://api.github.com/users/Baystation12","html_url":"https://github.com/Baystation12","followers_url":"https://api.github.com/users/Baystation12/followers","following_url":"https://api.github.com/users/Baystation12/following{/other_user}","gists_url":"https://api.github.com/users/Baystation12/gists{/gist_id}","starred_url":"https://api.github.com/users/Baystation12/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Baystation12/subscriptions","organizations_url":"https://api.github.com/users/Baystation12/orgs","repos_url":"https://api.github.com/users/Baystation12/repos","events_url":"https://api.github.com/users/Baystation12/events{/privacy}","received_events_url":"https://api.github.com/users/Baystation12/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Baystation12/Baystation12","description":"The code for Baystation12's branch of SS13","fork":false,"url":"https://api.github.com/repos/Baystation12/Baystation12","forks_url":"https://api.github.com/repos/Baystation12/Baystation12/forks","keys_url":"https://api.github.com/repos/Baystation12/Baystation12/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Baystation12/Baystation12/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Baystation12/Baystation12/teams","hooks_url":"https://api.github.com/repos/Baystation12/Baystation12/hooks","issue_events_url":"https://api.github.com/repos/Baystation12/Baystation12/issues/events{/number}","events_url":"https://api.github.com/repos/Baystation12/Baystation12/events","assignees_url":"https://api.github.com/repos/Baystation12/Baystation12/assignees{/user}","branches_url":"https://api.github.com/repos/Baystation12/Baystation12/branches{/branch}","tags_url":"https://api.github.com/repos/Baystation12/Baystation12/tags","blobs_url":"https://api.github.com/repos/Baystation12/Baystation12/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Baystation12/Baystation12/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Baystation12/Baystation12/git/refs{/sha}","trees_url":"https://api.github.com/repos/Baystation12/Baystation12/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Baystation12/Baystation12/statuses/{sha}","languages_url":"https://api.github.com/repos/Baystation12/Baystation12/languages","stargazers_url":"https://api.github.com/repos/Baystation12/Baystation12/stargazers","contributors_url":"https://api.github.com/repos/Baystation12/Baystation12/contributors","subscribers_url":"https://api.github.com/repos/Baystation12/Baystation12/subscribers","subscription_url":"https://api.github.com/repos/Baystation12/Baystation12/subscription","commits_url":"https://api.github.com/repos/Baystation12/Baystation12/commits{/sha}","git_commits_url":"https://api.github.com/repos/Baystation12/Baystation12/git/commits{/sha}","comments_url":"https://api.github.com/repos/Baystation12/Baystation12/comments{/number}","issue_comment_url":"https://api.github.com/repos/Baystation12/Baystation12/issues/comments{/number}","contents_url":"https://api.github.com/repos/Baystation12/Baystation12/contents/{+path}","compare_url":"https://api.github.com/repos/Baystation12/Baystation12/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Baystation12/Baystation12/merges","archive_url":"https://api.github.com/repos/Baystation12/Baystation12/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Baystation12/Baystation12/downloads","issues_url":"https://api.github.com/repos/Baystation12/Baystation12/issues{/number}","pulls_url":"https://api.github.com/repos/Baystation12/Baystation12/pulls{/number}","milestones_url":"https://api.github.com/repos/Baystation12/Baystation12/milestones{/number}","notifications_url":"https://api.github.com/repos/Baystation12/Baystation12/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Baystation12/Baystation12/labels{/name}","releases_url":"https://api.github.com/repos/Baystation12/Baystation12/releases{/id}","deployments_url":"https://api.github.com/repos/Baystation12/Baystation12/deployments","created_at":"2011-11-05T16:12:41Z","updated_at":"2016-03-20T11:52:37Z","pushed_at":"2016-03-30T23:05:10Z","git_url":"git://github.com/Baystation12/Baystation12.git","ssh_url":"git@github.com:Baystation12/Baystation12.git","clone_url":"https://github.com/Baystation12/Baystation12.git","svn_url":"https://github.com/Baystation12/Baystation12","homepage":"http://baystation12.net/","size":1621679,"stargazers_count":217,"watchers_count":217,"language":"DM","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":913,"mirror_url":null,"open_issues_count":335,"forks":913,"open_issues":335,"watchers":217,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/Baystation12/Baystation12/pulls/12523"},"html":{"href":"https://github.com/Baystation12/Baystation12/pull/12523"},"issue":{"href":"https://api.github.com/repos/Baystation12/Baystation12/issues/12523"},"comments":{"href":"https://api.github.com/repos/Baystation12/Baystation12/issues/12523/comments"},"review_comments":{"href":"https://api.github.com/repos/Baystation12/Baystation12/pulls/12523/comments"},"review_comment":{"href":"https://api.github.com/repos/Baystation12/Baystation12/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Baystation12/Baystation12/pulls/12523/commits"},"statuses":{"href":"https://api.github.com/repos/Baystation12/Baystation12/statuses/d3f9151ea2572f81b4c65fd401d67cec726542af"}}}}