{"action":"created","issue":{"url":"https://api.github.com/repos/TrinityCore/TrinityCore/issues/12842","repository_url":"https://api.github.com/repos/TrinityCore/TrinityCore","labels_url":"https://api.github.com/repos/TrinityCore/TrinityCore/issues/12842/labels{/name}","comments_url":"https://api.github.com/repos/TrinityCore/TrinityCore/issues/12842/comments","events_url":"https://api.github.com/repos/TrinityCore/TrinityCore/issues/12842/events","html_url":"https://github.com/TrinityCore/TrinityCore/issues/12842","id":40147240,"number":12842,"title":"[3.3.5][6.x] Core/Loot/Gameobject: Tempspawned Gameobjects despawn after looting","user":{"login":"kldxzzhc2","id":570099,"avatar_url":"https://avatars.githubusercontent.com/u/570099?v=3","gravatar_id":"","url":"https://api.github.com/users/kldxzzhc2","html_url":"https://github.com/kldxzzhc2","followers_url":"https://api.github.com/users/kldxzzhc2/followers","following_url":"https://api.github.com/users/kldxzzhc2/following{/other_user}","gists_url":"https://api.github.com/users/kldxzzhc2/gists{/gist_id}","starred_url":"https://api.github.com/users/kldxzzhc2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kldxzzhc2/subscriptions","organizations_url":"https://api.github.com/users/kldxzzhc2/orgs","repos_url":"https://api.github.com/users/kldxzzhc2/repos","events_url":"https://api.github.com/users/kldxzzhc2/events{/privacy}","received_events_url":"https://api.github.com/users/kldxzzhc2/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/TrinityCore/TrinityCore/labels/Comp-Core","name":"Comp-Core","color":"FF6600"},{"url":"https://api.github.com/repos/TrinityCore/TrinityCore/labels/Feedback-PatchFix","name":"Feedback-PatchFix","color":"d7e102"},{"url":"https://api.github.com/repos/TrinityCore/TrinityCore/labels/Sub-Quests","name":"Sub-Quests","color":"e10c02"}],"state":"open","locked":false,"assignee":{"login":"r00ty-tc","id":173349,"avatar_url":"https://avatars.githubusercontent.com/u/173349?v=3","gravatar_id":"","url":"https://api.github.com/users/r00ty-tc","html_url":"https://github.com/r00ty-tc","followers_url":"https://api.github.com/users/r00ty-tc/followers","following_url":"https://api.github.com/users/r00ty-tc/following{/other_user}","gists_url":"https://api.github.com/users/r00ty-tc/gists{/gist_id}","starred_url":"https://api.github.com/users/r00ty-tc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/r00ty-tc/subscriptions","organizations_url":"https://api.github.com/users/r00ty-tc/orgs","repos_url":"https://api.github.com/users/r00ty-tc/repos","events_url":"https://api.github.com/users/r00ty-tc/events{/privacy}","received_events_url":"https://api.github.com/users/r00ty-tc/received_events","type":"User","site_admin":false},"milestone":null,"comments":11,"created_at":"2014-08-13T11:55:19Z","updated_at":"2016-05-27T04:28:55Z","closed_at":null,"body":"**How it is:**\r\nAny tempspawned chest object which is spawned with a spell from a creature (like http://www.wowhead.com/spell=46310) will despawn if **ONE single** player lootet the object.\r\n\r\n**How it should be:**\r\nAny tempspawned chest object which is spawned with a spell from a creature (like http://www.wowhead.com/spell=46310) should **ONLY** despawn **if the timer from the spelldescription expires** (like in the case of spell 46310 it should despawn after 1 minute)\r\nDuring this time every player should be able to loot that gameobject multiple times even without a group.\r\n\r\nExamples for quests/gos:\r\n\r\n- [ ] [Piece of Krom'zar's Banner] (http://wotlk.openwow.com/item=11227)\r\n- [ ]  Kaw the Mammoth Destroyer http://www.wowhead.com/spell=46310\r\n- [ ] http://www.wowhead.com/quest=10997\r\n- [ ] http://www.wowhead.com/quest=10995\r\n- [ ] http://www.wowhead.com/quest=10996\r\n- [ ] http://de.wowhead.com/quest=12713\r\n- [ ] http://www.wowhead.com/spell=18661\r\n- [ ] http://www.wowhead.com/quest=11529\r\n- [ ] http://www.wowhead.com/quest=12498\r\n- [ ] [Scythe of Antiok](http://www.wowhead.com/item=38305/scythe-of-antiok) from [Scythe of Antiok](http://www.wowhead.com/object=190354/scythe-of-antiok) for [On Ruby Wings](http://www.wowhead.com/object=190354/scythe-of-antiok).\r\n- [ ] [Drakuru's Skull](http://www.wowhead.com/item=40425/drakurus-skull) from [Drakuru's Skull](http://www.wowhead.com/object=191458/drakurus-skull).\r\n\r\n---\r\nWant to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/3700315-3-3-5-bug-gameobject-krom-zar-s-banner-164690-despawn-after-loot-bug?utm_campaign=plugin&utm_content=tracker%2F1310&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F1310&utm_medium=issues&utm_source=github).\r\n</bountysou"},"comment":{"url":"https://api.github.com/repos/TrinityCore/TrinityCore/issues/comments/222057653","html_url":"https://github.com/TrinityCore/TrinityCore/issues/12842#issuecomment-222057653","issue_url":"https://api.github.com/repos/TrinityCore/TrinityCore/issues/12842","id":222057653,"user":{"login":"runningnak3d","id":387830,"avatar_url":"https://avatars.githubusercontent.com/u/387830?v=3","gravatar_id":"","url":"https://api.github.com/users/runningnak3d","html_url":"https://github.com/runningnak3d","followers_url":"https://api.github.com/users/runningnak3d/followers","following_url":"https://api.github.com/users/runningnak3d/following{/other_user}","gists_url":"https://api.github.com/users/runningnak3d/gists{/gist_id}","starred_url":"https://api.github.com/users/runningnak3d/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/runningnak3d/subscriptions","organizations_url":"https://api.github.com/users/runningnak3d/orgs","repos_url":"https://api.github.com/users/runningnak3d/repos","events_url":"https://api.github.com/users/runningnak3d/events{/privacy}","received_events_url":"https://api.github.com/users/runningnak3d/received_events","type":"User","site_admin":false},"created_at":"2016-05-27T04:28:55Z","updated_at":"2016-05-27T04:28:55Z","body":"Not sure how I missed this the last time I looked at this, but https://github.com/TrinityCore/TrinityCore/blob/942403be0cf36b535e96fd6077204f1c98d2834c/src/server/game/Entities/GameObject/GameObject.cpp#L626 is going to override any fix that is put in place since this is summoned by a spell, so I was just wasting my time :)\r\n\r\nBottom line, whether it is fixed there, or where I suggested above, to fix this:\r\n\r\n* Check if there is a group\r\n* Get members of group\r\n* Iterate through and check to see if the GO has loot for each member\r\n* If no loot, continue till all members have been checked and had a chance to loot\r\n* resume despawn timer (on offy, the GO would not immediately despawn once all members had a chance to loot -- it was on a timer)\r\n\r\nIf no active devs want to pick this up, I guess I will set myself back up a build environment and fix this. Ya, know, after looking it over, someone may want to try commenting out that code at line 626 and see if this just works again. I am not sure why that code was added. GOs spawned by spell, or GOs spawned by a negative spawn timer shouldn't be handled any differently."}}
{"actor":{"display_login":"runningnak3d"}}