{"action":"opened","issue":{"url":"https://api.github.com/repos/cmangos/issues/issues/789","labels_url":"https://api.github.com/repos/cmangos/issues/issues/789/labels{/name}","comments_url":"https://api.github.com/repos/cmangos/issues/issues/789/comments","events_url":"https://api.github.com/repos/cmangos/issues/issues/789/events","html_url":"https://github.com/cmangos/issues/issues/789","id":114569925,"number":789,"title":"[Wotlk] Lord Marrowgar - Bone spike Targeting","user":{"login":"Rushor","id":5568820,"avatar_url":"https://avatars.githubusercontent.com/u/5568820?v=3","gravatar_id":"","url":"https://api.github.com/users/Rushor","html_url":"https://github.com/Rushor","followers_url":"https://api.github.com/users/Rushor/followers","following_url":"https://api.github.com/users/Rushor/following{/other_user}","gists_url":"https://api.github.com/users/Rushor/gists{/gist_id}","starred_url":"https://api.github.com/users/Rushor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rushor/subscriptions","organizations_url":"https://api.github.com/users/Rushor/orgs","repos_url":"https://api.github.com/users/Rushor/repos","events_url":"https://api.github.com/users/Rushor/events{/privacy}","received_events_url":"https://api.github.com/users/Rushor/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-02T10:45:18Z","updated_at":"2015-11-02T10:45:18Z","closed_at":null,"body":"```c++\r\nclass BoneSpikeTargetSelector : public std::unary_function<Unit*, bool>\r\n{\r\n    public:\r\n        BoneSpikeTargetSelector(UnitAI* ai) : _ai(ai) { }\r\n\r\n        bool operator()(Unit* unit) const\r\n        {\r\n            if (unit->GetTypeId() != TYPEID_PLAYER)\r\n                return false;\r\n\r\n            if (unit->HasAura(SPELL_IMPALED))\r\n                return false;\r\n\r\n            if (unit->HasAura(SPELL_SPIRIT_OF_REDEMPTION))\r\n                return false;            \r\n            \r\n            if (unit->isDead())\r\n                return false;\r\n\r\n            return true;\r\n        }\r\n\r\n    private:\r\n        UnitAI* _ai;\r\n};\r\n```\r\n\r\nThis check must be added in the castscript \r\nhttps://github.com/cmangos/mangos-wotlk/blob/master/src/scriptdev2/scripts/northrend/icecrown_citadel/icecrown_citadel/boss_lord_marrowgar.cpp#L262\r\nThe boss should not select dead, impaled or player with aura (    SPELL_SPIRIT_OF_REDEMPTION  = 27827). moreover pets should not be selected for the bonespike"}}