payload: {"action":"created","issue":{"url":"https://api.github.com/repos/project-topaz/topaz/issues/233","repository_url":"https://api.github.com/repos/project-topaz/topaz","labels_url":"https://api.github.com/repos/project-topaz/topaz/issues/233/labels{/name}","comments_url":"https://api.github.com/repos/project-topaz/topaz/issues/233/comments","events_url":"https://api.github.com/repos/project-topaz/topaz/issues/233/events","html_url":"https://github.com/project-topaz/topaz/issues/233","id":546913626,"node_id":"MDU6SXNzdWU1NDY5MTM2MjY=","number":233,"title":"Cover ability not present.","user":{"login":"topaz-bot","id":59651103,"node_id":"MDQ6VXNlcjU5NjUxMTAz","avatar_url":"https://avatars3.githubusercontent.com/u/59651103?v=4","gravatar_id":"","url":"https://api.github.com/users/topaz-bot","html_url":"https://github.com/topaz-bot","followers_url":"https://api.github.com/users/topaz-bot/followers","following_url":"https://api.github.com/users/topaz-bot/following{/other_user}","gists_url":"https://api.github.com/users/topaz-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/topaz-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/topaz-bot/subscriptions","organizations_url":"https://api.github.com/users/topaz-bot/orgs","repos_url":"https://api.github.com/users/topaz-bot/repos","events_url":"https://api.github.com/users/topaz-bot/events{/privacy}","received_events_url":"https://api.github.com/users/topaz-bot/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2020-01-08T14:55:46Z","updated_at":"2020-01-08T14:55:55Z","closed_at":null,"author_association":"COLLABORATOR","body":"<a href=\"https://github.com/Dynas13\"><img src=\"https://avatars0.githubusercontent.com/u/36946058?v=4\" align=\"left\" width=\"96\" height=\"96\" hspace=\"10\"></img></a> **Issue by [Dynas13](https://github.com/Dynas13)**\n_Tuesday Jul 17, 2018 at 01:51 GMT_\n_Originally opened as DarkstarProject/darkstar - Issue 5095_\n\n----\n\n<!-- place 'x' mark between square [] brackets to checkmark box -->\r\n\r\n**_I have:_**\r\n\r\n- [x] searched existing issues (http://github.com/darkstarproject/darkstar - Issue ) to see if the issue I am posting has already been addressed or opened by another contributor\r\n- [x] checked the commit log to see if my issue has been resolved since my server was last updated\r\n\r\n\r\n<!-- Issues will be closed without being looked into if the following information is missing (unless its not applicable). -->\r\n\r\n**_Client Version_** (type `/ver` in game) **:** \r\nall\r\n\r\n**_Source Branch_** (master/stable) **:** \r\nmaster\r\n\r\n<!-- If there is a server you know we can reproduce this on right now, please mention it here. -->\r\n**_Additional Information_** (Steps to reproduce/Expected behavior) **:** \r\n\r\nThe status effect exists, the animation works, the necessary elements to make it happen are there but there's no development on making Cover.\n"},"comment":{"url":"https://api.github.com/repos/project-topaz/topaz/issues/comments/572105986","html_url":"https://github.com/project-topaz/topaz/issues/233#issuecomment-572105986","issue_url":"https://api.github.com/repos/project-topaz/topaz/issues/233","id":572105986,"node_id":"MDEyOklzc3VlQ29tbWVudDU3MjEwNTk4Ng==","user":{"login":"topaz-bot","id":59651103,"node_id":"MDQ6VXNlcjU5NjUxMTAz","avatar_url":"https://avatars3.githubusercontent.com/u/59651103?v=4","gravatar_id":"","url":"https://api.github.com/users/topaz-bot","html_url":"https://github.com/topaz-bot","followers_url":"https://api.github.com/users/topaz-bot/followers","following_url":"https://api.github.com/users/topaz-bot/following{/other_user}","gists_url":"https://api.github.com/users/topaz-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/topaz-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/topaz-bot/subscriptions","organizations_url":"https://api.github.com/users/topaz-bot/orgs","repos_url":"https://api.github.com/users/topaz-bot/repos","events_url":"https://api.github.com/users/topaz-bot/events{/privacy}","received_events_url":"https://api.github.com/users/topaz-bot/received_events","type":"User","site_admin":false},"created_at":"2020-01-08T14:55:55Z","updated_at":"2020-01-08T14:55:55Z","author_association":"COLLABORATOR","body":"<a href=\"https://github.com/Dynas13\"><img src=\"https://avatars0.githubusercontent.com/u/36946058?v=4\" align=\"left\" width=\"48\" height=\"48\" hspace=\"10\"></img></a> **Comment by [Dynas13](https://github.com/Dynas13)**\n_Wednesday Jul 18, 2018 at 13:58 GMT_\n\n----\n\nI've done a lot of digging around trying to figure a way for damage transfer to work. There's stuff like transferEnmity which is for accomplice and collaborator. Or trickattackPartner which lets the code know who's receiving enmity. What I can't wrap my head around is how damage is received. I'm sure it's buried somewhere but if we could say something like\r\n\r\n```lua\r\n--Pseudocode------------------------------\r\nwhile ability is active then\r\n  player receives targets damage\r\n  if damage >= 0 then\r\n    player.addMod(dsp.mod.Enmity, +200)\r\n    target:lowerEnmity(target, 10)\r\nelseif gallant coronet equipped then\r\n  transfer magical damage to player\r\nelseif valor surcoat equipped then\r\n  20% of damage transferred converted to mp.\r\nend\r\n-------------------------------------------------------\r\nfunction onUseAbility(player,target,ability)\r\n--formula from https://www.bg-wiki.com/bg/Cover\r\nlocal baseDuration = 15;\r\nlocal bonusTime = utils.clamp(math.floor((player:getMod(dsp.mod.VIT) + player:getMod(dsp.mod.MND) - target:getMod(dsp.mod.VIT) * 2) / 4), 0, 15)\r\nlocal duration = baseDuration + bonusTime;\r\n\r\nplayer:addStatusEffect(player,dsp.effect.COVER,0,0,duration)\r\n\r\n  if target:physicalDmgTaken >= 0 then\r\n    player.addMod(dsp.mod.Enmity, +200)\r\n    target:lowerEnmity(target, 10)\r\n  end\r\nend;\r\n```\r\nI assume Gallant Coronet and Surcoat are handled within their own files instead of the ability file, if so, that wont be needed here.\n"}}
other: {"actor":{"display_login":"topaz-bot"}}