*Fix some problems with healing procs targetting.

--HG--
branch : trunk
This commit is contained in:
QAston
2009-06-30 12:05:06 +02:00
parent 44815a83c4
commit 97027e0ff3
+1 -1
View File
@@ -7894,7 +7894,7 @@ bool Unit::HandleProcTriggerSpell(Unit *pVictim, uint32 damage, AuraEffect* trig
// try detect target manually if not set // try detect target manually if not set
if ( target == NULL ) if ( target == NULL )
target = !(procFlags & PROC_FLAG_SUCCESSFUL_POSITIVE_SPELL) && IsPositiveSpell(trigger_spell_id) ? this : pVictim; target = !(procFlags & PROC_FLAG_SUCCESSFUL_POSITIVE_SPELL | PROC_FLAG_SUCCESSFUL_HEALING_SPELL) && IsPositiveSpell(trigger_spell_id) ? this : pVictim;
// default case // default case
if(!target || target!=this && !target->isAlive()) if(!target || target!=this && !target->isAlive())