Core/Skinning: Fixed the creatures becoming non-skinnable even before looting them completely.

Closes #5318
This commit is contained in:
Subv committed 2014-06-24 20:04:26 -05:00
1 parent cac491bef8
commit a0fedd1d78
6 files changed
+35 -8

No files matched your search

+6 -2
View File
@@ -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