{"action":"created","issue":{"url":"https://api.github.com/repos/codecombat/codecombat/issues/2038","labels_url":"https://api.github.com/repos/codecombat/codecombat/issues/2038/labels{/name}","comments_url":"https://api.github.com/repos/codecombat/codecombat/issues/2038/comments","events_url":"https://api.github.com/repos/codecombat/codecombat/issues/2038/events","html_url":"https://github.com/codecombat/codecombat/issues/2038","id":53226441,"number":2038,"title":"[JS] magic.CastsRaiseDead method description wrong","user":{"login":"mkronenfeld","id":5973825,"avatar_url":"https://avatars.githubusercontent.com/u/5973825?v=3","gravatar_id":"","url":"https://api.github.com/users/mkronenfeld","html_url":"https://github.com/mkronenfeld","followers_url":"https://api.github.com/users/mkronenfeld/followers","following_url":"https://api.github.com/users/mkronenfeld/following{/other_user}","gists_url":"https://api.github.com/users/mkronenfeld/gists{/gist_id}","starred_url":"https://api.github.com/users/mkronenfeld/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mkronenfeld/subscriptions","organizations_url":"https://api.github.com/users/mkronenfeld/orgs","repos_url":"https://api.github.com/users/mkronenfeld/repos","events_url":"https://api.github.com/users/mkronenfeld/events{/privacy}","received_events_url":"https://api.github.com/users/mkronenfeld/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-01-01T19:19:14Z","updated_at":"2015-01-01T21:18:38Z","closed_at":null,"body":"I tried several ways to cast this spell, but am not able to cast the \"raise-dead\" spell from the Unholy Tome item.\r\n<hr/>\r\n```javascript\r\n// Cast spell like in the function documentation\r\nif (this.canCast(\"raise-dead\")) {\r\n    this.cast(\"raise-dead\");\r\n}\r\n\r\n// Fix Your Code\r\n// You need something to cast upon\r\n```\r\n<hr/>\r\n```javascript\r\n// Select an enemy or corpse in range (< 20m) as target\r\nif (this.canCast(\"raise-dead\")) {\r\n    this.cast(\"raise-dead\", target);\r\n}\r\n\r\n// Fix Your Code\r\n// Unhandled error: TypeError: Cannot read property 'maxHealth' of undefined;\r\n```\r\n<hr/>"},"comment":{"url":"https://api.github.com/repos/codecombat/codecombat/issues/comments/68498587","html_url":"https://github.com/codecombat/codecombat/issues/2038#issuecomment-68498587","issue_url":"https://api.github.com/repos/codecombat/codecombat/issues/2038","id":68498587,"user":{"login":"mkronenfeld","id":5973825,"avatar_url":"https://avatars.githubusercontent.com/u/5973825?v=3","gravatar_id":"","url":"https://api.github.com/users/mkronenfeld","html_url":"https://github.com/mkronenfeld","followers_url":"https://api.github.com/users/mkronenfeld/followers","following_url":"https://api.github.com/users/mkronenfeld/following{/other_user}","gists_url":"https://api.github.com/users/mkronenfeld/gists{/gist_id}","starred_url":"https://api.github.com/users/mkronenfeld/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mkronenfeld/subscriptions","organizations_url":"https://api.github.com/users/mkronenfeld/orgs","repos_url":"https://api.github.com/users/mkronenfeld/repos","events_url":"https://api.github.com/users/mkronenfeld/events{/privacy}","received_events_url":"https://api.github.com/users/mkronenfeld/received_events","type":"User","site_admin":false},"created_at":"2015-01-01T21:18:38Z","updated_at":"2015-01-01T21:18:38Z","body":"Unfortunately the problem still occurs in all of my browsers.\r\n\r\nFix Your Code\r\nLine 12: You need something to cast upon.\r\n\r\n```javascript\r\n// The Forest - Ogre Encampment.\r\n// Miss Hushbaum + Unholy Tome III\r\nvar enemy;\r\n\r\nloop {\r\n    enemy = this.findNearestEnemy();\r\n    \r\n    if (enemy) {\r\n        this.cast(\"drain-life\", enemy);\r\n    } else {\r\n        if (this.canCast(\"raise-dead\")) {\r\n            this.cast(\"raise-dead\");\r\n        }\r\n    }\r\n}\r\n```\r\n\r\n- Chrome 39.0.2171.95\r\n- Safari 8.0.2 "}}