[8307] Fix skinning for creatures without loot.

Signed-off-by: hunuza <hunuza@gmail.com>
This commit is contained in:
hunuza 2009-08-04 18:44:33 +02:00
parent bb273d51ad
commit 6db608d1d3
2 changed files with 3 additions and 1 deletions

View file

@ -650,6 +650,8 @@ uint32 Unit::DealDamage(Unit *pVictim, uint32 damage, CleanDamage const* cleanDa
// 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);
else
cVictim->lootForBody = true; // needed for skinning
}
// Call creature just died function
if (cVictim->AI())