mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-20 21:41:29 +00:00
Bugfix: Corpse stays locked when looting fails
If looting fails either because of cooldown or there are items on your cursor, the client is sent an end loot packet- the client releases the corpse but no one else can loot. This simply resets BeingLootedBy in this instance.
This commit is contained in:
parent
86c1420f6e
commit
0a27273d64
@ -1069,6 +1069,10 @@ void Corpse::LootItem(Client* client, const EQApplicationPacket* app)
|
|||||||
if(!loot_cooldown_timer.Check())
|
if(!loot_cooldown_timer.Check())
|
||||||
{
|
{
|
||||||
SendEndLootErrorPacket(client);
|
SendEndLootErrorPacket(client);
|
||||||
|
//unlock corpse for others
|
||||||
|
if (this->BeingLootedBy = client->GetID()) {
|
||||||
|
BeingLootedBy = 0xFFFFFFFF;
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1077,6 +1081,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.");
|
client->Message(13, "You may not loot an item while you have an item on your cursor.");
|
||||||
SendEndLootErrorPacket(client);
|
SendEndLootErrorPacket(client);
|
||||||
|
//unlock corpse for others
|
||||||
|
if (this->BeingLootedBy = client->GetID()) {
|
||||||
|
BeingLootedBy = 0xFFFFFFFF;
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user