mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-29 18:11:28 +00:00
Merge pull request #274 from RicardoCampos/Development
Bugfix: Corpse stays locked when looting fails
This commit is contained in:
commit
c5df59a2f0
@ -1071,6 +1071,10 @@ void Corpse::LootItem(Client* client, const EQApplicationPacket* app)
|
||||
if(!loot_cooldown_timer.Check())
|
||||
{
|
||||
SendEndLootErrorPacket(client);
|
||||
//unlock corpse for others
|
||||
if (this->BeingLootedBy = client->GetID()) {
|
||||
BeingLootedBy = 0xFFFFFFFF;
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
@ -1079,6 +1083,10 @@ void Corpse::LootItem(Client* client, const EQApplicationPacket* app)
|
||||
{
|
||||
client->Message(13, "You may not loot an item while you have an item on your cursor.");
|
||||
SendEndLootErrorPacket(client);
|
||||
//unlock corpse for others
|
||||
if (this->BeingLootedBy = client->GetID()) {
|
||||
BeingLootedBy = 0xFFFFFFFF;
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user