mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 09:44:45 +01:00
Core/Loot: Fixed looting creatures that have only quest items in their loot
Closes #12400
This commit is contained in:
@@ -15393,7 +15393,7 @@ void Unit::Kill(Unit* victim, bool durabilityLoss)
|
||||
creature->DeleteThreatList();
|
||||
|
||||
// must be after setDeathState which resets dynamic flags
|
||||
if (!creature->loot.empty())
|
||||
if (!creature->loot.isLooted())
|
||||
creature->SetFlag(UNIT_DYNAMIC_FLAGS, UNIT_DYNFLAG_LOOTABLE);
|
||||
else
|
||||
creature->AllLootRemovedFromCorpse();
|
||||
|
||||
Reference in New Issue
Block a user