mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 23:50:44 +01:00
Creature/Loot: Fix a bug that prevented players from looting creatures that only had gold on them (no items).
This commit is contained in:
@@ -17600,7 +17600,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)
|
||||
|
||||
Reference in New Issue
Block a user