mirror of
https://github.com/araxiaonline/TrinityCore2.git
synced 2026-06-20 06:49:29 -04:00
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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user