mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 13:37:05 +00:00
[9934] Skinning related fixes
* Show skinning tooltip only after creature loot (when creature can be explcitly skinned). * Allow reopen skinning loot if still have not looted items.
This commit is contained in:
parent
cad8693819
commit
d4f1b510ae
7 changed files with 52 additions and 19 deletions
|
|
@ -442,12 +442,11 @@ void WorldSession::DoLootRelease(ObjectGuid lguid)
|
|||
|
||||
if (loot->isLooted())
|
||||
{
|
||||
// skip pickpocketing loot for speed, skinning timer redunction is no-op in fact
|
||||
// for example skinning after normal loot
|
||||
pCreature->PrepareBodyLootState();
|
||||
|
||||
if(!pCreature->isAlive())
|
||||
pCreature->AllLootRemovedFromCorpse();
|
||||
|
||||
pCreature->RemoveFlag(UNIT_DYNAMIC_FLAGS, UNIT_DYNFLAG_LOOTABLE);
|
||||
loot->clear();
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue