Skip to content

Commit

Permalink
[c12971] Fix skinning loot bug.
Browse files Browse the repository at this point in the history
Thank to @TheTrueAnimal for pointing.

(based on commit [12778] - d4cdfb5)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>
  • Loading branch information
Jonascone authored and xfurry committed Nov 23, 2014
1 parent db9051a commit 7a05b54
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/game/Player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8360,7 +8360,10 @@ void Player::SendLoot(ObjectGuid guid, LootType loot_type)

// let reopen skinning loot if will closed.
if (!loot->empty())
creature->SetUInt32Value(UNIT_DYNAMIC_FLAGS, UNIT_DYNFLAG_LOOTABLE);
{
creature->SetFlag(UNIT_DYNAMIC_FLAGS, UNIT_DYNFLAG_LOOTABLE);
creature->RemoveFlag(UNIT_DYNAMIC_FLAGS, UNIT_FLAG_SKINNABLE);
}

permission = OWNER_PERMISSION;
}
Expand Down
2 changes: 1 addition & 1 deletion src/shared/revision_nr.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "12970"
#define REVISION_NR "12971"
#endif // __REVISION_NR_H__

0 comments on commit 7a05b54

Please sign in to comment.