From 7f04b23d2437e61ded3da5607e48cd7c675dc238 Mon Sep 17 00:00:00 2001 From: megamage Date: Sat, 29 Aug 2009 17:22:59 -0500 Subject: *Don't show lootable animation without loot. By WarHead --HG-- branch : trunk --- src/game/Unit.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index 7e4bdb6b88a..34661a91c4f 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -13699,7 +13699,9 @@ void Unit::Kill(Unit *pVictim, bool durabilityLoss) if(!cVictim->isPet()) { cVictim->DeleteThreatList(); - cVictim->SetFlag(UNIT_DYNAMIC_FLAGS, UNIT_DYNFLAG_LOOTABLE); + CreatureInfo const* cInfo = cVictim->GetCreatureInfo(); + if (cInfo && (cInfo->lootid || cInfo->maxgold > 0)) + cVictim->SetFlag(UNIT_DYNAMIC_FLAGS, UNIT_DYNFLAG_LOOTABLE); } // Call KilledUnit for creatures, this needs to be called after the lootable flag is set -- cgit v1.2.3