From df017667a50eee9105fcb464b84339102c89b339 Mon Sep 17 00:00:00 2001 From: megamage Date: Wed, 5 Aug 2009 16:11:43 -0500 Subject: [PATCH] [8307] Fix skinning for creatures without loot. Signed-off-by: hunuza --HG-- branch : trunk --- src/game/Unit.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index 3bd529be8f..1eb4e8bd72 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -868,6 +868,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())