mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-18 08:28:32 +01:00
Core/Creature: Reset loot recipient group on respawn.
Fixes issue 4051. --HG-- branch : trunk
This commit is contained in:
@@ -967,6 +967,7 @@ void Creature::SetLootRecipient(Unit *unit)
|
||||
if (!unit)
|
||||
{
|
||||
m_lootRecipient = 0;
|
||||
m_lootRecipientGroup = 0;
|
||||
RemoveFlag(UNIT_DYNAMIC_FLAGS, UNIT_DYNFLAG_LOOTABLE|UNIT_DYNFLAG_TAPPED);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user