Don't proc KILLED for the victim twice when attacker's pet lands the killing blow.

--HG--
branch : trunk
This commit is contained in:
Xanadu
2010-03-21 16:23:50 +01:00
parent d01d4498ed
commit 74a2957af5
+1 -1
View File
@@ -14587,7 +14587,7 @@ void Unit::Kill(Unit *pVictim, bool durabilityLoss)
if (isPet() || isTotem()) if (isPet() || isTotem())
{ {
if (Unit *owner = GetOwner()) if (Unit *owner = GetOwner())
owner->ProcDamageAndSpell(pVictim, PROC_FLAG_KILL, PROC_FLAG_KILLED, PROC_EX_NONE, 0); 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); ProcDamageAndSpell(pVictim, PROC_FLAG_KILL, PROC_FLAG_KILLED, PROC_EX_NONE, 0);