Core/Skinning: Fixed the creatures becoming non-skinnable even before looting them completely.
Closes #5318
This commit is contained in:
1 parent
cac491bef8
commit
a0fedd1d78
6 files changed
+35
-8
No files matched your search
@@ -9020,8 +9020,12 @@ void Player::SendLoot(uint64 guid, LootType loot_type)
|
||||
// possible only if creature->lootForBody && loot->empty() at spell cast check
|
||||
if (loot_type == LOOT_SKINNING)
|
||||
{
|
||||
loot->clear();
|
||||
loot->FillLoot(creature->GetCreatureTemplate()->SkinLootId, LootTemplates_Skinning, this, true);
|
||||
if (!creature->lootForSkinned)
|
||||
{
|
||||
creature->lootForSkinned = true;
|
||||
loot->clear();
|
||||
loot->FillLoot(creature->GetCreatureTemplate()->SkinLootId, LootTemplates_Skinning, this, true);
|
||||
}
|
||||
permission = OWNER_PERMISSION;
|
||||
}
|
||||
// set group rights only for loot_type != LOOT_SKINNING
|
||||
|
||||
Reference in new issue
Block a user