*Prevent some possible crashes with charm auras.

*Allow non-dmg spells to proc dmg requiring effects if spellfamily specified in spell_proc_event table.

--HG--
branch : trunk
This commit is contained in:
QAston
2009-06-30 12:59:21 +02:00
parent 97027e0ff3
commit 788a699ae8
3 changed files with 23 additions and 21 deletions
+1 -1
View File
@@ -7894,7 +7894,7 @@ bool Unit::HandleProcTriggerSpell(Unit *pVictim, uint32 damage, AuraEffect* trig
// try detect target manually if not set
if ( target == NULL )
target = !(procFlags & PROC_FLAG_SUCCESSFUL_POSITIVE_SPELL | PROC_FLAG_SUCCESSFUL_HEALING_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
if(!target || target!=this && !target->isAlive())