Core/Loot: Do not allow a player that has instance bind pending to loot. By Moriquendu.

Closes #2415

Regarding this issue, binding everyone on the raid/party on boss kill regardless of being inside or outside the instance needs to be implemented.
This commit is contained in:
Nay
2011-09-15 01:53:14 +01:00
parent bff26d9319
commit 8af86aced7
+4 -1
View File
@@ -17116,7 +17116,10 @@ bool Player::LoadFromDB(uint32 guid, SQLQueryHolder *holder)
bool Player::isAllowedToLoot(const Creature* creature)
{
if (!creature->isDead() || !creature->IsDamageEnoughForLootingAndReward())
return false;
return false;
if (HasPendingBind())
return false;
const Loot* loot = &creature->loot;
if (loot->isLooted()) // nothing to loot or everything looted.