diff options
author | megamage <none@none> | 2009-08-05 16:11:43 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-08-05 16:11:43 -0500 |
commit | df017667a50eee9105fcb464b84339102c89b339 (patch) | |
tree | 44e73c9530789f0a58d2176a35a234a853015aeb /src | |
parent | e7ebddfc9a8b576bf84e0dd5fd30cef2268de65e (diff) |
[8307] Fix skinning for creatures without loot.
Signed-off-by: hunuza <hunuza@gmail.com>
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/game/Unit.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index 3bd529be8f1..1eb4e8bd723 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()) |