Creature/Loot: Fix a bug that prevented players from looting creatures that only had gold on them (no items).

This commit is contained in:
treeston authored and Aokromes committed 2016-08-16 15:35:01 +02:00
1 parent 80eeea4f85
commit 0ffd02f540
1 file changed
+1 -1
+1 -1
View File
@@ -17793,7 +17793,7 @@ bool Player::isAllowedToLoot(const Creature* creature)
const Loot* loot = &creature->loot;
if (loot->isLooted()) // nothing to loot or everything looted.
return false;
if (!loot->hasItemForAll() && !loot->hasItemFor(this)) // no loot in creature for this player
if (!loot->gold && !loot->hasItemForAll() && !loot->hasItemFor(this)) // no loot in creature for this player
return false;
if (loot->loot_type == LOOT_SKINNING)