because of this bothers me since mangos was born, i wrote this just in the moment... on offi you'll never get lootable animation for creatures without loot.
What bug does the patch fix? What features does the patch add?
- it prevent to show the lootable animation for creatures without loot
For which repository revision was the patch created?
- rev 8250
Is there a thread in the bug report section or at lighthouse? If yes, please add a link to the thread.
- I don't believe it... I don't know...
Who has been writing this patch? Please include either forum user names or email addresses.
- Prince
THE DIFF
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp
index 0b67a2f..0dfda03 100644
--- a/src/game/Unit.cpp
+++ b/src/game/Unit.cpp
@@ -647,7 +657,8 @@ uint32 Unit::DealDamage(Unit *pVictim, uint32 damage, CleanDamage const* cleanDa
if(!cVictim->isPet())
{
cVictim->DeleteThreatList();
- cVictim->SetUInt32Value(UNIT_DYNAMIC_FLAGS, UNIT_DYNFLAG_LOOTABLE);
+ if (cVictim->GetCreatureInfo()->lootid)
+ cVictim->SetUInt32Value(UNIT_DYNAMIC_FLAGS, UNIT_DYNFLAG_LOOTABLE);
}
// Call creature just died function
if (cVictim->AI())