mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-19 17:05:44 +01:00
*Don't show lootable animation without loot. By WarHead
--HG-- branch : trunk
This commit is contained in:
@@ -13699,7 +13699,9 @@ void Unit::Kill(Unit *pVictim, bool durabilityLoss)
|
||||
if(!cVictim->isPet())
|
||||
{
|
||||
cVictim->DeleteThreatList();
|
||||
cVictim->SetFlag(UNIT_DYNAMIC_FLAGS, UNIT_DYNFLAG_LOOTABLE);
|
||||
CreatureInfo const* cInfo = cVictim->GetCreatureInfo();
|
||||
if (cInfo && (cInfo->lootid || cInfo->maxgold > 0))
|
||||
cVictim->SetFlag(UNIT_DYNAMIC_FLAGS, UNIT_DYNFLAG_LOOTABLE);
|
||||
}
|
||||
|
||||
// Call KilledUnit for creatures, this needs to be called after the lootable flag is set
|
||||
|
||||
Reference in New Issue
Block a user