[8285] Don't show creatures as lootable that have no loot. Author: Prince

--HG--
branch : trunk
This commit is contained in:
megamage committed 2009-08-02 10:11:27 +08:00
1 parent c9010dffc7
commit d3646db916
1 file changed
+3 -1
+3 -1
View File
@@ -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())