[8285] Don't show creatures as lootable that have no loot. Author: Prince
--HG-- branch : trunk
This commit is contained in:
1 parent
c9010dffc7
commit
d3646db916
1 file changed
+3
-1
+3
-1
@@ -865,7 +865,9 @@ uint32 Unit::DealDamage(Unit *pVictim, uint32 damage, CleanDamage const* cleanDa
|
||||
if(!cVictim->isPet())
|
||||
{
|
||||
cVictim->DeleteThreatList();
|
||||
cVictim->SetUInt32Value(UNIT_DYNAMIC_FLAGS, UNIT_DYNFLAG_LOOTABLE);
|
||||
// only lootable if it has loot or can drop gold
|
||||
if(cVictim->GetCreatureInfo()->lootid || cVictim->GetCreatureInfo()->maxgold > 0)
|
||||
cVictim->SetUInt32Value(UNIT_DYNAMIC_FLAGS, UNIT_DYNFLAG_LOOTABLE);
|
||||
}
|
||||
// Call creature just died function
|
||||
if (cVictim->AI())
|
||||
|
||||
Reference in new issue
Block a user