Core/Loot: Automatically distribute currency items when they drop, based on Destros' patch

Closes issue #2913.

--HG--
branch : trunk
This commit is contained in:
Shauren
2010-09-06 11:27:00 +02:00
parent 23b5ae9d37
commit 5709007b02
3 changed files with 91 additions and 33 deletions
+1 -2
View File
@@ -15262,10 +15262,9 @@ void Unit::Kill(Unit *pVictim, bool durabilityLoss)
// Do KILL and KILLED procs. KILL proc is called only for the unit who landed the killing blow (and its owner - for pets and totems) regardless of who tapped the victim
if (isPet() || isTotem())
{
if (Unit *owner = GetOwner())
owner->ProcDamageAndSpell(pVictim, PROC_FLAG_KILL, PROC_FLAG_NONE, PROC_EX_NONE, 0);
}
ProcDamageAndSpell(pVictim, PROC_FLAG_KILL, PROC_FLAG_KILLED, PROC_EX_NONE, 0);
// Proc auras on death - must be before aura/combat remove