Core/Loot: Reimplement the proper check for loot recipient to prevent rewarding loot without tagging the creature by the player.

Also fix the related skinning problem, and do not set the skinnable flag for creatures without any loot recipient.

--HG--
branch : trunk
This commit is contained in:
linencloth
2010-09-15 17:44:56 +02:00
parent 52bc2478c9
commit 9739bea487
3 changed files with 3 additions and 6 deletions
@@ -1494,7 +1494,8 @@ void Creature::setDeathState(DeathState s)
if (!isPet() && GetCreatureInfo()->SkinLootId)
if (LootTemplates_Skinning.HaveLootFor(GetCreatureInfo()->SkinLootId))
SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_SKINNABLE);
if (hasLootRecipient())
SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_SKINNABLE);
if (HasSearchedAssistance())
{